浏览代码

添加非正常行李统计

zhaoke 8 月之前
父节点
当前提交
c0ee066a51

+ 1 - 0
public/config.js

@@ -170,6 +170,7 @@ window.SERVICE_ID = {
   flightClassificationByTerminal: 200313, // 航班分类统计-航站楼
 
   baggageCheckNew: 200317, //旅客分类统计-行李值机方式统计
+  baggageAbnormalNew: 200318, //旅客分类统计-非正常行李统计
 
   /***-----统计表格------***/
   transferBaggageProption: 1848, //中转行李比例明细

+ 10 - 0
src/router/routes/routes-file-temp.js

@@ -243,6 +243,16 @@ const statisticsChartsRoutes = {
                 ),
               meta: { title: '行李值机方式统计' },
             },
+            {
+              path: 'abnormalDtBaggage',
+              name: 'AbnormalBaggageDtCharts',
+              hidden: true,
+              component: () =>
+                import(
+                  '@/views/statisticsCharts/views/passengerClassification/abnormalBaggageCharts'
+                ),
+              meta: { title: '非正常行李统计' },
+            },
           ],
         },
         {

+ 8 - 4
src/views/statisticsCharts/components/commonBarStatisticsCharts.vue

@@ -258,7 +258,7 @@ export default {
     },
     async getNewChartsData (paramsObj) {
       const params = {
-        serviceId: SERVICE_ID.baggageCheckNew,
+        serviceId: this.chartsKey == 'CheckInBaggageCharts' ? SERVICE_ID.baggageCheckNew : SERVICE_ID.baggageAbnormalNew,
         dataContent: { ...paramsObj },
         event: '0'
       }
@@ -267,7 +267,7 @@ export default {
     },
     getFormData (formData) {
       this.resetDatas()
-      if (this.chartsKey == 'CheckInBaggageCharts') {
+      if (this.chartsKey == 'CheckInBaggageCharts' || this.chartsKey == 'AbnormalBaggageDtCharts') {
         const { range, interval, airport, airline, dateTime, passengerType, inOrOut, area, terminal } = formData
         const params = {
           scope: range,
@@ -275,8 +275,12 @@ export default {
           location: airport || airline || terminal || area,
           td: interval,
           fd1: dateTime[0],
-          fd2: dateTime[1],
-          checktype: passengerType[0]
+          fd2: dateTime[1]
+        }
+        if (this.chartsKey == 'CheckInBaggageCharts') {
+          params.checktype = passengerType[0]
+        } else {
+          params.abnormalState = passengerType[0]
         }
         if (Array.isArray(params.location)) {
           params.location = params.location.join(',')

+ 4 - 0
src/views/statisticsCharts/components/statisticsTabs.vue

@@ -116,6 +116,10 @@ export default {
               path: 'checkInBaggage',
               title: '行李值机方式统计',
             },
+            {
+              path: 'abnormalDtBaggage',
+              title: '非正常行李统计',
+            },
           ],
         },
         {

+ 31 - 0
src/views/statisticsCharts/mixins/abnormalType.js

@@ -0,0 +1,31 @@
+export default {
+  created () {
+    if (!this.customFormItems) {
+      this.customFormItems = []
+    }
+    this.customFormItems.push({
+      prop: 'passengerType',
+      inputType: 'cascader',
+      placeholder: '非正常类型',
+      requiredWarning: '请先选择非正常类型',
+      clearable: true,
+      options: [
+        {
+          value: 'OND',
+          label: 'OND'
+        },
+        {
+          value: 'ONA',
+          label: 'ONA'
+        },
+        {
+          value: 'OFF',
+          label: 'OFF'
+        }
+      ],
+      props: {
+        expandTrigger: 'hover'
+      }
+    })
+  }
+}

+ 27 - 0
src/views/statisticsCharts/views/passengerClassification/abnormalBaggageCharts.vue

@@ -0,0 +1,27 @@
+<template>
+  <CommonBarStatisticsCharts charts-title="非正常行李统计" charts-key="AbnormalBaggageDtCharts" :query-settings="querySettings" :custom-form-items="customFormItems" />
+</template>
+
+<script>
+import CommonBarStatisticsCharts from '../../components/commonBarStatisticsCharts.vue'
+import noTerminal from '../../mixins/noTerminal'
+import checkType from '../../mixins/abnormalType'
+
+export default {
+  name: 'AbnormalBaggageDtCharts',
+  components: { CommonBarStatisticsCharts },
+  mixins: [noTerminal, checkType],
+  data () {
+    return {
+      querySettings: {
+        byArea: SERVICE_ID.passengerNormalClassificationByArea,
+        byOther: SERVICE_ID.passengerNormalClassificationByOther,
+        importantByArea: SERVICE_ID.passengerImportantClassificationByArea,
+        importantByOther: SERVICE_ID.passengerImportantClassificationByOther,
+        seriesKey: 'bagsnum'
+      }
+    }
+  }
+}
+</script>
+