Commit b427b5a8 authored by zhoutong's avatar zhoutong

只弹出关联单提示语,无法预装订单

parent 5168ec76
...@@ -106,6 +106,9 @@ service.interceptors.response.use(res => { ...@@ -106,6 +106,9 @@ service.interceptors.response.use(res => {
} else if (code === 555) { } else if (code === 555) {
// 额外情况 // 额外情况
return Promise.reject(res.data) return Promise.reject(res.data)
} else if (code === 566) {
// 额外情况
return Promise.reject(res.data)
} else if (code !== 200) { } else if (code !== 200) {
Notification.error({ Notification.error({
title: msg title: msg
......
...@@ -692,6 +692,22 @@ export default { ...@@ -692,6 +692,22 @@ export default {
this.queryAllData(); this.queryAllData();
}); });
} }
if (res.code === 566) {
this.$confirm(res.msg+this.$t('是否需要一起预装?'), this.$t("提示"), {
type: "warning",
})
.then((_) => {
createGoods({ ...params, relationStatus: 2 }).then((res) => {
serviceMsg(res, this).then(() => {
this.queryAllData();
});
});
})
.catch((_) => {
this.queryAllData();
});
}
}); });
} else { } else {
let params = { let params = {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment