|
@@ -187,163 +187,113 @@
|
|
|
<el-table-column label="中转行李流向">
|
|
|
<el-table-column label="D-D" v-if="DD">
|
|
|
<el-table-column
|
|
|
- prop="need_trans_flight_dd"
|
|
|
+ prop="fly_dd_need_trans"
|
|
|
label="进港中转航班数"
|
|
|
>
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
|
- prop="finish_trans_flight_dd"
|
|
|
+ prop="fly_dd_trans"
|
|
|
label="中转出航班数"
|
|
|
>
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
|
- prop="need_trans_bag_dd"
|
|
|
+ prop="bag_dd_need_trans"
|
|
|
label="须中转行李数"
|
|
|
>
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
|
- prop="finish_trans_bag_dd"
|
|
|
+ prop="bag_dd_trans"
|
|
|
label="完成中转行李数"
|
|
|
>
|
|
|
</el-table-column>
|
|
|
- <el-table-column
|
|
|
- prop="not_trans_bag_dd"
|
|
|
- label="未中转行李数"
|
|
|
- >
|
|
|
- </el-table-column>
|
|
|
- <el-table-column
|
|
|
+ <!-- <el-table-column
|
|
|
prop="Transferout_dd"
|
|
|
label="转出成功率"
|
|
|
>
|
|
|
- </el-table-column>
|
|
|
+ </el-table-column> -->
|
|
|
</el-table-column>
|
|
|
<el-table-column label="D-I" v-if="DI">
|
|
|
<el-table-column
|
|
|
- prop="need_trans_flight_di"
|
|
|
+ prop="fly_di_need_trans"
|
|
|
label="进港中转航班数"
|
|
|
>
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
|
- prop="finish_trans_flight_di"
|
|
|
+ prop="fly_di_trans"
|
|
|
label="中转出航班数"
|
|
|
>
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
|
- prop="need_trans_bag_di"
|
|
|
+ prop="bag_di_need_trans"
|
|
|
label="须中转行李数"
|
|
|
>
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
|
- prop="finish_trans_bag_di"
|
|
|
+ prop="bag_di_trans"
|
|
|
label="完成中转行李数"
|
|
|
>
|
|
|
</el-table-column>
|
|
|
- <el-table-column
|
|
|
- prop="not_trans_bag_di"
|
|
|
- label="未中转行李数"
|
|
|
- >
|
|
|
- </el-table-column>
|
|
|
- <el-table-column
|
|
|
+ <!-- <el-table-column
|
|
|
prop="Transferout_di"
|
|
|
label="转出成功率"
|
|
|
>
|
|
|
- </el-table-column>
|
|
|
+ </el-table-column> -->
|
|
|
</el-table-column>
|
|
|
<el-table-column label="I-I" v-if="II">
|
|
|
<el-table-column
|
|
|
- prop="need_trans_flight_ii"
|
|
|
+ prop="fly_ii_need_trans"
|
|
|
label="进港中转航班数"
|
|
|
>
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
|
- prop="finish_trans_flight_ii"
|
|
|
+ prop="fly_ii_trans"
|
|
|
label="中转出航班数"
|
|
|
>
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
|
- prop="need_trans_bag_ii"
|
|
|
+ prop="bag_ii_need_trans"
|
|
|
label="须中转行李数"
|
|
|
>
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
|
- prop="finish_trans_bag_ii"
|
|
|
+ prop="bag_ii_trans"
|
|
|
label="完成中转行李数"
|
|
|
>
|
|
|
</el-table-column>
|
|
|
- <el-table-column
|
|
|
- prop="not_trans_bag_ii"
|
|
|
- label="未中转行李数"
|
|
|
- >
|
|
|
- </el-table-column>
|
|
|
- <el-table-column
|
|
|
+ <!-- <el-table-column
|
|
|
prop="Transferout_ii"
|
|
|
label="转出成功率"
|
|
|
>
|
|
|
- </el-table-column>
|
|
|
+ </el-table-column> -->
|
|
|
</el-table-column>
|
|
|
<el-table-column label="I-D" v-if="ID">
|
|
|
<el-table-column
|
|
|
- prop="need_trans_flight_id"
|
|
|
+ prop="fly_id_need_trans"
|
|
|
label="进港中转航班数"
|
|
|
>
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
|
- prop="finish_trans_flight_id"
|
|
|
+ prop="fly_id_trans"
|
|
|
label="中转出航班数"
|
|
|
>
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
|
- prop="need_trans_bag_id"
|
|
|
+ prop="bag_id_need_trans"
|
|
|
label="须中转行李数"
|
|
|
>
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
|
- prop="finish_trans_bag_id"
|
|
|
+ prop="bag_id_trans"
|
|
|
label="完成中转行李数"
|
|
|
>
|
|
|
</el-table-column>
|
|
|
- <el-table-column
|
|
|
- prop="not_trans_bag_id"
|
|
|
- label="未中转行李数"
|
|
|
- >
|
|
|
- </el-table-column>
|
|
|
- <el-table-column
|
|
|
+ <!-- <el-table-column
|
|
|
prop="Transferout_id"
|
|
|
label="转出成功率"
|
|
|
>
|
|
|
- </el-table-column>
|
|
|
+ </el-table-column> -->
|
|
|
</el-table-column>
|
|
|
</el-table-column>
|
|
|
- <el-table-column
|
|
|
- prop="a14"
|
|
|
- label="中转出航班数总数"
|
|
|
- >
|
|
|
- </el-table-column>
|
|
|
- <el-table-column
|
|
|
- prop="a15"
|
|
|
- label="中转出航班数总数"
|
|
|
- >
|
|
|
- </el-table-column>
|
|
|
- <el-table-column
|
|
|
- prop="a16"
|
|
|
- label="须中转行李数总数"
|
|
|
- >
|
|
|
- </el-table-column>
|
|
|
- <el-table-column
|
|
|
- prop="a17"
|
|
|
- label="完成中转行李数总数"
|
|
|
- >
|
|
|
- </el-table-column>
|
|
|
- <el-table-column
|
|
|
- prop="a19"
|
|
|
- label="未中转行李数总数"
|
|
|
- >
|
|
|
- </el-table-column>
|
|
|
- <el-table-column
|
|
|
- prop="a18"
|
|
|
- label="转出成功率"
|
|
|
- >
|
|
|
- </el-table-column>
|
|
|
</el-table>
|
|
|
</template>
|
|
|
<template v-else-if="tableData.length && upid == 5">
|
|
@@ -1136,6 +1086,7 @@
|
|
|
import NoData from '@/components/nodata'
|
|
|
import { TempQuery } from '@/api/temp'
|
|
|
import { exportToExcel } from '@/utils/table'
|
|
|
+import { Query } from '@/api/webApi'
|
|
|
export default {
|
|
|
props: {
|
|
|
// 接口ID
|
|
@@ -1304,11 +1255,11 @@ export default {
|
|
|
sums[index];
|
|
|
}
|
|
|
if (this.upid == 4) {
|
|
|
- sums[6] = (sums[4] * 100 / (sums[3] > 0 ? sums[3] : 1)).toFixed(2) + '%'
|
|
|
- sums[12] = (sums[10] * 100 / (sums[9] > 0 ? sums[9] : 1)).toFixed(2) + '%'
|
|
|
- sums[18] = (sums[16] * 100 / (sums[15] > 0 ? sums[15] : 1)).toFixed(2) + '%'
|
|
|
- sums[24] = (sums[22] * 100 / (sums[21] > 0 ? sums[21] : 1)).toFixed(2) + '%'
|
|
|
- sums[30] = (sums[28] * 100 / (sums[27] > 0 ? sums[27] : 1)).toFixed(2) + '%'
|
|
|
+ // sums[6] = (sums[4] * 100 / (sums[3] > 0 ? sums[3] : 1)).toFixed(2) + '%'
|
|
|
+ // sums[12] = (sums[10] * 100 / (sums[9] > 0 ? sums[9] : 1)).toFixed(2) + '%'
|
|
|
+ // sums[18] = (sums[16] * 100 / (sums[15] > 0 ? sums[15] : 1)).toFixed(2) + '%'
|
|
|
+ // sums[24] = (sums[22] * 100 / (sums[21] > 0 ? sums[21] : 1)).toFixed(2) + '%'
|
|
|
+ // sums[30] = (sums[28] * 100 / (sums[27] > 0 ? sums[27] : 1)).toFixed(2) + '%'
|
|
|
}
|
|
|
if (this.upid == 5) {
|
|
|
// sums[6] = (sums[4] * 100 / sums[3]).toFixed(2) + '%'
|
|
@@ -1336,12 +1287,13 @@ export default {
|
|
|
async getQuery() {
|
|
|
try {
|
|
|
this.loading = true
|
|
|
- const { code, returnData } = await TempQuery({
|
|
|
- id: Number(this.dataId),
|
|
|
+ const { code, returnData } = await Query({
|
|
|
+ serviceId: Number(this.dataId),
|
|
|
dataContent: this.dataContent,
|
|
|
})
|
|
|
if (code == 0) {
|
|
|
- if (returnData.listValues.length === 0) {
|
|
|
+ this.tableData = returnData
|
|
|
+ if (returnData.length === 0) {
|
|
|
this.page--
|
|
|
this.noMore = true
|
|
|
this.loading = false
|
|
@@ -1399,23 +1351,23 @@ export default {
|
|
|
// res.ra_hyxbag = 0;
|
|
|
// }
|
|
|
// });
|
|
|
- this.tableData = returnData.listValues
|
|
|
+ this.tableData = returnData
|
|
|
this.tableCols = returnData.columnSet
|
|
|
this.serviceId = returnData.submitID
|
|
|
this.loading = false
|
|
|
if(this.upid == 4){
|
|
|
- this.tableData.forEach(element => {
|
|
|
- element.Transferout_dd = (element.finish_trans_bag_dd * 100 / (element.need_trans_bag_dd > 0 ? element.need_trans_bag_dd : 1)).toFixed(2) + '%'
|
|
|
- element.Transferout_di = (element.finish_trans_bag_di * 100 / (element.need_trans_bag_di > 0 ? element.need_trans_bag_di : 1)).toFixed(2) + '%'
|
|
|
- element.Transferout_ii = (element.finish_trans_bag_ii * 100 / (element.need_trans_bag_ii > 0 ? element.need_trans_bag_ii : 1)).toFixed(2) + '%'
|
|
|
- element.Transferout_id = (element.finish_trans_bag_id * 100 / (element.need_trans_bag_id > 0 ? element.need_trans_bag_id : 1)).toFixed(2) + '%'
|
|
|
- element.a14 = (this.DD ? element.need_trans_flight_dd : 0) + (this.DI ? element.need_trans_flight_di : 0) + (this.II ? element.need_trans_flight_ii : 0) + (this.ID ? element.need_trans_flight_id : 0)
|
|
|
- element.a15 = (this.DD ? element.finish_trans_flight_dd : 0) + (this.DI ? element.finish_trans_flight_di : 0) + (this.II ? element.finish_trans_flight_ii : 0) + (this.ID ? element.finish_trans_flight_id : 0)
|
|
|
- element.a16 = (this.DD ? element.need_trans_bag_dd : 0) + (this.DI ? element.need_trans_bag_di : 0) + (this.II ? element.need_trans_bag_ii : 0) + (this.ID ? element.need_trans_bag_id : 0)
|
|
|
- element.a17 = (this.DD ? element.finish_trans_bag_dd : 0) + (this.DI ? element.finish_trans_bag_di : 0) + (this.II ? element.finish_trans_bag_ii : 0) + (this.ID ? element.finish_trans_bag_id : 0)
|
|
|
- element.a19 = (this.DD ? element.not_trans_bag_dd : 0) + (this.DI ? element.not_trans_bag_di : 0) + (this.II ? element.not_trans_bag_ii : 0) + (this.ID ? element.not_trans_bag_id : 0)
|
|
|
- element.a18 = (element.a17 * 100 /( element.a16 > 0 ? element.a16 : 0)).toFixed(2) + '%'
|
|
|
- });
|
|
|
+ // this.tableData.forEach(element => {
|
|
|
+ // element.Transferout_dd = (element.finish_trans_bag_dd * 100 / (element.need_trans_bag_dd > 0 ? element.need_trans_bag_dd : 1)).toFixed(2) + '%'
|
|
|
+ // element.Transferout_di = (element.finish_trans_bag_di * 100 / (element.need_trans_bag_di > 0 ? element.need_trans_bag_di : 1)).toFixed(2) + '%'
|
|
|
+ // element.Transferout_ii = (element.finish_trans_bag_ii * 100 / (element.need_trans_bag_ii > 0 ? element.need_trans_bag_ii : 1)).toFixed(2) + '%'
|
|
|
+ // element.Transferout_id = (element.finish_trans_bag_id * 100 / (element.need_trans_bag_id > 0 ? element.need_trans_bag_id : 1)).toFixed(2) + '%'
|
|
|
+ // element.a14 = (this.DD ? element.need_trans_flight_dd : 0) + (this.DI ? element.need_trans_flight_di : 0) + (this.II ? element.need_trans_flight_ii : 0) + (this.ID ? element.need_trans_flight_id : 0)
|
|
|
+ // element.a15 = (this.DD ? element.finish_trans_flight_dd : 0) + (this.DI ? element.finish_trans_flight_di : 0) + (this.II ? element.finish_trans_flight_ii : 0) + (this.ID ? element.finish_trans_flight_id : 0)
|
|
|
+ // element.a16 = (this.DD ? element.need_trans_bag_dd : 0) + (this.DI ? element.need_trans_bag_di : 0) + (this.II ? element.need_trans_bag_ii : 0) + (this.ID ? element.need_trans_bag_id : 0)
|
|
|
+ // element.a17 = (this.DD ? element.finish_trans_bag_dd : 0) + (this.DI ? element.finish_trans_bag_di : 0) + (this.II ? element.finish_trans_bag_ii : 0) + (this.ID ? element.finish_trans_bag_id : 0)
|
|
|
+ // element.a19 = (this.DD ? element.not_trans_bag_dd : 0) + (this.DI ? element.not_trans_bag_di : 0) + (this.II ? element.not_trans_bag_ii : 0) + (this.ID ? element.not_trans_bag_id : 0)
|
|
|
+ // element.a18 = (element.a17 * 100 /( element.a16 > 0 ? element.a16 : 0)).toFixed(2) + '%'
|
|
|
+ // });
|
|
|
} else if (this.upid == 5) {
|
|
|
this.tableData.forEach(element => {
|
|
|
element.Transferout_dd_22 = (element.finish_trans_bag_dd_22 * 100 / (element.need_trans_bag_dd_22 > 0 ? element.need_trans_bag_dd_22 : 1)).toFixed(2) + '%'
|