|
@@ -14,102 +14,53 @@
|
|
</div>
|
|
</div>
|
|
<div class="part1-wrapper">
|
|
<div class="part1-wrapper">
|
|
<div class="airline">{{ queryData.flightNO }}
|
|
<div class="airline">{{ queryData.flightNO }}
|
|
- <el-select
|
|
|
|
- v-model="selectedAirline"
|
|
|
|
- size="mini"
|
|
|
|
- class="airline-select"
|
|
|
|
- >
|
|
|
|
- <el-option
|
|
|
|
- v-for="(airline, index) in airlineList"
|
|
|
|
- :key="index"
|
|
|
|
- :value="airline.value"
|
|
|
|
- :label="airline.label"
|
|
|
|
- />
|
|
|
|
|
|
+ <el-select v-model="selectedAirline" size="mini" class="airline-select">
|
|
|
|
+ <el-option v-for="(airline, index) in airlineList" :key="index" :value="airline.value" :label="airline.label" />
|
|
</el-select>
|
|
</el-select>
|
|
</div>
|
|
</div>
|
|
<div class="part1_info">
|
|
<div class="part1_info">
|
|
<div class="part1_info_box">
|
|
<div class="part1_info_box">
|
|
<el-row>
|
|
<el-row>
|
|
- <el-col
|
|
|
|
- :xs="24"
|
|
|
|
- :sm="24"
|
|
|
|
- :xl="12"
|
|
|
|
- >
|
|
|
|
|
|
+ <el-col :xs="24" :sm="24" :xl="12">
|
|
<span>起飞机场简称:</span>
|
|
<span>起飞机场简称:</span>
|
|
</el-col>
|
|
</el-col>
|
|
- <el-col
|
|
|
|
- :xs="24"
|
|
|
|
- :sm="24"
|
|
|
|
- :xl="12"
|
|
|
|
- >
|
|
|
|
|
|
+ <el-col :xs="24" :sm="24" :xl="12">
|
|
<span>{{ flightInfo.departureName }}</span>
|
|
<span>{{ flightInfo.departureName }}</span>
|
|
</el-col>
|
|
</el-col>
|
|
</el-row>
|
|
</el-row>
|
|
<el-row>
|
|
<el-row>
|
|
- <el-col
|
|
|
|
- :xs="24"
|
|
|
|
- :sm="24"
|
|
|
|
- :xl="12"
|
|
|
|
- >
|
|
|
|
|
|
+ <el-col :xs="24" :sm="24" :xl="12">
|
|
<span>起飞机场三字码:</span>
|
|
<span>起飞机场三字码:</span>
|
|
</el-col>
|
|
</el-col>
|
|
- <el-col
|
|
|
|
- :xs="24"
|
|
|
|
- :sm="24"
|
|
|
|
- :xl="12"
|
|
|
|
- >
|
|
|
|
|
|
+ <el-col :xs="24" :sm="24" :xl="12">
|
|
<span>{{ flightInfo.planDepartureApt }}</span>
|
|
<span>{{ flightInfo.planDepartureApt }}</span>
|
|
</el-col>
|
|
</el-col>
|
|
</el-row>
|
|
</el-row>
|
|
<el-row>
|
|
<el-row>
|
|
- <el-col
|
|
|
|
- :xs="24"
|
|
|
|
- :sm="24"
|
|
|
|
- :xl="12"
|
|
|
|
- >
|
|
|
|
|
|
+ <el-col :xs="24" :sm="24" :xl="12">
|
|
<span>航站楼:{{ flightInfo.departureBuild }}</span>
|
|
<span>航站楼:{{ flightInfo.departureBuild }}</span>
|
|
</el-col>
|
|
</el-col>
|
|
- <el-col
|
|
|
|
- :xs="24"
|
|
|
|
- :sm="24"
|
|
|
|
- :xl="12"
|
|
|
|
- >
|
|
|
|
|
|
+ <el-col :xs="24" :sm="24" :xl="12">
|
|
<span>分拣转盘:{{ flightInfo.sortCarousel }}</span>
|
|
<span>分拣转盘:{{ flightInfo.sortCarousel }}</span>
|
|
</el-col>
|
|
</el-col>
|
|
</el-row>
|
|
</el-row>
|
|
<el-row>
|
|
<el-row>
|
|
- <el-col
|
|
|
|
- :xs="24"
|
|
|
|
- :sm="24"
|
|
|
|
- :xl="12"
|
|
|
|
- >
|
|
|
|
|
|
+ <el-col :xs="24" :sm="24" :xl="12">
|
|
<span>
|
|
<span>
|
|
日期:{{ flightInfo.planDepartureTime && flightInfo.planDepartureTime.split("T")[0] }}
|
|
日期:{{ flightInfo.planDepartureTime && flightInfo.planDepartureTime.split("T")[0] }}
|
|
</span>
|
|
</span>
|
|
</el-col>
|
|
</el-col>
|
|
- <el-col
|
|
|
|
- :xs="24"
|
|
|
|
- :sm="24"
|
|
|
|
- :xl="12"
|
|
|
|
- >
|
|
|
|
|
|
+ <el-col :xs="24" :sm="24" :xl="12">
|
|
<span>
|
|
<span>
|
|
时间:{{ flightInfo.planDepartureTime && flightInfo.planDepartureTime.split("T")[1] }}
|
|
时间:{{ flightInfo.planDepartureTime && flightInfo.planDepartureTime.split("T")[1] }}
|
|
</span>
|
|
</span>
|
|
</el-col>
|
|
</el-col>
|
|
</el-row>
|
|
</el-row>
|
|
<el-row>
|
|
<el-row>
|
|
- <el-col
|
|
|
|
- :xs="24"
|
|
|
|
- :sm="24"
|
|
|
|
- :xl="12"
|
|
|
|
- >
|
|
|
|
|
|
+ <el-col :xs="24" :sm="24" :xl="12">
|
|
<span>登机口:{{ flightInfo.bordingGate }}</span>
|
|
<span>登机口:{{ flightInfo.bordingGate }}</span>
|
|
</el-col>
|
|
</el-col>
|
|
- <el-col
|
|
|
|
- :xs="24"
|
|
|
|
- :sm="24"
|
|
|
|
- :xl="12"
|
|
|
|
- >
|
|
|
|
|
|
+ <el-col :xs="24" :sm="24" :xl="12">
|
|
<span>停机位:{{ flightInfo.standForDepartrue }}</span>
|
|
<span>停机位:{{ flightInfo.standForDepartrue }}</span>
|
|
</el-col>
|
|
</el-col>
|
|
</el-row>
|
|
</el-row>
|
|
@@ -125,68 +76,36 @@
|
|
</el-col>
|
|
</el-col>
|
|
</el-row>
|
|
</el-row>
|
|
<el-row>
|
|
<el-row>
|
|
- <el-col
|
|
|
|
- :xs="16"
|
|
|
|
- :sm="16"
|
|
|
|
- :xl="12"
|
|
|
|
- >
|
|
|
|
|
|
+ <el-col :xs="16" :sm="16" :xl="12">
|
|
<span>航班状态:</span>
|
|
<span>航班状态:</span>
|
|
</el-col>
|
|
</el-col>
|
|
- <el-col
|
|
|
|
- :xs="8"
|
|
|
|
- :sm="8"
|
|
|
|
- :xl="12"
|
|
|
|
- >
|
|
|
|
|
|
+ <el-col :xs="8" :sm="8" :xl="12">
|
|
<span>{{ flightInfo.flightStatus === null ? "正常" : flightInfo.flightStatus }}</span>
|
|
<span>{{ flightInfo.flightStatus === null ? "正常" : flightInfo.flightStatus }}</span>
|
|
</el-col>
|
|
</el-col>
|
|
</el-row>
|
|
</el-row>
|
|
<el-row>
|
|
<el-row>
|
|
- <el-col
|
|
|
|
- :xs="24"
|
|
|
|
- :sm="24"
|
|
|
|
- :xl="12"
|
|
|
|
- >
|
|
|
|
|
|
+ <el-col :xs="24" :sm="24" :xl="12">
|
|
<span>托运旅客数:</span>
|
|
<span>托运旅客数:</span>
|
|
<span>{{ flightInfo.count1 }}</span>
|
|
<span>{{ flightInfo.count1 }}</span>
|
|
</el-col>
|
|
</el-col>
|
|
- <el-col
|
|
|
|
- :xs="24"
|
|
|
|
- :sm="24"
|
|
|
|
- :xl="12"
|
|
|
|
- >
|
|
|
|
|
|
+ <el-col :xs="24" :sm="24" :xl="12">
|
|
<span>终点行李数:</span>
|
|
<span>终点行李数:</span>
|
|
<span>{{ flightInfo.count2 }}</span>
|
|
<span>{{ flightInfo.count2 }}</span>
|
|
</el-col>
|
|
</el-col>
|
|
</el-row>
|
|
</el-row>
|
|
<el-row>
|
|
<el-row>
|
|
- <el-col
|
|
|
|
- :xs="18"
|
|
|
|
- :sm="18"
|
|
|
|
- :xl="12"
|
|
|
|
- >
|
|
|
|
|
|
+ <el-col :xs="18" :sm="18" :xl="12">
|
|
<span>中转进行李数:</span>
|
|
<span>中转进行李数:</span>
|
|
</el-col>
|
|
</el-col>
|
|
- <el-col
|
|
|
|
- :xs="6"
|
|
|
|
- :sm="6"
|
|
|
|
- :xl="12"
|
|
|
|
- >
|
|
|
|
|
|
+ <el-col :xs="6" :sm="6" :xl="12">
|
|
<span>{{ flightInfo.count4 }}</span>
|
|
<span>{{ flightInfo.count4 }}</span>
|
|
</el-col>
|
|
</el-col>
|
|
</el-row>
|
|
</el-row>
|
|
<el-row>
|
|
<el-row>
|
|
- <el-col
|
|
|
|
- :xs="18"
|
|
|
|
- :sm="18"
|
|
|
|
- :xl="12"
|
|
|
|
- >
|
|
|
|
|
|
+ <el-col :xs="18" :sm="18" :xl="12">
|
|
<span>中转出行李数:</span>
|
|
<span>中转出行李数:</span>
|
|
</el-col>
|
|
</el-col>
|
|
- <el-col
|
|
|
|
- :xs="6"
|
|
|
|
- :sm="6"
|
|
|
|
- :xl="12"
|
|
|
|
- >
|
|
|
|
|
|
+ <el-col :xs="6" :sm="6" :xl="12">
|
|
<span>{{ flightInfo.count3 }}</span>
|
|
<span>{{ flightInfo.count3 }}</span>
|
|
</el-col>
|
|
</el-col>
|
|
</el-row>
|
|
</el-row>
|
|
@@ -194,34 +113,18 @@
|
|
<i class="part1_info_arrow_right el-icon-caret-right" />
|
|
<i class="part1_info_arrow_right el-icon-caret-right" />
|
|
<div class="part1_info_box">
|
|
<div class="part1_info_box">
|
|
<el-row>
|
|
<el-row>
|
|
- <el-col
|
|
|
|
- :xs="24"
|
|
|
|
- :sm="24"
|
|
|
|
- :xl="12"
|
|
|
|
- >
|
|
|
|
|
|
+ <el-col :xs="24" :sm="24" :xl="12">
|
|
<span>降落机场简称:</span>
|
|
<span>降落机场简称:</span>
|
|
</el-col>
|
|
</el-col>
|
|
- <el-col
|
|
|
|
- :xs="24"
|
|
|
|
- :sm="24"
|
|
|
|
- :xl="12"
|
|
|
|
- >
|
|
|
|
|
|
+ <el-col :xs="24" :sm="24" :xl="12">
|
|
<span>{{ flightInfo.landingName }}</span>
|
|
<span>{{ flightInfo.landingName }}</span>
|
|
</el-col>
|
|
</el-col>
|
|
</el-row>
|
|
</el-row>
|
|
<el-row>
|
|
<el-row>
|
|
- <el-col
|
|
|
|
- :xs="24"
|
|
|
|
- :sm="24"
|
|
|
|
- :xl="12"
|
|
|
|
- >
|
|
|
|
|
|
+ <el-col :xs="24" :sm="24" :xl="12">
|
|
<span>降落机场三字码:</span>
|
|
<span>降落机场三字码:</span>
|
|
</el-col>
|
|
</el-col>
|
|
- <el-col
|
|
|
|
- :xs="24"
|
|
|
|
- :sm="24"
|
|
|
|
- :xl="12"
|
|
|
|
- >
|
|
|
|
|
|
+ <el-col :xs="24" :sm="24" :xl="12">
|
|
<span>{{ flightInfo.planLandingApt }}</span>
|
|
<span>{{ flightInfo.planLandingApt }}</span>
|
|
</el-col>
|
|
</el-col>
|
|
</el-row>
|
|
</el-row>
|
|
@@ -234,38 +137,22 @@
|
|
</el-col>
|
|
</el-col>
|
|
</el-row>
|
|
</el-row>
|
|
<el-row>
|
|
<el-row>
|
|
- <el-col
|
|
|
|
- :xs="24"
|
|
|
|
- :sm="24"
|
|
|
|
- :xl="12"
|
|
|
|
- >
|
|
|
|
|
|
+ <el-col :xs="24" :sm="24" :xl="12">
|
|
<span>
|
|
<span>
|
|
日期:{{ flightInfo.expectLandingTime && flightInfo.expectLandingTime.split("T")[0] }}
|
|
日期:{{ flightInfo.expectLandingTime && flightInfo.expectLandingTime.split("T")[0] }}
|
|
</span>
|
|
</span>
|
|
</el-col>
|
|
</el-col>
|
|
- <el-col
|
|
|
|
- :xs="24"
|
|
|
|
- :sm="24"
|
|
|
|
- :xl="12"
|
|
|
|
- >
|
|
|
|
|
|
+ <el-col :xs="24" :sm="24" :xl="12">
|
|
<span>
|
|
<span>
|
|
时间:{{ flightInfo.expectLandingTime && flightInfo.expectLandingTime.split("T")[1] }}
|
|
时间:{{ flightInfo.expectLandingTime && flightInfo.expectLandingTime.split("T")[1] }}
|
|
</span>
|
|
</span>
|
|
</el-col>
|
|
</el-col>
|
|
</el-row>
|
|
</el-row>
|
|
<el-row>
|
|
<el-row>
|
|
- <el-col
|
|
|
|
- :xs="24"
|
|
|
|
- :sm="24"
|
|
|
|
- :xl="12"
|
|
|
|
- >
|
|
|
|
|
|
+ <el-col :xs="24" :sm="24" :xl="12">
|
|
<span>提取转盘:{{ flightInfo.carousel }}</span>
|
|
<span>提取转盘:{{ flightInfo.carousel }}</span>
|
|
</el-col>
|
|
</el-col>
|
|
- <el-col
|
|
|
|
- :xs="24"
|
|
|
|
- :sm="24"
|
|
|
|
- :xl="12"
|
|
|
|
- >
|
|
|
|
|
|
+ <el-col :xs="24" :sm="24" :xl="12">
|
|
<span>停机位:{{ flightInfo.standForLanding }}</span>
|
|
<span>停机位:{{ flightInfo.standForLanding }}</span>
|
|
</el-col>
|
|
</el-col>
|
|
</el-row>
|
|
</el-row>
|
|
@@ -276,36 +163,10 @@
|
|
<div class="part2">
|
|
<div class="part2">
|
|
<div class="title">
|
|
<div class="title">
|
|
<span class="manageTitle">航班容器列表</span>
|
|
<span class="manageTitle">航班容器列表</span>
|
|
- <img
|
|
|
|
- class="btn-square btn-shadow"
|
|
|
|
- src="@/assets/baggage/ic_export.png"
|
|
|
|
- title="导出"
|
|
|
|
- @click="exportHandler('containerTable', '航班容器列表')"
|
|
|
|
- >
|
|
|
|
|
|
+ <img class="btn-square btn-shadow" src="@/assets/baggage/ic_export.png" title="导出" @click="exportHandler('containerTable', '航班容器列表')">
|
|
</div>
|
|
</div>
|
|
- <el-table
|
|
|
|
- ref="containerTable"
|
|
|
|
- :data="containerTableData"
|
|
|
|
- border
|
|
|
|
- style="width: 100%"
|
|
|
|
- height="344px"
|
|
|
|
- stripe
|
|
|
|
- size="mini"
|
|
|
|
- show-summary
|
|
|
|
- :summary-method="summaryMethod"
|
|
|
|
- :header-cell-style="{ color: '#101116' }"
|
|
|
|
- :row-class-name="rowClass"
|
|
|
|
- @row-click="containerClick"
|
|
|
|
- >
|
|
|
|
- <el-table-column
|
|
|
|
- v-for="col in containerTableColumn"
|
|
|
|
- :key="col.id"
|
|
|
|
- :prop="col.prop"
|
|
|
|
- :label="col.label"
|
|
|
|
- :width="col.width"
|
|
|
|
- :align="col.align || 'center'"
|
|
|
|
- :show-overflow-tooltip="true"
|
|
|
|
- />
|
|
|
|
|
|
+ <el-table ref="containerTable" :data="containerTableData" border style="width: 100%" height="344px" stripe size="mini" show-summary :summary-method="summaryMethod" :header-cell-style="{ color: '#101116' }" :row-class-name="rowClass" @row-click="containerClick">
|
|
|
|
+ <el-table-column v-for="col in containerTableColumn" :key="col.id" :prop="col.prop" :label="col.label" :width="col.width" :align="col.align || 'center'" :show-overflow-tooltip="true" />
|
|
</el-table>
|
|
</el-table>
|
|
</div>
|
|
</div>
|
|
<!-- <div
|
|
<!-- <div
|
|
@@ -366,113 +227,40 @@
|
|
/>
|
|
/>
|
|
</el-table>
|
|
</el-table>
|
|
</div> -->
|
|
</div> -->
|
|
- <div
|
|
|
|
- class="drag-mask"
|
|
|
|
- :class="{ active: dragActive }"
|
|
|
|
- />
|
|
|
|
- <div
|
|
|
|
- class="part4"
|
|
|
|
- :style="draggableStyle"
|
|
|
|
- >
|
|
|
|
- <div
|
|
|
|
- v-drag-height
|
|
|
|
- class="drag-box"
|
|
|
|
- :class="{ active: dragActive }"
|
|
|
|
- >
|
|
|
|
|
|
+ <div class="drag-mask" :class="{ active: dragActive }" />
|
|
|
|
+ <div class="part4" :style="draggableStyle">
|
|
|
|
+ <div v-drag-height class="drag-box" :class="{ active: dragActive }">
|
|
<i class="drag-icon el-icon-d-caret" />
|
|
<i class="drag-icon el-icon-d-caret" />
|
|
- <div
|
|
|
|
- class="drag-line"
|
|
|
|
- :style="dragLineStyle"
|
|
|
|
- />
|
|
|
|
|
|
+ <div class="drag-line" :style="dragLineStyle" />
|
|
</div>
|
|
</div>
|
|
<div class="title">
|
|
<div class="title">
|
|
<span class="manageTitle">航班行李列表</span>
|
|
<span class="manageTitle">航班行李列表</span>
|
|
<TimeZoneSelector />
|
|
<TimeZoneSelector />
|
|
- <img
|
|
|
|
- class="btn-square btn-shadow"
|
|
|
|
- src="@/assets/baggage/ic_export.png"
|
|
|
|
- title="导出"
|
|
|
|
- @click="exportHandler('flightBaggageTable', '航班行李列表')"
|
|
|
|
- >
|
|
|
|
- <img
|
|
|
|
- class="btn-square btn-shadow"
|
|
|
|
- src="@/assets/baggage/ic_setting.png"
|
|
|
|
- title="列设置"
|
|
|
|
- @click="show"
|
|
|
|
- >
|
|
|
|
|
|
+ <img class="btn-square btn-shadow" src="@/assets/baggage/ic_export.png" title="导出" @click="exportHandler('flightBaggageTable', '航班行李列表')">
|
|
|
|
+ <img class="btn-square btn-shadow" src="@/assets/baggage/ic_setting.png" title="列设置" @click="show">
|
|
</div>
|
|
</div>
|
|
- <el-table
|
|
|
|
- ref="flightBaggageTable"
|
|
|
|
- :data="dealedTableData"
|
|
|
|
- border
|
|
|
|
- style="width: 100%"
|
|
|
|
- height="calc(100% - 64px)"
|
|
|
|
- stripe
|
|
|
|
- size="mini"
|
|
|
|
- show-summary
|
|
|
|
- :summary-method="summaryRow(dealedTableData.length)"
|
|
|
|
- :header-cell-class-name="headerCellClass"
|
|
|
|
- :header-cell-style="{ color: '#101116' }"
|
|
|
|
- :row-class-name="rowClass"
|
|
|
|
- :cell-class-name="cellClass"
|
|
|
|
- @cell-click="cellClickHandler"
|
|
|
|
- >
|
|
|
|
- <el-table-column
|
|
|
|
- v-for="col in tableColsCopy"
|
|
|
|
- :key="col.index"
|
|
|
|
- :prop="col.prop"
|
|
|
|
- :label="col.label"
|
|
|
|
- :align="col.align || 'center'"
|
|
|
|
- :width="col.width"
|
|
|
|
- :fixed="col.fixed"
|
|
|
|
- :formatter="tableFormat"
|
|
|
|
- >
|
|
|
|
|
|
+ <el-table ref="flightBaggageTable" :data="dealedTableData" border style="width: 100%" height="calc(100% - 64px)" stripe size="mini" show-summary :summary-method="summaryRow(dealedTableData.length)" :header-cell-class-name="headerCellClass" :header-cell-style="{ color: '#101116' }" :row-class-name="rowClass" :cell-class-name="cellClass" @cell-click="cellClickHandler">
|
|
|
|
+ <el-table-column v-for="col in tableColsCopy" :key="col.index" :prop="col.prop" :label="col.label" :align="col.align || 'center'" :width="col.width" :fixed="col.fixed" :formatter="tableFormat">
|
|
<template #header>
|
|
<template #header>
|
|
- <TableHeaderCell
|
|
|
|
- :label="col.label"
|
|
|
|
- :filter-options="flightBaggageTableFilters[col.prop]"
|
|
|
|
- :filter-values.sync="filterValues[col.prop]"
|
|
|
|
- :sortable="col.sortable"
|
|
|
|
- :sort-rule.sync="tableDataSortRules[col.prop]"
|
|
|
|
- />
|
|
|
|
|
|
+ <TableHeaderCell :label="col.label" :filter-options="flightBaggageTableFilters[col.prop]" :filter-values.sync="filterValues[col.prop]" :sortable="col.sortable" :sort-rule.sync="tableDataSortRules[col.prop]" />
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
</el-table>
|
|
</el-table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!--列设置-->
|
|
<!--列设置-->
|
|
- <Dialog
|
|
|
|
- :flag="dialogFlag"
|
|
|
|
- class="dialog-check-group"
|
|
|
|
- >
|
|
|
|
|
|
+ <Dialog :flag="dialogFlag" class="dialog-check-group">
|
|
<div class="dialog-wrapper">
|
|
<div class="dialog-wrapper">
|
|
<div class="title">列设置</div>
|
|
<div class="title">列设置</div>
|
|
<div class="content">
|
|
<div class="content">
|
|
- <el-tree
|
|
|
|
- :data="tableCols"
|
|
|
|
- :class="colsCheckClass"
|
|
|
|
- show-checkbox
|
|
|
|
- node-key="index"
|
|
|
|
- :default-expand-all="true"
|
|
|
|
- :props="{
|
|
|
|
|
|
+ <el-tree :data="tableCols" :class="colsCheckClass" show-checkbox node-key="index" :default-expand-all="true" :props="{
|
|
label: 'label',
|
|
label: 'label',
|
|
children: 'children',
|
|
children: 'children',
|
|
- }"
|
|
|
|
- :default-checked-keys="checkedKeysTemp"
|
|
|
|
- @check="handleCheck"
|
|
|
|
- />
|
|
|
|
|
|
+ }" :default-checked-keys="checkedKeysTemp" @check="handleCheck" />
|
|
</div>
|
|
</div>
|
|
<div class="foot right t30">
|
|
<div class="foot right t30">
|
|
- <el-button
|
|
|
|
- size="medium"
|
|
|
|
- class="r24"
|
|
|
|
- type="primary"
|
|
|
|
- @click="onCheck('flightBaggageTableData')"
|
|
|
|
- >确定</el-button>
|
|
|
|
- <el-button
|
|
|
|
- size="medium"
|
|
|
|
- @click="hide"
|
|
|
|
- >取消</el-button>
|
|
|
|
|
|
+ <el-button size="medium" class="r24" type="primary" @click="onCheck('flightBaggageTableData')">确定</el-button>
|
|
|
|
+ <el-button size="medium" @click="hide">取消</el-button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</Dialog>
|
|
</Dialog>
|
|
@@ -493,20 +281,20 @@ export default {
|
|
name: 'FlightView',
|
|
name: 'FlightView',
|
|
directives: {
|
|
directives: {
|
|
dragHeight: {
|
|
dragHeight: {
|
|
- inserted(el, binding, vnode) {
|
|
|
|
|
|
+ inserted (el, binding, vnode) {
|
|
const that = vnode.context
|
|
const that = vnode.context
|
|
let mousedownY
|
|
let mousedownY
|
|
let dragY
|
|
let dragY
|
|
let dragHeight
|
|
let dragHeight
|
|
const offsetTop = el.offsetParent.offsetTop
|
|
const offsetTop = el.offsetParent.offsetTop
|
|
- function mousemoveHandler(e) {
|
|
|
|
|
|
+ function mousemoveHandler (e) {
|
|
e.stopPropagation()
|
|
e.stopPropagation()
|
|
e.preventDefault()
|
|
e.preventDefault()
|
|
dragY = dragHeight + mousedownY - e.screenY
|
|
dragY = dragHeight + mousedownY - e.screenY
|
|
dragY = dragY < 0 ? 0 : dragY > offsetTop ? offsetTop : dragY
|
|
dragY = dragY < 0 ? 0 : dragY > offsetTop ? offsetTop : dragY
|
|
that.dragY = dragY
|
|
that.dragY = dragY
|
|
}
|
|
}
|
|
- function mouseupHandler(e) {
|
|
|
|
|
|
+ function mouseupHandler (e) {
|
|
e.stopPropagation()
|
|
e.stopPropagation()
|
|
e.preventDefault()
|
|
e.preventDefault()
|
|
that.dragHeight = that.dragY
|
|
that.dragHeight = that.dragY
|
|
@@ -532,7 +320,7 @@ export default {
|
|
TableHeaderCell
|
|
TableHeaderCell
|
|
},
|
|
},
|
|
mixins: [tableColsMixin, timeZoneMixin],
|
|
mixins: [tableColsMixin, timeZoneMixin],
|
|
- data() {
|
|
|
|
|
|
+ data () {
|
|
return {
|
|
return {
|
|
fullscreenLoading: false,
|
|
fullscreenLoading: false,
|
|
airlineList: [],
|
|
airlineList: [],
|
|
@@ -620,7 +408,7 @@ export default {
|
|
},
|
|
},
|
|
computed: {
|
|
computed: {
|
|
...mapGetters(['clickedCells']),
|
|
...mapGetters(['clickedCells']),
|
|
- dealedTableData() {
|
|
|
|
|
|
+ dealedTableData () {
|
|
const filtered = this.flightBaggageTableData.filter(item => {
|
|
const filtered = this.flightBaggageTableData.filter(item => {
|
|
let flag = true
|
|
let flag = true
|
|
Object.entries(this.filterValues).forEach(([key, arr]) => {
|
|
Object.entries(this.filterValues).forEach(([key, arr]) => {
|
|
@@ -643,12 +431,12 @@ export default {
|
|
)
|
|
)
|
|
return this._.orderBy(filtered, sortRules[0], sortRules[1])
|
|
return this._.orderBy(filtered, sortRules[0], sortRules[1])
|
|
},
|
|
},
|
|
- draggableStyle() {
|
|
|
|
|
|
+ draggableStyle () {
|
|
return {
|
|
return {
|
|
height: `calc(100vh - 80px - 64px - 16px - 344px + ${this.dragHeight}px)`
|
|
height: `calc(100vh - 80px - 64px - 16px - 344px + ${this.dragHeight}px)`
|
|
}
|
|
}
|
|
},
|
|
},
|
|
- dragLineStyle() {
|
|
|
|
|
|
+ dragLineStyle () {
|
|
return {
|
|
return {
|
|
transform: `translateY(${this.dragHeight - this.dragY}px)`
|
|
transform: `translateY(${this.dragHeight - this.dragY}px)`
|
|
}
|
|
}
|
|
@@ -656,7 +444,7 @@ export default {
|
|
},
|
|
},
|
|
watch: {
|
|
watch: {
|
|
$route: {
|
|
$route: {
|
|
- handler({ path, query }) {
|
|
|
|
|
|
+ handler ({ path, query }) {
|
|
if (path.includes('flightView')) {
|
|
if (path.includes('flightView')) {
|
|
const { flightNO, flightDate } = query
|
|
const { flightNO, flightDate } = query
|
|
if (flightNO && flightDate) {
|
|
if (flightNO && flightDate) {
|
|
@@ -673,7 +461,7 @@ export default {
|
|
deep: true,
|
|
deep: true,
|
|
immediate: true
|
|
immediate: true
|
|
},
|
|
},
|
|
- fullscreenLoading(val) {
|
|
|
|
|
|
+ fullscreenLoading (val) {
|
|
if (val) {
|
|
if (val) {
|
|
this.loading = this.$loading({
|
|
this.loading = this.$loading({
|
|
lock: true,
|
|
lock: true,
|
|
@@ -685,13 +473,13 @@ export default {
|
|
this.loading?.close()
|
|
this.loading?.close()
|
|
}
|
|
}
|
|
},
|
|
},
|
|
- selectedAirline(val) {
|
|
|
|
|
|
+ selectedAirline (val) {
|
|
const { flightNO, flightDate } = this.queryData
|
|
const { flightNO, flightDate } = this.queryData
|
|
const [departureAirport, landingAirport] = val.split('-')
|
|
const [departureAirport, landingAirport] = val.split('-')
|
|
this.queryAll([flightNO, flightDate, departureAirport, landingAirport])
|
|
this.queryAll([flightNO, flightDate, departureAirport, landingAirport])
|
|
}
|
|
}
|
|
},
|
|
},
|
|
- created() {
|
|
|
|
|
|
+ created () {
|
|
Object.values(this.tableCols).forEach(({ prop, filterable, sortable }) => {
|
|
Object.values(this.tableCols).forEach(({ prop, filterable, sortable }) => {
|
|
if (filterable) {
|
|
if (filterable) {
|
|
this.$set(this.flightBaggageTableFilters, prop, [])
|
|
this.$set(this.flightBaggageTableFilters, prop, [])
|
|
@@ -702,7 +490,7 @@ export default {
|
|
}
|
|
}
|
|
})
|
|
})
|
|
},
|
|
},
|
|
- activated() {
|
|
|
|
|
|
+ activated () {
|
|
this.$nextTick(() => {
|
|
this.$nextTick(() => {
|
|
this.$refs['containerTable']?.doLayout()
|
|
this.$refs['containerTable']?.doLayout()
|
|
// this.$refs['transferInBaggageTable']?.doLayout()
|
|
// this.$refs['transferInBaggageTable']?.doLayout()
|
|
@@ -710,7 +498,7 @@ export default {
|
|
this.$refs['flightBaggageTable']?.doLayout()
|
|
this.$refs['flightBaggageTable']?.doLayout()
|
|
})
|
|
})
|
|
},
|
|
},
|
|
- updated() {
|
|
|
|
|
|
+ updated () {
|
|
this.$nextTick(() => {
|
|
this.$nextTick(() => {
|
|
this.$refs['containerTable']?.doLayout()
|
|
this.$refs['containerTable']?.doLayout()
|
|
// this.$refs['transferInBaggageTable']?.doLayout()
|
|
// this.$refs['transferInBaggageTable']?.doLayout()
|
|
@@ -718,14 +506,14 @@ export default {
|
|
this.$refs['flightBaggageTable']?.doLayout()
|
|
this.$refs['flightBaggageTable']?.doLayout()
|
|
})
|
|
})
|
|
},
|
|
},
|
|
- deactivated() {
|
|
|
|
|
|
+ deactivated () {
|
|
this.loading?.close()
|
|
this.loading?.close()
|
|
},
|
|
},
|
|
- beforeDestroy() {
|
|
|
|
|
|
+ beforeDestroy () {
|
|
this.loading?.close()
|
|
this.loading?.close()
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
- rowClass({ row, rowIndex }) {
|
|
|
|
|
|
+ rowClass ({ row, rowIndex }) {
|
|
const classes = []
|
|
const classes = []
|
|
if (this.warningContainers.includes(row['containerNumber']) || row['latestStatus'] === '待翻减') {
|
|
if (this.warningContainers.includes(row['containerNumber']) || row['latestStatus'] === '待翻减') {
|
|
classes.push('row-warning')
|
|
classes.push('row-warning')
|
|
@@ -736,7 +524,7 @@ export default {
|
|
return classes.join(' ')
|
|
return classes.join(' ')
|
|
},
|
|
},
|
|
// 给表头单元格加上 ascending 或 descending 使用 element 自带的排序箭头变色
|
|
// 给表头单元格加上 ascending 或 descending 使用 element 自带的排序箭头变色
|
|
- headerCellClass({ row, column, rowIndex, columnIndex }) {
|
|
|
|
|
|
+ headerCellClass ({ row, column, rowIndex, columnIndex }) {
|
|
const classes = []
|
|
const classes = []
|
|
const rule = this.tableDataSortRules[column.property]
|
|
const rule = this.tableDataSortRules[column.property]
|
|
if (rule) {
|
|
if (rule) {
|
|
@@ -744,7 +532,7 @@ export default {
|
|
}
|
|
}
|
|
return classes.join(' ')
|
|
return classes.join(' ')
|
|
},
|
|
},
|
|
- cellClass({ row, column, rowIndex, columnIndex }) {
|
|
|
|
|
|
+ cellClass ({ row, column, rowIndex, columnIndex }) {
|
|
const classes = []
|
|
const classes = []
|
|
if (
|
|
if (
|
|
['checkInTime', 'DealInfo', 'sortLocationMark', 'loadLocationMark', 'inflLocationMark'].includes(
|
|
['checkInTime', 'DealInfo', 'sortLocationMark', 'loadLocationMark', 'inflLocationMark'].includes(
|
|
@@ -781,7 +569,7 @@ export default {
|
|
}
|
|
}
|
|
return classes.join(' ')
|
|
return classes.join(' ')
|
|
},
|
|
},
|
|
- cellClickHandler(row, column, cell, event) {
|
|
|
|
|
|
+ cellClickHandler (row, column, cell, event) {
|
|
if (
|
|
if (
|
|
[
|
|
[
|
|
'preFlightNO',
|
|
'preFlightNO',
|
|
@@ -865,11 +653,19 @@ export default {
|
|
break
|
|
break
|
|
case 'U_Device_ID':
|
|
case 'U_Device_ID':
|
|
this.$router.push({
|
|
this.$router.push({
|
|
- path: `/${this.$route.path.split('/').slice(1, -1).join('/')}/containerView`,
|
|
|
|
|
|
+ path: `/${this.$route.path.split('/').slice(1, -1).join('/')}/newContainerView`,
|
|
query: {
|
|
query: {
|
|
|
|
+ flightNO: this.queryData.flightNO,
|
|
|
|
+ flightDate: this.queryData.flightDate,
|
|
containerID: row.U_Device_ID
|
|
containerID: row.U_Device_ID
|
|
}
|
|
}
|
|
})
|
|
})
|
|
|
|
+ // this.$router.push({
|
|
|
|
+ // path: `/${this.$route.path.split('/').slice(1, -1).join('/')}/containerView`,
|
|
|
|
+ // query: {
|
|
|
|
+ // containerID: row.U_Device_ID
|
|
|
|
+ // }
|
|
|
|
+ // })
|
|
break
|
|
break
|
|
default:
|
|
default:
|
|
break
|
|
break
|
|
@@ -877,7 +673,7 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
// 合计行
|
|
// 合计行
|
|
- summaryMethod({ columns, data }) {
|
|
|
|
|
|
+ summaryMethod ({ columns, data }) {
|
|
const sums = []
|
|
const sums = []
|
|
if (columns.length > 0) {
|
|
if (columns.length > 0) {
|
|
columns.forEach((column, index) => {
|
|
columns.forEach((column, index) => {
|
|
@@ -909,12 +705,12 @@ export default {
|
|
return sums
|
|
return sums
|
|
},
|
|
},
|
|
// 统计行数
|
|
// 统计行数
|
|
- summaryRow(num) {
|
|
|
|
|
|
+ summaryRow (num) {
|
|
return function () {
|
|
return function () {
|
|
return ['合计', `共${num}件`]
|
|
return ['合计', `共${num}件`]
|
|
}
|
|
}
|
|
},
|
|
},
|
|
- containerClick(row) {
|
|
|
|
|
|
+ containerClick (row) {
|
|
if (row.containerNumber === 'FBULK') {
|
|
if (row.containerNumber === 'FBULK') {
|
|
this.$router.push({
|
|
this.$router.push({
|
|
path: '/advance',
|
|
path: '/advance',
|
|
@@ -937,21 +733,21 @@ export default {
|
|
})
|
|
})
|
|
}
|
|
}
|
|
},
|
|
},
|
|
- exportHandler(refName, tableName) {
|
|
|
|
|
|
+ exportHandler (refName, tableName) {
|
|
const table = this.$refs[refName].$el.cloneNode(true)
|
|
const table = this.$refs[refName].$el.cloneNode(true)
|
|
const fileName = `${tableName}-${this.queryData.flightNO}-${this.queryData.flightDate}.xlsx`
|
|
const fileName = `${tableName}-${this.queryData.flightNO}-${this.queryData.flightDate}.xlsx`
|
|
throttledExportToExcel(table, tableName, fileName)
|
|
throttledExportToExcel(table, tableName, fileName)
|
|
},
|
|
},
|
|
- queryflightInfo(dataContent) {
|
|
|
|
|
|
+ queryflightInfo (dataContent) {
|
|
return myQuery(DATACONTENT_ID.flightInfo, ...dataContent)
|
|
return myQuery(DATACONTENT_ID.flightInfo, ...dataContent)
|
|
},
|
|
},
|
|
- queryContainer(dataContent) {
|
|
|
|
|
|
+ queryContainer (dataContent) {
|
|
return myQuery(DATACONTENT_ID.flightContainer, ...dataContent)
|
|
return myQuery(DATACONTENT_ID.flightContainer, ...dataContent)
|
|
},
|
|
},
|
|
- queryBaggageByFlightNO(dataContent) {
|
|
|
|
|
|
+ queryBaggageByFlightNO (dataContent) {
|
|
return myQuery(DATACONTENT_ID.flightBaggage, ...dataContent)
|
|
return myQuery(DATACONTENT_ID.flightBaggage, ...dataContent)
|
|
},
|
|
},
|
|
- async queryAirline(dataContent) {
|
|
|
|
|
|
+ async queryAirline (dataContent) {
|
|
try {
|
|
try {
|
|
const listValues = await myQuery(DATACONTENT_ID.flightAirline, ...dataContent)
|
|
const listValues = await myQuery(DATACONTENT_ID.flightAirline, ...dataContent)
|
|
this.airlineList = listValues.map(({ departureAirport, landingAirport, departureBuild, landingBuild }) => ({
|
|
this.airlineList = listValues.map(({ departureAirport, landingAirport, departureBuild, landingBuild }) => ({
|
|
@@ -965,7 +761,7 @@ export default {
|
|
this.$message.error('失败')
|
|
this.$message.error('失败')
|
|
}
|
|
}
|
|
},
|
|
},
|
|
- async queryAll(dataContent) {
|
|
|
|
|
|
+ async queryAll (dataContent) {
|
|
this.fullscreenLoading = true
|
|
this.fullscreenLoading = true
|
|
this.flightInfo = {}
|
|
this.flightInfo = {}
|
|
try {
|
|
try {
|