From 35120acdc91fd8b86c5c85ccdcfeb63051095344 Mon Sep 17 00:00:00 2001
From: haoxuan <haoxuan>
Date: 星期四, 18 四月 2024 11:03:40 +0800
Subject: [PATCH] 添加入库 companId修改为字符串

---
 src/views/overview/AddOverviewDialog.vue |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/views/overview/AddOverviewDialog.vue b/src/views/overview/AddOverviewDialog.vue
index 7efbea8..7492a14 100644
--- a/src/views/overview/AddOverviewDialog.vue
+++ b/src/views/overview/AddOverviewDialog.vue
@@ -1154,13 +1154,13 @@
     },
     saveParams() {
       let data = this.editConfig.infomation;
-      let companyID = 0;
+      let companyID = '';
       let companyName = "";
-      let contacterID = 0;
+      let contacterID = '';
       let contacterName = "";
       if (this.editConfig.title == "鏂板缓") {
         companyID =
-          Object.keys(this.companyObj).length == 0 ? 0 : this.companyObj.value;
+          Object.keys(this.companyObj).length == 0 ? '' : this.companyObj.value;
         companyName =
           Object.keys(this.companyObj).length == 0
             ? ""
@@ -1483,11 +1483,11 @@
             productName: res.name,
             productId: res.id,
             auxiliaryUnit:adjunctUnit,
-            auxiliaryAmount:adjunctAmount,
+            auxiliaryAmount:Number(adjunctAmount),
             inputFloatAuxiliaryAmount:isValue,
-            grossWeight:res.grossWeight,
+            grossWeight:Number(res.grossWeight),
             totalGrossWeight:res.grossWeight?Number(res.grossWeight)*1:'',
-            netWeight:res.netWeight, 
+            netWeight:Number(res.netWeight), 
             totalNetWeight:res.netWeight?Number(res.netWeight)*1:'', 
           };
         }

--
Gitblit v1.8.0