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/processInfo.vue | 572 ++++++++++++++++++++++++++++++++++++++------------------
1 files changed, 385 insertions(+), 187 deletions(-)
diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/WIDESEAWCS_Client/src/views/basicinfo/processInfo.vue" "b/\344\273\243\347\240\201\347\256\241\347\220\206/WIDESEAWCS_Client/src/views/basicinfo/processInfo.vue"
index 78e4f6c..5a9b62d 100644
--- "a/\344\273\243\347\240\201\347\256\241\347\220\206/WIDESEAWCS_Client/src/views/basicinfo/processInfo.vue"
+++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/WIDESEAWCS_Client/src/views/basicinfo/processInfo.vue"
@@ -19,328 +19,526 @@
export default defineComponent({
setup() {
+ // 琛ㄦ牸鍩虹閰嶇疆
const table = ref({
key: "id",
footer: "Foots",
cnName: "鍔犲伐淇℃伅",
name: "processInfo",
- url: "/processInfo/",
- sortName: "createDate",
+ url: "/processInfo/",
+ sortName: "createDate",
+ sortOrder: "desc", // 鏂板锛氬垱寤烘椂闂撮粯璁ゅ�掑簭锛岀鍚堝父瑙勪娇鐢�
});
+ // 缂栬緫琛ㄥ崟瀛楁 - 瀹屽叏鍖归厤鍚庣Dt_ProcessInfo瀹炰綋
+ // 鏂板锛歱ressPressure锛堝帇瑁呬綅涓嬪帇鍘嬪姏锛夛紝琛ュ叏鎵�鏈夊悗绔瓧娈�
const editFormFields = ref({
id: "",
- palletCode: "",
+ palletCode: "",
productCode: "",
productName: "",
- componentQty: "",
- torsioValue: "",
- torsioValueStandard: "",
- stiffnessValue: "",
- stiffnessValueStandard: "",
- testResult: "",
- pressHeight: "",
- screwTorque: "",
- screwAngle: "",
- height1: "",
- height2: "",
- height3: "",
+ productSn: "", // 娴佹按鍙�
+ pressTightenNg: "", // 鍘嬭鎷х揣_鎷х揣NG
+ pressTightenOk: "", // 鍘嬭鎷х揣_鎷х揣OK
+ pressTightenUnfinished: "", // 鍘嬭鎷х揣_鏈鍔犲伐鏈畬鎴�
+ checkUnfinished: "", // 妫�娴媉鏈妫�娴嬫湭瀹屾垚
+ //componentQty: "", // 闆朵欢鏁伴噺
+ // torsioValue: "", // 鎵姏鍊�
+ // torsioValueStandard: "", // 鎵姏鍊兼爣鍑�
+ // stiffnessValue: "", // 鍒氬害鍊�
+ // stiffnessValueStandard: "", // 鍒氬害鍊兼爣鍑�
+ // testResult: "", // 娴嬭瘯缁撴灉
+ pressHeight: "", // 鍘嬭浣嶄笅鍘嬮珮搴�
+ screwTorque: "", // 鍘嬭浣嶆嫥绱ф壄鍔�
+ screwAngle: "", // 鍘嬭浣嶆嫥绱ц搴�
+ pressPressure: "", // 銆愭柊澧炪�戝帇瑁呬綅涓嬪帇鍘嬪姏锛堝尮閰嶅悗绔疄浣擄級
+ height1: "", // 鎷х揣浣嶆娴嬮珮搴�1
+ height2: "", // 鎷х揣浣嶆娴嬮珮搴�2
+ height3: "", // 鎷х揣浣嶆娴嬮珮搴�3
});
-
+
+ // 缂栬緫琛ㄥ崟閰嶇疆-銆愬彇娑堝垎绫伙紝鍧囧寑鎺掑竷銆戯紝淇濈暀鎵�鏈夊師鏈夋牎楠�/榛樿鍊�/灞炴��
const editFormOptions = ref([
+ // 绗竴琛岋細5涓瓧娈碉紙鍩虹鏍囪瘑+1涓姸鎬侊級锛屽搴﹀崗璋�
[
{
title: "宸ヨ鏉跨紪鍙�",
field: "palletCode",
type: "input",
- width: 200,
- require: true
+ width: 160,
+ require: true,
+ placeholder: "璇疯緭鍏ュ伐瑁呮澘缂栧彿",
},
{
title: "鎴愬搧缂栧彿",
field: "productCode",
type: "input",
- width: 200,
- require: true
+ width: 160,
+ require: true,
+ placeholder: "璇疯緭鍏ユ垚鍝佺紪鍙�",
},
{
title: "鎴愬搧鍚嶇О",
field: "productName",
type: "input",
- width: 200,
- require: true
- }
+ width: 160,
+ require: true,
+ placeholder: "璇疯緭鍏ユ垚鍝佸悕绉�",
+ },
+ {
+ title: "娴佹按鍙�",
+ field: "productSn",
+ type: "input",
+ width: 180,
+ require: false,
+ placeholder: "璇疯緭鍏ヤ骇鍝佹祦姘村彿",
+ },
],
[
{
- title: "闆朵欢鏁伴噺",
- field: "componentQty",
- type: "input",
- width: 200,
- require: true
+ title: "鎷х揣NG",
+ field: "pressTightenNg",
+ type: "select",
+ width: 150,
+ align: "center",
+ defaultValue: "0",
+ data: [
+ { key: "0", value: "鍚�" },
+ { key: "1", value: "鏄�" },
+ ],
},
{
- title: "鎵姏鍊�",
- field: "torsioValue",
- type: "input",
- width: 200,
- require: false
+ title: "鎷х揣OK",
+ field: "pressTightenOk",
+ type: "select",
+ width: 150,
+ align: "center",
+ defaultValue: "0",
+ data: [
+ { key: "0", value: "鍚�" },
+ { key: "1", value: "鏄�" },
+ ],
},
{
- title: "鎵姏鍊兼爣鍑�",
- field: "torsioValueStandard",
- type: "input",
- width: 200,
- require: false
- }
- ],
- [
- {
- title: "鍒氬害鍊�",
- field: "stiffnessValue",
- type: "input",
- width: 200,
- require: false
+ title: "鎷х揣鏈畬鎴�",
+ field: "pressTightenUnfinished",
+ type: "select",
+ width: 170,
+ align: "center",
+ defaultValue: "0",
+ data: [
+ { key: "0", value: "鍚�" },
+ { key: "1", value: "鏄�" },
+ ],
},
{
- title: "鍒氬害鍊兼爣鍑�",
- field: "stiffnessValueStandard",
- type: "input",
- width: 200,
- require: false
+ title: "妫�娴嬫湭瀹屾垚",
+ field: "checkUnfinished",
+ type: "select",
+ width: 150,
+ align: "center",
+ defaultValue: "0",
+ data: [
+ { key: "0", value: "鍚�" },
+ { key: "1", value: "鏄�" },
+ ],
},
- {
- title: "娴嬭瘯缁撴灉",
- field: "testResult",
- type: "input",
- width: 200,
- require: false
- }
- ],
- [
- {
- title: "鍘嬭浣嶄笅鍘嬫娴嬮珮搴�",
- field: "pressHeight",
- type: "input",
- width: 200,
- require: false
- },
- {
- title: "鍘嬭浣嶆嫥绱ф娴嬫壄鍔�",
- field: "screwTorque",
- type: "input",
- width: 200,
- require: false
- },
- {
- title: "鍘嬭浣嶆嫥绱ф娴嬭搴�",
- field: "screwAngle",
- type: "input",
- width: 200,
- require: false
- }
- ],
- [
- {
- title: "鎷х揣浣嶆娴嬮珮搴�1",
- field: "height1",
- type: "input",
- width: 200,
- require: false
- },
- {
- title: "鎷х揣浣嶆娴嬮珮搴�2",
- field: "height2",
- type: "input",
- width: 200,
- require: false
- },
- {
- title: "鎷х揣浣嶆娴嬮珮搴�3",
- field: "height3",
- type: "input",
- width: 200,
- require: false
- }
- ],
- [
+ // {
+ // title: "闆朵欢鏁伴噺",
+ // field: "componentQty",
+ // type: "input",
+ // inputType: "number",
+ // width: 140,
+ // require: false,
+ // attrs: { min: 0, step: 1 },
+ // placeholder: "璇疯緭鍏ユ鏁存暟",
+ // },
{
title: "涓婚敭ID",
field: "id",
type: "input",
width: 100,
hidden: true,
- readonly: true
- }
- ]
+ readonly: true,
+ },
+ ],
+ // // 绗笁琛岋細5涓瓧娈碉紙鎵姏/鍒氬害鐩稿叧+娴嬭瘯缁撴灉锛夛紝灏忔暟鏍¢獙
+ // [
+ // {
+ // title: "鎵姏鍊�",
+ // field: "torsioValue",
+ // type: "input",
+ // inputType: "number",
+ // width: 140,
+ // require: false,
+ // attrs: { step: 0.01, min: 0 },
+ // placeholder: "淇濈暀2浣嶅皬鏁�",
+ // },
+ // {
+ // title: "鎵姏鍊兼爣鍑�",
+ // field: "torsioValueStandard",
+ // type: "input",
+ // inputType: "number",
+ // width: 160,
+ // require: false,
+ // attrs: { step: 0.01, min: 0 },
+ // placeholder: "淇濈暀2浣嶅皬鏁�",
+ // },
+ // {
+ // title: "鍒氬害鍊�",
+ // field: "stiffnessValue",
+ // type: "input",
+ // inputType: "number",
+ // width: 140,
+ // require: false,
+ // attrs: { step: 0.01, min: 0 },
+ // placeholder: "淇濈暀2浣嶅皬鏁�",
+ // },
+ // {
+ // title: "鍒氬害鍊兼爣鍑�",
+ // field: "stiffnessValueStandard",
+ // type: "input",
+ // inputType: "number",
+ // width: 160,
+ // require: false,
+ // attrs: { step: 0.01, min: 0 },
+ // placeholder: "淇濈暀2浣嶅皬鏁�",
+ // },
+ // {
+ // title: "娴嬭瘯缁撴灉",
+ // field: "testResult",
+ // type: "input",
+ // inputType: "number",
+ // width: 140,
+ // require: false,
+ // placeholder: "璇疯緭鍏ユ暟瀛楃粨鏋�",
+ // },
+ // ],
+ // 绗洓琛岋細4涓瓧娈碉紙鍘嬭浣嶅叏鍙傛暟锛夛紝灏忔暟鏍¢獙锛屾柊澧炲帇瑁呭帇鍔�
+ [
+ {
+ title: "鍘嬭楂樺害",
+ field: "pressHeight",
+ type: "input",
+ inputType: "number",
+ width: 160,
+ require: false,
+ attrs: { step: 0.01, min: 0 },
+ placeholder: "淇濈暀2浣嶅皬鏁�",
+ },
+ {
+ title: "鍘嬭鍘嬪姏",
+ field: "pressPressure",
+ type: "input",
+ inputType: "number",
+ width: 160,
+ require: false,
+ attrs: { step: 0.01, min: 0 },
+ placeholder: "淇濈暀2浣嶅皬鏁�",
+ },
+ {
+ title: "鍘嬭鎵姏",
+ field: "screwTorque",
+ type: "input",
+ inputType: "number",
+ width: 160,
+ require: false,
+ attrs: { step: 0.01, min: 0 },
+ placeholder: "淇濈暀2浣嶅皬鏁�",
+ },
+ {
+ title: "鎷х揣瑙掑害",
+ field: "screwAngle",
+ type: "input",
+ inputType: "number",
+ width: 160,
+ require: false,
+ attrs: { step: 0.01, min: 0 },
+ placeholder: "淇濈暀2浣嶅皬鏁�",
+ },
+ ],
+ // 绗簲琛岋細3涓瓧娈碉紙鎷х揣浣嶆娴嬮珮搴︼級锛屽皬鏁版牎楠岋紝灞呬腑鎺掑竷
+ [
+ {
+ title: "妫�娴嬮珮搴�1",
+ field: "height1",
+ type: "input",
+ inputType: "number",
+ width: 200,
+ require: false,
+ attrs: { step: 0.01, min: 0 },
+ placeholder: "淇濈暀2浣嶅皬鏁�",
+ },
+ {
+ title: "妫�娴嬮珮搴�2",
+ field: "height2",
+ type: "input",
+ inputType: "number",
+ width: 200,
+ require: false,
+ attrs: { step: 0.01, min: 0 },
+ placeholder: "淇濈暀2浣嶅皬鏁�",
+ },
+ {
+ title: "妫�娴嬮珮搴�3",
+ field: "height3",
+ type: "input",
+ inputType: "number",
+ width: 200,
+ require: false,
+ attrs: { step: 0.01, min: 0 },
+ placeholder: "淇濈暀2浣嶅皬鏁�",
+ },
+ ],
]);
+ // 鎼滅储琛ㄥ崟瀛楁 - 鏍稿績鎼滅储椤癸紙娴佹按鍙�+鍩虹淇℃伅+鍒涘缓淇℃伅锛�
const searchFormFields = ref({
palletCode: "",
productCode: "",
productName: "",
+ productSn: "", // 娴佹按鍙锋悳绱�
creater: "",
createDate: "",
});
+ // 鎼滅储琛ㄥ崟閰嶇疆 - 浼樺寲瀹藉害锛屽尮閰嶅竷灞�
const searchFormOptions = ref([
[
- { title: "宸ヨ鏉跨紪鍙�", field: "palletCode", type: "like" },
- { title: "鎴愬搧缂栧彿", field: "productCode", type: "like" },
- { title: "鎴愬搧鍚嶇О", field: "productName", type: "like" },
+ { title: "宸ヨ鏉跨紪鍙�", field: "palletCode", type: "like", width: 180 },
+ { title: "鎴愬搧缂栧彿", field: "productCode", type: "like", width: 180 },
+ { title: "鎴愬搧鍚嶇О", field: "productName", type: "like", width: 180 },
+ { title: "娴佹按鍙�", field: "productSn", 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 },
],
]);
+ // 琛ㄦ牸鍒楅厤缃� - 瀹屽叏鍖归厤鍚庣瀹炰綋锛屾柊澧瀙ressPressure鍒楋紝浼樺寲鍒楀/瀵归綈
const columns = ref([
{
field: "id",
title: "搴忓彿",
type: "int",
- width: 90,
+ width: 80,
hidden: true,
- readonly: true,
- require: true,
- align: "left",
+ align: "center",
},
{
field: "palletCode",
title: "宸ヨ鏉跨紪鍙�",
type: "string",
- width: 200,
+ width: 140,
align: "left",
},
{
field: "productCode",
title: "鎴愬搧缂栧彿",
type: "string",
- width: 200,
+ width: 140,
align: "left",
},
{
field: "productName",
title: "鎴愬搧鍚嶇О",
type: "string",
- width: 200,
+ width: 150,
align: "left",
},
{
- field: "componentQty",
- title: "闆朵欢鏁伴噺",
- type: "int",
- width: 200,
+ field: "productSn",
+ title: "娴佹按鍙�",
+ type: "string",
+ width: 180,
align: "left",
+ overflow: "ellipsis",
+ },
+ // 4涓姸鎬佸垪 - 鏄惁鏍煎紡鍖栨樉绀�
+ {
+ field: "pressTightenNg",
+ title: "鎷х揣NG",
+ type: "select",
+ width: 120,
+ align: "center",
+ bind: {
+ key: "value",
+ data: [
+ { key: "0", value: "鍚�" },
+ { key: "1", value: "鏄�" },
+ ],
+ },
},
{
- field: "torsioValue",
- title: "鎵姏鍊�",
- type: "float",
- width: 200,
- align: "left",
+ field: "pressTightenOk",
+ title: "鎷х揣OK",
+ type: "select",
+ width: 120,
+ align: "center",
+ bind: {
+ key: "value",
+ data: [
+ { key: "0", value: "鍚�" },
+ { key: "1", value: "鏄�" },
+ ],
+ },
},
{
- field: "torsioValueStandard",
- title: "鎵姏鍊兼爣鍑�",
- type: "float",
- width: 200,
- align: "left",
+ field: "pressTightenUnfinished",
+ title: "鎷х揣鏈畬鎴�",
+ type: "select",
+ width: 140,
+ align: "center",
+ bind: {
+ key: "value",
+ data: [
+ { key: "0", value: "鍚�" },
+ { key: "1", value: "鏄�" },
+ ],
+ },
},
{
- field: "stiffnessValue",
- title: "鍒氬害鍊�",
- type: "float",
- width: 200,
- align: "left",
+ field: "checkUnfinished",
+ title: "妫�娴嬫湭瀹屾垚",
+ type: "select",
+ width: 120,
+ align: "center",
+ bind: {
+ key: "value",
+ data: [
+ { key: "0", value: "鍚�" },
+ { key: "1", value: "鏄�" },
+ ],
+ },
},
- {
- field: "stiffnessValueStandard",
- title: "鍒氬害鍊兼爣鍑�",
- type: "float",
- width: 200,
- align: "left",
- },
- {
- field: "testResult",
- title: "娴嬭瘯缁撴灉",
- type: "int",
- width: 200,
- align: "left",
- },
+ // {
+ // field: "componentQty",
+ // title: "闆朵欢鏁伴噺",
+ // type: "int",
+ // width: 90,
+ // align: "center",
+ // },
+ // // 鎵姏/鍒氬害鐩稿叧 - decimal绫诲瀷锛堜繚鐣�2浣嶅皬鏁帮級
+ // {
+ // field: "torsioValue",
+ // title: "鎵姏鍊�",
+ // type: "decimal",
+ // width: 90,
+ // align: "center",
+ // },
+ // {
+ // field: "torsioValueStandard",
+ // title: "鎵姏鏍囧噯",
+ // type: "decimal",
+ // width: 100,
+ // align: "center",
+ // },
+ // {
+ // field: "stiffnessValue",
+ // title: "鍒氬害鍊�",
+ // type: "decimal",
+ // width: 90,
+ // align: "center",
+ // },
+ // {
+ // field: "stiffnessValueStandard",
+ // title: "鍒氬害鏍囧噯",
+ // type: "decimal",
+ // width: 100,
+ // align: "center",
+ // },
+ // {
+ // field: "testResult",
+ // title: "娴嬭瘯缁撴灉",
+ // type: "int",
+ // width: 90,
+ // align: "center",
+ // },
+ // 鍘嬭浣嶆娴嬪弬鏁� - 銆愭柊澧瀙ressPressure鍒椼�慸ecimal绫诲瀷
{
field: "pressHeight",
- title: "鍘嬭浣嶄笅鍘嬫娴嬮珮搴�",
- type: "float",
- width: 200,
- align: "left",
+ title: "鍘嬭楂樺害",
+ type: "decimal",
+ width: 100,
+ align: "center",
+ },
+ {
+ field: "pressPressure", // 銆愭柊澧炪�戝帇瑁呬綅涓嬪帇鍘嬪姏
+ title: "鍘嬭鍘嬪姏",
+ type: "decimal",
+ width: 100,
+ align: "center",
+ columnDescription: "鍘嬭浣嶄笅鍘嬪帇鍔�",
},
{
field: "screwTorque",
- title: "鍘嬭浣嶆嫥绱ф娴嬫壄鍔�",
- type: "float",
- width: 200,
- align: "left",
+ title: "鍘嬭鎵姏",
+ type: "decimal",
+ width: 100,
+ align: "center",
},
{
field: "screwAngle",
- title: "鍘嬭浣嶆嫥绱ф娴嬭搴�",
- type: "float",
- width: 200,
- align: "left",
+ title: "鎷х揣瑙掑害",
+ type: "decimal",
+ width: 100,
+ align: "center",
},
+ // 鎷х揣浣嶆娴嬮珮搴�
{
field: "height1",
- title: "鎷х揣浣嶆娴嬮珮搴�1",
- type: "float",
- width: 200,
- align: "left",
+ title: "妫�娴嬮珮搴�1",
+ type: "decimal",
+ width: 100,
+ align: "center",
},
{
field: "height2",
- title: "鎷х揣浣嶆娴嬮珮搴�2",
- type: "float",
- width: 200,
- align: "left",
+ title: "妫�娴嬮珮搴�2",
+ type: "decimal",
+ width: 100,
+ align: "center",
},
{
field: "height3",
- title: "鎷х揣浣嶆娴嬮珮搴�3",
- type: "float",
- width: 200,
- align: "left",
+ title: "妫�娴嬮珮搴�3",
+ type: "decimal",
+ width: 100,
+ align: "center",
},
+ // 鍏叡瀛楁 - 鍒涘缓/淇敼淇℃伅
{
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: "",
@@ -361,4 +559,4 @@
};
},
});
-</script>
\ No newline at end of file
+</script>
--
Gitblit v1.9.3