From ba8aa925e7901381ceb394adb53eca8723d1c4c5 Mon Sep 17 00:00:00 2001
From: leiqunqing <zhengqifeng@hnkhzn.com>
Date: 星期一, 19 一月 2026 11:05:49 +0800
Subject: [PATCH] 完善工位界面
---
代码管理/WIDESEAWCS_Client/src/views/basicinfo/formula.vue | 248 +++++++++++--------------------------------------
1 files changed, 55 insertions(+), 193 deletions(-)
diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/WIDESEAWCS_Client/src/views/basicinfo/formula.vue" "b/\344\273\243\347\240\201\347\256\241\347\220\206/WIDESEAWCS_Client/src/views/basicinfo/formula.vue"
index 0967c15..99f5833 100644
--- "a/\344\273\243\347\240\201\347\256\241\347\220\206/WIDESEAWCS_Client/src/views/basicinfo/formula.vue"
+++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/WIDESEAWCS_Client/src/views/basicinfo/formula.vue"
@@ -24,13 +24,13 @@
footer: "Foots",
cnName: "閰嶆柟淇℃伅",
name: "formula",
- url: "/formula/",
- sortName: "createDate",
+ url: "/formula/",
+ sortName: "createDate",
});
const editFormFields = ref({
id: "",
- productCode: "",
+ productCode: "",
productName: "",
productLength: 0,
productWidth: 0,
@@ -44,8 +44,8 @@
yDirectionHeight2: 0,
xDirectionDistance3: 0,
yDirectionHeight3: 0,
-});
-
+ });
+
const editFormOptions = ref([
[
{
@@ -53,106 +53,14 @@
field: "productCode",
type: "input",
width: 200,
- require: true
+ require: true,
},
{
title: "鎴愬搧鍚嶇О",
field: "productName",
type: "input",
width: 200,
- require: true
- },
- {
- title: "鍘嬭浣嶄骇鍝侀暱搴�",
- field: "productLength",
- type: "number",
- width: 200,
- require: false
- }
- ],
- [
- {
- title: "鍘嬭浣嶄骇鍝佸搴�",
- field: "productWidth",
- type: "number",
- width: 200,
- require: false
- },
- {
- title: "鍘嬭浣嶄骇鍝侀珮搴�",
- field: "productHeight",
- type: "number",
- width: 200,
- require: false
- },
- {
- title: "鍘嬭浣嶆嫥绱т笅闄嶉珮搴�",
- field: "screwDownsetDistance",
- type: "number",
- width: 200,
- require: false
- }
- ],
- [
- {
- title: "鍘嬭浣嶆嫥绱ф壄鍔�",
- field: "screwTorqueOutput",
- type: "number",
- width: 200,
- require: false
- },
- {
- title: "鍘嬭浣嶈嚜鍔ㄦ嫥绱ф墦寮�",
- field: "dintAutoScrewOn",
- type: "number",
- width: 200,
- require: false
- },
- {
- title: "妫�娴嬩綅X鍋忕Щ璺濈1",
- field: "xDirectionDistance1",
- type: "number",
- width: 200,
- require: false
- }
- ],
- [
- {
- title: "妫�娴嬩綅Z楂樺害1",
- field: "yDirectionHeight1",
- type: "number",
- width: 200,
- require: false
- },
- {
- title: "妫�娴嬩綅X鍋忕Щ璺濈2",
- field: "xDirectionDistance2",
- type: "number",
- width: 200,
- require: false
- },
- {
- title: "妫�娴嬩綅Z楂樺害2",
- field: "yDirectionHeight2",
- type: "number",
- width: 200,
- require: false
- }
- ],
- [
- {
- title: "妫�娴嬩綅X鍋忕Щ璺濈3",
- field: "xDirectionDistance3",
- type: "number",
- width: 200,
- require: false
- },
- {
- title: "妫�娴嬩綅Z楂樺害3",
- field: "yDirectionHeight3",
- type: "number",
- width: 200,
- require: false
+ require: true,
},
{
title: "涓婚敭ID",
@@ -160,9 +68,9 @@
type: "input",
width: 100,
hidden: true,
- readonly: true
- }
- ]
+ readonly: true,
+ },
+ ],
]);
const searchFormFields = ref({
@@ -198,6 +106,7 @@
field: "productCode",
title: "鎴愬搧缂栧彿",
type: "string",
+ link: true,
width: 200,
align: "left",
},
@@ -205,90 +114,6 @@
field: "productName",
title: "鎴愬搧鍚嶇О",
type: "string",
- width: 200,
- align: "left",
- },
- {
- field: "productLength",
- title: "鍘嬭浣嶄骇鍝侀暱搴�",
- type: "float",
- width: 200,
- align: "left",
- },
- {
- field: "productWidth",
- title: "鍘嬭浣嶄骇鍝佸搴�",
- type: "float",
- width: 200,
- align: "left",
- },
- {
- field: "productHeight",
- title: "鍘嬭浣嶄骇鍝侀珮搴�",
- type: "float",
- width: 200,
- align: "left",
- },
- {
- field: "screwDownsetDistance",
- title: "鍘嬭浣嶆嫥绱т笅闄嶉珮搴�",
- type: "float",
- width: 200,
- align: "left",
- },
- {
- field: "screwTorqueOutput",
- title: "鍘嬭浣嶆嫥绱ф壄鍔�",
- type: "float",
- width: 200,
- align: "left",
- },
- {
- field: "dintAutoScrewOn",
- title: "鍘嬭浣嶈嚜鍔ㄦ嫥绱ф墦寮�",
- type: "int",
- width: 200,
- align: "left",
- },
- {
- field: "xDirectionDistance1",
- title: "妫�娴嬩綅X鍋忕Щ璺濈1",
- type: "float",
- width: 200,
- align: "left",
- },
- {
- field: "yDirectionHeight1",
- title: "妫�娴嬩綅Z楂樺害1",
- type: "float",
- width: 200,
- align: "left",
- },
- {
- field: "xDirectionDistance2",
- title: "妫�娴嬩綅X鍋忕Щ璺濈2",
- type: "float",
- width: 200,
- align: "left",
- },
- {
- field: "yDirectionHeight2",
- title: "妫�娴嬩綅Z楂樺害2",
- type: "float",
- width: 200,
- align: "left",
- },
- {
- field: "xDirectionDistance3",
- title: "妫�娴嬩綅X鍋忕Щ璺濈3",
- type: "float",
- width: 200,
- align: "left",
- },
- {
- field: "yDirectionHeight3",
- title: "妫�娴嬩綅Z楂樺害3",
- type: "float",
width: 200,
align: "left",
},
@@ -321,13 +146,50 @@
align: "left",
},
]);
-
const detail = ref({
- cnName: "",
- table: "",
- columns: [],
- sortName: "",
- key: "",
+ cnName: "闆朵欢璇︾粏淇℃伅",
+ table: "componentDetail",
+ columns: [
+ {
+ field: "formulaId",
+ title: "ID",
+ type: "int",
+ width: 90,
+ hidden: true,
+ require: true,
+ align: "left",
+ },
+ {
+ field: "componentCode",
+ title: "闆朵欢缂栧彿",
+ type: "string",
+ width: 120,
+ require: true,
+ align: "left",
+ },
+ {
+ field: "componentName",
+ title: "闆朵欢鍚嶇О",
+ type: "string",
+ width: 150,
+ require: true,
+ align: "left",
+ },
+ {
+ title: "鏄惁鎵爜",
+ field: "isScanned",
+ type: "select",
+ bind: {
+ key: "value",
+ data: [
+ { key: "0", value: "鍚�" },
+ { key: "1", value: "鏄�" },
+ ],
+ },
+ },
+ ],
+ sortName: "createDate",
+ key: "id",
});
return {
@@ -342,4 +204,4 @@
};
},
});
-</script>
\ No newline at end of file
+</script>
--
Gitblit v1.9.3