Authored by 李奇

数据修改

... ... @@ -51,9 +51,10 @@
import _ from 'lodash';
import moment from 'moment';
import service from 'trade-service';
import { undoneStore as store } from '../store';
import Store from '../store/undone';
import { CellInfo, CellDispatch, CellDeliver, CellStockOut } from 'trade/table-cell';
export default {
name: 'TabUndone',
data() {
... ... @@ -65,10 +66,9 @@
};
},
created() {
let filters;
filters = JSON.parse(JSON.stringify(store.filters));
const store = new Store();
this.filters = filters;
this.filters = store.filters;
this.page = store.page;
this.table = store.table;
... ...
/**
* trade allot page store
* @author: Leo
* @date: 2017/05/04
*/
import doneStore from './done'
import undoneStore from './undone'
import expressStore from './express'
export {
doneStore,
undoneStore,
expressStore
}
\ No newline at end of file
... ... @@ -4,141 +4,140 @@
* @date: 04/05/2017
*/
let filters = {
orderNo: {
label: '入库单号',
model: '',
holder: '入库单号',
},
prodCode: {
label: '商品编码',
labelSpan: 6,
model: '',
holder: '',
fieldSpan: 18
},
merChantCode: {
label: '商家编码',
labelSpan: 6,
model: '',
holder: '',
fieldSpan: 18
},
prodBarCode: {
label: '商品条码',
labelSpan: 6,
model: '',
holder: '',
fieldSpan: 18
},
orderTime: {
label: '下单时间',
labelSpan: 6,
model: '',
holder: '',
fieldSpan: 18
},
prodStatus: {
label: '商品状态',
labelSpan: 6,
fieldSpan: 18,
model: -1,
options: [
{
value: -1,
label: '全部'
class Store {
constructor() {
console.log('new instance Data')
this.filters = {
orderNo: {
label: '入库单号',
model: '',
holder: '入库单号',
},
{
value: 1,
label: '待处理'
prodCode: {
label: '商品编码',
labelSpan: 6,
model: '',
holder: '',
fieldSpan: 18
},
{
value: 2,
label: '待处理超时'
merChantCode: {
label: '商家编码',
labelSpan: 6,
model: '',
holder: '',
fieldSpan: 18
},
prodBarCode: {
label: '商品条码',
labelSpan: 6,
model: '',
holder: '',
fieldSpan: 18
},
orderTime: {
label: '下单时间',
labelSpan: 6,
model: '',
holder: '',
fieldSpan: 18
},
prodStatus: {
label: '商品状态',
labelSpan: 6,
fieldSpan: 18,
model: -1,
options: [
{
value: -1,
label: '全部'
},
{
value: 1,
label: '待处理'
},
{
value: 2,
label: '待处理超时'
}
]
}
]
}
};
let page = {
total: 0,
current: 1
}
let table = {
cols: [
{
type: 'selection',
width: 60,
align: 'center'
},
{
title: '下单时间',
key: 'createTime',
align: 'center'
},
{
title: '商品信息',
align: 'center',
render(row){
return `<cell-info
};
this.page = {
total: 0,
current: 1
};
this.table = {
cols: [
{
type: 'selection',
width: 60,
align: 'center'
},
{
title: '下单时间',
key: 'createTime',
align: 'center'
},
{
title: '商品信息',
align: 'center',
render(row){
return `<cell-info
:sku="row.productSku"
color="mock"
:size="row.sizeName"
></cell-info>`
}
},
{
title: '订单收发货',
align: 'center',
render(row){
return `<cell-dispatch
}
},
{
title: '订单收发货',
align: 'center',
render(row){
return `<cell-dispatch
:store-num="row.inStoreNum"
:buy-num="row.buyingNums"
:lack-num="row.lackNum">
</cell-dispatch>`;
}
},
{
title: '发货',
align: 'center',
render(){
return `<cell-deliver
}
},
{
title: '发货',
align: 'center',
render(){
return `<cell-deliver
:ship-num="row.shipmentsNums">
</cell-deliver>`
}
},
{
title: '缺货',
align: 'center',
render(){
return `<cell-stock-out
}
},
{
title: '缺货',
align: 'center',
render(){
return `<cell-stock-out
:lack-num="row.lackNum"
></cell-stock-out>`
}
},
{
title: '状态',
align: 'center',
render(row) {
let ot = row.isOvertime;
ot = ot === 'N' ? true : false;
}
},
{
title: '状态',
align: 'center',
render(row) {
let ot = row.isOvertime;
ot = ot === 'N' ? true : false;
return `<span v-if="${ot}">待处理</span>
return `<span v-if="${ot}">待处理</span>
<span v-else>待处理(超时)</span>`;
}
},
{
title: '入库单号',
key: 'proRequisitionFormId',
align: 'center',
}
},
{
title: '入库单号',
key: 'proRequisitionFormId',
align: 'center',
}
],
list: []
}
],
list: []
}
}
export default {
page,
table,
filters
}
\ No newline at end of file
export default Store;
\ No newline at end of file
... ...