From f2ca54c4037fe550253e46356cf34b446c645938 Mon Sep 17 00:00:00 2001
From: haoxuan <haoxuan>
Date: 星期五, 19 四月 2024 11:05:32 +0800
Subject: [PATCH] 新增产品的时候产品不显示的 样式调整

---
 src/views/overview/AddOverviewDialog.vue |   21 +++++++++++++--------
 1 files changed, 13 insertions(+), 8 deletions(-)

diff --git a/src/views/overview/AddOverviewDialog.vue b/src/views/overview/AddOverviewDialog.vue
index 31446e2..df3c3a5 100644
--- a/src/views/overview/AddOverviewDialog.vue
+++ b/src/views/overview/AddOverviewDialog.vue
@@ -1196,7 +1196,7 @@
         params = {
           baseOperationType: data.baseOperationType,
           comment: data.comment || "",
-          companyID: companyID,
+          companyID: companyID+'',
           companyName: companyName,
           contacterID: contacterID,
           contacterName: contacterName,
@@ -1230,7 +1230,7 @@
         params = {
           baseOperationType: data.baseOperationType,
           comment: data.comment || "",
-          companyID: companyID,
+          companyID: companyID+'',
           companyName: companyName,
           contacterID: contacterID,
           contacterName: contacterName,
@@ -1293,13 +1293,14 @@
           {
             label: "浜у搧鍚嶇О",
             prop: "productName",
+            min:150,
             productName: true,
             isRequird: true,
           },
           { label: "浜у搧缂栫爜", prop: "productId" },
-          { label: "鏁伴噺", prop: "amount", inputFloat: true },
           { label: "浜у搧瑙勬牸", prop: "specs" },
           { label: "浜у搧鍨嬪彿", prop: "model" },
+          { label: "鏁伴噺", prop: "amount", inputFloat: true },
           { label: "璁¢噺鍗曚綅", prop: "unit" },
           { label: "杈呭姪鏁伴噺", prop: "auxiliaryAmount",inputFloatValue:true,isInputFloat:'inputFloatAuxiliaryAmount' },
           { label: "杈呭姪鍗曚綅", prop: "auxiliaryUnit" },
@@ -1313,11 +1314,11 @@
           {
             label: "浜у搧鍚嶇О",
             prop: "productName",
+            min:150,
             productName: true,
             isRequird: true,
           },
           { label: "浜у搧缂栫爜", prop: "productId" },
-          { label: "鏁伴噺", prop: "amount", inputFloat: true },
           { label: "浜у搧瑙勬牸", prop: "specs" },
           { label: "浜у搧鍨嬪彿", prop: "model" },
           {
@@ -1326,6 +1327,7 @@
             sonLocation: true,
             isRequird: true,
           },
+          { label: "鏁伴噺", prop: "amount", inputFloat: true },
           { label: "璁¢噺鍗曚綅", prop: "unit" },
           { label: "杈呭姪鏁伴噺", prop: "auxiliaryAmount",inputFloatValue:true,isInputFloat:'inputFloatAuxiliaryAmount' },
           { label: "杈呭姪鍗曚綅", prop: "auxiliaryUnit" },
@@ -1339,11 +1341,11 @@
           {
             label: "浜у搧鍚嶇О",
             prop: "productName",
+            min:150,
             productName: true,
             isRequird: true,
           },
           { label: "浜у搧缂栫爜", prop: "productId" },
-          { label: "鏁伴噺", prop: "amount", inputFloat: true },
           { label: "浜у搧瑙勬牸", prop: "specs" },
           { label: "浜у搧鍨嬪彿", prop: "model" },
           {
@@ -1358,6 +1360,7 @@
             toLocation: true,
             isRequird: true,
           },
+          { label: "鏁伴噺", prop: "amount", inputFloat: true },
           { label: "璁¢噺鍗曚綅", prop: "unit" },
           { label: "杈呭姪鏁伴噺", prop: "auxiliaryAmount",inputFloatValue:true,isInputFloat:'inputFloatAuxiliaryAmount' },
           { label: "杈呭姪鍗曚綅", prop: "auxiliaryUnit" },
@@ -1371,11 +1374,11 @@
           {
             label: "浜у搧鍚嶇О",
             prop: "productName",
+            min:150,
             productName: true,
             isRequird: true,
           },
           { label: "浜у搧缂栫爜", prop: "productId" },
-          { label: "鏁伴噺", prop: "amount", inputFloat: true },
           { label: "浜у搧瑙勬牸", prop: "specs" },
           { label: "浜у搧鍨嬪彿", prop: "model" },
           {
@@ -1390,6 +1393,7 @@
             toLocation: true,
             isRequird: true,
           },
+          { label: "鏁伴噺", prop: "amount", inputFloat: true },
           { label: "璁¢噺鍗曚綅", prop: "unit" },
         ];
       } else if (this.workType == 5) {
@@ -1397,11 +1401,11 @@
           {
             label: "浜у搧鍚嶇О",
             prop: "productName",
+            min:150,
             productName: true,
             isRequird: true,
           },
           { label: "浜у搧缂栫爜", prop: "productId" },
-          { label: "鏁伴噺", prop: "amount", inputFloat: true },
           { label: "浜у搧瑙勬牸", prop: "specs" },
           { label: "浜у搧鍨嬪彿", prop: "model" },
           {
@@ -1416,6 +1420,7 @@
             toLocation: true,
             isRequird: true,
           },
+          { label: "鏁伴噺", prop: "amount", inputFloat: true },
           { label: "璁¢噺鍗曚綅", prop: "unit" },
         ];
       }
@@ -1596,7 +1601,7 @@
     },
     // 鏂板鏂瑰紡淇敼
     getSelectArray(val, index) {
-      if (this.tableData.length == 1 && this.tableData[0].number.length == 0) {
+      if (this.tableData.length == 1 && this.tableData[0].number&&this.tableData[0].number.length == 0) {
         this.tableData = [];
       }
       if (index < this.tableData.length) {

--
Gitblit v1.8.0