|
@@ -106,7 +106,7 @@
|
|
|
计划到达
|
|
|
</div>
|
|
|
<div class="dashboard-content-top-center-bottom-content-head-list">
|
|
|
- 实际到达
|
|
|
+ 预计到达
|
|
|
</div>
|
|
|
<div class="dashboard-content-top-center-bottom-content-head-list">
|
|
|
机型
|
|
@@ -190,7 +190,7 @@
|
|
|
</span>
|
|
|
<template #dropdown>
|
|
|
<el-dropdown-menu>
|
|
|
- <el-dropdown-item v-for="(item,index) in specialGoodsDatas" :key="index" :command="item.specialTypeName">{{ item.specialTypeName }}</el-dropdown-item>
|
|
|
+ <el-dropdown-item v-for="item in specialGoodsDatas" :key="item.specialTypeName" :command="item.specialTypeName">{{ item.specialTypeName }}</el-dropdown-item>
|
|
|
</el-dropdown-menu>
|
|
|
</template>
|
|
|
</el-dropdown>
|
|
@@ -203,16 +203,32 @@
|
|
|
<div class="dashboard-content-top-right-item">
|
|
|
<div class="dashboard-content-top-right-item-top">
|
|
|
<div class="dashboard-content-top-right-item-top-title">
|
|
|
- 货物重量统计
|
|
|
+ 货机货量统计
|
|
|
</div>
|
|
|
- <!-- <div class="dashboard-content-top-right-item-top-time" @click="showDatePicker(showTimeMsg.TallyWeight)">
|
|
|
+ <div class="dashboard-content-top-right-item-top-time" @click="showDatePicker(showTimeMsg.TallyWeight)">
|
|
|
<el-icon color="#ffffff" size="18">
|
|
|
<Calendar />
|
|
|
</el-icon>
|
|
|
<el-icon color="#ffffff">
|
|
|
<CaretBottom />
|
|
|
</el-icon>
|
|
|
- </div> -->
|
|
|
+ </div>
|
|
|
+ <div class="dashboard-content-top-right-item-top-time">
|
|
|
+ <el-dropdown trigger="click" @command="handleWeightType">
|
|
|
+ <span class="icons">
|
|
|
+ <span class="icons-txt">{{ weightType }}</span>
|
|
|
+ <el-icon color="#ffffff">
|
|
|
+ <CaretBottom />
|
|
|
+ </el-icon>
|
|
|
+ </span>
|
|
|
+ <template #dropdown>
|
|
|
+ <el-dropdown-menu>
|
|
|
+ <el-dropdown-item command="进港">进港</el-dropdown-item>
|
|
|
+ <el-dropdown-item command="出港">出港</el-dropdown-item>
|
|
|
+ </el-dropdown-menu>
|
|
|
+ </template>
|
|
|
+ </el-dropdown>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
<div v-loading="loading8" element-loading-text="数据加载中..." element-loading-svg-view-box="-10, -10, 50, 50" element-loading-background="rgba(0,0,0, 0.3)" class="dashboard-content-top-left-item-bottom">
|
|
|
<Echarts id="ww45" :option="tallyObj" />
|
|
@@ -274,10 +290,11 @@ const airlineObj = ref<any>({});
|
|
|
const tallyObj = ref<any>({});
|
|
|
const flightNums = ref<number>(0);
|
|
|
const stockNums = ref<number>(0);
|
|
|
+const weightNums = ref<number | string>(0);
|
|
|
const specialGoods = ref<string>("分类");
|
|
|
const specialGoodsDatas = ref<any>([]);
|
|
|
const specialGoodsAll = ref<any>([]);
|
|
|
-const weightNums = ref<number | string>(0);
|
|
|
+const weightType = ref("进港")
|
|
|
const form = ref({
|
|
|
startDate: parseTime(Date.now() - 24 * 60 * 60 * 1000 * 7, "{y}-{m}-{d}"),
|
|
|
endDate: parseTime(Date.now(), "{y}-{m}-{d}"),
|
|
@@ -358,8 +375,8 @@ const pubFunc = (listValues, target, type?) => {
|
|
|
const [jobTimes, stockNums, weights] = [<any>[], <any>[], <any>[]];
|
|
|
listValues.forEach((item) => {
|
|
|
jobTimes.push(item.jobTime);
|
|
|
- stockNums.push(item.stockNum);
|
|
|
- weights.push(item.weight);
|
|
|
+ stockNums.push(Number(item.stockNum));
|
|
|
+ weights.push(Number(item.weight));
|
|
|
});
|
|
|
newObj.xAxis.data = jobTimes;
|
|
|
if (type) {
|
|
@@ -469,6 +486,7 @@ const airlineTrafficFunc = async () => {
|
|
|
listValues.forEach((item) => {
|
|
|
item.jobTime = item["IACACode"];
|
|
|
});
|
|
|
+
|
|
|
airlineTrafficObj.value = pubFunc(listValues, newObj, true);
|
|
|
}
|
|
|
loading6.value = false;
|
|
@@ -509,7 +527,8 @@ const airlineFunc = async () => {
|
|
|
const newObj: any = _.cloneDeep(airlineAbnormalBaggage.option.baseOption);
|
|
|
const newDatas = _.cloneDeep(listValues);
|
|
|
const nameDatas = _.unionBy(newDatas, "specialTypeName");
|
|
|
- const names: any = [...nameDatas];
|
|
|
+ // const names: any = [...nameDatas];
|
|
|
+ const names: any = [...nameDatas, { specialTypeName: "合计" }];
|
|
|
specialGoods.value = names[0]["specialTypeName"];
|
|
|
specialGoodsDatas.value = names;
|
|
|
specialGoodsAll.value = listValues;
|
|
@@ -529,7 +548,7 @@ const tallyWeightFunc = async () => {
|
|
|
{
|
|
|
fd1: form.value.startDate,
|
|
|
fd2: form.value.endDate,
|
|
|
- fttp: "国际进港",
|
|
|
+ fttp: `国际${weightType.value}`,
|
|
|
},
|
|
|
])) as any;
|
|
|
if (listValues && isValue(listValues)) {
|
|
@@ -545,6 +564,10 @@ const tallyWeightFunc = async () => {
|
|
|
}
|
|
|
loading8.value = false;
|
|
|
};
|
|
|
+const handleWeightType = (type: string) => {
|
|
|
+ weightType.value = type;
|
|
|
+ tallyWeightFunc();
|
|
|
+}
|
|
|
|
|
|
onMounted(() => {
|
|
|
hourlyPeakFunc();
|