|
@@ -20,6 +20,7 @@
|
|
|
:withSetting="false"
|
|
|
:withExport="true"
|
|
|
:set="set"
|
|
|
+ :action="action"
|
|
|
@getFormData="getFormData"
|
|
|
@export="tableToExcel"
|
|
|
@upset="upset"
|
|
@@ -227,6 +228,7 @@ export default {
|
|
|
methods: {
|
|
|
up(index) {
|
|
|
this.action = index;
|
|
|
+ this.picShow = true;
|
|
|
if (index === 0) {
|
|
|
this.eledata = 0;
|
|
|
this.dataid = "collection_ecahrt0";
|
|
@@ -404,7 +406,7 @@ export default {
|
|
|
data.dateTime[0] +
|
|
|
"--" +
|
|
|
data.dateTime[1];
|
|
|
- this.listHeader = ["序号", "时间", "重量", "环比(%)"];
|
|
|
+ this.listHeader = ["序号", "时间", "重量(吨)", "环比(%)"];
|
|
|
} else if (this.action === 1) {
|
|
|
this.listname =
|
|
|
"航班量统计" +
|
|
@@ -414,7 +416,7 @@ export default {
|
|
|
data.dateTime[0] +
|
|
|
"--" +
|
|
|
data.dateTime[1];
|
|
|
- this.listHeader = ["序号", "时间", "重量", "环比(%)"];
|
|
|
+ this.listHeader = ["序号", "时间", "重量(吨)", "环比(%)"];
|
|
|
} else if (this.action === 2) {
|
|
|
this.listname =
|
|
|
"特货统计" +
|
|
@@ -425,11 +427,23 @@ export default {
|
|
|
data.dateTime[0] +
|
|
|
"--" +
|
|
|
data.dateTime[1];
|
|
|
- if (data.set == 1) {
|
|
|
- this.listHeader = ["序号", "时间", "单", "环比(%)"];
|
|
|
- } else if (data.set == 2) {
|
|
|
- this.listHeader = ["序号", "时间", "重量", "环比(%)"];
|
|
|
- }
|
|
|
+ // if (this.picShow == true) {
|
|
|
+ // if (data.set == 1) {
|
|
|
+ // this.listHeader = ["序号", "时间", "单", "环比(%)"];
|
|
|
+ // } else if (data.set == 2) {
|
|
|
+ // this.listHeader = ["序号", "时间", "重量", "环比(%)"];
|
|
|
+ // }
|
|
|
+ // } else {
|
|
|
+ // this.listHeader = ["序号", "时间", "单", "重量", "环比(%)"];
|
|
|
+ // }
|
|
|
+ this.listHeader = [
|
|
|
+ "序号",
|
|
|
+ "时间",
|
|
|
+ "运单数(单)",
|
|
|
+ "环比(%)",
|
|
|
+ "重量(吨)",
|
|
|
+ "环比(%)",
|
|
|
+ ];
|
|
|
} else if (this.action === 3) {
|
|
|
this.listname =
|
|
|
"货量统计" +
|
|
@@ -439,7 +453,7 @@ export default {
|
|
|
data.dateTime[0] +
|
|
|
"--" +
|
|
|
data.dateTime[1];
|
|
|
- this.listHeader = ["序号", "时间", "重量", "环比(%)"];
|
|
|
+ this.listHeader = ["序号", "时间", "重量(吨)", "环比(%)"];
|
|
|
} else if (this.action === 4) {
|
|
|
this.listname =
|
|
|
"拉货统计" +
|
|
@@ -449,11 +463,30 @@ export default {
|
|
|
data.dateTime[0] +
|
|
|
"--" +
|
|
|
data.dateTime[1];
|
|
|
- if (data.set == 1) {
|
|
|
- this.listHeader = ["序号", "时间", "班", "环比(%)"];
|
|
|
- } else if (data.set == 2) {
|
|
|
- this.listHeader = ["序号", "时间", "重量", "环比(%)"];
|
|
|
- }
|
|
|
+ // if (this.picShow == true) {
|
|
|
+ // if (data.set == 1) {
|
|
|
+ // this.listHeader = ["序号", "时间", "班", "环比(%)"];
|
|
|
+ // } else if (data.set == 2) {
|
|
|
+ // this.listHeader = ["序号", "时间", "重量", "环比(%)"];
|
|
|
+ // }
|
|
|
+ // } else {
|
|
|
+ // this.listHeader = [
|
|
|
+ // "序号",
|
|
|
+ // "时间",
|
|
|
+ // "班",
|
|
|
+ // "环比(%)",
|
|
|
+ // "重量",
|
|
|
+ // "环比(%)",
|
|
|
+ // ];
|
|
|
+ // }
|
|
|
+ this.listHeader = [
|
|
|
+ "序号",
|
|
|
+ "时间",
|
|
|
+ "航班量(班)",
|
|
|
+ "环比(%)",
|
|
|
+ "重量(吨)",
|
|
|
+ "环比(%)",
|
|
|
+ ];
|
|
|
}
|
|
|
},
|
|
|
//获取表格数据
|
|
@@ -485,38 +518,37 @@ export default {
|
|
|
};
|
|
|
this.tableListcop.push(objar);
|
|
|
} else if (this.action === 2) {
|
|
|
- if (dat == 1) {
|
|
|
- let objar = {
|
|
|
- indexs: "合计",
|
|
|
- flightNum: returnData.listValues[0].totalFlightNum,
|
|
|
- };
|
|
|
- this.tableListcop.push(objar);
|
|
|
- } else if (dat == 2) {
|
|
|
- let objar = {
|
|
|
- indexs: "合计",
|
|
|
- weight: returnData.listValues[0].totalWeight,
|
|
|
- };
|
|
|
- this.tableListcop.push(objar);
|
|
|
- }
|
|
|
+ let objar = {
|
|
|
+ indexs: "合计",
|
|
|
+ flightNum: returnData.listValues[0].totalFlightNum,
|
|
|
+ weight: returnData.listValues[0].totalWeight,
|
|
|
+ };
|
|
|
+ this.tableListcop.push(objar);
|
|
|
} else if (this.action === 3) {
|
|
|
let objar = {
|
|
|
indexs: "合计",
|
|
|
weight: returnData.listValues[0].totalWeight,
|
|
|
};
|
|
|
} else if (this.action === 4) {
|
|
|
- if (dat == 1) {
|
|
|
- let objar = {
|
|
|
- indexs: "合计",
|
|
|
- pullFlightNum: returnData.listValues[0].totalPullFlightNum,
|
|
|
- };
|
|
|
- this.tableListcop.push(objar);
|
|
|
- } else if (dat == 2) {
|
|
|
- let objar = {
|
|
|
- indexs: "合计",
|
|
|
- pullWeight: returnData.listValues[0].totalPullWeight,
|
|
|
- };
|
|
|
- this.tableListcop.push(objar);
|
|
|
- }
|
|
|
+ // if (dat == 1) {
|
|
|
+ // let objar = {
|
|
|
+ // indexs: "合计",
|
|
|
+ // pullFlightNum: returnData.listValues[0].totalPullFlightNum,
|
|
|
+ // };
|
|
|
+ // this.tableListcop.push(objar);
|
|
|
+ // } else if (dat == 2) {
|
|
|
+ // let objar = {
|
|
|
+ // indexs: "合计",
|
|
|
+ // pullWeight: returnData.listValues[0].totalPullWeight,
|
|
|
+ // };
|
|
|
+ // this.tableListcop.push(objar);
|
|
|
+ // }
|
|
|
+ let objar = {
|
|
|
+ indexs: "合计",
|
|
|
+ pullFlightNum: returnData.listValues[0].totalPullFlightNum,
|
|
|
+ pullWeight: returnData.listValues[0].totalPullWeight,
|
|
|
+ };
|
|
|
+ this.tableListcop.push(objar);
|
|
|
}
|
|
|
returnData.listValues.forEach((element) => {
|
|
|
if (this.action === 0) {
|
|
@@ -605,24 +637,51 @@ export default {
|
|
|
} else if (this.action === 1) {
|
|
|
return [item.indexs, item.dat, item.flightNum, item.weightChain];
|
|
|
} else if (this.action === 2) {
|
|
|
- if (this.set == 1) {
|
|
|
- return [item.indexs, item.dat, item.flightNum, item.weightChain];
|
|
|
- } else if (this.set == 2) {
|
|
|
- return [item.indexs, item.dat, item.weight, item.weightChain];
|
|
|
- }
|
|
|
+ return [
|
|
|
+ item.indexs,
|
|
|
+ item.dat,
|
|
|
+ item.flightNum,
|
|
|
+ item.flightChain,
|
|
|
+ item.weight,
|
|
|
+ item.weightChain,
|
|
|
+ ];
|
|
|
} else if (this.action === 3) {
|
|
|
return [item.indexs, item.fdt, item.weight, item.weightChain];
|
|
|
} else if (this.action === 4) {
|
|
|
- if (this.set == 1) {
|
|
|
- return [
|
|
|
- item.indexs,
|
|
|
- item.dat,
|
|
|
- item.pullFlightNum,
|
|
|
- item.flightChain,
|
|
|
- ];
|
|
|
- } else if (this.set == 2) {
|
|
|
- return [item.indexs, item.dat, item.pullWeight, item.weightChain];
|
|
|
- }
|
|
|
+ // if (this.picShow == true) {
|
|
|
+ // if (this.set == 1) {
|
|
|
+ // return [
|
|
|
+ // item.indexs,
|
|
|
+ // item.dat,
|
|
|
+ // item.pullFlightNum,
|
|
|
+ // item.flightChain,
|
|
|
+ // ];
|
|
|
+ // } else if (this.set == 2) {
|
|
|
+ // return [
|
|
|
+ // item.indexs,
|
|
|
+ // item.dat,
|
|
|
+ // item.pullWeight,
|
|
|
+ // item.weightChain,
|
|
|
+ // ];
|
|
|
+ // }
|
|
|
+ // } else {
|
|
|
+ // return [
|
|
|
+ // item.indexs,
|
|
|
+ // item.dat,
|
|
|
+ // item.pullFlightNum,
|
|
|
+ // item.flightChain,
|
|
|
+ // item.pullWeight,
|
|
|
+ // item.weightChain,
|
|
|
+ // ];
|
|
|
+ // }
|
|
|
+ return [
|
|
|
+ item.indexs,
|
|
|
+ item.dat,
|
|
|
+ item.pullFlightNum,
|
|
|
+ item.flightChain,
|
|
|
+ item.pullWeight,
|
|
|
+ item.weightChain,
|
|
|
+ ];
|
|
|
}
|
|
|
});
|
|
|
data[data.length - 1].indexs = "总计";
|