From 7690ceac09aed9f2d0b50cecf77588087e930a65 Mon Sep 17 00:00:00 2001
From: haoxuan <haoxuan>
Date: 星期四, 18 四月 2024 10:40:25 +0800
Subject: [PATCH] 产品保存报错的问题处理
---
src/components/makepager/CommonFormTableView.vue | 1 +
src/views/productManage/product/AddProductDialog.vue | 11 +++++------
2 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/src/components/makepager/CommonFormTableView.vue b/src/components/makepager/CommonFormTableView.vue
index 967f971..961f4a1 100644
--- a/src/components/makepager/CommonFormTableView.vue
+++ b/src/components/makepager/CommonFormTableView.vue
@@ -684,6 +684,7 @@
this.locacionName = ""
await getLocationList({
// keyword: "",
+ type:3,
jointName: this.initialPosition ? this.initialPosition : null,
productId: this.queryProductId ? this.queryProductId : null,
productCategoryId: this.categoryId ? this.categoryId : null,
diff --git a/src/views/productManage/product/AddProductDialog.vue b/src/views/productManage/product/AddProductDialog.vue
index fd0e079..671ff0e 100644
--- a/src/views/productManage/product/AddProductDialog.vue
+++ b/src/views/productManage/product/AddProductDialog.vue
@@ -148,9 +148,8 @@
placeholder="鍗曚綅"
filterable
@change="Gtechange"
- style="width: calc(85% - 0px)"
+ style="width: calc(85% - 110px)"
>
- <!-- style="width: calc(85% - 110px)" -->
<el-option
v-for="ele in unitList"
:key="ele.id"
@@ -163,14 +162,14 @@
style="font-size: 20px; color: gray"
@click="handleUnitShow"
></i>
- <!-- <el-checkbox
+ <el-checkbox
class="margin_left_10px"
:disabled="editConfig.infomation.unit&&showFooter?false:true"
v-model="editConfig.infomation.moreUnit"
@change="moreUnitChange"
></el-checkbox
- > -->
- <!-- <span class="margin_left_10px cursor_pointer" @click="handleUnitMore">鍚敤澶氬崟浣�</span> -->
+ >
+ <span class="margin_left_10px cursor_pointer" @click="handleUnitMore">鍚敤澶氬崟浣�</span>
</el-form-item>
<el-form-item label="浜у搧鏍囩" prop="productTagName">
@@ -982,7 +981,7 @@
params.codeStandardID = this.autoCodeObj.codeStandardID
params.autoIncr = this.autoCodeObj.maxAutoIncr
}
- if(params.moreUnitList.length>0){
+ if(params.moreUnitList&¶ms.moreUnitList.length>0){
for(let i in params.moreUnitList){
params.moreUnitList[i].amount=Number(params.moreUnitList[i].amount)
}
--
Gitblit v1.8.0