From 63e9406392d4788a83ce3201bb12efcb48e95921 Mon Sep 17 00:00:00 2001 From: haoxuan <haoxuan> Date: 星期四, 18 四月 2024 15:52:47 +0800 Subject: [PATCH] 保存入库报错的问题修改 --- src/views/overview/AddOverviewDialog.vue | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/views/overview/AddOverviewDialog.vue b/src/views/overview/AddOverviewDialog.vue index 7efbea8..c7b067d 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,7 +1483,7 @@ productName: res.name, productId: res.id, auxiliaryUnit:adjunctUnit, - auxiliaryAmount:adjunctAmount, + auxiliaryAmount:Number(adjunctAmount), inputFloatAuxiliaryAmount:isValue, grossWeight:res.grossWeight, totalGrossWeight:res.grossWeight?Number(res.grossWeight)*1:'', -- Gitblit v1.8.0