1
huangxiaoqiang
8 天以前 7195016afc472307e4db0b415e45c9d4275bdb02
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
<!--
*Author:jxx
 *Contact:283591387@qq.com
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/widesea_wms/taskinfo/Dt_Task.js此处编写
 -->
 <template>
    <view-grid ref="grid" :columns="columns" :detail="detail" :editFormFields="editFormFields"
        :editFormOptions="editFormOptions" :searchFormFields="searchFormFields" :searchFormOptions="searchFormOptions"
        :table="table" :extend="extend" />
</template>
<script>
import extend from "@/extension/widesea_wms/erp/stockERP.js";
import { ref, defineComponent } from "vue";
export default defineComponent({
    setup() {
        const table = ref({
            key: '',
            footer: "Foots",
            cnName: 'ERP库存',
            name: '',
            url: "/stockERP/",
            sortName: ""
        });
        const editFormFields = ref({
            
        });
        const editFormOptions = ref([
            
        ]);
        const searchFormFields = ref({
        });
        const searchFormOptions = ref([
            [
                { "title": "仓库名称", "field": "仓库名称", type: "text" },
                { "title": "产品图号", "field": "产品图号", type: "text" },
                { "title": "单重", "field": "单重", type: "text"},
            ], [
                { "title": "品名", "field": "品名", type: "text" },
                { "title": "库存数量", "field": "库存数量", type: "text"},
                { "title": "料号", "field": "料号", type: "text" },
            ]
        ]);
        const columns = ref([
            { field: '仓库名称', title: '仓库名称', type: 'string', width: 110, readonly: true, require: true, align: 'left' },
            { field: '产品图号', title: '产品图号', type: 'string', width: 180, align: 'left' },
            { field: '料号', title: '料号', type: 'string', width: 180, align: 'left' },
            { field: '品名', title: '品名', type: 'string', width: 180, align: 'left' },
            { field: '规格', title: '规格', type: 'string', width: 180, align: 'left' },
            { field: '采购单位', title: '采购单位', type: 'string', width: 180, align: 'left' },
            { field: '单重', title: '单重', type: 'string', width: 180, align: 'left' },
            { field: '库存数量', title: '库存数量', type: 'string', width: 180, align: 'left' },
            { field: '根数', title: '根数', type: 'string', width: 180, align: 'left' },
            { field: '用友材质', title: '用友材质', type: 'string', width: 180, align: 'left' },
            { field: '执行标准号', title: '执行标准号', type: 'string', width: 180, align: 'left' },
            { field: '品牌', title: '品牌', type: 'string', width: 180, align: 'left' },
    ]);
        const detail = ref({
            cnName: "#detailCnName",
            table: "#detailTable",
            columns: [],
            sortName: "",
            key: ""
        });
        return {
            table,
            extend,
            editFormFields,
            editFormOptions,
            searchFormFields,
            searchFormOptions,
            columns,
            detail,
        };
    },
});
</script>