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

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

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

@ -420,6 +420,7 @@
:viewType="viewType" :viewType="viewType"
:curBustype="curAction" :curBustype="curAction"
v-if="isBizDetailAlive" v-if="isBizDetailAlive"
ref="IoCreateOrderCodeDetail"
></biz-detail-panel> ></biz-detail-panel>
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="扫码详情" v-if="viewCodeVisible"> <el-tab-pane label="扫码详情" v-if="viewCodeVisible">
@ -556,7 +557,7 @@ import {
submitOrderWeb, submitOrderWeb,
saveOrderWeb, saveOrderWeb,
updateCodeBindSup, updateCodeBindSup,
enterCodeWeb, submitAllocateBiz, rollbackWaitcheck, submitCodeResult, submitCheckResult, enterCodeWeb, submitAllocateBiz, rollbackWaitcheck, submitCodeResult, submitCheckResult, delmitBiz,
} from "../../api/inout/order"; } from "../../api/inout/order";
import {filterSubAll, findByFrom, findInvByUser} from "../../api/system/invSubWarehouse"; import {filterSubAll, findByFrom, findInvByUser} from "../../api/system/invSubWarehouse";
import {parseTime} from "../../utils/coTools"; import {parseTime} from "../../utils/coTools";
@ -575,6 +576,7 @@ import DialogSelectUnit from "./DialogSelectUnit";
import selectRlDialog from "./DialogSelectRl"; import selectRlDialog from "./DialogSelectRl";
import DialogSelectSpace from "./DialogSelectSpace"; import DialogSelectSpace from "./DialogSelectSpace";
import {isBlank} from "@/utils/strUtil"; import {isBlank} from "@/utils/strUtil";
import {getDetailBizs} from "@/api/inout/orderDetailCode";
export default { export default {
name: "ioCreateOrder", name: "ioCreateOrder",
@ -619,6 +621,9 @@ export default {
preCurSpaceCode: null, // preCurSpaceCode: null, //
}, },
detailList: [],
total: 0,
checkPreInArray: [], checkPreInArray: [],
errView: 0, errView: 0,
// //
@ -726,6 +731,7 @@ export default {
DialogSelectUnit, DialogSelectSpace, selectRlDialog DialogSelectUnit, DialogSelectSpace, selectRlDialog
}, },
methods: { methods: {
// //
findInvListByUser() { findInvListByUser() {
this.curInvOptions = []; this.curInvOptions = [];
@ -825,7 +831,27 @@ export default {
.catch(() => { .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) { findMethod(query) {
this.fromOptions = []; this.fromOptions = [];
@ -861,10 +887,8 @@ export default {
this.loading = false; this.loading = false;
}); });
}, },
// //
actionChange(item) { actionChange(item) {
this.orderFormData.checkPreInOption = null; this.orderFormData.checkPreInOption = null;
this.orderFormData.checkPreInOrders = null; this.orderFormData.checkPreInOrders = null;
this.checkPreInArray = []; this.checkPreInArray = [];
@ -884,6 +908,9 @@ export default {
) { ) {
//1. //1.
this.orderFormData.fromCorp = null; this.orderFormData.fromCorp = null;
this.delorderData();
this.findMethod(); this.findMethod();
} else if (this.curAction.corpType == 3) { } else if (this.curAction.corpType == 3) {
//2. //2.
@ -1345,6 +1372,7 @@ export default {
JSON.parse(JSON.stringify(this.orderFormData)) JSON.parse(JSON.stringify(this.orderFormData))
); );
tQuery.orderId = this.orderFormData.billNo; tQuery.orderId = this.orderFormData.billNo;
console.log(tQuery.orderId);
if (this.viewType == 2) { // if (this.viewType == 2) { //
submitCodes(tQuery).then((response) => { submitCodes(tQuery).then((response) => {
if (response.code === 20000) { if (response.code === 20000) {

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

Loading…
Cancel
Save