|
@@ -1,7 +1,7 @@
|
|
|
<!--
|
|
|
* @Author: zk
|
|
|
* @Date: 2022-01-17 10:39:22
|
|
|
- * @LastEditTime: 2022-05-12 17:36:43
|
|
|
+ * @LastEditTime: 2022-05-13 11:47:31
|
|
|
* @LastEditors: your name
|
|
|
* @Description: 离港01
|
|
|
-->
|
|
@@ -33,16 +33,15 @@
|
|
|
v-model="formData.currentAirport"
|
|
|
size="small"
|
|
|
filterable
|
|
|
- @change="airPortChange"
|
|
|
placeholder="请选择机场"
|
|
|
+ @change="airPortChange"
|
|
|
>
|
|
|
<el-option
|
|
|
v-for="(item, index) in AirportList"
|
|
|
:key="index"
|
|
|
:label="item.PlanDepartureApt"
|
|
|
:value="item.PlanDepartureApt"
|
|
|
- >
|
|
|
- </el-option>
|
|
|
+ />
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
<el-form-item prop="inboundCarrier">
|
|
@@ -151,7 +150,7 @@
|
|
|
<img
|
|
|
class="checkTime msgImg"
|
|
|
src="../../../../assets/departure/ic_time.png"
|
|
|
- />
|
|
|
+ >
|
|
|
<el-dropdown-menu
|
|
|
slot="dropdown"
|
|
|
class="time-zone"
|
|
@@ -167,7 +166,7 @@
|
|
|
class="msgImg"
|
|
|
src="../../../../assets/departure/ic_setting.png"
|
|
|
@click="show"
|
|
|
- />
|
|
|
+ >
|
|
|
</el-form-item>
|
|
|
<!-- <el-form-item>
|
|
|
<el-button
|
|
@@ -198,10 +197,10 @@
|
|
|
show-summary
|
|
|
:summary-method="summaryMethod"
|
|
|
:span-method="arraySpanMethod"
|
|
|
- @cell-click="cellClick"
|
|
|
:cell-class-name="cellClass"
|
|
|
border
|
|
|
stripe
|
|
|
+ @cell-click="cellClick"
|
|
|
>
|
|
|
<el-table-column
|
|
|
v-for="(item, index) in tableColsCopy"
|
|
@@ -430,13 +429,29 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
cellClick(row, column, cell, event) {
|
|
|
- if (column.property == 'FlightNO') {
|
|
|
- this.$router.push({ path: '/transfer/arrival/flightView', query: row })
|
|
|
- }
|
|
|
- if (column.property == 'PreFlightNO') {
|
|
|
- let row2 = this._.cloneDeep(row)
|
|
|
- row2.FlightNO = row2.PreFlightNO
|
|
|
- this.$router.push({ path: '/transfer/arrival/flightView', query: row2 })
|
|
|
+ switch (column.property) {
|
|
|
+ case 'FlightNO':
|
|
|
+ this.$router.push({ path: '/transfer/arrival/flightView', query: row })
|
|
|
+ break
|
|
|
+ case 'PreFlightNO': {
|
|
|
+ const row2 = this._.cloneDeep(row)
|
|
|
+ row2.FlightNO = row2.PreFlightNO
|
|
|
+ this.$router.push({ path: '/transfer/arrival/flightView', query: row2 })
|
|
|
+ break
|
|
|
+ }
|
|
|
+ case 'outTransferBaggageCount':
|
|
|
+ this.$router.push({
|
|
|
+ path: '/advance',
|
|
|
+ query: {
|
|
|
+ FlightNO: row.FlightNO,
|
|
|
+ transferDeparture: row.TransferFlightNO,
|
|
|
+ startDate: row.FlightDate,
|
|
|
+ endDate: row.FlightDate
|
|
|
+ }
|
|
|
+ })
|
|
|
+ break
|
|
|
+ default:
|
|
|
+ break
|
|
|
}
|
|
|
},
|
|
|
changeView() {
|
|
@@ -533,6 +548,9 @@ export default {
|
|
|
// },
|
|
|
// 获取表格数据
|
|
|
async getTableData() {
|
|
|
+ if (!this.currentAirport) {
|
|
|
+ return
|
|
|
+ }
|
|
|
let arrs1 = [this.formData.inboundCarrier.length == 0 ? '' : this.formData.inboundCarrier[0]]
|
|
|
let arrs2 = [this.formData.outgoingAirline.length == 0 ? '' : this.formData.outgoingAirline[0]]
|
|
|
let arr = [
|
|
@@ -673,7 +691,9 @@ export default {
|
|
|
'StandForDepartrue',
|
|
|
'outTransferBaggageCount',
|
|
|
'outTransferredBaggageCount',
|
|
|
- 'timeDifference'
|
|
|
+ 'timeDifference',
|
|
|
+ 'inTransferBaggageCount',
|
|
|
+ 'inTransferredBaggageCount'
|
|
|
].includes(column['property'])
|
|
|
) {
|
|
|
const _row = this.spanArr[rowIndex]
|