|
@@ -1,7 +1,7 @@
|
|
|
<!-- 供应商维护 -->
|
|
|
<template>
|
|
|
<div class="container">
|
|
|
- <Form :label-width="60" inline>
|
|
|
+ <Form :label-width="80" inline>
|
|
|
<FormItem label="关键词">
|
|
|
<Poptip trigger="focus" width="250" placement="bottom">
|
|
|
<div slot="content">
|
|
@@ -11,17 +11,35 @@
|
|
|
</li>
|
|
|
</ul>
|
|
|
</div>
|
|
|
- <Input v-model="params.search" @on-change="getSupplierSelectList" placeholder="请输入用途关键词"></Input>
|
|
|
+ <Input style="width:150px" v-model="params.search" @on-change="getSupplierSelectList" placeholder="请输入用途关键词"></Input>
|
|
|
</Poptip>
|
|
|
|
|
|
</FormItem>
|
|
|
- <FormItem label="用途">
|
|
|
- <Select v-model="params.PurposeIndex" style="width:200px" @on-change="selectPurposeFn" filterable>
|
|
|
+ <FormItem label="按产品查看">
|
|
|
+ <Select v-model="params.Purpose" style="width:150px" @on-change="selectPurposeFn" filterable>
|
|
|
<div slot="empty">无匹配数据</div>
|
|
|
<Option :value="999">全部</Option>
|
|
|
<Option v-for="(i,index) in selectPurposeList" :value="index" :key="index">{{ i.purpose }}</Option>
|
|
|
</Select>
|
|
|
</FormItem>
|
|
|
+ <FormItem label="按账期查看">
|
|
|
+ <Select v-model="params.accountDate" style="width:150px" @on-change="changePage(1)" filterable>
|
|
|
+ <div slot="empty">无匹配数据</div>
|
|
|
+ <Option value="">全部</Option>
|
|
|
+ <Option v-for="(i,index) in accountDateList" :value="i.accountDate" :key="index">
|
|
|
+ {{ i.accountDate + '天(' }}<span style="color:red">{{i.count}}</span>)
|
|
|
+ </Option>
|
|
|
+ </Select>
|
|
|
+ </FormItem>
|
|
|
+ <FormItem label="按采购周期">
|
|
|
+ <Select v-model="params.type" style="width:150px" @on-change="changePage(1)" filterable>
|
|
|
+ <div slot="empty">无匹配数据</div>
|
|
|
+ <Option value="">全部</Option>
|
|
|
+ <Option v-for="(i,index) in safetyWarnDayList" :value="i.type" :key="index">
|
|
|
+ {{ i.name + '(' }}<span style="color:red">{{i.count}}</span>)
|
|
|
+ </Option>
|
|
|
+ </Select>
|
|
|
+ </FormItem>
|
|
|
<Button type="primary" @click="getStatisticsClassify();changePage(1)">查询</Button>
|
|
|
<div style="float:right">
|
|
|
<Button type="primary" style="margin-right:10px" @click="eventHandle('account')">收款账号维护</Button>
|
|
@@ -149,6 +167,7 @@ export default {
|
|
|
placeholder: '请输入账期',
|
|
|
span: 12
|
|
|
},
|
|
|
+
|
|
|
{
|
|
|
type: 'input',
|
|
|
label: '账期说明',
|
|
@@ -905,6 +924,21 @@ export default {
|
|
|
minWidth: 100
|
|
|
},
|
|
|
{
|
|
|
+ title: '采购周期',
|
|
|
+ key: 'accountDateRemark',
|
|
|
+ minWidth: 100,
|
|
|
+ render:(h,p)=>{
|
|
|
+ return h('span',{
|
|
|
+ style:{
|
|
|
+ color:'#0077ff',
|
|
|
+ cursor:"pointer"
|
|
|
+ }
|
|
|
+ },
|
|
|
+ '查看'
|
|
|
+ )
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
title: '账期说明',
|
|
|
key: 'accountDateRemark',
|
|
|
minWidth: 100
|
|
@@ -1047,13 +1081,34 @@ export default {
|
|
|
TechnologyType:99,
|
|
|
Purpose:null,
|
|
|
search:null,
|
|
|
+ type:'',
|
|
|
+ accountDate:'',
|
|
|
},
|
|
|
total:0,
|
|
|
loading:false,
|
|
|
selectPurposeList:[],
|
|
|
+ accountDateList:[],
|
|
|
+ safetyWarnDayList:[],
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
+ getSafetyWarnDayList(){
|
|
|
+ const v = this
|
|
|
+ axios.post('/cloudApi/supplier/getSafetyWarnDayList',{}).then(res=>{
|
|
|
+ console.log(res)
|
|
|
+ v.safetyWarnDayList = res.data.data
|
|
|
+ })
|
|
|
+
|
|
|
+ },
|
|
|
+ getAccountDateList(){
|
|
|
+ const v = this
|
|
|
+ axios.post('/cloudApi/supplier/getAccountDateList',{}).then(res=>{
|
|
|
+ console.log(res)
|
|
|
+ v.accountDateList = res.data.data
|
|
|
+ })
|
|
|
+
|
|
|
+ },
|
|
|
+
|
|
|
selectPurposeFn(e){
|
|
|
console.log(e)
|
|
|
if(e == 999){
|
|
@@ -1239,6 +1294,8 @@ export default {
|
|
|
this.getStatisticsClassify()
|
|
|
this.getSupplierSelectList()
|
|
|
this.getMaterialSelectPurposeList()
|
|
|
+ this.getAccountDateList()
|
|
|
+ this.getSafetyWarnDayList()
|
|
|
}
|
|
|
}
|
|
|
</script>
|