1
huanghongfeng
4 天以前 b1c2dd1869a51b8f0e4acb9ddeb148f796db147f
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
97
98
99
100
101
102
103
104
105
<!--
*Author:jxx
 *Contact:283591387@qq.com
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/widesea_wms/invoices/Dt_InboundOrder.js此处编写
 -->
<template>
    <view-grid ref="grid" :columns="columns" :detail="detail" :editFormFields="editFormFields"
        :editFormOptions="editFormOptions" :searchFormFields="searchFormFields" :searchFormOptions="searchFormOptions"
        :table="table" :extend="extend">
    </view-grid>
</template>
<script>
import extend from "@/extension/widesea_wms/stock/Dt_ZdpStock.js";
import { ref, defineComponent } from "vue";
export default defineComponent({
    setup() {
        const table = ref({
            key: 'zdp_ID',
            footer: "Foots",
            cnName: '制动盘信息',
            name: 'stock/Dt_ZdpStock',
            url: "/Dt_ZdpStock/",
            sortName: "zdp_ID"
        });
        const editFormFields = ref({
            
        });
        const editFormOptions = ref([
            
        ]);
         const searchFormFields = ref({
            zdp_code:"",
            zdp_chexing:"",
            zdp_POS:"",
            zdp_neworold:"",
            createDate:"",
            zdp_Location:"",
            
        });
        const searchFormOptions = ref([
            [
                { "title": "制动盘条码", "field": "zdp_code", type: "text" },
                { "title": "车型", "field": "zdp_chexing", type: "select", dataKey: "traintype_names", data: [] },
                //{ "title": "库存类型", "field": "StockType", type: "select", dataKey: "GroupType", data: [] },
                { "title": "位置(侧/中)", "field": "zdp_POS", type: "text" },
            ],
            [
                { "title": "新/旧", "field": "zdp_neworold", type: "select", dataKey: "NewOld", data: [] },
                { "title": "创建时间", "field": "createDate", type: "datetime" },
                { "title": "库位号", "field": "zdp_Location", type: "text" },
            ],
        ]);
        const columns = ref([
            { field: 'zdp_ID', title: '主键ID', type: 'int', width: 110, readonly: true, hidden: true, require: true, align: 'left' },
            { field: 'zdp_code', title: '制动盘条码', type: 'string', width: 110, align: 'left', require: true },
            { field: 'zdp_ZPH', title: '制动盘号', type: 'string', width: 110, align: 'left', require: true },
            { field: 'zdp_CurrentStatue', title: '状态', type: 'int', width: 110, align: 'left', bind: { key: "CurrentStatue", data: [] } },
            { field: 'zdp_Location', title: '库位', type: 'string', width: 110, align: 'left', require: true },
            { field: 'zdp_chexing', title: '车型', type: 'string', width: 70, align: 'left' },
            { field: 'zdp_neworold', title: '新旧', type: 'string', width: 100, align: 'left' },
            { field: 'zdp_POS', title: '位置(侧/中)', type: 'string', width: 100, align: 'left' },
            { field: 'zdp_LSXH', title: '螺栓型号', type: 'string', width: 100, align: 'left' },
            { field: 'zdp_MAT', title: '材质(铸钢)', type: 'string', width: 100, align: 'left' },
            { field: 'zdp_SITE', title: '产地(进口/国产)', type: 'string', width: 100, align: 'left' },
            { field: 'zdp_GKA1', title: '毂孔直径A1', type: 'string', width: 100, align: 'left' },
            { field: 'zdp_GKA2', title: '毂孔直径A2', type: 'string', width: 100, align: 'left' },
            { field: 'zdp_GKA3', title: '毂孔直径A3', type: 'string', width: 100, align: 'left' },
            { field: 'zdp_GKA', title: '毂孔直径A', type: 'string', width: 100, align: 'left' },
            { field: 'zdp_GKB1', title: '毂孔直径B1', type: 'string', width: 100, align: 'left' },
            { field: 'zdp_GKB2', title: '毂孔直径B2', type: 'string', width: 100, align: 'left' },
            { field: 'zdp_GKB3', title: '毂孔直径B3', type: 'string', width: 100, align: 'left' },
            { field: 'zdp_GKB', title: '毂孔直径B', type: 'string', width: 100, align: 'left' },
            { field: 'zdp_GKC1', title: '毂孔直径C1', type: 'string', width: 100, align: 'left' },
            { field: 'zdp_GKC2', title: '毂孔直径C2', type: 'string', width: 100, align: 'left' },
            { field: 'zdp_GKC3', title: '毂孔直径C3', type: 'string', width: 100, align: 'left' },
            { field: 'zdp_GKC', title: '毂孔直径C', type: 'string', width: 100, align: 'left' },
            { field: 'zdp_GKJZ', title: '毂孔直径', type: 'string', width: 100, align: 'left' },
            { field: 'zdp_LSCSYMH', title: '螺栓侧剩余磨耗', type: 'string', width: 120, align: 'left' },
            { field: 'zdp_LMCSYMH', title: '螺母侧剩余磨耗', type: 'string', width: 120, align: 'left' },
            { field: 'zdp_rksj', title: '入库日期', type: 'string', width: 100, align: 'left' },
            { field: 'creater', title: '创建人', type: 'string',  width: 100, align: 'left' },
            { field: 'createDate', title: '创建时间', type: 'datetime', sort: true, width: 100, align: 'left' },
        ]);
 
        const detail = ref({
            cnName: "#detailCnName",
            table: "#detailTable",
            columns: [],
            sortName: "",
            key: ""
        });
        return {
            table,
            extend,
            editFormFields,
            editFormOptions,
            searchFormFields,
            searchFormOptions,
            columns,
            detail,
        };
    },
});
</script>