|
@@ -215,7 +215,7 @@ import upload from '@/components/upload.vue';
|
|
|
contractNo: {},
|
|
|
carNo: {},
|
|
|
},
|
|
|
- pinIndex: '一等品',
|
|
|
+ pinIndex: 0,
|
|
|
pinTypes: '',
|
|
|
pinType: ['一等品', '二等品', '三等品', '等外'],
|
|
|
ruIndex: '采购入库',
|
|
@@ -237,7 +237,7 @@ import upload from '@/components/upload.vue';
|
|
|
month: true,
|
|
|
day: true,
|
|
|
},
|
|
|
- show:false
|
|
|
+ show:false,
|
|
|
}
|
|
|
},
|
|
|
computed: {
|
|
@@ -264,19 +264,23 @@ import upload from '@/components/upload.vue';
|
|
|
}
|
|
|
},
|
|
|
onShow(){
|
|
|
- this.$api.doRequest('get', '/warehouseBaseInfo/selectWarehouse', {compId:'cb271576afa8418fb7a2f328adc1ecc2',warehouseType:1,}).then(res => {
|
|
|
- if(res.data.code==200){
|
|
|
- var arr=[]
|
|
|
- for(var i=0;i<res.data.data.length;i++){
|
|
|
- if(res.data.data[i].warehouseName==this.WarehouseInOutInfo.warehouseName){
|
|
|
- this.warehouseIndex=i
|
|
|
- }
|
|
|
- arr.push(res.data.data[i].warehouseName)
|
|
|
+ this.$api.doRequest('get', '/warehouseInOutInfo/selectCompId', {contractNo:this.WarehouseInOutInfo.contractNo,warehouseType:1,}).then(res => {
|
|
|
+ if(res.data.code==200){
|
|
|
+ this.$api.doRequest('get', '/warehouseBaseInfo/selectWarehouse', {compId:res.data.data,warehouseType:1,}).then(res => {
|
|
|
+ if(res.data.code==200){
|
|
|
+ var arr=[]
|
|
|
+ for(var i=0;i<res.data.data.length;i++){
|
|
|
+ if(res.data.data[i].warehouseName==this.WarehouseInOutInfo.warehouseName){
|
|
|
+ this.warehouseIndex=i
|
|
|
+ }
|
|
|
+ arr.push(res.data.data[i].warehouseName)
|
|
|
+ }
|
|
|
+ this.warehouselist=res.data.data
|
|
|
+ this.warehouse=arr
|
|
|
+ }
|
|
|
+ })
|
|
|
}
|
|
|
- this.warehouselist=res.data.data
|
|
|
- this.warehouse=arr
|
|
|
- }
|
|
|
- })
|
|
|
+ })
|
|
|
},
|
|
|
onLoad(option) {
|
|
|
this.WarehouseInOutInfo.contractNo = option.contractNo
|
|
@@ -302,7 +306,6 @@ import upload from '@/components/upload.vue';
|
|
|
this.$api.doRequest('get','/warehouseInOutInfo/getInfo',{id:id1}).then(res => {
|
|
|
|
|
|
that.WarehouseInOutInfo = res.data.data
|
|
|
- console.log(that.WarehouseInOutInfo.warehouseInOutDetail != null)
|
|
|
if( that.WarehouseInOutInfo.warehouseInOutDetail != null){
|
|
|
that.list = that.WarehouseInOutInfo.warehouseInOutDetail
|
|
|
}
|
|
@@ -330,7 +333,6 @@ import upload from '@/components/upload.vue';
|
|
|
this.$api.doRequest('get', '/warehouseBaseInfo/getWarehouse', {id:id,}).then(res => {
|
|
|
var arr=[]
|
|
|
for(var i=0;i<res.data.data.warehousePositionInfoList.length;i++){
|
|
|
- console.log(res.data.data.warehousePositionInfoList[i])
|
|
|
arr.push(res.data.data.warehousePositionInfoList[i].binNumber)
|
|
|
}
|
|
|
this.warehouse1=arr
|
|
@@ -501,7 +503,6 @@ import upload from '@/components/upload.vue';
|
|
|
})
|
|
|
}
|
|
|
uni.hideLoading()
|
|
|
-
|
|
|
}).catch(res => {
|
|
|
uni.showToast({
|
|
|
title: res.data.message,
|