1
huangxiaoqiang
2025-10-21 6c663b92b0078aa89657df22ec188dff65599f04
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
<!--
*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/Order/InboundOrder.js";
import { ref, defineComponent } from "vue";
export default defineComponent({
    setup() {
        const table = ref({
            key: '',
            footer: "Foots",
            cnName: '入库单据',
            name: '',
            url: "/InboundOrder/",
            sortName: ""
        });
        const editFormFields = ref({
            
        });
        const editFormOptions = ref([
        
        ]);
        const searchFormFields = ref({
 
        });
        const searchFormOptions = ref([
        [
                { "title": "订单唯一号", "field": "printCode", "type": "text" },
                { "title": "订单编号", "field": "orderNo", "type": "text" },
                { "title": "需求分类", "field": "demandClassification", "type": "text" },
                { "title": "单据类型", "field": "orderType", "type": "text" },
 
            ],
            [
                { "title": "物料编码", "field": "materialNo", type: "text" },
                { "title": "物料名称", "field": "materialName", type: "text" },
                { "title": "行号", "field": "lineNumber", type: "text" },
                { "title": "时间", "field": "datetime", type: "text" },
            ],
            [
                { "title": "仓库名称", "field": "warehouseName", type: "text" },
                { "title": "单重", "field": "weight", type: "text",  },
                { "title": "规格", "field": "specs", type: "text" },
                { "title": "数量", "field": "quantity", type: "text" },
            ],
        ]);
        const columns = ref([
            { field: 'printCode', title: '订单唯一号', type: 'string', width: 180, readonly: true, require: true, align: 'left' },
            { field: 'orderNo', title: '订单编号', type: 'string', width: 180, align: 'left' },
            { field: 'materialNo', title: '物料编码', type: 'string', width: 180, align: 'left' },
            { field: 'materialName', title: '物料名称', type: 'string', width: 180, align: 'left' },
            { field: 'demandClassification', title: '需求分类', type: 'string', width: 180, align: 'left' },
            { field: 'orderType', title: '单据类型', type: 'string', width: 110, align: 'left' },
            { field: 'warehouseName', title: '仓库名称', type: 'string', width: 120, align: 'left' },
            { field: 'datetime', title: '时间', type: 'string', width: 180, align: 'left' },
            { field: 'lineNumber', title: '行号', type: 'string', width: 90, align: 'left' },
            { field: 'productDrawingNumber', title: '图号', type: 'string', width: 180, align: 'left' },
            { field: 'weight', title: '单重', type: 'string', width: 90, align: 'left' },
            { field: 'specs', title: '规格', type: 'string', width: 180, align: 'left' },
            { field: 'unit', title: '单位', type: 'string', width: 90, align: 'left' },
            { field: 'texture', title: '材质', type: 'string', width: 180, align: 'left' },
            {field: 'quantity', title: '数量', type: 'string', width: 90, align: 'left' },
            {field: 'orderStatus', title: '订单状态', type: 'string', width: 90, align: 'left' },
           { field: 'creater', title: '创建人', type: 'string', width: 120, align: 'left' },
           { field: 'createDate', title: '创建时间', type: 'datetime', sort: true, width: 150, align: 'left', sort: true },
           { field: 'modifier', title: '修改人', type: 'string', width: 120, align: 'left' },
        { field: 'modifyDate', title: '修改时间', type: 'datetime', sort: true, width: 150, align: 'left', sort: true },
    ]);
        const detail = ref({
            cnName: "#detailCnName",
            table: "#detailTable",
            columns: [],
            sortName: "",
            key: ""
        });
        return {
            table,
            extend,
            editFormFields,
            editFormOptions,
            searchFormFields,
            searchFormOptions,
            columns,
            detail,
        };
    },
});
</script>