diff --git a/src/views/emis/emisCustomerUser/monthUserList.vue b/src/views/emis/emisCustomerUser/monthUserList.vue index 6b51f470..76252f4e 100644 --- a/src/views/emis/emisCustomerUser/monthUserList.vue +++ b/src/views/emis/emisCustomerUser/monthUserList.vue @@ -606,6 +606,9 @@ export default { text: '正在导入 ' + _index + ' ...' }) for (let index = 0; index < results.length; index++) { + loadingInstance = this.$loading({ + text: '正在导入 ' + _index + ' 数据...' + }) const element = results[index] // 客户名称 英文简称 月结编号 联系人 手机号码 主归属网点 回款联系人 销售联系人 销售主管 销售支持 结算类型 国家 省份 城市 区县 联系地址 E-Mail 是否启用 是否开启OMS账号 首次签约时间 备注 let postData={} @@ -657,30 +660,21 @@ export default { // postData.country= element['国家'] // postData.extJsonStr = JSON.stringify(extJsonStr) //转时间格式 - if(postData.firstSigningDay){ - postData.firstSigningDay=excelDateToJSDate(postData.firstSigningDay).split(' ')[0] - } - if (this.blImport == 1) { //新增 - const res = await addMonthUser(postData) - if (res.code !== 200) { - this.$modal.msgError(JSON.stringify(res.msg)) - loadingInstance.close() - return - } - } else { //更新 - const res = await batchImportEnterprise(postData) - if (res.code !== 200) { - this.$modal.msgError(JSON.stringify(res.msg)) - loadingInstance.close() - return - } + if(postData.firstSigningDay){ + postData.firstSigningDay=excelDateToJSDate(postData.firstSigningDay).split(' ')[0] } + try { + if (this.blImport == 1) { //新增 + await addMonthUser(postData) + } else { //更新 + await batchImportEnterprise(postData) + } + } catch (error) { loadingInstance.close() - loadingInstance = this.$loading({ - text: '正在导入 ' + _index + ' 数据...' - }) - } - loadingInstance.close() + return + } + } + loadingInstance.close() this.handleQuery(); }, diff --git a/src/views/emis/emisWaybill/waybillGot.vue b/src/views/emis/emisWaybill/waybillGot.vue index 7c3b68c1..e4fa2476 100644 --- a/src/views/emis/emisWaybill/waybillGot.vue +++ b/src/views/emis/emisWaybill/waybillGot.vue @@ -838,6 +838,7 @@