huanghongfeng
2025-04-22 3d66dd8990bd68d5521611ee58af2b9ccc299090
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
<!--
*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/check/Dt_CheckResult.js";
import { ref, defineComponent } from "vue";
export default defineComponent({
    setup() {
        const table = ref({
            key: 'id',
            footer: "Foots",
            cnName: '测量数据',
            name: 'check/Dt_CheckResult',
            url: "/Dt_CheckResult/",
            sortName: "id"
        });
        const editFormFields = ref({
        });
        const editFormOptions = ref([
        ]);
        const searchFormFields = ref({
            cltm: ""
 
        });
        const searchFormOptions = ref([
            [
                { "title": "车轮条码", "field": "cltm", type: "text" },
            ]
        ]);
        const columns = ref([
            { field: 'id', title: '主键ID', type: 'int', width: 110, readonly: true, hidden: true, require: true, align: 'left' },
            { field: 'equipNo', title: '设备编号', type: 'string', width: 110, align: 'left', hidden: true },
            //{ field: 'wheels_SequenceNum', title: '序列号', type: 'string', width: 110, align: 'left', sort: true, link: true, },
            { field: 'cltm', title: '车轮条码', type: 'string', width: 150, align: 'left' },
            { field: 'checkType', title: '类型(轮/盘)', type: 'string', width: 80, align: 'left', bind: { key: "IscheckType", data: [{key:"1",value:'轮'},{key:"2",value:'盘'}] }  },
            { field: 'gkzjI1', title: '毂孔A1', type: 'string', width: 75, align: 'left' },
            { field: 'gkzjI2', title: '毂孔A2', type: 'string', width: 75, align: 'left' },
            { field: 'gkzjI3', title: '毂孔A3', type: 'string', width: 75, align: 'left' },
            { field: 'gkzjIAvg', title: '毂孔A平均值', type: 'string', width: 90, align: 'left' },
            { field: 'gkzjII1', title: '毂孔B1', type: 'string', width: 75, align: 'left' },
            { field: 'gkzjII2', title: '毂孔B2', type: 'string', width: 75, align: 'left' },
            { field: 'gkzjII3', title: '毂孔B3', type: 'string', width: 75, align: 'left' },
            { field: 'gkzjIIAvg', title: '毂孔B平均值', type: 'string', width: 90, align: 'left' },
            { field: 'gkzjIII1', title: '毂孔C1', type: 'string', width: 75, align: 'left' },
            { field: 'gkzjIII2', title: '毂孔C2', type: 'string', width: 75, align: 'left' },
            { field: 'gkzjIII3', title: '毂孔C3', type: 'string', width: 75, align: 'left' },
            { field: 'gkzjIIIAvg', title: '毂孔C平均值', type: 'string', width: 90, align: 'left' },
            { field: 'gkzjAVG', title: '毂孔平均值', type: 'string', width: 80, align: 'left' },
            { field: 'result', title: '是否合格', type: 'string', width: 70, align: 'left', bind: { key: "IsQuan", data: [] } },
            { field: 'inDate', title: '测量时间', type: 'dateTime', width: 100, align: 'left' },
            { field: 'isUploadMES', title: '是否已上传智粤', type: 'string', width: 110, align: 'left', bind: { key: "Cantain", data: [] } },
            //{ field: 'creater', title: '创建人', type: 'string', width: 75, 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>