diff --git a/src/pages/product/outbound/stoOutbound/DN-delivergoods.vue b/src/pages/product/outbound/stoOutbound/DN-delivergoods.vue index 7a295a7..edd5f50 100644 --- a/src/pages/product/outbound/stoOutbound/DN-delivergoods.vue +++ b/src/pages/product/outbound/stoOutbound/DN-delivergoods.vue @@ -234,27 +234,36 @@ export default class stoOutboundDom extends BasePage { }); } //过账 - async Posting() { + Posting() { if (!this.form.orderNo) { this.customToast(this.$t('message.Commission_tips1') as string); return; } - let params = { - nxOutCode: this.form.orderNo, - rowItem: this.form.row, - materialCode: this.form.rowItem, - loginName: session.loginName, - factoryCode: session.factoryCode, - }; - await this.model.Posting(params); - if (this.model.PostingCode == '1') { - uni.showToast({ - title: this.$t('message.Warehouse_Tip9') as any, - duration: 2000, - image: '/static/icons/icon-51.png', - }); - this.empty(); - } + uni.showModal({ + title: this.$t('message.ConfirmPosting') as string, + success: async (res) => { + if (res.confirm) { + let params = { + nxOutCode: this.form.orderNo, + rowItem: this.form.row, + materialCode: this.form.rowItem, + loginName: session.loginName, + factoryCode: session.factoryCode, + }; + await this.model.Posting(params); + if (this.model.PostingCode == '1') { + uni.showToast({ + title: this.$t('message.Warehouse_Tip9') as any, + duration: 2000, + image: '/static/icons/icon-51.png', + }); + this.empty(); + } + } else if (res.cancel) { + return; + } + }, + }); } empty() { this.form.dockCode = null; diff --git a/src/pages/raw/handover/picking/BySummary.vue b/src/pages/raw/handover/picking/BySummary.vue index faf46b1..daa50be 100644 --- a/src/pages/raw/handover/picking/BySummary.vue +++ b/src/pages/raw/handover/picking/BySummary.vue @@ -181,7 +181,6 @@ export default class RawReceiptDetail extends BasePage { this.wlCode = this.Location[0]; } } - //添加库位和数量到数据和表格中 Add() { if (this.qty == '' || this.wlCode == '') { this.customToast(this.$t('message.Commission_tips2') as any); @@ -191,7 +190,6 @@ export default class RawReceiptDetail extends BasePage { this.customToast(this.$t('message.Commission_tips3') as any); return; } - //guoshuang 判断对象为空修改 逻辑:订单勾选校验 if (JSON.stringify(this.some) == '{}') { this.customToast(this.$t('message.Commission_tips6') as any); return;