分支自 SuZhouGuanHong/TaiYuanTaiZhong

dengjunjie
2024-06-27 77ee85a249a26fcf47c28aebc9cd89b187f9d4dc
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
<!--
*Author:jxx
 *Contact:283591387@qq.com
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/widesea_wms/system/dt_inventory.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/system/dt_inventory.js";
    import { ref, defineComponent } from "vue";
    export default defineComponent({
        setup() {
            const table = ref({
                key: 'ID',
                footer: "Foots",
                cnName: '库存查询',
                name: 'system/dt_inventory',
                url: "/dt_inventory/",
                sortName: "ID"
            });
            const editFormFields = ref({"stationCode":"","SN":""});
            const editFormOptions = ref([
                [{"title":"缓存架编号","required":true,"field":"stationCode"}],//,"disabled": true
                [{"title":"车轮SN号","required":true,"field":"SN"}],
            ]);
            const searchFormFields = ref({"SN":"","Name":"","HearthNumber":"","HeatNumber":"","BilletNumber":"","remark":""});
            const searchFormOptions = ref([
                [{"title":"车轮SN号","field":"SN","type":"like"},{"title":"货位编号","field":"stationCode","type":"like"},{"title":"产品名称","field":"Name","type":"like"}],
                [{"title":"产品图号","field":"FigureNumber","type":"like"},{"title":"炉代号","field":"HeatNumber","type":"like"},{"title":"工作令号","field":"BilletNumber","type":"like"}]]);
            const columns = ref([
                       {field:'stationCode',title:'货位编号',type:'string',width:120,align:'left',sort:true},
                       {field:'SN',title:'车轮SN号',type:'string',width:120,align:'left',sort:true},
                       {field:'Name',title:'产品名称',type:'string',width:120,align:'left',sort:true},
                       {field:'FigureNumber',title:'产品图号',type:'string',width:120,align:'left',sort:true},
                       {field:'jobID',title:'工作令号',type:'string',width:160,align:'left',sort:true},
                    //    {field:'area',title:'区域代码',type:'string',width:80,align:'left'},
                       {field:'HeatNumber',title:'炉代号',type:'string',width:100,align:'left',sort:true},
                       {field:'BilletNumber',title:'钢坯号',type:'int',width:80,align:'left'},
                       {field:'OnlineTime',title:'入库时间',type:'datetime',width:160,align:'left',sort:true},
                       {field:'Operator',title:'操作人员',type:'string',width:110,align:'left'},
                       {field:'remark',title:'描述',type:'string',width:220,align:'left'},
                       {field:'ID',title:'ID',type:'int',width:110,hidden:true,readonly:true,require:true,align:'left'}]);
            const detail = ref({
                cnName: "#detailCnName",
                table: "#detailTable",
                columns: [],
                sortName: "",
                key: ""
            });
            return {
                table,
                extend,
                editFormFields,
                editFormOptions,
                searchFormFields,
                searchFormOptions,
                columns,
                detail,
            };
        },
    });
</script>