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 1756e46..a482d7e 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() { @@ -474,7 +469,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 35159cf..7f63a44 100644 --- a/src/views/productionPlanning/customerForecastDemandReview/demandPlanning/articleDemand/public.vue +++ b/src/views/productionPlanning/customerForecastDemandReview/demandPlanning/articleDemand/public.vue @@ -116,7 +116,6 @@ this.$message({ type: "success", message: msg }); this.loading = false }).catch((e) => { - this.$message({ type: "error", message: "重新发布信息失败" }); this.loading = false }); }, @@ -140,7 +139,6 @@ this.historyList = data.publishedVersionLi this.loading = false }).catch((e) => { - this.$message({ type: "error", message: "获取发布信息失败" + e }); this.loading = false }); }, @@ -155,7 +153,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' - }) }) } },