...
|
...
|
@@ -11,7 +11,7 @@ |
|
|
</FilterItem>
|
|
|
<FilterItem :label="filters.prodCode.label">
|
|
|
<Input v-model.trim.number="filters.prodCode.model"
|
|
|
:placeholder="filters.prodCode.holder"></Input>
|
|
|
:placeholder="filters.prodCode.holder" :maxlength="9"></Input>
|
|
|
</FilterItem>
|
|
|
<FilterItem :label="filters.prodBarCode.label">
|
|
|
<Input v-model.trim="filters.prodBarCode.model"
|
...
|
...
|
@@ -72,18 +72,22 @@ |
|
|
},
|
|
|
filterSearch() {
|
|
|
this.useFilter = true;
|
|
|
this.getExpList(this.params());
|
|
|
this.page.current = 1;
|
|
|
if (this.params()) {
|
|
|
this.getExpList(this.params());
|
|
|
this.page.current = 1;
|
|
|
}
|
|
|
},
|
|
|
clearFilter() {
|
|
|
this.useFilter = false;
|
|
|
this.getExpList(this.params());
|
|
|
this.page.current = 1;
|
|
|
if (this.params()) {
|
|
|
this.getExpList(this.params());
|
|
|
this.page.current = 1;
|
|
|
}
|
|
|
this.filters = dataStore().filters;
|
|
|
},
|
|
|
pageChange(page) {
|
|
|
let params = this.params();
|
|
|
|
|
|
|
|
|
params.pageNo = page;
|
|
|
this.page.current = page;
|
|
|
this.getExpList(params);
|
...
|
...
|
@@ -96,32 +100,34 @@ |
|
|
};
|
|
|
const mapKeys = {
|
|
|
expressNumber: 'expressNo',
|
|
|
productSkn: 'prodCode',
|
|
|
skn: 'prodCode',
|
|
|
skuFactoryCode: 'prodBarCode',
|
|
|
proReqFormId: 'orderNo'
|
|
|
};
|
|
|
|
|
|
if (this.useFilter) {
|
|
|
let val;
|
|
|
|
|
|
_.each(mapKeys, (v, k) => {
|
|
|
val = '' + this.filters[v].model;
|
|
|
if (val.length) {
|
|
|
data[k] = this.filters[v].model;
|
|
|
}
|
|
|
});
|
|
|
if (!this.useFilter) {
|
|
|
return data;
|
|
|
}
|
|
|
|
|
|
let val;
|
|
|
|
|
|
_.each(mapKeys, (v, k) => {
|
|
|
val = '' + this.filters[v].model;
|
|
|
if (val.length) {
|
|
|
data[k] = this.filters[v].model;
|
|
|
}
|
|
|
});
|
|
|
|
|
|
if (typeof data.proReqFormId !== 'undefined' &&
|
|
|
!_.isFinite(+data.proReqFormId)) {
|
|
|
this.$Message.error('调拨单号只能是数字', 3);
|
|
|
return;
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
if (typeof data.productSkn !== 'undefined' &&
|
|
|
!_.isFinite(+data.productSkn)) {
|
|
|
if (typeof data.skn !== 'undefined' &&
|
|
|
!_.isFinite(+data.skn)) {
|
|
|
this.$Message.error('SKN编码只能是数字', 3);
|
|
|
return;
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
return data;
|
...
|
...
|
|