Commit c2b8b867 authored by zhoutong's avatar zhoutong

空运出仓逻辑优化

parent d0372b7a
...@@ -507,4 +507,33 @@ export function confirmAirCheckout(params) { ...@@ -507,4 +507,33 @@ export function confirmAirCheckout(params) {
method: "get", method: "get",
params params
}); });
} }
\ No newline at end of file
/**
* 单个装柜
*
* @export
* @param {*} data
* @return {*}
*/
export function singleAirCreate(data) {
return request({
url: "/ecw/box-load-info/singleAirCreate",
method: "post",
data,
});
}
/**
* 批量装柜
*
* @export
* @param {*} data
* @return {*}
*/
export function batchAirCreate(data) {
return request({
url: "/ecw/box-load-info/batchAirCreate",
method: "post",
data,
});
}
...@@ -207,14 +207,14 @@ import { confirmAirCheckout } from "@/api/ecw/boxAir"; ...@@ -207,14 +207,14 @@ import { confirmAirCheckout } from "@/api/ecw/boxAir";
import { import {
loadSecGoodsList, loadSecGoodsList,
orderTagList, orderTagList,
singleCreate,
batchCreate,
singleDelete, singleDelete,
batchDelete, batchDelete,
remove, remove,
getOrderDetailByBoxNo, getOrderDetailByBoxNo,
externalLoad, externalLoad,
} from "@/api/ecw/boxSea"; } from "@/api/ecw/boxSea";
import { singleAirCreate,
batchAirCreate} from "@/api/ecw/boxAir"
import { import {
getTotlContent, getTotlContent,
serviceMsg, serviceMsg,
...@@ -435,7 +435,7 @@ export default { ...@@ -435,7 +435,7 @@ export default {
return; return;
} }
params.orderNumCode = this.qrCode; params.orderNumCode = this.qrCode;
singleCreate(params).then((res) => { singleAirCreate(params).then((res) => {
serviceMsg(res, this).then(() => { serviceMsg(res, this).then(() => {
this.qrCode = ""; this.qrCode = "";
this.getLoadSecGoodsList(); this.getLoadSecGoodsList();
...@@ -443,7 +443,7 @@ export default { ...@@ -443,7 +443,7 @@ export default {
}); });
} else { } else {
params.orderNo = this.batchObj.qrCode; params.orderNo = this.batchObj.qrCode;
batchCreate(params).then((res) => { batchAirCreate(params).then((res) => {
serviceMsg(res, this).then(() => { serviceMsg(res, this).then(() => {
this.closeDialog2(); this.closeDialog2();
this.getLoadSecGoodsList(); this.getLoadSecGoodsList();
......
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