From 595e8cb60be00a240e3c5d4ff31feabab3d603d9 Mon Sep 17 00:00:00 2001 From: bb_pan Date: Wed, 10 Sep 2025 16:16:21 +0800 Subject: [PATCH] =?UTF-8?q?=E5=87=BA=E5=BA=93=E4=BA=8C=E6=AC=A1=E7=A1=AE?= =?UTF-8?q?=E8=AE=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/material/lease/outBound/index.vue | 30 +++++++++++++++++++-- 1 file changed, 28 insertions(+), 2 deletions(-) diff --git a/src/views/material/lease/outBound/index.vue b/src/views/material/lease/outBound/index.vue index cf3283b1..c4f536b3 100644 --- a/src/views/material/lease/outBound/index.vue +++ b/src/views/material/lease/outBound/index.vue @@ -1142,7 +1142,7 @@ export default { this.handleOutQuery() }, - saveCodeOut() { + async saveCodeOut() { console.log(this.maCodeList) console.log(this.outNum) @@ -1151,6 +1151,19 @@ export default { } else if (this.maCodeList.length > this.outNum) { this.$modal.msgError('出库编码数量不可大于待出库数量!') } else { + // 弹框确认 + let isConfirm = false + try { + const res = await this.$modal.confirm('是否确认提交?') + console.log('🚀 ~ saveCodeOut ~ res:', res) + isConfirm = res === 'confirm' + } catch (err) { + console.log('🚀 ~ saveCodeOut ~ err:', err) // err === 'cancel' + isConfirm = false + } + console.log('🚀 ~ saveCodeOut ~ isConfirm:', isConfirm) + if (!isConfirm) return + if (!this.keyId) { this.keyId = this.userId + '-' + new Date().getTime() } @@ -1284,7 +1297,20 @@ export default { // }, //数量出库保存 - saveNumOut() { + async saveNumOut() { + // 弹框确认 + let isConfirm = false + try { + const res = await this.$modal.confirm('是否确认提交?') + console.log('🚀 ~ res:', res) + isConfirm = res === 'confirm' + } catch (err) { + console.log('🚀 ~ err:', err) // err === 'cancel' + isConfirm = false + } + console.log('🚀 ~ isConfirm:', isConfirm) + if (!isConfirm) return + this.outNumList[0].carCode = this.numOutForm.carCode this.outNumList[0].remark = this.numOutForm.remark this.outNumList[0].leaseType = 0