From 20aef9d82a6695380c107240ddd7494f917e7158 Mon Sep 17 00:00:00 2001 From: hou <1601990943@qq.com> Date: Wed, 6 Apr 2022 18:10:35 +0800 Subject: [PATCH] =?UTF-8?q?dam-7=20feat=20=20=E8=BF=87=E8=B4=A6=E6=96=B0?= =?UTF-8?q?=E5=A2=9E=E4=BA=8C=E6=AC=A1=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../outbound/stoOutbound/DN-delivergoods.vue | 43 +++++++++++-------- src/pages/raw/handover/picking/BySummary.vue | 2 - 2 files changed, 26 insertions(+), 19 deletions(-) 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;