Commit dd93306e authored by dragondean@qq.com's avatar dragondean@qq.com

空运出货列表通知弹出提醒

parent 8110b523
...@@ -194,7 +194,7 @@ ...@@ -194,7 +194,7 @@
</template> </template>
<script> <script>
import { deletebox, getbox, getboxPage, exportboxExcel } from '@/api/ecw/box' import {deletebox, getbox, getboxPage, exportboxExcel, getNoticeList, dealCustomsSplitNotify} from '@/api/ecw/box'
import { getChannelList } from '@/api/ecw/channel' import { getChannelList } from '@/api/ecw/channel'
import { getWarehouseList } from '@/api/ecw/warehouse' import { getWarehouseList } from '@/api/ecw/warehouse'
import costForm from './costForm.vue' import costForm from './costForm.vue'
...@@ -342,13 +342,27 @@ export default { ...@@ -342,13 +342,27 @@ export default {
getWarehouseList().then((res) => (this.warehouseList = res.data)) getWarehouseList().then((res) => (this.warehouseList = res.data))
this.getList() this.getList()
this.getChannelList() this.getChannelList()
this.queryNotice()
}, },
methods: { methods: {
formatDate, formatDate,
getChannelList() { getChannelList() {
getChannelList().then((res) => (this.channelList = res.data)) getChannelList().then((res) => (this.channelList = res.data))
}, },
queryNotice() {
getNoticeList({
transportTypeList: this.transportTypes.map((item) => item.value),
}).then((res) => {
const { data } = res;
this.noticeList = data ?? [];
if (data.length) {
this.$set(this.dialogCfg, "title", this.$t("出货操作提醒"));
this.$set(this.dialogCfg, "dialogType", "notice");
this.$set(this.dialogCfg, "width", "650px");
this.$set(this.dialogCfg, "open", true);
}
});
},
/** 查询列表 */ /** 查询列表 */
getList() { getList() {
this.loading = true this.loading = true
...@@ -455,7 +469,8 @@ export default { ...@@ -455,7 +469,8 @@ export default {
.catch(() => {}) .catch(() => {})
}, },
/** 查看按钮操作 */ /** 查看按钮操作 */
handleCommand(row, command) { async handleCommand(row, command) {
console.log(command, row);
switch (command) { switch (command) {
case "detail": case "detail":
this.$router.push("/boxAir/query/" + row.id); this.$router.push("/boxAir/query/" + row.id);
...@@ -490,7 +505,7 @@ export default { ...@@ -490,7 +505,7 @@ export default {
case "downloadPreloadGoodsList": case "downloadPreloadGoodsList":
downloadFile( downloadFile(
command, command,
{ shipmentId: row.id }, {shipmentId: row.id},
this.$t("预装单") + `(${row.selfNo}).xlsx`, this.$t("预装单") + `(${row.selfNo}).xlsx`,
"xlsx" "xlsx"
); );
...@@ -498,7 +513,7 @@ export default { ...@@ -498,7 +513,7 @@ export default {
case "downloadLoadGoodsList": case "downloadLoadGoodsList":
downloadFile( downloadFile(
command, command,
{ shipmentId: row.id }, {shipmentId: row.id},
this.$t("已装单") + `(${row.selfNo}).xlsx`, this.$t("已装单") + `(${row.selfNo}).xlsx`,
"xlsx" "xlsx"
); );
...@@ -506,7 +521,7 @@ export default { ...@@ -506,7 +521,7 @@ export default {
case "downloadReceivableList": case "downloadReceivableList":
downloadFile( downloadFile(
command, command,
{ shipmentId: row.id }, {shipmentId: row.id},
this.$t("应收汇总表") + `(${row.selfNo}).xlsx`, this.$t("应收汇总表") + `(${row.selfNo}).xlsx`,
"xlsx" "xlsx"
); );
...@@ -514,7 +529,7 @@ export default { ...@@ -514,7 +529,7 @@ export default {
case "zipDownload": case "zipDownload":
downloadFile( downloadFile(
command, command,
{ shipmentId: row.id }, {shipmentId: row.id},
this.$t("提货单") + `(${row.selfNo}).zip`, this.$t("提货单") + `(${row.selfNo}).zip`,
"zip" "zip"
); );
...@@ -522,7 +537,20 @@ export default { ...@@ -522,7 +537,20 @@ export default {
case "downloadAgentListFiles": case "downloadAgentListFiles":
case "downloadSoncapFiles": case "downloadSoncapFiles":
case "downloadLadingCopy": case "downloadLadingCopy":
downloadFileByUrl(command, { shipmentId: row.id }); downloadFileByUrl(command, {shipmentId: row.id});
break;
case "handle":
const { noticeType } = row;
if ([1, 2, 3, 4, 8].includes(noticeType)) {
this.$router.push("/boxAir/shippingAir/" + row.id);
}
if ([5, 6, 7].includes(noticeType)) {
this.$router.push("/boxAir/query/" + row.id);
}
if([9].includes(noticeType)){
await dealCustomsSplitNotify(row.notifyId)
}
this.closeDialog();
break; break;
} }
if (["editLadingBill", "cost", "error"].includes(command)) { if (["editLadingBill", "cost", "error"].includes(command)) {
...@@ -533,7 +561,7 @@ export default { ...@@ -533,7 +561,7 @@ export default {
} }
}, },
} }
} }
</script> </script>
......
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