feat: 工位上货页面控制

20240912_adapter_z
chenhc 8 months ago
parent f4971f044e
commit 43b6803df4

@ -495,7 +495,35 @@ export default {
DialogSelectUnit, DialogSelectSpace, selectRlDialog, dialogInvProduct
},
methods: {
successCloseData(){
let workPlaceCode = this.orderFormData.workPlaceCode
this.orderFormData ={
billNo: null,
corpOrderId: null,
action: null,
invCode: null,
fromCorp: null,
fromCorpName: null,
fromName: null,
fromInvCode: null,
remark: null,
fromType: 2,
errMsg: null,
checkPreInOrders: null,
checkPreInInvCode: null,
checkPreInSpaceCode: null,
curSpaceCode: null,
preSpaceCode: null,
preCurSpaceCode: null, //
sickerAdNum: null,
workPlaceCode: null,
fifoSplit: 1,
}
this.orderFormData.workPlaceCode = workPlaceCode
this.scanCode= "";
this.corpOrderIdDisabled = false;
this.refreshCodesPanel()
},
//
findInvListByUser() {
this.curInvOptions = [];
@ -616,7 +644,9 @@ export default {
if (response.code === 20000) {
// this.$message.success("");
const codeDetailComponent = this.$refs.IoCreateOrderCodeDetail.getOrderDetails();
this.closeDialog();
if(this.closeDialog != undefined){
this.closeDialog();
}
this.clearOrder();
} else {
// this.$message.error(response.message);
@ -890,6 +920,10 @@ export default {
//
addCode() {
if (this.$isBlank(this.orderFormData.workPlaceCode)) {
this.$message.warning("请选择工位!");
return;
}
this.originCode = "";
this.sictomText = "";
this.orderFormData.corpOrderId = this.orderFormData.corpOrderId.trim();
@ -1156,7 +1190,9 @@ export default {
this.retractLoading = false
if (response.code == 20000) {
this.$message.success("撤回成功!");
this.closeDialog();
if(this.closeDialog != undefined){
this.closeDialog();
}
} else {
this.$message.error(response.message);
}
@ -1182,7 +1218,9 @@ export default {
this.codeLoading = false
if (response.code === 20000) {
this.$message.success("提交成功");
this.closeDialog();
if(this.closeDialog != undefined){
this.closeDialog();
}
} else {
this.$message.error(response.message);
}
@ -1195,7 +1233,9 @@ export default {
this.checkLoading = false
if (response.code === 20000) {
this.$message.success("提交成功");
this.closeDialog();
if(this.closeDialog != undefined){
this.closeDialog();
}
} else {
this.$message.error(response.message);
}
@ -1254,7 +1294,11 @@ export default {
}
if (response.code === 20000) {
this.$message.success("提交成功,等待处理,请刷新后查看!");
this.closeDialog();
this.successCloseData()
console.log(this.closeDialog())
if(this.closeDialog != undefined){
this.closeDialog();
}
} else {
this.$message.error(response.message);
}
@ -1276,7 +1320,10 @@ export default {
}
if (response.code === 20000) {
this.$message.success("提交成功");
this.closeDialog();
this.successCloseData()
if(this.closeDialog != undefined){
this.closeDialog();
}
} else {
this.$message.error(response.message);
}
@ -1295,7 +1342,10 @@ export default {
if (response.code === 20000) {
this.$message.success("提交成功");
this.closeDialog();
this.successCloseData()
if(this.closeDialog != undefined){
this.closeDialog();
}
} else {
this.$message.error(response.message);
}
@ -1335,7 +1385,11 @@ export default {
this.submitLoading = false
if (response.code === 20000) {
this.$message.success("提交成功");
this.closeDialog();
this.successCloseData()
if(this.closeDialog != undefined){
this.closeDialog();
}
} else {
this.$message.error(response.message);
}
@ -1357,7 +1411,9 @@ export default {
saveOrderWeb(tQuery).then((response) => {
this.saveLoading = false
if (response.code === 20000) {
this.closeDialog();
if(this.closeDialog != undefined){
this.closeDialog();
}
} else {
this.$message.error(response.message);
}

Loading…
Cancel
Save