From 982a6fcb49ef9ef5a3740d75aaf9c36f5c82d7f0 Mon Sep 17 00:00:00 2001 From: wuteng <419274783@qq.com> Date: Wed, 4 Feb 2026 17:36:27 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BF=90=E5=8D=95=E6=89=B9=E9=87=8F=E5=BD=95?= =?UTF-8?q?=E5=85=A5=E7=89=B9=E5=8C=BA=E6=8F=90=E9=86=92=E3=80=81=E7=89=B9?= =?UTF-8?q?=E5=8C=BA=E6=A0=87=E7=AD=BE=E6=89=B9=E9=87=8F=E5=AF=BC=E5=85=A5?= =?UTF-8?q?=E6=B1=87=E6=80=BB=E6=8F=90=E9=86=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/emis/emisSpecialZone/index.vue | 27 ++++++++++++------- .../emis/emisWaybill/batchWaybillRecord.vue | 24 ++++++++++++----- 2 files changed, 35 insertions(+), 16 deletions(-) diff --git a/src/views/emis/emisSpecialZone/index.vue b/src/views/emis/emisSpecialZone/index.vue index 77042c0f..214dc502 100644 --- a/src/views/emis/emisSpecialZone/index.vue +++ b/src/views/emis/emisSpecialZone/index.vue @@ -249,9 +249,6 @@ export default { }, handleBatchImport() { this.openUploadForm = true; - }, - batchImpDataForm() { - }, cancel() { this.openUploadForm = false; @@ -324,24 +321,34 @@ export default { this.$modal.msgError('表格中没有数据'); return; } - + let len = this.tmpDataList.length; + //loader + let errMsgs = [] + this.loading = true; for (let i = 0; i < len; i++) { let itemData = this.tmpDataList[i]; try { - let res = await importEmisSpecialZone(itemData) + let res = await importEmisSpecialZone(itemData) + if(res.data.result == 'fail'){ + errMsgs.push(res.data.msg) + } } catch (e) { console.warn(e) } } - - this.$modal.msgSuccess("新增成功"); + if(errMsgs.length > 0){ + this.$confirm(`${errMsgs.join('\n')}`, '提示', { + confirmButtonText: '确定', + showCancelButton: false, + type: 'warning', + }).then(() => {}) + }else{ + this.$modal.msgSuccess("新增成功"); + } this.getList(); - this.tmpDataList = []; - this.openUploadForm = false; - }, handleSuccess() { this.openForm = false; diff --git a/src/views/emis/emisWaybill/batchWaybillRecord.vue b/src/views/emis/emisWaybill/batchWaybillRecord.vue index f2bf70da..bb19321d 100644 --- a/src/views/emis/emisWaybill/batchWaybillRecord.vue +++ b/src/views/emis/emisWaybill/batchWaybillRecord.vue @@ -55,6 +55,7 @@ 下单成功 待下单 下单异常 + 特区提醒 @@ -62,6 +63,7 @@ {{ scope.row.errorInfo }} 下单成功 待下单 + {{ scope.row.errorInfo }} @@ -159,6 +161,7 @@