express.js 1.76 KB
/**
 * done tab store
 * @author: leo
 * @date: 04/05/2017
 */

export default () => {
    return {
        filters: {
            orderNo: {
                label: '调拨单号',
                model: '',
                holder: '',
            },
            expressNo: {
                label: '物流单号',
                labelSpan: 6,
                model: '',
                holder: '',
                fieldSpan: 18
            },
            prodCode: {
                label: '商品编码',
                labelSpan: 6,
                model: '',
                holder: 'SKN',
                fieldSpan: 18
            },
            prodBarCode: {
                label: '商品条码',
                labelSpan: 6,
                model: '',
                holder: '',
                fieldSpan: 18
            }
        },
        page: {
            total: 0,
            current: 1
        },
        table: {
            cols: [
                {
                    title: '物流单号',
                    key: '',
                    align: 'center',
                    render(row) {
                        return `${row.expressNumber}(${row.expressName})`;

                    }
                },
                {
                    title: '发货时间',
                    key: 'createTime',
                    align: 'center'
                },
                {
                    title: '查看明细',
                    key: 'detail',
                    align: 'center',
                    render(row) { // eslint-disable-line
                        return '<i-button type="primary" @click="goExpDetail(row.expressNumber)">查看明细</i-button>';
                    }
                }
            ],
            list: []
        }
    };
};