单据自动完成

yanshishuju
yewj 7 months ago
parent 27da46bccc
commit de663da475

@ -37,6 +37,14 @@ export function finishOrder(query) {
}); });
} }
export function vailOrderFinish(query) {
return axios({
url: "/udiwms/basic/collect/order/vailFinish",
method: "post",
data: query
});
}
export function draftOrder(query) { export function draftOrder(query) {
return axios({ return axios({

@ -379,7 +379,15 @@ import prescribeCodePanel from "./PanelOrderTagCode";
import PannelOrderBiz from "./PannelOrderBiz"; import PannelOrderBiz from "./PannelOrderBiz";
import {listPage} from "@/api/basic/workPlace/sysWorkplaceManage"; import {listPage} from "@/api/basic/workPlace/sysWorkplaceManage";
import {enterCodeWeb, batchVailCode, enterCodeBillNo} from "@/api/inout/order"; import {enterCodeWeb, batchVailCode, enterCodeBillNo} from "@/api/inout/order";
import {cancelOrder, draftOrder, finishOrder, startSplit, tagCode, updateOrder} from "@/api/collect/splitCreateOrder"; import {
cancelOrder,
draftOrder,
finishOrder,
startSplit,
tagCode,
updateOrder,
vailOrderFinish
} from "@/api/collect/splitCreateOrder";
import {selectCorpList} from "@/api/basic/basicUnitMaintain"; import {selectCorpList} from "@/api/basic/basicUnitMaintain";
import {getCurOrder, getNextOrder, findByBill, findFromCorp} from "@/api/collect/collectOrder"; import {getCurOrder, getNextOrder, findByBill, findFromCorp} from "@/api/collect/collectOrder";
import PanelOrderAllDetail from "@/views/collect/PanelOrderAllDetail"; import PanelOrderAllDetail from "@/views/collect/PanelOrderAllDetail";
@ -840,9 +848,6 @@ export default {
if (this.$isBlank(this.filterQuery.code) && this.$isBlank(this.scanCode)) { if (this.$isBlank(this.filterQuery.code) && this.$isBlank(this.scanCode)) {
return; return;
} }
// if (this.$isNotBlank(this.scanCode)) {
// this.filterQuery.code = this.scanCode.trim();
// }
let tagQuery = { let tagQuery = {
workPlaceCode: this.formData.workPlaceCode, workPlaceCode: this.formData.workPlaceCode,
fromCorp: this.formData.fromCorp, fromCorp: this.formData.fromCorp,
@ -918,7 +923,6 @@ export default {
}); });
}, },
confirmFinishOrder() { confirmFinishOrder() {
this.$confirm('是否确定完成此单据?', '提示', { this.$confirm('是否确定完成此单据?', '提示', {
confirmButtonText: '确定', confirmButtonText: '确定',
@ -959,7 +963,6 @@ export default {
}) })
}, },
updateOrder() { updateOrder() {
this.formData.workPlaceCode = this.workplaceId; this.formData.workPlaceCode = this.workplaceId;
updateOrder(this.formData).then(res => { updateOrder(this.formData).then(res => {
@ -997,7 +1000,6 @@ export default {
}) })
}, },
findCurOrder() { findCurOrder() {
let nextQuery = { let nextQuery = {
workPlaceCode: this.formData.workPlaceCode, workPlaceCode: this.formData.workPlaceCode,
@ -1126,6 +1128,29 @@ export default {
}, },
vailOrderFinish() {
vailOrderFinish(this.formData).then(res => {
this.loading = false
if (res.code == 20000) {
if (res.data) {
this.$confirm("单据已赋码或可自动赋码,是否立即完成单据?", '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
this.finishOrder();
}).catch(() => {
});
}
} else {
}
}).catch(() => {
this.loading = false
})
},
async printMutiCodeResult(vailCodeResultResponses) { async printMutiCodeResult(vailCodeResultResponses) {
this.warnResult = ""; this.warnResult = "";
this.errResult = ""; this.errResult = "";

Loading…
Cancel
Save