Pārlūkot izejas kodu

修改仓库选择

wangchao 3 gadi atpakaļ
vecāks
revīzija
6ec652e0f9
2 mainītis faili ar 5 papildinājumiem un 5 dzēšanām
  1. 3 4
      pages/erp/index.vue
  2. 2 1
      pages/erp/warehousing/warehousing.vue

+ 3 - 4
pages/erp/index.vue

@@ -180,6 +180,8 @@ import helper from '@/common/helper.js';
 					debugger
 					if(res.data.data.length==0){
 						this.isShowAlert = true
+					}else{
+						this.isShowAlert = false
 					}
 					this.compList = res.data.data
 					this.compName = res.data.data[0].compName
@@ -251,9 +253,6 @@ import helper from '@/common/helper.js';
 				}).then(res => {
 					if (res.data.data) {
 						console.log('res',res.data.data)
-						if (res.data.data.length == 0) {
-							this.isShowAlert = true
-						} else {
 							this.warehouseName = res.data.data[0].warehouseName
 							this.warehouseList = res.data.data;
 							this.compId = res.data.data[0].compId
@@ -264,7 +263,7 @@ import helper from '@/common/helper.js';
 							this.baseId = res.data.data[0].positionInfos[0].baseId
 							console.log('this.warehouseCWList',this.warehouseCWList)
 							// this.makeBinNumber()
-						}
+						
 					}
 				})
 			},

+ 2 - 1
pages/erp/warehousing/warehousing.vue

@@ -32,7 +32,7 @@
 			</view>
 			<view class="row row-bottom">
 				<view class="left">扣重(吨)</view>
-				<input @input='calculate' v-model='detailData.deductionWeight' class="right-bottom" placeholder="0"></input>
+				<input @input='calculate' v-model='detailData.deductionWeight' class="right-bottom" placeholder="输入扣重"></input>
 			</view>
 			<view class="row row-bottom">
 				<view class="left">净重(吨)</view>
@@ -235,6 +235,7 @@
 					grade:"一等品",
 					agent:'请选择经办人',
 					inOutType:'请选择入库类型',
+					deductionWeight:0,
 					qualityInspectionManagement: {}
 				}
 			}