|
|
@@ -19,6 +19,8 @@
|
|
|
<template slot="menuLeft">
|
|
|
<el-button type="warning" size="small" @click="outExport">导 出
|
|
|
</el-button>
|
|
|
+ <el-button type="danger" size="small" @click="swap(1)">反 转
|
|
|
+ </el-button>
|
|
|
</template>
|
|
|
</avue-crud>
|
|
|
</el-tab-pane>
|
|
|
@@ -29,6 +31,10 @@
|
|
|
@current-change="currentChange2" @size-change="sizeChange2" @refresh-change="refreshChange2"
|
|
|
@resetColumn="resetColumn('crud2', 'option2', 'optionBack2', 468)"
|
|
|
@saveColumn="saveColumn('crud2', 'option2', 'optionBack2', 468)" @on-load="onLoad2">>
|
|
|
+ <template slot="menuLeft">
|
|
|
+ <el-button type="danger" size="small" @click="swap(2)">反 转
|
|
|
+ </el-button>
|
|
|
+ </template>
|
|
|
</avue-crud>
|
|
|
</el-tab-pane>
|
|
|
<el-tab-pane label="ow箱型箱量" name="third">
|
|
|
@@ -38,10 +44,19 @@
|
|
|
@current-change="currentChange3" @size-change="sizeChange3" @refresh-change="refreshChange3"
|
|
|
@resetColumn="resetColumn('crud3', 'option3', 'optionBack3', 469)"
|
|
|
@saveColumn="saveColumn('crud3', 'option3', 'optionBack3', 469)" @on-load="onLoad3">>
|
|
|
+ <template slot="menuLeft">
|
|
|
+ <el-button type="danger" size="small" @click="swap(3)">反 转
|
|
|
+ </el-button>
|
|
|
+ </template>
|
|
|
</avue-crud>
|
|
|
</el-tab-pane>
|
|
|
<el-tab-pane label="调箱" name="fourth">
|
|
|
- <avue-crud :data="data4" :option="option4"></avue-crud>
|
|
|
+ <avue-crud :data="data4" :option="option4">
|
|
|
+ <template slot="menuLeft">
|
|
|
+ <el-button type="danger" size="small" @click="swap(4)">反 转
|
|
|
+ </el-button>
|
|
|
+ </template>
|
|
|
+ </avue-crud>
|
|
|
</el-tab-pane>
|
|
|
</el-tabs>
|
|
|
|
|
|
@@ -51,10 +66,10 @@
|
|
|
|
|
|
<script>
|
|
|
import { getList, remove } from "@/api/iosBasicData/costcenter/airlineProfit";
|
|
|
-import { getList2 } from "@/api/boxManagement/boxPoolDynamics/index.js";
|
|
|
+import { getList2 } from "@/api/boxManagement/boxPoolDynamics/index.js";
|
|
|
import { getWorkDicts } from "@/api/system/dictbiz";
|
|
|
import { getToken } from "@/util/auth";
|
|
|
-import {dateFormat} from "@/util/date";
|
|
|
+import { dateFormat } from "@/util/date";
|
|
|
import _ from "lodash";
|
|
|
export default {
|
|
|
data() {
|
|
|
@@ -87,7 +102,7 @@ export default {
|
|
|
height: 'auto',
|
|
|
calcHeight: 30,
|
|
|
menuWidth: 70,
|
|
|
- menu:false,
|
|
|
+ menu: false,
|
|
|
tip: false,
|
|
|
searchShow: true,
|
|
|
searchMenuSpan: 12,
|
|
|
@@ -164,11 +179,9 @@ export default {
|
|
|
},
|
|
|
{
|
|
|
label: '起运港',
|
|
|
- prop: 'polId',
|
|
|
+ prop: 'polName',
|
|
|
// width: 150,
|
|
|
overHidden: true,
|
|
|
- hide: true,
|
|
|
- showColumn: false,
|
|
|
search: true,
|
|
|
searchOrder: 5,
|
|
|
type: "select",
|
|
|
@@ -177,17 +190,11 @@ export default {
|
|
|
dicUrl: "/api/blade-los/bports/list?size=10¤t=1&cnName={{key}}",
|
|
|
props: {
|
|
|
label: "cnName",
|
|
|
- value: "id",
|
|
|
+ value: "cnName",
|
|
|
res: "data.records"
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
- label: '起运港',
|
|
|
- prop: 'polName',
|
|
|
- // width: 150,
|
|
|
- overHidden: true,
|
|
|
- },
|
|
|
- {
|
|
|
label: '起运港场站/堆场',
|
|
|
prop: 'polStationName',
|
|
|
// width: 150,
|
|
|
@@ -195,11 +202,9 @@ export default {
|
|
|
},
|
|
|
{
|
|
|
label: '目的港',
|
|
|
- prop: 'podId',
|
|
|
+ prop: 'podName',
|
|
|
// width: 150,
|
|
|
overHidden: true,
|
|
|
- hide: true,
|
|
|
- showColumn: false,
|
|
|
search: true,
|
|
|
searchOrder: 6,
|
|
|
type: "select",
|
|
|
@@ -208,17 +213,11 @@ export default {
|
|
|
dicUrl: "/api/blade-los/bports/list?size=20¤t=1&cnName={{key}}",
|
|
|
props: {
|
|
|
label: "cnName",
|
|
|
- value: "id",
|
|
|
+ value: "cnName",
|
|
|
res: "data.records"
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
- label: '目的港',
|
|
|
- prop: 'podName',
|
|
|
- // width: 150,
|
|
|
- overHidden: true,
|
|
|
- },
|
|
|
- {
|
|
|
label: '目的运港场站/堆场',
|
|
|
prop: 'podStationName',
|
|
|
// width: 150,
|
|
|
@@ -273,7 +272,7 @@ export default {
|
|
|
height: 'auto',
|
|
|
calcHeight: 30,
|
|
|
menuWidth: 70,
|
|
|
- menu:false,
|
|
|
+ menu: false,
|
|
|
tip: false,
|
|
|
searchShow: true,
|
|
|
searchMenuSpan: 12,
|
|
|
@@ -350,11 +349,9 @@ export default {
|
|
|
},
|
|
|
{
|
|
|
label: '起运港',
|
|
|
- prop: 'polId',
|
|
|
+ prop: 'polName',
|
|
|
// width: 150,
|
|
|
overHidden: true,
|
|
|
- hide: true,
|
|
|
- showColumn: false,
|
|
|
search: true,
|
|
|
searchOrder: 5,
|
|
|
type: "select",
|
|
|
@@ -363,17 +360,11 @@ export default {
|
|
|
dicUrl: "/api/blade-los/bports/list?size=10¤t=1&cnName={{key}}",
|
|
|
props: {
|
|
|
label: "cnName",
|
|
|
- value: "id",
|
|
|
+ value: "cnName",
|
|
|
res: "data.records"
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
- label: '起运港',
|
|
|
- prop: 'polName',
|
|
|
- // width: 150,
|
|
|
- overHidden: true,
|
|
|
- },
|
|
|
- {
|
|
|
label: '起运港场站/堆场',
|
|
|
prop: 'polStationName',
|
|
|
// width: 150,
|
|
|
@@ -381,11 +372,9 @@ export default {
|
|
|
},
|
|
|
{
|
|
|
label: '目的港',
|
|
|
- prop: 'podId',
|
|
|
+ prop: 'podName',
|
|
|
// width: 150,
|
|
|
overHidden: true,
|
|
|
- hide: true,
|
|
|
- showColumn: false,
|
|
|
search: true,
|
|
|
searchOrder: 6,
|
|
|
type: "select",
|
|
|
@@ -394,17 +383,11 @@ export default {
|
|
|
dicUrl: "/api/blade-los/bports/list?size=20¤t=1&cnName={{key}}",
|
|
|
props: {
|
|
|
label: "cnName",
|
|
|
- value: "id",
|
|
|
+ value: "cnName",
|
|
|
res: "data.records"
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
- label: '目的港',
|
|
|
- prop: 'podName',
|
|
|
- // width: 150,
|
|
|
- overHidden: true,
|
|
|
- },
|
|
|
- {
|
|
|
label: '目的运港场站/堆场',
|
|
|
prop: 'podStationName',
|
|
|
// width: 150,
|
|
|
@@ -513,7 +496,7 @@ export default {
|
|
|
form: {},
|
|
|
query: {
|
|
|
sort: 0,
|
|
|
- effectiveStartDate:dateFormat(new Date(), "yyyy-MM-dd") + " 00:00:00"
|
|
|
+ effectiveStartDate: dateFormat(new Date(), "yyyy-MM-dd") + " 00:00:00"
|
|
|
},
|
|
|
loading: false,
|
|
|
page: {
|
|
|
@@ -645,7 +628,7 @@ export default {
|
|
|
type: "date",
|
|
|
format: "yyyy-MM-dd",
|
|
|
valueFormat: "yyyy-MM-dd 00:00:00",
|
|
|
- searchValue:dateFormat(new Date(), "yyyy-MM-dd") + " 00:00:00",
|
|
|
+ searchValue: dateFormat(new Date(), "yyyy-MM-dd") + " 00:00:00",
|
|
|
},
|
|
|
{
|
|
|
label: "有效期止",
|
|
|
@@ -780,6 +763,23 @@ export default {
|
|
|
}, 100);
|
|
|
},
|
|
|
methods: {
|
|
|
+ swap(type) {
|
|
|
+ if (type == 1) {
|
|
|
+ let obj = this.deepClone(this.query)
|
|
|
+ this.query.podCname = obj.destinationCname
|
|
|
+ this.query.destinationCname = obj.podCname
|
|
|
+ }
|
|
|
+ if (type == 2) {
|
|
|
+ let obj2 = this.deepClone(this.query2)
|
|
|
+ this.query2.polName = obj2.podName
|
|
|
+ this.query2.podName = obj2.polName
|
|
|
+ }
|
|
|
+ if (type == 3) {
|
|
|
+ let obj3 = this.deepClone(this.query3)
|
|
|
+ this.query3.polName = obj3.podName
|
|
|
+ this.query3.podName = obj3.polName
|
|
|
+ }
|
|
|
+ },
|
|
|
handleClick() {
|
|
|
|
|
|
},
|
|
|
@@ -878,7 +878,7 @@ export default {
|
|
|
obj = {
|
|
|
...Object.assign(params, this.query2),
|
|
|
}
|
|
|
- obj.busType='自有箱,代理箱'
|
|
|
+ obj.busType = '自有箱,代理箱'
|
|
|
this.loading2 = true;
|
|
|
getList2(page.currentPage, page.pageSize, obj).then(res => {
|
|
|
this.data2 = res.data.data.records;
|
|
|
@@ -915,7 +915,7 @@ export default {
|
|
|
obj = {
|
|
|
...Object.assign(params, this.query3),
|
|
|
}
|
|
|
- obj.busType='OW(拿)'
|
|
|
+ obj.busType = 'OW(拿)'
|
|
|
this.loading3 = true;
|
|
|
getList2(page.currentPage, page.pageSize, obj).then(res => {
|
|
|
this.data3 = res.data.data.records;
|