修改bug

wms_pzh
郑明梁 3 years ago
parent 132d4ba9c1
commit d56def6d89

@ -1214,7 +1214,10 @@ export default {
// }); // });
// }, // },
getBusType() { getBusType() {
if( this.formData.id==null){
this.formData.billType=null; this.formData.billType=null;
}
let query = { let query = {
code: this.formData.invWarehouseCode, code: this.formData.invWarehouseCode,
enabled: true, enabled: true,
@ -1289,7 +1292,7 @@ export default {
this.formData.fromSubInvCode = ''; this.formData.fromSubInvCode = '';
} }
// ''; // '';
this.locInChange(); // this.locInChange();
this.findMethod(); this.findMethod();
}, },
locInChange() { locInChange() {

@ -700,6 +700,7 @@ export default {
}); });
}, },
addCode(event) { addCode(event) {
this.originCode = ""; this.originCode = "";
this.sictomText = ""; this.sictomText = "";
this.formData.corpOrderId = this.formData.corpOrderId.trim(); this.formData.corpOrderId = this.formData.corpOrderId.trim();
@ -764,6 +765,7 @@ export default {
}, },
addCodeSubmit(tQuery) { addCodeSubmit(tQuery) {
addOrderWeb(tQuery).then((response) => { addOrderWeb(tQuery).then((response) => {
if (response.code === 20000) { if (response.code === 20000) {
this.idQuery.id = response.data.orderId; this.idQuery.id = response.data.orderId;
@ -966,6 +968,7 @@ export default {
} }
, ,
findMethod(query) { findMethod(query) {
this.fromOptions = []; this.fromOptions = [];
let cQuery = { let cQuery = {
key: query, key: query,
@ -977,7 +980,7 @@ export default {
this.formData.fromCorpId = this.curAction.defaultUnit; this.formData.fromCorpId = this.curAction.defaultUnit;
} else if (this.curAction.corpType == 2)// } else if (this.curAction.corpType == 2)//
{ {
cQuery.corpType = 4; cQuery.corpType = 1;
cQuery.outType = 2; cQuery.outType = 2;
} else if (this.curAction.corpType == 0) { } else if (this.curAction.corpType == 0) {
@ -987,6 +990,7 @@ export default {
getBasicUnitMaintains(cQuery) getBasicUnitMaintains(cQuery)
.then((response) => { .then((response) => {
debugger
this.loading = false; this.loading = false;
this.fromOptions = response.data.page.list || []; this.fromOptions = response.data.page.list || [];
if (this.curAction.corpType == 3) { if (this.curAction.corpType == 3) {
@ -1095,6 +1099,7 @@ export default {
} }
, ,
actionChange(item) { actionChange(item) {
this.curAction = this.getActionItem(item); this.curAction = this.getActionItem(item);
this.findMethod(); this.findMethod();
@ -1222,9 +1227,7 @@ export default {
this.formData.code = ''; this.formData.code = '';
this.formData.actDate = new Date(); this.formData.actDate = new Date();
this.codeArray = []; this.codeArray = [];
if(this.formData.invWarehouseCode!=null){
this.getBusType();
}
this.getStorage(this.formData.action); this.getStorage(this.formData.action);
if (this.$isNotBlank(this.idQuery.id)) { if (this.$isNotBlank(this.idQuery.id)) {
@ -1267,7 +1270,9 @@ export default {
} }
} }
this.findSubInvByInv(this.formData.locStorageCode); this.findSubInvByInv(this.formData.locStorageCode);
if(this.formData.invWarehouseCode!=null){
this.getBusType();
}
// //
selectSysParamByKey({paramKey: "muti_inv_mode"}).then((res) => { selectSysParamByKey({paramKey: "muti_inv_mode"}).then((res) => {
if (res.code === 20000) { if (res.code === 20000) {

@ -185,8 +185,10 @@ export default {
getCodeList() { getCodeList() {
this.loading = true; this.loading = true;
this.query.orderIdFk = this.idQuery.orderIdFk; this.query.orderIdFk = this.idQuery.orderIdFk;
debugger
let query = { let query = {
orderIdFk: this.idQuery.orderIdFk orderIdFk: this.idQuery.orderIdFk,
code:this.query.code
} }
filterDetailProducts(query) // filterDetailProducts(query) //
.then((response) => { .then((response) => {

@ -476,10 +476,6 @@ export default {
if (this.$isBlank(this.codeArray[i].count) || this.codeArray[i].count == "0") { if (this.$isBlank(this.codeArray[i].count) || this.codeArray[i].count == "0") {
return this.$message.error('单据数量不能为0'); return this.$message.error('单据数量不能为0');
} }
if (this.$isBlank(this.codeArray[i].batchNo)) {
return this.$message.error('批次号不能为空');
}
} }
} }

Loading…
Cancel
Save