修改bug

wang
wangwei 3 years ago
parent c1df1d5c63
commit d5dcc90a8e

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

Loading…
Cancel
Save