修改bug

wang
wangwei 3 years ago
parent c1df1d5c63
commit d5dcc90a8e

@ -480,6 +480,7 @@ export default {
},
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.corpId=this.subInvList.find(item => item.code == this.formData.invWarehouseCode).code
this.formData.corpName=this.subInvList.find(item => item.code == this.formData.invWarehouseCode).warehouseName
@ -499,10 +500,12 @@ export default {
this.subInvList = response.data || [];
if (this.subInvList != null && this.subInvList.length == 1) {
this.formData.invWarehouseCode = this.subInvList[0].code;
this.findSubStorageMethod();
}
})
.catch(() => {
});
},
getActionName(action) {
@ -516,11 +519,11 @@ export default {
//
findSubStorageMethod() {
let cQuery = {
let query = {
code: this.formData.invWarehouseCode,
filter: 2,
};
filterSubByInv(cQuery)
filterSubByInv(query)
.then((response) => {
this.fromSubStorageOptions = response.data || [];
})
@ -528,7 +531,6 @@ export default {
});
},
submitFunction(status) {
let tMessage = status === '501' ? '保存' : '提交';
this.loading = true;
@ -615,7 +617,7 @@ export default {
rData.forEach((obj, index) => {
this.codeArray.unshift(obj);
});
console.log(this.codeArray);
this.$refs.multipleTable.setCurrentRow(this.codeArray[0]);
this.currentRow = this.codeArray[0];
this.selectedIndex = 0;
@ -632,7 +634,7 @@ export default {
},
getFromSubStorageCode(){
// this.formData.locStorageCode= this.fromSubStorageOptions.find(item => item.code == this.formData.fromSubInvCode).parentId
//this.formData.locStorageCode= this.fromSubStorageOptions.find(item => item.code == this.formData.fromSubInvCode).parentId
},
iCountEnterFunction() {
if (this.$isNotBlank(this.currentRow)) {
@ -890,7 +892,6 @@ export default {
};
},
created() {
if (this.$isNotBlank(this.idQuery.id)) {
this.query.limit = 100;
this.query.orderIdFk = this.idQuery.id;
@ -915,7 +916,6 @@ export default {
this.orderEditor = false;
// this.generateBillNo();
}
this.getBusType();
this.findSubInvs();
if (!isBlank(this.formData.invWarehouseCode)) {

Loading…
Cancel
Save