|
@@ -78,7 +78,8 @@
|
|
|
<text class="tit">入库类型 </text>
|
|
|
<picker @change="ruChange" :value="ruIndex" :range="ruType" class="con-list">
|
|
|
<view >
|
|
|
- {{ruIndex>-1?ruType[ruIndex]:'请选择入库类型'}}
|
|
|
+ {{ruIndex > -1?ruType[ruIndex]:'请选择入库类型'}}
|
|
|
+
|
|
|
</view>
|
|
|
</picker>
|
|
|
</view>
|
|
@@ -218,7 +219,7 @@ import upload from '@/components/upload.vue';
|
|
|
pinIndex: 0,
|
|
|
pinTypes: '',
|
|
|
pinType: ['一等品', '二等品', '三等品', '等外'],
|
|
|
- ruIndex: '采购入库',
|
|
|
+ ruIndex: -2,
|
|
|
rutypes: '',
|
|
|
warehouse:[],
|
|
|
warehouseIndex:-1,
|
|
@@ -297,6 +298,7 @@ import upload from '@/components/upload.vue';
|
|
|
})
|
|
|
}
|
|
|
}
|
|
|
+ this.warehouse=arr
|
|
|
}
|
|
|
})
|
|
|
}
|
|
@@ -314,7 +316,6 @@ import upload from '@/components/upload.vue';
|
|
|
this.WarehouseInOutInfo.addressUrl = option.addressUrl
|
|
|
this.WarehouseInOutInfo.binNumber = option.binNumber
|
|
|
this.WarehouseInOutInfo.inOutDate = option.inOutDate
|
|
|
- debugger
|
|
|
var date=new Date()
|
|
|
var year=date.getFullYear()
|
|
|
var month=date.getMonth()
|
|
@@ -369,11 +370,12 @@ import upload from '@/components/upload.vue';
|
|
|
this.warehouseIndex1=e.detail.value
|
|
|
this.WarehouseInOutInfo.binNumberKey = this.warehouseIndex1
|
|
|
this.WarehouseInOutInfo.binNumber = this.warehouse1[this.warehouseIndex1]
|
|
|
- for (var i = 0; i < this.binNumber.length; i++) {
|
|
|
- if(this.binNumber[i].binNumber==this.warehouse1[this.warehouseIndex1]){
|
|
|
- this.WarehouseInOutInfo.baseId=this.binNumber[i].baseId
|
|
|
- }
|
|
|
- }
|
|
|
+ // for (var i = 0; i < this.WarehouseInOutInfo.binNumber.length; i++) {
|
|
|
+ // if(this.binNumber[i].binNumber==this.warehouse1[this.warehouseIndex1]){
|
|
|
+ // this.WarehouseInOutInfo.baseId=this.binNumber[i].baseId
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+
|
|
|
},
|
|
|
DateChange(e) {
|
|
|
this.WarehouseInOutInfo.inOutDate=e.year+'-'+e.month+'-'+e.day
|
|
@@ -665,6 +667,12 @@ import upload from '@/components/upload.vue';
|
|
|
this.WarehouseInOutInfo.warehouseInOutDetail = this.list
|
|
|
this.WarehouseInOutInfo.statusFlag = 3
|
|
|
this.WarehouseInOutInfo.pcFlag = 0
|
|
|
+ debugger
|
|
|
+ for(let i = 0 ;i < this.warehouselist.length ; i++){
|
|
|
+ if(this.warehouselist[i].warehouseName == this.WarehouseInOutInfo.warehouseName){
|
|
|
+ this.WarehouseInOutInfo.baseId = this.warehouselist[i].id
|
|
|
+ }
|
|
|
+ }
|
|
|
this.WarehouseInOutInfo.taskType = "入库任务"
|
|
|
uni.showLoading({
|
|
|
title:"正在提交"
|