order-diff.vue 1.62 KB
<template>
    <layout-body>
        <layout-list>
            <Table border :columns="columns" :data="dataList"></Table>
        </layout-list>
    </layout-body>
</template>

<script>
    import {DiffService} from 'services/repository';

    export default {
        name: 'order-info',
        props: {
            id: Number
        },
        data() {
            return {
                columns: [{
                    title: '序号',
                    key: 'id'

                }, {
                    title: '品牌',
                    key: 'brandName'
                }, {
                    title: '条码',
                    key: 'factoryCode'
                }, {
                    title: 'sku',
                    key: 'productSku'
                }, {
                    title: '颜色',
                    key: 'color'
                }, {
                    title: '尺码',
                    key: 'size'
                }, {
                    title: '数量',
                    key: 'orderNumber'
                }, {
                    title: '吊牌价',
                    key: 'retailPrice'
                }, {
                    title: '供应商',
                    key: 'supplierName'
                }]
            };
        },
        created() {
            this.DiffService = new DiffService();

            this.DiffService.diffInfo({
                workOrderId: this.id
            })
            .then(res => {
                this.$Loading.finish();
                this.dataList = res.data;
            });
        },
        methods: {

        }
    };
</script>

<style lang="scss">
</style>