Commit 320f0d8c authored by huhaiqing's avatar huhaiqing

海运关联单预装开发

parent 2f2b7dc6
...@@ -530,6 +530,21 @@ export function createGoods(data) { ...@@ -530,6 +530,21 @@ export function createGoods(data) {
}); });
} }
/**
* 预装关联订单
*
* @export
* @param {*} data
* @return {*}
*/
export function loadRelationOrder(data) {
return request({
url: "/ecw/box-preload-goods/loadRelationOrder",
method: "post",
data,
});
}
/***************************** 预装 end **********************************/ /***************************** 预装 end **********************************/
/***************************** 装柜 start **********************************/ /***************************** 装柜 start **********************************/
......
...@@ -318,6 +318,7 @@ import { ...@@ -318,6 +318,7 @@ import {
changeSection, changeSection,
approvalCreate, approvalCreate,
approvalCancel, approvalCancel,
loadRelationOrder,
} from "@/api/ecw/boxSea"; } from "@/api/ecw/boxSea";
import userSelect from "./common/userSelect.vue"; import userSelect from "./common/userSelect.vue";
import { import {
...@@ -583,9 +584,25 @@ export default { ...@@ -583,9 +584,25 @@ export default {
}; };
createGoods(params).then((res) => { createGoods(params).then((res) => {
const { data } = res;
if(data.relationMsg) {
const msg = data.relationMsg.replaceAll(',',"");
this.$confirm(msg, this.$t("提示"), {
type: "warning",
})
.then((_) => {
loadRelationOrder(data).then((res) => {
serviceMsg(res, this).then(() => { serviceMsg(res, this).then(() => {
this.queryAllData(); this.queryAllData();
}) })
})
})
.catch((_) => {});
} else {
serviceMsg(res, this).then(() => {
this.queryAllData();
})
}
}).catch((res) => { }).catch((res) => {
if(res.code === 555) { if(res.code === 555) {
const msg = res.msg && res.msg.replaceAll(',',""); const msg = res.msg && res.msg.replaceAll(',',"");
......
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