|
|
@@ -1,15 +1,18 @@
|
|
|
<template>
|
|
|
<div>
|
|
|
<basic-container v-if="isShow">
|
|
|
- <el-button v-if="roleName.includes('admin')||roleName.includes('箱管')" type="warning" plain size="small"
|
|
|
+ <el-button v-if="roleName.includes('admin') || roleName.includes('箱管')" type="warning" plain size="small"
|
|
|
@click="allClick('POL空箱提箱进场(EXCEL)')">POL空箱提箱进场(EXCEL)</el-button>
|
|
|
|
|
|
- <el-button v-if="roleName.includes('admin')||roleName.includes('箱管')" type="success" plain size="small" @click="allClick('POL空箱出场(EXCEL)')">POL空箱出场(EXCEL)</el-button>
|
|
|
- <el-button v-if="roleName.includes('admin')||roleName.includes('箱管')" type="info" plain size="small" @click="allClick('POD空箱进场(EXCEL)')">POD空箱进场(EXCEL)</el-button>
|
|
|
+ <el-button v-if="roleName.includes('admin') || roleName.includes('箱管')" type="success" plain size="small"
|
|
|
+ @click="allClick('POL空箱出场(EXCEL)')">POL空箱出场(EXCEL)</el-button>
|
|
|
+ <el-button v-if="roleName.includes('admin') || roleName.includes('箱管')" type="info" plain size="small"
|
|
|
+ @click="allClick('POD空箱进场(EXCEL)')">POD空箱进场(EXCEL)</el-button>
|
|
|
<!-- <el-button type="primary" plain size="small"
|
|
|
@click="allClick('POL返场(EXCEL)')">POL返场(EXCEL)</el-button> -->
|
|
|
|
|
|
- <el-button v-if="roleName.includes('admin')||roleName.includes('箱管')" type="danger" plain size="small" @click="allClick('POL无货返空(EXCEL)')">POL无货返空(EXCEL)</el-button>
|
|
|
+ <el-button v-if="roleName.includes('admin') || roleName.includes('箱管')" type="danger" plain size="small"
|
|
|
+ @click="allClick('POL无货返空(EXCEL)')">POL无货返空(EXCEL)</el-button>
|
|
|
|
|
|
<el-tabs v-model="activeName" type="card" style="margin-top: 8px;">
|
|
|
<el-tab-pane label="按港口" name="1">
|
|
|
@@ -76,6 +79,7 @@
|
|
|
温馨提示 第一次导入时请先下载模板
|
|
|
</p>
|
|
|
</el-dialog>
|
|
|
+ <import-module ref="importModule" @refreshData="refreshData" />
|
|
|
</basic-container>
|
|
|
<detailsPage v-if="!isShow" :detailData="detailData" @goBack="goBack"></detailsPage>
|
|
|
</div>
|
|
|
@@ -85,6 +89,7 @@
|
|
|
import { getList, getList2, getList3 } from "@/api/boxManagement/boxPoolDynamics/index.js";
|
|
|
import { getWorkDicts } from "@/api/system/dictbiz";
|
|
|
import detailsPage from "./detailsPage";
|
|
|
+import importModule from "./components/importModule.vue";
|
|
|
import { getToken } from "@/util/auth";
|
|
|
import _ from "lodash";
|
|
|
export default {
|
|
|
@@ -570,12 +575,18 @@ export default {
|
|
|
};
|
|
|
},
|
|
|
components: {
|
|
|
- detailsPage
|
|
|
+ detailsPage,
|
|
|
+ importModule
|
|
|
},
|
|
|
async created() {
|
|
|
this.option2 = await this.getColumnData(this.getColumnName(466), this.optionBack2);
|
|
|
},
|
|
|
methods: {
|
|
|
+ refreshData() {
|
|
|
+ this.refreshChange()
|
|
|
+ this.refreshChange2()
|
|
|
+ this.refreshChange3()
|
|
|
+ },
|
|
|
uploadBefore(file, done, loading) {
|
|
|
done();
|
|
|
loading = true;
|
|
|
@@ -614,40 +625,44 @@ export default {
|
|
|
},
|
|
|
allClick(name) {
|
|
|
if (name == 'POL空箱出场(EXCEL)') {
|
|
|
- this.excelOption.column.forEach(item => {
|
|
|
- if (item.prop == 'excelFile') {
|
|
|
- item.action = "/api/blade-los/boxPool/emptyContainerAppearance"
|
|
|
- }
|
|
|
- })
|
|
|
- this.excelType = 1
|
|
|
- this.excelBox = true
|
|
|
+ this.$refs.importModule.openDialog(2)
|
|
|
+ // this.excelOption.column.forEach(item => {
|
|
|
+ // if (item.prop == 'excelFile') {
|
|
|
+ // item.action = "/api/blade-los/boxPool/emptyContainerAppearance"
|
|
|
+ // }
|
|
|
+ // })
|
|
|
+ // this.excelType = 1
|
|
|
+ // this.excelBox = true
|
|
|
}
|
|
|
if (name == 'POD空箱进场(EXCEL)') {
|
|
|
- this.excelOption.column.forEach(item => {
|
|
|
- if (item.prop == 'excelFile') {
|
|
|
- item.action = "/api/blade-los/boxPool/giveAnEncore"
|
|
|
- }
|
|
|
- })
|
|
|
- this.excelType = 3
|
|
|
- this.excelBox = true
|
|
|
+ this.$refs.importModule.openDialog(3)
|
|
|
+ // this.excelOption.column.forEach(item => {
|
|
|
+ // if (item.prop == 'excelFile') {
|
|
|
+ // item.action = "/api/blade-los/boxPool/giveAnEncore"
|
|
|
+ // }
|
|
|
+ // })
|
|
|
+ // this.excelType = 3
|
|
|
+ // this.excelBox = true
|
|
|
}
|
|
|
if (name == 'POL无货返空(EXCEL)') {
|
|
|
- this.excelOption.column.forEach(item => {
|
|
|
- if (item.prop == 'excelFile') {
|
|
|
- item.action = "/api/blade-los/boxPool/returnEmpty"
|
|
|
- }
|
|
|
- })
|
|
|
- this.excelType = 3
|
|
|
- this.excelBox = true
|
|
|
+ this.$refs.importModule.openDialog(4)
|
|
|
+ // this.excelOption.column.forEach(item => {
|
|
|
+ // if (item.prop == 'excelFile') {
|
|
|
+ // item.action = "/api/blade-los/boxPool/returnEmpty"
|
|
|
+ // }
|
|
|
+ // })
|
|
|
+ // this.excelType = 3
|
|
|
+ // this.excelBox = true
|
|
|
}
|
|
|
if (name == 'POL空箱提箱进场(EXCEL)') {
|
|
|
- this.excelOption.column.forEach(item => {
|
|
|
- if (item.prop == 'excelFile') {
|
|
|
- item.action = "/api/blade-los/boxPool/emptyContainerEntry"
|
|
|
- }
|
|
|
- })
|
|
|
- this.excelType = 2
|
|
|
- this.excelBox = true
|
|
|
+ this.$refs.importModule.openDialog(1)
|
|
|
+ // this.excelOption.column.forEach(item => {
|
|
|
+ // if (item.prop == 'excelFile') {
|
|
|
+ // item.action = "/api/blade-los/boxPool/emptyContainerEntry"
|
|
|
+ // }
|
|
|
+ // })
|
|
|
+ // this.excelType = 2
|
|
|
+ // this.excelBox = true
|
|
|
}
|
|
|
},
|
|
|
addButton() {
|