From 1be1b02ce28638c92076e4d40afec70a3f4c2249 Mon Sep 17 00:00:00 2001 From: haoxuan <haoxuan> Date: 星期二, 07 五月 2024 14:37:02 +0800 Subject: [PATCH] 产品模块 启用多单位点击取消关闭复选框+点击确定的时候增加至少填写一项的校验 --- src/views/productManage/product/AddProductDialog.vue | 15 ++++++++++----- 1 files changed, 10 insertions(+), 5 deletions(-) diff --git a/src/views/productManage/product/AddProductDialog.vue b/src/views/productManage/product/AddProductDialog.vue index 18ba9bc..cc89823 100644 --- a/src/views/productManage/product/AddProductDialog.vue +++ b/src/views/productManage/product/AddProductDialog.vue @@ -319,7 +319,7 @@ v-model="editConfig.infomation.principal" placeholder="璇烽�夋嫨" size="mini" - style="width: 85%" + style="width: 88%" disabled > <el-option @@ -343,7 +343,7 @@ ></el-input-number> <span> kg</span> </el-form-item> --> - <el-form-item label="姣涢噸" prop="grossWeight"> + <el-form-item label="姣涢噸" prop="grossWeight" label-width="80px"> <el-col :span="15" > <el-input @@ -353,7 +353,7 @@ ></el-input> </el-col> <el-col :span="1"> </el-col> - <el-col :span="4"> + <el-col :span="5"> <el-select v-model="editConfig.infomation.grossUnit" placeholder="鍗曚綅" @@ -371,7 +371,7 @@ </el-select> </el-col> </el-form-item> - <el-form-item label="鍑�閲�" prop="netWeight"> + <el-form-item label="鍑�閲�" prop="netWeight" label-width="80px"> <el-col :span="15" > <el-input @@ -381,7 +381,7 @@ ></el-input> </el-col> <el-col :span="1"> </el-col> - <el-col :span="4"> + <el-col :span="5"> <el-select v-model="editConfig.infomation.netUnit" placeholder="鍗曚綅" @@ -614,6 +614,7 @@ <UnitMoreDialog ref="unitMoreDialog" @saveUnitMore="saveUnitMore" + @cancelUnitMore='cancelUnitMore' :workList="unitList" :unitRight='editConfig.infomation.unit' :dataList="editConfig.infomation.moreUnitList" @@ -816,8 +817,12 @@ } }, saveUnitMore(list){ + this.editConfig.infomation.moreUnit=true this.editConfig.infomation.moreUnitList=list }, + cancelUnitMore(){ + this.editConfig.infomation.moreUnit=false + }, // 鍚敤澶氬崟浣嶇殑寮�鍏� moreUnitChange(){ // let string=false; -- Gitblit v1.8.0