Commit 0b6add3e authored by dragondean@qq.com's avatar dragondean@qq.com

分拣后不显示不可出

parent c6f998b1
...@@ -143,6 +143,15 @@ export function makeBillService(params) { ...@@ -143,6 +143,15 @@ export function makeBillService(params) {
}); });
} }
// 空运制作提单
export function makeAirBillService(params) {
return request({
url: "/shipment/make-bill-of-lading/airMake",
method: "get",
params,
});
}
// 创建制作提货单 // 创建制作提货单
export function createBillService(data) { export function createBillService(data) {
return request({ return request({
......
...@@ -111,7 +111,7 @@ import { ...@@ -111,7 +111,7 @@ import {
getMakeBillList, getMakeBillList,
makeBillService, makeBillService,
getBillService, getBillService,
deleteBillService, zipDownload, downloadReceivableList, deleteBillService, zipDownload, downloadReceivableList, makeAirBillService, downloadAirReceivableList,
} from "@/api/ecw/box"; } from "@/api/ecw/box";
import { import {
getTotlContent, getTotlContent,
...@@ -225,7 +225,8 @@ export default { ...@@ -225,7 +225,8 @@ export default {
); );
return; return;
case "downloadReceivableList": case "downloadReceivableList":
downloadReceivableList({ shipmentId: this.shipmentObj.id }).then(res => { const api = this.type == 'air' ? downloadAirReceivableList : downloadReceivableList;
api({ shipmentId: this.shipmentObj.id }).then(res => {
this.$message.success(this.$t('已加入导出队列,请稍后在下载日志中下载')) this.$message.success(this.$t('已加入导出队列,请稍后在下载日志中下载'))
}) })
return; return;
...@@ -236,7 +237,8 @@ export default { ...@@ -236,7 +237,8 @@ export default {
this.$set(this.dialogCfg, "visible", true); this.$set(this.dialogCfg, "visible", true);
}, },
makeBill(row) { makeBill(row) {
makeBillService({ let api = this.type != 'air' ? makeBillService : makeAirBillService;
api({
orderId: row.orderId, orderId: row.orderId,
shipmentId: this.shipmentObj.id, shipmentId: this.shipmentObj.id,
}).then((res) => { }).then((res) => {
......
...@@ -373,7 +373,7 @@ ...@@ -373,7 +373,7 @@
</template> </template>
<!--不可出--> <!--不可出-->
<template v-if="include(scope.row.airShipment, [2,3,4])"> <template v-if="include(scope.row.airShipment, [2,3,4]) && scope.row.status < 11">
<el-dropdown-item @click.native="setCanNotShipment(scope.row)" v-hasPermi="['ecw:order:setCanNotShipment']">{{$t('不可出')}}</el-dropdown-item> <el-dropdown-item @click.native="setCanNotShipment(scope.row)" v-hasPermi="['ecw:order:setCanNotShipment']">{{$t('不可出')}}</el-dropdown-item>
</template> </template>
</el-dropdown-menu> </el-dropdown-menu>
......
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