From 15b3879cd259108e7ebb755fe02c190f28f1e20c Mon Sep 17 00:00:00 2001
From: leiqunqing <zhengqifeng@hnkhzn.com>
Date: 星期五, 06 二月 2026 14:46:23 +0800
Subject: [PATCH] 完善项目
---
代码管理/WIDESEAWCS_Client/src/views/basicinfo/formula.vue | 332 ++++++++++++++++++++++++++++++++++++++++++++++++------
1 files changed, 293 insertions(+), 39 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 99f5833..fc822f3 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"
@@ -28,25 +28,30 @@
sortName: "createDate",
});
+ // 缂栬緫琛ㄥ崟瀛楁 - 鏂板pressFastenTorque锛堝帇瑁呬綅绱у浐鎵煩锛�
const editFormFields = ref({
id: "",
productCode: "",
productName: "",
- productLength: 0,
- productWidth: 0,
- productHeight: 0,
- screwDownsetDistance: 0,
- screwTorqueOutput: 0,
- dintAutoScrewOn: 0,
- xDirectionDistance1: 0,
- yDirectionHeight1: 0,
- xDirectionDistance2: 0,
- yDirectionHeight2: 0,
- xDirectionDistance3: 0,
- yDirectionHeight3: 0,
+ productLength: "",
+ productWidth: "",
+ productHeight: "",
+ pressNoTighten: "",
+ screwDownsetDistance: "",
+ screwTorqueOutput: "",
+ pressFastenTorque: "", // 銆愭柊澧炪�戝帇瑁呬綅绱у浐鎵煩
+ dintAutoScrewOn: "",
+ p0P1Width: "",
+ p0P2Width: "",
+ p0P3Width: "",
+ p1P3Height: "",
+ p2P3Height: "",
+ productImagePath: "",
});
+ // 缂栬緫琛ㄥ崟閰嶇疆-鏂板鍘嬭浣嶇揣鍥烘壄鐭╋紝甯冨眬閫傞厤鍘熸湁绱у噾鎬�
const editFormOptions = ref([
+ // 绗竴琛岋細鍩虹鏍囪瘑
[
{
title: "鎴愬搧缂栧彿",
@@ -63,16 +68,142 @@
require: true,
},
{
- title: "涓婚敭ID",
- field: "id",
+ title: "鎷х揣绋嬪簭鍙�",
+ field: "dintAutoScrewOn",
type: "input",
- width: 100,
- hidden: true,
- readonly: true,
+ inputType: "number",
+ width: 180,
+ placeholder: "璇疯緭鍏ユ暣鏁�",
+ },
+ {
+ title: "浜у搧闀垮害",
+ field: "productLength",
+ type: "input",
+ inputType: "number",
+ width: 120,
+ placeholder: "淇濈暀2浣嶅皬鏁�",
+ attrs: { step: 0.01, min: 0 },
+ },
+ ],
+ [
+ {
+ title: "浜у搧瀹藉害",
+ field: "productWidth",
+ type: "input",
+ inputType: "number",
+ width: 120,
+ placeholder: "淇濈暀2浣嶅皬鏁�",
+ attrs: { step: 0.01, min: 0 },
+ },
+ {
+ title: "浜у搧楂樺害",
+ field: "productHeight",
+ type: "input",
+ inputType: "number",
+ width: 120,
+ placeholder: "淇濈暀2浣嶅皬鏁�",
+ attrs: { step: 0.01, min: 0 },
+ },
+ {
+ title: "鍘嬭浣嶄笉鎷х揣",
+ field: "pressNoTighten",
+ type: "select",
+ width: 120,
+ align: "center",
+ data: [
+ { key: "0", value: "鍚�" },
+ { key: "1", value: "鏄�" },
+ ],
+ },
+ {
+ title: "淇濆帇鍘嬪姏",
+ field: "screwDownsetDistance",
+ type: "input",
+ inputType: "number",
+ width: 150,
+ placeholder: "淇濈暀2浣嶅皬鏁�",
+ attrs: { step: 0.01, min: 0 },
+ },
+ ],
+ [
+ {
+ title: "涓績楂樺害",
+ field: "screwTorqueOutput",
+ type: "input",
+ inputType: "number",
+ width: 120,
+ placeholder: "淇濈暀2浣嶅皬鏁�",
+ attrs: { step: 0.01, min: 0 },
+ },
+ {
+ title: "绱у浐鎵煩",
+ field: "pressFastenTorque",
+ type: "input",
+ inputType: "number",
+ width: 150,
+ placeholder: "淇濈暀2浣嶅皬鏁帮紝榛樿0.00",
+ attrs: { step: 0.01, min: 0 },
+ },
+ {
+ title: "P0P1瀹藉害",
+ field: "p0P1Width",
+ type: "input",
+ inputType: "number",
+ width: 120,
+ placeholder: "淇濈暀2浣嶅皬鏁�",
+ attrs: { step: 0.01, min: 0 },
+ },
+ {
+ title: "P0P2瀹藉害",
+ field: "p0P2Width",
+ type: "input",
+ inputType: "number",
+ width: 120,
+ placeholder: "淇濈暀2浣嶅皬鏁�",
+ attrs: { step: 0.01, min: 0 },
+ },
+ ],
+ // 绗洓琛岋細P绯诲垪楂樺害 + 浜у搧鍥剧墖璺緞
+ [
+ {
+ title: "P0P3瀹藉害",
+ field: "p0P3Width",
+ type: "input",
+ inputType: "number",
+ width: 120,
+ placeholder: "淇濈暀2浣嶅皬鏁�",
+ attrs: { step: 0.01, min: 0 },
+ },
+ {
+ title: "P1P3楂樺害",
+ field: "p1P3Height",
+ type: "input",
+ inputType: "number",
+ width: 150,
+ placeholder: "淇濈暀2浣嶅皬鏁�",
+ attrs: { step: 0.01, min: 0 },
+ },
+ {
+ title: "P2P3楂樺害",
+ field: "p2P3Height",
+ type: "input",
+ inputType: "number",
+ width: 150,
+ placeholder: "淇濈暀2浣嶅皬鏁�",
+ attrs: { step: 0.01, min: 0 },
+ },
+ {
+ title: "浜у搧鍥剧墖璺緞",
+ field: "productImagePath",
+ type: "textarea",
+ width: 400,
+ rows: 2,
+ placeholder: "璇疯緭鍏ュ浘鐗囧畬鏁磋矾寰勶紝鏀寔500瀛楃浠ュ唴",
},
],
]);
+ // 鎼滅储琛ㄥ崟瀛楁 - 鏃犻渶淇敼
const searchFormFields = ref({
productCode: "",
productName: "",
@@ -80,89 +211,202 @@
createDate: "",
});
+ // 鎼滅储琛ㄥ崟閰嶇疆 - 鏃犻渶淇敼
const searchFormOptions = ref([
[
- { title: "鎴愬搧缂栧彿", field: "productCode", type: "like" },
- { title: "鎴愬搧鍚嶇О", field: "productName", type: "like" },
+ { title: "鎴愬搧缂栧彿", field: "productCode", type: "like", width: 200 },
+ { title: "鎴愬搧鍚嶇О", field: "productName", type: "like", width: 200 },
],
[
- { title: "鍒涘缓浜�", field: "creater", type: "like" },
- { title: "鍒涘缓鏃堕棿", field: "createDate", type: "datetime" },
+ { title: "鍒涘缓浜�", field: "creater", type: "like", width: 200 },
+ { title: "鍒涘缓鏃堕棿", field: "createDate", type: "datetime", width: 380 },
],
]);
+ // 琛ㄦ牸鍒楅厤缃� - 鏂板鍘嬭浣嶇揣鍥烘壄鐭╁垪
const columns = ref([
{
field: "id",
title: "搴忓彿",
type: "int",
- width: 90,
+ width: 80,
hidden: true,
- readonly: true,
- require: true,
- align: "left",
+ align: "center",
},
{
field: "productCode",
title: "鎴愬搧缂栧彿",
type: "string",
link: true,
- width: 200,
+ width: 150,
align: "left",
},
{
field: "productName",
title: "鎴愬搧鍚嶇О",
type: "string",
- width: 200,
+ width: 150,
align: "left",
},
+ {
+ field: "productLength",
+ title: "浜у搧闀垮害",
+ type: "decimal",
+ width: 90,
+ align: "center",
+ },
+ {
+ field: "productWidth",
+ title: "浜у搧瀹藉害",
+ type: "decimal",
+ width: 90,
+ align: "center",
+ },
+ {
+ field: "productHeight",
+ title: "浜у搧楂樺害",
+ type: "decimal",
+ width: 90,
+ align: "center",
+ },
+ {
+ field: "pressNoTighten",
+ title: "鍘嬭浣嶄笉鎷х揣",
+ type: "select",
+ width: 100,
+ align: "center",
+ bind: {
+ key: "value",
+ data: [
+ { key: "0", value: "鍚�" },
+ { key: "1", value: "鏄�" },
+ ],
+ },
+ },
+ {
+ field: "screwDownsetDistance",
+ title: "淇濆帇鍘嬪姏",
+ type: "decimal",
+ width: 110,
+ align: "center",
+ },
+ {
+ field: "screwTorqueOutput",
+ title: "涓績楂樺害",
+ type: "decimal",
+ width: 90,
+ align: "center",
+ },
+ {
+ field: "pressFastenTorque", // 銆愭柊澧炪�戣〃鏍煎垪
+ title: "鍘嬭浣嶇揣鍥烘壄鐭�",
+ type: "decimal",
+ width: 120,
+ align: "center",
+ },
+ {
+ field: "dintAutoScrewOn",
+ title: "鎷х揣绋嬪簭鍙�",
+ type: "int",
+ width: 100,
+ align: "center",
+ },
+ // P绯诲垪瀹藉害
+ {
+ field: "p0P1Width",
+ title: "P0P1瀹藉害",
+ type: "decimal",
+ width: 90,
+ align: "center",
+ },
+ {
+ field: "p0P2Width",
+ title: "P0P2瀹藉害",
+ type: "decimal",
+ width: 90,
+ align: "center",
+ },
+ {
+ field: "p0P3Width",
+ title: "P0P3瀹藉害",
+ type: "decimal",
+ width: 90,
+ align: "center",
+ },
+ // P绯诲垪楂樺害
+ {
+ field: "p1P3Height",
+ title: "P1P3楂樺害",
+ type: "decimal",
+ width: 90,
+ align: "center",
+ },
+ {
+ field: "p2P3Height",
+ title: "P2P3楂樺害",
+ type: "decimal",
+ width: 90,
+ align: "center",
+ },
+ {
+ field: "productImagePath",
+ title: "鍥剧墖璺緞",
+ type: "string",
+ width: 200,
+ align: "left",
+ overflow: "ellipsis",
+ },
+ // 鍏叡瀛楁
{
field: "creater",
title: "鍒涘缓浜�",
type: "string",
- width: 90,
- align: "left",
+ width: 80,
+ align: "center",
},
{
field: "createDate",
title: "鍒涘缓鏃堕棿",
type: "datetime",
- width: 150,
- align: "left",
+ width: 160,
+ align: "center",
},
{
field: "modifier",
title: "淇敼浜�",
type: "string",
- width: 100,
- align: "left",
+ width: 80,
+ align: "center",
},
{
field: "modifyDate",
title: "淇敼鏃堕棿",
type: "datetime",
width: 160,
- align: "left",
+ align: "center",
},
]);
+
+ // 閰嶆柟鏄庣粏閰嶇疆 - 鏃犻渶淇敼
const detail = ref({
- cnName: "闆朵欢璇︾粏淇℃伅",
- table: "componentDetail",
+ cnName: "閰嶆柟淇℃伅璇︽儏",
+ table: "FormulaDetail",
columns: [
{
field: "formulaId",
- title: "ID",
+ title: "閰嶆柟ID",
type: "int",
width: 90,
hidden: true,
+ readonly: true,
require: true,
- align: "left",
+ align: "center",
},
{
field: "componentCode",
title: "闆朵欢缂栧彿",
type: "string",
+ edit: { type: "" },
width: 120,
require: true,
align: "left",
@@ -171,14 +415,24 @@
field: "componentName",
title: "闆朵欢鍚嶇О",
type: "string",
+ edit: { type: "" },
width: 150,
- require: true,
+ align: "left",
+ },
+ {
+ field: "supplierCode",
+ title: "渚涙柟浠g爜",
+ type: "string",
+ edit: { type: "" },
+ width: 150,
align: "left",
},
{
title: "鏄惁鎵爜",
field: "isScanned",
type: "select",
+ width: 100,
+ align: "center",
bind: {
key: "value",
data: [
--
Gitblit v1.9.3