无三期业务单配/拣货提交业务单时,会受到’有三期业务单配/拣货‘单据类型的影响

dev
黄泽腾 2 years ago
parent 3db91eb5c6
commit 30889bf30e

@ -48,6 +48,13 @@ export function submitBiz(query) {
data: query
});
}
export function delmitBiz(query) {
return axios({
url: "/warehouse/inout/delmitBiz",
method: "post",
data: query
});
}
export function submitAllocateBiz(query) {
return axios({

@ -420,6 +420,7 @@
:viewType="viewType"
:curBustype="curAction"
v-if="isBizDetailAlive"
ref="IoCreateOrderCodeDetail"
></biz-detail-panel>
</el-tab-pane>
<el-tab-pane label="扫码详情" v-if="viewCodeVisible">
@ -556,7 +557,7 @@ import {
submitOrderWeb,
saveOrderWeb,
updateCodeBindSup,
enterCodeWeb, submitAllocateBiz, rollbackWaitcheck, submitCodeResult, submitCheckResult,
enterCodeWeb, submitAllocateBiz, rollbackWaitcheck, submitCodeResult, submitCheckResult, delmitBiz,
} from "../../api/inout/order";
import {filterSubAll, findByFrom, findInvByUser} from "../../api/system/invSubWarehouse";
import {parseTime} from "../../utils/coTools";
@ -575,6 +576,7 @@ import DialogSelectUnit from "./DialogSelectUnit";
import selectRlDialog from "./DialogSelectRl";
import DialogSelectSpace from "./DialogSelectSpace";
import {isBlank} from "@/utils/strUtil";
import {getDetailBizs} from "@/api/inout/orderDetailCode";
export default {
name: "ioCreateOrder",
@ -619,6 +621,9 @@ export default {
preCurSpaceCode: null, //
},
detailList: [],
total: 0,
checkPreInArray: [],
errView: 0,
//
@ -726,6 +731,7 @@ export default {
DialogSelectUnit, DialogSelectSpace, selectRlDialog
},
methods: {
//
findInvListByUser() {
this.curInvOptions = [];
@ -825,7 +831,27 @@ export default {
.catch(() => {
});
},
delorderData(){
//
let tQuery = Object.assign(
JSON.parse(JSON.stringify(this.orderFormData))
);
tQuery.orderId = this.orderFormData.billNo;
console.log(tQuery.orderId);
delmitBiz(tQuery).then((response) => {
if (response.code === 20000) {
// this.$message.success("");
const codeDetailComponent = this.$refs.IoCreateOrderCodeDetail.getOrderDetails();
this.closeDialog();
} else {
// this.$message.error(response.message);
const codeDetailComponent = this.$refs.IoCreateOrderCodeDetail.getOrderDetails();
}
});
const codeDetailComponent = this.$refs.IoCreateOrderCodeDetail.getOrderDetails();
console.log("66:"+codeDetailComponent);
},
//
findMethod(query) {
this.fromOptions = [];
@ -847,7 +873,7 @@ export default {
} else if (this.curAction.corpType == 1) {
cQuery.corpType = 1;
cQuery.outType = 2;
}else if (this.curAction.corpType == 4) {
} else if (this.curAction.corpType == 4) {
//
cQuery.corpType = 4;
} else
@ -861,10 +887,8 @@ export default {
this.loading = false;
});
},
//
actionChange(item) {
this.orderFormData.checkPreInOption = null;
this.orderFormData.checkPreInOrders = null;
this.checkPreInArray = [];
@ -884,6 +908,9 @@ export default {
) {
//1.
this.orderFormData.fromCorp = null;
this.delorderData();
this.findMethod();
} else if (this.curAction.corpType == 3) {
//2.
@ -1139,13 +1166,13 @@ export default {
this.$message.error(response.message);
this.selectRlTitle = response.message;
//
if(tQuery.selectSupId!=null){
this.codeFormData.selectSupId=tQuery.selectSupId
}else{
this.codeFormData.selectSupId=false
if (tQuery.selectSupId != null) {
this.codeFormData.selectSupId = tQuery.selectSupId
} else {
this.codeFormData.selectSupId = false
}
//DI,
this.codeFormData.key ="key";
this.codeFormData.key = "key";
this.selectRlVisible = true;
} else if (response.code == 503) {
//
@ -1345,6 +1372,7 @@ export default {
JSON.parse(JSON.stringify(this.orderFormData))
);
tQuery.orderId = this.orderFormData.billNo;
console.log(tQuery.orderId);
if (this.viewType == 2) { //
submitCodes(tQuery).then((response) => {
if (response.code === 20000) {
@ -1609,7 +1637,7 @@ export default {
//
this.findInvListByUser();
this.initBusType();
// this.findMethod(this.orderFormData.fromCorp);
// this.findMethod(this.orderFormData.fromCorp);
this.findFromInvList();
} else {
//

@ -318,6 +318,7 @@ export default {
});
},
rowChange(val) {
this.currentRow = val;
if (this.currentRow.batchNo == '')

Loading…
Cancel
Save