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/system/dt_stationinfo.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_stationinfo.js";
| import { ref, defineComponent } from "vue";
| export default defineComponent({
| setup() {
| const table = ref({
| key: 'id',
| footer: "Foots",
| cnName: '库位信息',
| name: 'system/dt_stationinfo',
| url: "/dt_stationinfo/",
| sortName: "id"
| });
| const editFormFields = ref({"stationCode":"","stationType":"","location_state":"","bindSN":"","billetID":"","tray_status":"","Number":"","heatNumber":"","remark":""});
| const editFormOptions = ref([[{"title":"缓存架编号","field":"stationCode","disabled": true}],
| [{"title":"图号","field":"stationType"}],
| [{"dataKey":"location_states","data":[],"title":"货位状态","field":"location_state","type":"select"}],
| [{"title":"车轮SN号","field":"bindSN"}],
| [{"title":"钢坯号","field":"billetID"}],
| [{"dataKey":"tray_types","data":[],"title":"托盘类型","field":"tray_type","type":"select"}],
| [{"title":"工作令号","field":"Number"}],
| [{"title":"炉号","field":"heatNumber","type":"text"}],
| [{"title":"备注","field":"remark"}]]);
| const searchFormFields = ref({"stationCode":"","stationType":"","area":"","enable":"","location_state":[],"bindSN":""});
| const searchFormOptions = ref([
| [{"title":"缓存架编号","field":"stationCode","type":"like"},{"title":"车轮SN号","field":"bindSN","type":"like"},{"dataKey":"materielinfos","data":[],"title":"图号","field":"stationType","type":"select"}],
| [{"dataKey":"area_name","data":[],"title":"区域","field":"area","type":"selectList"},{"dataKey":"location_states","data":[],"title":"货位状态","field":"location_state","type":"selectList"},{"dataKey":"status","data":[],"title":"是否启用","field":"enable","type":"select"}],
| [{"dataKey":"heatNumbers","data":[],"title":"炉号","field":"heatNumber","type":"selectList"},{"title":"钢坯号","field":"billetID","type":"like"},{"dataKey":"Numbers","data":[],"title":"工作令号","field":"Number","type":"select"}]
| ]);
| const columns = ref([{field:'id',title:'id',type:'guid',width:110,hidden:true,readonly:true,require:true,align:'left'},
| {field:'stationCode',title:'缓存架编号',type:'string',width:110,align:'left',sort:true},
| {field:'stationType',title:'图号',type:'string',bind:{ key:'materielinfos',data:[]},width:110,align:'left'},
| {field:'area',title:'区域',type:'string',bind:{ key:'area_name',data:[]},width:110,require:true,align:'left'},
| {field:'enable',title:'是否启用',type:'bool',bind:{ key:'status',data:[]},width:80,require:true,align:'left'},
| {field:'location_state',title:'货位状态',type:'string',bind:{ key:'location_states',data:[]},width:80,align:'left'},
| // {field:'lastUpdateTime',title:'最后状态改变时间',type:'datetime',width:150,align:'left',sort:true},
| {field:'quantity',title:'数量',type:'int',width:80,align:'left'},
| {field:'bindSN',title:'车轮SN号',type:'string',width:220,align:'left'},
| {field:'tray_status',title:'托盘状态',type:'string',bind:{ key:'tray_status',data:[]},width:80,align:'left'},
| {field:'tray_type',title:'托盘类型',type:'string',bind:{ key:'tray_types',data:[]},width:100,align:'left'},
| // {field:'line',title:'行',type:'int',width:80,align:'left'},
| // {field:'column',title:'列',type:'int',width:80,align:'left'},
| {field:'heatNumber',title:'炉号',type:'string',width:80,align:'left'},
| {field:'billetID',title:'钢坯号',type:'string',width:160,align:'left'},
| {field:'Number',title:'工作令号',type:'string',width:160,align:'left'},
| {field:'remark',title:'备注',type:'string',width:220,align:'left'}]);
| const detail = ref({
| cnName: "#detailCnName",
| table: "#detailTable",
| columns: [],
| sortName: "",
| key: ""
| });
| return {
| table,
| extend,
| editFormFields,
| editFormOptions,
| searchFormFields,
| searchFormOptions,
| columns,
| detail,
| };
| },
| });
| </script>
|
|