From 5db451f1dacc16c8f153c8a228c79be4696ea935 Mon Sep 17 00:00:00 2001 From: "DESKTOP-JT599KC\\Luan Shanshan" Date: Thu, 30 Dec 2021 11:11:58 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=8E=A5=E5=8F=A3=E9=94=99?= =?UTF-8?q?=E8=AF=AF=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/queryComponent/upload.vue | 13 ------------- .../artStockResource/upload.vue | 13 ------------- .../plan/workbench/homePage/beta/predict/upload.vue | 13 ------------- .../demandPlanning/articleDemand/addOrEdit.vue | 2 -- .../demandPlanning/articleDemand/index.vue | 10 ++-------- .../demandPlanning/articleDemand/public.vue | 3 --- .../productionPlanning/customerInquiry/index.vue | 5 +---- .../productionPlanning/customerInquiry/upload.vue | 13 ------------- .../productionPlanning/productInventory/index.vue | 4 ---- src/views/system/oneimport/upload.vue | 13 ------------- 10 files changed, 3 insertions(+), 86 deletions(-) diff --git a/src/components/queryComponent/upload.vue b/src/components/queryComponent/upload.vue index 9f560d9..871ea73 100644 --- a/src/components/queryComponent/upload.vue +++ b/src/components/queryComponent/upload.vue @@ -63,22 +63,9 @@ export default { type: 'success' }) this.$emit('editCallBack', true) - } else { - this.$message({ - showClose: true, - duration: 2000, - message: res.msg, - type: 'error' - }) } }).catch((res) => { this.uploadLoading = false - this.$message({ - showClose: true, - duration: 2000, - message: res.msg, - type: 'error' - }) }) } }, diff --git a/src/views/factoryModel/materialResourceMaintenance/artStockResource/upload.vue b/src/views/factoryModel/materialResourceMaintenance/artStockResource/upload.vue index e8325cc..4c788b5 100644 --- a/src/views/factoryModel/materialResourceMaintenance/artStockResource/upload.vue +++ b/src/views/factoryModel/materialResourceMaintenance/artStockResource/upload.vue @@ -69,22 +69,9 @@ export default { type: 'success' }) this.$emit('editCallBack', res.data) - } else { - this.$message({ - showClose: true, - duration: 2000, - message: res.msg, - type: 'error' - }) } }).catch((res) => { this.uploadLoading = false - this.$message({ - showClose: true, - duration: 2000, - message: res.msg, - type: 'error' - }) }) } }, diff --git a/src/views/plan/workbench/homePage/beta/predict/upload.vue b/src/views/plan/workbench/homePage/beta/predict/upload.vue index 2f05b76..91979fb 100644 --- a/src/views/plan/workbench/homePage/beta/predict/upload.vue +++ b/src/views/plan/workbench/homePage/beta/predict/upload.vue @@ -62,22 +62,9 @@ export default { type: 'success' }) this.$emit('editCallBack', true) - } else { - this.$message({ - showClose: true, - duration: 2000, - message: res.msg, - type: 'error' - }) } }).catch((res) => { this.uploadLoading = false - this.$message({ - showClose: true, - duration: 2000, - message: res.msg, - type: 'error' - }) }) } }, diff --git a/src/views/productionPlanning/customerForecastDemandReview/demandPlanning/articleDemand/addOrEdit.vue b/src/views/productionPlanning/customerForecastDemandReview/demandPlanning/articleDemand/addOrEdit.vue index c81deb1..3251958 100644 --- a/src/views/productionPlanning/customerForecastDemandReview/demandPlanning/articleDemand/addOrEdit.vue +++ b/src/views/productionPlanning/customerForecastDemandReview/demandPlanning/articleDemand/addOrEdit.vue @@ -316,8 +316,6 @@ this.$message({ type: "success", message: msg }) this.getMpsModeList() this.$emit("cancelHandle") - }).catch(() => { - this.$message({ type: "error", message: "删除失败" }) }) }); } diff --git a/src/views/productionPlanning/customerForecastDemandReview/demandPlanning/articleDemand/index.vue b/src/views/productionPlanning/customerForecastDemandReview/demandPlanning/articleDemand/index.vue index 5653dd4..1af9466 100644 --- a/src/views/productionPlanning/customerForecastDemandReview/demandPlanning/articleDemand/index.vue +++ b/src/views/productionPlanning/customerForecastDemandReview/demandPlanning/articleDemand/index.vue @@ -308,9 +308,7 @@ getPublishedVersion() { publishedVersion().then(({ data = "" }) => { this.promptMessage = data - }).catch(() => { - this.$message({ type: "error", message: "获取消息失败" }); - }); + }) }, handleQuery() { this.getPublishedVersion() @@ -407,9 +405,7 @@ link.setAttribute('download', dataInfo[dataInfo.length - 1]); document.body.appendChild(link); link.click(); - }).catch((e) => { - this.$message({ type: "error", message: "导出失败" + e }); - }); + }) }, // 刷新数据 refreshData() { @@ -440,7 +436,6 @@ this.$message({ type: "success", message: msg }); }).catch(() => { this.SET_articleDemandLoading(false) - // this.$message({ type: "error", message: "访问失败" }); }); }, getEditTableDataJson() { @@ -475,7 +470,6 @@ this.$message({ type: "success", message: "保存成功" }); }).catch(() => { this.setLoading(false) - this.$message({ type: "error", message: "保存失败" }); }); }, setLoading(flag) { diff --git a/src/views/productionPlanning/customerForecastDemandReview/demandPlanning/articleDemand/public.vue b/src/views/productionPlanning/customerForecastDemandReview/demandPlanning/articleDemand/public.vue index b548baf..5b54e6d 100644 --- a/src/views/productionPlanning/customerForecastDemandReview/demandPlanning/articleDemand/public.vue +++ b/src/views/productionPlanning/customerForecastDemandReview/demandPlanning/articleDemand/public.vue @@ -115,7 +115,6 @@ this.$message({ type: "success", message: msg }); this.loading = false }).catch((e) => { - this.$message({ type: "error", message: "重新发布信息失败" }); this.loading = false }); }, @@ -144,7 +143,6 @@ this.historyList = data.publishedVersionLi this.loading = false }).catch((e) => { - this.$message({ type: "error", message: "获取发布信息失败" + e }); this.loading = false }); }, @@ -159,7 +157,6 @@ this.$emit("cancelHandle", "submit") }).catch(() => { this.loading = false - // this.$message({ type: "error", message: "发布失败" }); }); } }, diff --git a/src/views/productionPlanning/customerInquiry/index.vue b/src/views/productionPlanning/customerInquiry/index.vue index e64b62b..a103c48 100644 --- a/src/views/productionPlanning/customerInquiry/index.vue +++ b/src/views/productionPlanning/customerInquiry/index.vue @@ -228,7 +228,6 @@ export default { this.$message({type:"success", message:"获得试算数据成功"}) } }).catch(() => { - this.$message({type:"error", message:"获得试算数据失败"}) this.deliveryTrialDisable = false }) } @@ -250,9 +249,7 @@ export default { row["CustomerOrderReviewInfo-ReplyDate"] = res.data[0]['CustomerOrderReviewInfo-ReplyDate'] this.showDetail(res.data[0]) } - }).catch(() => { - this.$message({type:"error", message:"获得试算数据失败"}) - }) + }) }, // 显示详情 showDetail(data){ diff --git a/src/views/productionPlanning/customerInquiry/upload.vue b/src/views/productionPlanning/customerInquiry/upload.vue index 815a64d..a5aa9d4 100644 --- a/src/views/productionPlanning/customerInquiry/upload.vue +++ b/src/views/productionPlanning/customerInquiry/upload.vue @@ -69,22 +69,9 @@ export default { type: 'success' }) this.$emit('editCallBack', res.data) - } else { - this.$message({ - showClose: true, - duration: 2000, - message: res.msg, - type: 'error' - }) } }).catch((res) => { this.uploadLoading = false - this.$message({ - showClose: true, - duration: 2000, - message: res.msg, - type: 'error' - }) }) } }, diff --git a/src/views/productionPlanning/productInventory/index.vue b/src/views/productionPlanning/productInventory/index.vue index b59bbfa..e0ab580 100644 --- a/src/views/productionPlanning/productInventory/index.vue +++ b/src/views/productionPlanning/productInventory/index.vue @@ -125,10 +125,6 @@ this.syncDataDisable = false this.loading = false }).catch(() => { - this.$message({ - type: "error", - message: "同步库存错误" - }) this.syncDataDisable = false this.loading = false }) diff --git a/src/views/system/oneimport/upload.vue b/src/views/system/oneimport/upload.vue index 89d5ddc..b7409f5 100644 --- a/src/views/system/oneimport/upload.vue +++ b/src/views/system/oneimport/upload.vue @@ -65,22 +65,9 @@ export default { type: 'success' }) this.$emit("setIsAddOrEdit", "close") - } else { - this.$message({ - showClose: true, - duration: 2000, - message: res.msg, - type: 'error' - }) } }).catch((res) => { this.uploadLoading = false - this.$message({ - showClose: true, - duration: 2000, - message: res.msg, - type: 'error' - }) }) } },