修改bug

wang
wangwei 3 years ago
parent 9160cf6c69
commit 4a7e8bf9f1

@ -479,13 +479,12 @@ export default {
this.findSubStorageMethod(); this.findSubStorageMethod();
}, },
subStorageChange(item) { subStorageChange(item) {
// this.formData.fromSubInvCode = null;
this.formData.fromSubInvCode=item;
this.formData.locStorageCode= this.subInvList.find(item => item.code == this.formData.invWarehouseCode).parentId this.formData.locStorageCode= this.subInvList.find(item => item.code == this.formData.invWarehouseCode).parentId
this.formData.corpId=this.subInvList.find(item => item.code == this.formData.invWarehouseCode).code this.formData.corpId=this.subInvList.find(item => item.code == this.formData.invWarehouseCode).code
this.formData.corpName=this.subInvList.find(item => item.code == this.formData.invWarehouseCode).warehouseName this.formData.corpName=this.subInvList.find(item => item.code == this.formData.invWarehouseCode).warehouseName
this.findSubStorageMethod(); this.findSubStorageMethod();
this.getBusType(); this.getBusType();
}, },
@ -500,6 +499,8 @@ export default {
this.subInvList = response.data || []; this.subInvList = response.data || [];
if (this.subInvList != null && this.subInvList.length == 1) { if (this.subInvList != null && this.subInvList.length == 1) {
this.formData.invWarehouseCode = this.subInvList[0].code; this.formData.invWarehouseCode = this.subInvList[0].code;
this.formData.locStorageCode = this.subInvList[0].parentId;
this.getBusType();
this.findSubStorageMethod(); this.findSubStorageMethod();
} }
}) })

Loading…
Cancel
Save