Browse Source

Merge pull request '优化接口错误处理' (#165) from wangxy into develop

Reviewed-on: http://101.201.121.115:3000/leo/LAPP_AdvancedPlanner_Front/pulls/165
pull/166/head
wangxy 3 years ago
parent
commit
1ee754b133
10 changed files with 3 additions and 86 deletions
  1. +0
    -13
      src/components/queryComponent/upload.vue
  2. +0
    -13
      src/views/factoryModel/materialResourceMaintenance/artStockResource/upload.vue
  3. +0
    -13
      src/views/plan/workbench/homePage/beta/predict/upload.vue
  4. +0
    -2
      src/views/productionPlanning/customerForecastDemandReview/demandPlanning/articleDemand/addOrEdit.vue
  5. +2
    -8
      src/views/productionPlanning/customerForecastDemandReview/demandPlanning/articleDemand/index.vue
  6. +0
    -3
      src/views/productionPlanning/customerForecastDemandReview/demandPlanning/articleDemand/public.vue
  7. +1
    -4
      src/views/productionPlanning/customerInquiry/index.vue
  8. +0
    -13
      src/views/productionPlanning/customerInquiry/upload.vue
  9. +0
    -4
      src/views/productionPlanning/productInventory/index.vue
  10. +0
    -13
      src/views/system/oneimport/upload.vue

+ 0
- 13
src/components/queryComponent/upload.vue View File

@ -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'
})
})
}
},


+ 0
- 13
src/views/factoryModel/materialResourceMaintenance/artStockResource/upload.vue View File

@ -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'
})
})
}
},


+ 0
- 13
src/views/plan/workbench/homePage/beta/predict/upload.vue View File

@ -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'
})
})
}
},


+ 0
- 2
src/views/productionPlanning/customerForecastDemandReview/demandPlanning/articleDemand/addOrEdit.vue View File

@ -316,8 +316,6 @@
this.$message({ type: "success", message: msg })
this.getMpsModeList()
this.$emit("cancelHandle")
}).catch(() => {
this.$message({ type: "error", message: "删除失败" })
})
});
}


+ 2
- 8
src/views/productionPlanning/customerForecastDemandReview/demandPlanning/articleDemand/index.vue View File

@ -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) {


+ 0
- 3
src/views/productionPlanning/customerForecastDemandReview/demandPlanning/articleDemand/public.vue View File

@ -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: "" });
});
}
},


+ 1
- 4
src/views/productionPlanning/customerInquiry/index.vue View File

@ -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){


+ 0
- 13
src/views/productionPlanning/customerInquiry/upload.vue View File

@ -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'
})
})
}
},


+ 0
- 4
src/views/productionPlanning/productInventory/index.vue View File

@ -125,10 +125,6 @@
this.syncDataDisable = false
this.loading = false
}).catch(() => {
this.$message({
type: "error",
message: "同步库存错误"
})
this.syncDataDisable = false
this.loading = false
})


+ 0
- 13
src/views/system/oneimport/upload.vue View File

@ -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'
})
})
}
},


Loading…
Cancel
Save