diff --git a/src/api/collect/splitCreateOrder.js b/src/api/collect/splitCreateOrder.js index c8ac93b0..c425e628 100644 --- a/src/api/collect/splitCreateOrder.js +++ b/src/api/collect/splitCreateOrder.js @@ -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) { return axios({ diff --git a/src/views/collect/DealOrder.vue b/src/views/collect/DealOrder.vue index 5fe3e167..29276801 100644 --- a/src/views/collect/DealOrder.vue +++ b/src/views/collect/DealOrder.vue @@ -15,13 +15,13 @@ 下一单 选单 @@ -113,8 +113,8 @@ - - + ALT+29 + @click="addGs">ALT+29 { @@ -997,7 +1002,6 @@ export default { }) }, - findCurOrder() { let nextQuery = { workPlaceCode: this.formData.workPlaceCode, @@ -1126,6 +1130,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) { this.warnResult = ""; this.errResult = ""; @@ -1194,7 +1221,7 @@ export default { }) }, changeCorp() { - let corp = this.fromInvOptions.find(item => item.erpId === this.formData.fromCorp); + let corp = this.fromInvOptions.find(item => item.code === this.formData.fromCorp); this.formData.fromCorpName = corp.name }, //处理事件 @@ -1232,6 +1259,8 @@ export default { billNo: this.formData.billNo, insert: this.formData.insert, busType: this.formData.busType, + fromCorpName: this.formData.fromCorpName, + invCode: this.formData.invCode, } orderbatchAddCode(params2).then((res) => { if (res.code === 20000) {