...
|
...
|
@@ -5,29 +5,25 @@ |
|
|
<Input v-model.trim="filters.orderNo.model"
|
|
|
:placeholder="filters.orderNo.holder" number></Input>
|
|
|
</FilterItem>
|
|
|
<FilterItem :label="filters.expressNo.label">
|
|
|
<Input v-model.trim="filters.expressNo.model"
|
|
|
:placeholder="filters.expressNo.holder" number></Input>
|
|
|
</FilterItem>
|
|
|
<FilterItem :label="filters.prodCode.label">
|
|
|
<Input v-model.trim="filters.prodCode.model"
|
|
|
:placeholder="filters.prodCode.holder" number></Input>
|
|
|
</FilterItem>
|
|
|
<FilterItem :label="filters.merChantCode.label">
|
|
|
<Input v-model.trim="filters.merChantCode.model"
|
|
|
:placeholder="filters.merChantCode.holder"></Input>
|
|
|
<FilterItem :label="filters.expressStatus.label">
|
|
|
<Select v-model.trim="filters.expressStatus.model">
|
|
|
<Option v-for="option in filters.expressStatus.options"
|
|
|
:value="option.value"
|
|
|
:key="option.value">{{option.label}}</Option>
|
|
|
</Select>
|
|
|
</FilterItem>
|
|
|
<FilterItem :label="filters.prodBarCode.label">
|
|
|
<Input v-model.trim="filters.prodBarCode.model"
|
|
|
:placeholder="filters.prodBarCode.holder"></Input>
|
|
|
</FilterItem>
|
|
|
<FilterItem :label="filters.orderTime.label">
|
|
|
<Date-picker type="date" placeholder="选择日期"
|
|
|
@on-change="dateChange" :value="filters.orderTime.model"></Date-picker>
|
|
|
</FilterItem>
|
|
|
<FilterItem :label="filters.prodStatus.label">
|
|
|
<Select v-model.trim="filters.prodStatus.model">
|
|
|
<Option v-for="option in filters.prodStatus.options"
|
|
|
:value="option.value"
|
|
|
:key="option.value">{{option.label}}</Option>
|
|
|
</Select>
|
|
|
</FilterItem>
|
|
|
<FilterItem>
|
|
|
<Button type="primary" @click="filterSearch">筛选</Button>
|
|
|
<Button type="primary" @click="filterSearch">导出</Button>
|
...
|
...
|
@@ -48,7 +44,7 @@ |
|
|
import _ from 'lodash';
|
|
|
import moment from 'moment';
|
|
|
import service from 'trade-service';
|
|
|
import Store from '../store/undone';
|
|
|
import Store from '../store/express';
|
|
|
import { OutStock } from 'trade/out-stock'
|
|
|
import { CellInfo, CellDispatch, CellDeliver, CellStockOut } from 'trade/table-cell';
|
|
|
|
...
|
...
|
@@ -69,16 +65,15 @@ |
|
|
},
|
|
|
created() {
|
|
|
const store = Store();
|
|
|
|
|
|
this.filters = store.filters;
|
|
|
this.page = store.page;
|
|
|
this.table = store.table;
|
|
|
|
|
|
const params = {
|
|
|
pageNo: 1
|
|
|
pageNo: 1,
|
|
|
statusList: [1,2,3] // TODO
|
|
|
};
|
|
|
|
|
|
this.productList(params);
|
|
|
this.page = store.page;
|
|
|
this.table = store.table;
|
|
|
this.filters = store.filters;
|
|
|
this.expressList(params);
|
|
|
},
|
|
|
methods: {
|
|
|
params(){
|
...
|
...
|
@@ -111,10 +106,9 @@ |
|
|
|
|
|
return data;
|
|
|
},
|
|
|
productList(params){
|
|
|
service.allotPurchaseList(
|
|
|
expressList(params){
|
|
|
service.allotExpressList(
|
|
|
_.merge(params || {}, {
|
|
|
statusList: [1],
|
|
|
pageSize: 20
|
|
|
}))
|
|
|
.then(res => {
|
...
|
...
|
@@ -133,12 +127,12 @@ |
|
|
const params = this.params();
|
|
|
|
|
|
this.useFilterSign = true;
|
|
|
this.productList(params);
|
|
|
this.expressList(params);
|
|
|
this.page.current = 1;
|
|
|
},
|
|
|
clearFilter(){
|
|
|
this.filters = Store().filters;
|
|
|
this.productList();
|
|
|
this.expressList();
|
|
|
this.useFilterSign = false;
|
|
|
this.page.current = 1;
|
|
|
},
|
...
|
...
|
@@ -154,7 +148,7 @@ |
|
|
page
|
|
|
});
|
|
|
|
|
|
this.productList(params);
|
|
|
this.expressList(params);
|
|
|
},
|
|
|
selectChange(){
|
|
|
|
...
|
...
|
|