...
|
...
|
@@ -40,7 +40,7 @@ |
|
|
</LayoutFilter>
|
|
|
<LayoutList>
|
|
|
<Table border :context="self" :columns="table.cols" :data="table.list"
|
|
|
:row-class-name="rowClassName" @on-selection-change="selectChange"></Table>
|
|
|
:row-class-name="rowClassName"></Table>
|
|
|
<Page :total="page.total" :current="page.current"
|
|
|
@on-change="pageChange" :page-size="20" show-total></Page>
|
|
|
</LayoutList>
|
...
|
...
|
@@ -75,6 +75,7 @@ |
|
|
|
|
|
const params = {
|
|
|
pageNo: 1,
|
|
|
pageSize: 20,
|
|
|
statusList: [2,3]
|
|
|
};
|
|
|
|
...
|
...
|
@@ -82,7 +83,16 @@ |
|
|
},
|
|
|
methods: {
|
|
|
params(){
|
|
|
const data = {};
|
|
|
let data = {
|
|
|
pageNo: 1,
|
|
|
pageSize: 20,
|
|
|
statusList: [2,3]
|
|
|
};
|
|
|
|
|
|
if(!this.useFilterSign) {
|
|
|
return data;
|
|
|
}
|
|
|
|
|
|
const mapKeys = {
|
|
|
proRequisitionFormId: 'orderNo',
|
|
|
expressNumber: 'expressNo',
|
...
|
...
|
@@ -119,16 +129,14 @@ |
|
|
}
|
|
|
|
|
|
data.isOvertime = ot === -2 ? 'Y' : '';
|
|
|
|
|
|
console.log(data)
|
|
|
data = _.pickBy(data, (v) => {
|
|
|
return (v+'').length;
|
|
|
});
|
|
|
|
|
|
return data;
|
|
|
},
|
|
|
productList(params){
|
|
|
service.allotPurchaseList(
|
|
|
_.merge(params || {}, {
|
|
|
pageSize: 20
|
|
|
}))
|
|
|
service.allotPurchaseList(params)
|
|
|
.then(res => {
|
|
|
const fmt = 'YYYY-MM-DD HH:mm:ss';
|
|
|
const list = res.data.records;
|
...
|
...
|
@@ -142,38 +150,22 @@ |
|
|
});
|
|
|
},
|
|
|
filterSearch(){
|
|
|
const params = this.params();
|
|
|
|
|
|
this.useFilterSign = true;
|
|
|
this.productList(params);
|
|
|
this.productList(this.params());
|
|
|
this.page.current = 1;
|
|
|
},
|
|
|
clearFilter(){
|
|
|
this.filters = Store().filters;
|
|
|
this.productList();
|
|
|
this.useFilterSign = false;
|
|
|
this.productList(this.params());
|
|
|
this.page.current = 1;
|
|
|
},
|
|
|
pageChange(page) {
|
|
|
let params = {};
|
|
|
const params = this.params();
|
|
|
this.page.current = page;
|
|
|
|
|
|
if(this.useFilterSign) {
|
|
|
params = this.params();
|
|
|
}
|
|
|
|
|
|
_.merge(params, {
|
|
|
page
|
|
|
});
|
|
|
|
|
|
params.pageNo = page;
|
|
|
this.productList(params);
|
|
|
},
|
|
|
selectChange(){
|
|
|
|
|
|
},
|
|
|
sendOut(){
|
|
|
|
|
|
},
|
|
|
setModel(k, v) {
|
|
|
this.filters[k].model = v;
|
|
|
},
|
...
|
...
|
|