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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
| <!--
| *Author:jxx
| *Contact:283591387@qq.com
| *代码由框架生成,任何更改都可能导致被代码生成器覆盖
| *业务请在@/extension/system/system/Base_ware_location.js此处编写
| -->
| <template>
| <view-grid ref="grid"
| :columns="columns"
| :detail="detail"
| :editFormFields="editFormFields"
| :editFormOptions="editFormOptions"
| :searchFormFields="searchFormFields"
| :searchFormOptions="searchFormOptions"
| :table="table"
| :extend="extend">
| </view-grid>
| <!-- <div>
| <Button type="info" @click="model = !model">弹出框</Button>
| <VolBox
| :on-model-close="onModelClose"
| :lazy="true"
| :model.sync="model"
| title="标题"
| :height="400"
| :width="700"
| :padding="15"
| >
| <div>弹出框内容</div> -->
| <!-- <div slot="footer"></div> 这里不写,默认有一个关闭按钮 -->
| <!-- <div slot="footer">
| <Button type="default" @click="$Message.error('点击确认')">确认</Button>
| <Button type="default" @click="model = false">点击关闭弹出框</Button>
| </div>
| </VolBox>
| </div> -->
| </template>
|
| <script>
| import extend from "@/extension/stockManagement/Base_ware_location.js";
| import { ref, defineComponent } from "vue";
| export default defineComponent({
| setup () {
| const table = ref({
| key: "id",
| footer: "Foots",
| cnName: "货位查询",
| name: "/Base_ware_location",
| url: "/Base_ware_location/",
| sortName: "id",
| });
| const editFormFields = ref({
| upper_code: "",
| down_code: "",
| area: "",
| equipment_type: "",
| name: "",
| logic_layer: "",
| logic_col: "",
| logic_row: "",
| location_state: "",
| status: "",
| });
| const editFormOptions = ref([
| [
| { title: "上料货位编号", required: true, disabled: true, field: "upper_code", type: "text", },
| { title: "下料货位编号", required: true, disabled: true, field: "down_code", type: "text", },
| { title: "货位区域", required: true, field: "area", type: "select", dataKey: "area", disabled: true, },
| ],
| [
| { title: "货位类型", required: true, field: "equipment_type", disabled: true, type: "select", dataKey: "equipment_type", },
| { title: "货位名称", field: "name", disabled: true, type: "text" },
| { title: "货位IP", required: true, disabled: true, field: "logic_layer", type: "text" },
| ],
| [
| { title: "货位状态", required: true, field: "location_state",disabled: true, type: "select", dataKey: "location_state", },
| { title: "是否启用", required: true, field: "status", type: "select", dataKey: "status", },
| { title: "质检状态", required: true, field: "logic_col", type: "select", dataKey: "logic_col", }
| ],
| [
| { title: "是否存在任务", required: true,field: "task", type: "select", dataKey: "task", },
| { title: "物料", required: true,field: "logic_row", type: "select", dataKey: "logic_row"},
| { title: "档位", required: true,field: "geartype", type: "select", dataKey: "geartype"},
| ],
| [
|
| { title: "绑定", required: true,field: "light_color", type: "select", dataKey: "light_color"},
| ]
| ]);
| const searchFormFields = ref({
| down_code: "",
| upper_code: "",
| location_state: ""
| });
| const searchFormOptions = ref([
| [
| { title: "上料货位编号", field: "upper_code", type: "like" },
| { title: "下料货位编号", field: "down_code", type: "like" },
| { title: "货位状态", field: "location_state", type: "select", dataKey: "location_state" },
| ],[
| { title: "质检状态", required: true, field: "logic_col", type: "select", dataKey: "logic_col", },
| { title: "是否存在任务", required: true,field: "task", type: "select", dataKey: "task", },
| { title: "物料", required: true,field: "logic_row", type: "select", dataKey: "logic_row"},
| ],
| [{title: "档位", required: true,field: "geartype", type: "select", dataKey: "geartype"}]
| ]);
| const columns = ref([
| { field: "id", title: "货位ID", type: "guid", width: 90, require: true, align: "left", sortable: true, },
| { field: "upper_code", title: "货位编号", type: "string", width: 120, require: true, align: "left", },
| { field: "down_code", title: "下料货位编号", type: "string", width: 120, require: true, hidden: true, align: "left", },
| { field: "area", title: "货位区域", hidden: true, type: "string", width: 120, align: "left", bind: { key: "area", data: [] }, },
| { field: "equipment_type", title: "货位类型", hidden: true, type: "string", width: 120, align: "left", bind: { key: "equipment_type", data: [] }, },
| { field: "name", title: "货位名称", type: "string", width: 180, align: "left", },
| { field: "logic_layer", title: "货位IP", type: "int", width: 170, align: "left", sort: true },
| { field: "geartype", title: "当前档位", type: "int", width: 90, require: true, align: "left" , bind: { key: "geartype", data: [] }, },
| { field: "logic_col", title: "质检状态", type: "int", width: 90, require: true, align: "left" , bind: { key: "logic_col", data: [{ key: "1", value: "良品" }, { key: "0", value: "不良品" }] }, },
| { field: "task", title: "任务检测", type: "int", width: 90, require: true, align: "left", bind: { key: "task", data: [{ key: "1", value: "存在" }, { key: "2", value: "不存在" }] }, },
| { field: "status", title: "是否启用", type: "int", width: 90, require: true, align: "left", bind: { key: "status", data: [] }, },
| { field: "light_color", title: "绑定", type: "string", width: 90, align: "left", bind: { key: "light_color", data: [] }},
| { field: "name", title: "货位名称", type: "string", width: 180, align: "left", },
| { field: "location_state", title: "托盘光电", type: "string", width: 90, require: true, align: "left", bind: { key: "location_state", data: [] }, },
| { field: "gd1", title: "卷料光电1", type: "int", width: 90, require: true, align: "left", bind: { key: "loction_wd", data: [{ key: "-1", value: "未连接" }, { key: "1", value: "有料" }, { key: "0", value: "无料" }, { key: "99", value: "暂无" }] }, },
| { field: "gd2", title: "卷料光电2", type: "int", width: 90, require: true, align: "left", bind: { key: "loction_yc", data: [{ key: "-1", value: "未连接" }, { key: "1", value: "有料" }, { key: "0", value: "无料" }, { key: "99", value: "暂无" }] }, },
| { field: "gd3", title: "卷料光电3", type: "int", width: 90, require: true, align: "left", bind: { key: "loction_hj", data: [{ key: "-1", value: "未连接" }, { key: "1", value: "有料" }, { key: "0", value: "无料" }, { key: "99", value: "暂无" }] }, },
| { field: "gd4", title: "卷料光电4", type: "int", width: 90, require: true, align: "left", bind: { key: "loction_hj", data: [{ key: "-1", value: "未连接" }, { key: "1", value: "有料" }, { key: "0", value: "无料" }, { key: "99", value: "暂无" }] }, },
| { field: "created_user", title: "创建者", type: "string", width: 90, require: true, align: "left", },
| { field: "created_time", title: "创建时间", type: "datetime", width: 165, require: true, align: "left", sortable: true, sort: true },
| { field: "update_time", title: "执行时间", type: "datetime", width: 165, require: true, align: "left", sortable: true, sort: true },
| ]);
| const detail = ref({
| cnName: "#detailCnName",
| columns: [],
| sortName: "",
| key: "",
| });
| return {
| table,
| extend,
| editFormFields,
| editFormOptions,
| searchFormFields,
| searchFormOptions,
| columns,
| detail,
| };
| },
| });
| </script>
|
|