From a90640403fec7645493fb39c26ae95c985392c8a Mon Sep 17 00:00:00 2001
From: haoxuan <haoxuan>
Date: 星期四, 25 四月 2024 15:35:01 +0800
Subject: [PATCH] 新建出库页面的出库位置样式调整
---
src/views/productManage/product/AddProductDialog.vue | 51 ++++++++++++++++++++++++++++++---------------------
1 files changed, 30 insertions(+), 21 deletions(-)
diff --git a/src/views/productManage/product/AddProductDialog.vue b/src/views/productManage/product/AddProductDialog.vue
index fd0e079..67a8801 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% - 120px)"
>
- <!-- style="width: calc(85% - 110px)" -->
<el-option
v-for="ele in unitList"
:key="ele.id"
@@ -163,13 +162,13 @@
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
- > -->
+ >鍚敤澶氬崟浣�</el-checkbox
+ >
<!-- <span class="margin_left_10px cursor_pointer" @click="handleUnitMore">鍚敤澶氬崟浣�</span> -->
</el-form-item>
@@ -231,6 +230,7 @@
placeholder="璇烽�夋嫨"
size="mini"
clearable
+ filterable
style="width: 85%"
:disabled="!showFooter"
>
@@ -247,6 +247,7 @@
<el-input
style="width: 85%"
:disabled="!showFooter"
+ filterable
v-model="editConfig.infomation.type"
placeholder="璇疯緭鍏�"
></el-input>
@@ -318,7 +319,7 @@
v-model="editConfig.infomation.principal"
placeholder="璇烽�夋嫨"
size="mini"
- style="width: 85%"
+ style="width: 88%"
disabled
>
<el-option
@@ -342,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
@@ -352,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="鍗曚綅"
@@ -370,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
@@ -380,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 +615,7 @@
ref="unitMoreDialog"
@saveUnitMore="saveUnitMore"
:workList="unitList"
+ :unitRight='editConfig.infomation.unit'
:dataList="editConfig.infomation.moreUnitList"
title="鍚敤澶氬崟浣�"
></UnitMoreDialog>
@@ -818,19 +820,26 @@
},
// 鍚敤澶氬崟浣嶇殑寮�鍏�
moreUnitChange(){
- let string=false;
- if(this.editConfig.infomation.moreUnitList&&this.editConfig.infomation.moreUnitList.length>0){
- for(let i in this.editConfig.infomation.moreUnitList){
- if(this.editConfig.infomation.moreUnitList[i].unit&&this.editConfig.infomation.moreUnitList[i].amount){
- string=true;
- break;
- }
+ // let string=false;
+ if(this.editConfig.infomation.unit){
+ // if(this.editConfig.infomation.moreUnitList&&this.editConfig.infomation.moreUnitList.length>0){
+ // for(let i in this.editConfig.infomation.moreUnitList){
+ // if(this.editConfig.infomation.moreUnitList[i].unit&&this.editConfig.infomation.moreUnitList[i].amount){
+ // string=true;
+ // break;
+ // }
+ // }
+ // }
+ if(this.editConfig.infomation.moreUnit){
+ // this.editConfig.infomation.moreUnit=false
+ // this.$message.error('璇峰厛閰嶇疆澶氬崟浣嶏紒')
+ this.$refs.unitMoreDialog.editDialogVisible = true;
}
- }
- if(!string){
+ }else{
this.editConfig.infomation.moreUnit=false
- this.$message.error('璇峰厛閰嶇疆澶氬崟浣嶏紒')
+ this.$message.error('璇峰厛閫夋嫨鍗曚綅锛�')
}
+
},
handleConfirmSave(dataList) {
saveUnitDict({ data: dataList }).then((res) => {
@@ -982,7 +991,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