chenrui  1 жил өмнө
parent
commit
927401ec30

+ 78 - 0
src/views/statisticalanalysis/components/echart/tableforms.vue

@@ -1325,6 +1325,7 @@
             ></el-table-column>
             <el-table-column
               v-if="searchParams.typeName === '国内出港'"
+              class-name="cell-click"
               prop="have_part_flight_nosecurity"
               label="无安检"
               show-overflow-tooltip="tableColumnProperty.showOverflowTooltip"
@@ -1333,6 +1334,7 @@
             <el-table-column
               v-if="searchParams.typeName === '国内出港'"
               prop="have_part_flight_noresure"
+              class-name="cell-click"
               label="无交接复核"
               show-overflow-tooltip="tableColumnProperty.showOverflowTooltip"
               :align="tableColumnProperty.align"
@@ -1341,6 +1343,7 @@
             <el-table-column
               v-if="searchParams.typeName === '国际出港'"
               prop="have_part_flight_noresure"
+              class-name="cell-click"
               label="无交接复核"
               show-overflow-tooltip="tableColumnProperty.showOverflowTooltip"
               :align="tableColumnProperty.align"
@@ -1348,6 +1351,7 @@
             <el-table-column
               v-if="searchParams.typeName === '国内进港'"
               prop="have_part_flight_nounload"
+              class-name="cell-click"
               label="无卸机"
               show-overflow-tooltip="tableColumnProperty.showOverflowTooltip"
               :align="tableColumnProperty.align"
@@ -1355,6 +1359,7 @@
             <el-table-column
               v-if="searchParams.typeName === '国内进港'"
               prop="have_part_flight_noarrive"
+              class-name="cell-click"
               label="无到达"
               show-overflow-tooltip="tableColumnProperty.showOverflowTooltip"
               :align="tableColumnProperty.align"
@@ -1362,6 +1367,7 @@
             <el-table-column
               v-if="searchParams.typeName === '国内进港'"
               prop="have_part_flight_nodepotjoin"
+              class-name="cell-click"
               label="无货站交接"
               show-overflow-tooltip="tableColumnProperty.showOverflowTooltip"
               :align="tableColumnProperty.align"
@@ -1370,6 +1376,7 @@
             <el-table-column
               v-if="searchParams.typeName === '国际进港'"
               prop="have_part_flight_nounload"
+              class-name="cell-click"
               label="无卸机"
               show-overflow-tooltip="tableColumnProperty.showOverflowTooltip"
               :align="tableColumnProperty.align"
@@ -1377,6 +1384,7 @@
             <el-table-column
               v-if="searchParams.typeName === '国际进港'"
               prop="have_part_flight_nodepotjoin"
+              class-name="cell-click"
               label="无货站交接"
               show-overflow-tooltip="tableColumnProperty.showOverflowTooltip"
               :align="tableColumnProperty.align"
@@ -1502,6 +1510,7 @@
             <el-table-column
               v-if="searchParams.typeName === '国内出港'"
               prop="have_part_stock_nosecurity"
+              class-name="cell-click"
               label="无安检"
               show-overflow-tooltip="tableColumnProperty.showOverflowTooltip"
               :align="tableColumnProperty.align"
@@ -1509,6 +1518,7 @@
             <el-table-column
               v-if="searchParams.typeName === '国内出港'"
               prop="have_part_stock_noresure"
+              class-name="cell-click"
               label="无交接复核"
               show-overflow-tooltip="tableColumnProperty.showOverflowTooltip"
               :align="tableColumnProperty.align"
@@ -1517,6 +1527,7 @@
             <el-table-column
               v-if="searchParams.typeName === '国际出港'"
               prop="have_part_stock_noresure"
+              class-name="cell-click"
               label="无交接复核"
               show-overflow-tooltip="tableColumnProperty.showOverflowTooltip"
               :align="tableColumnProperty.align"
@@ -1525,6 +1536,7 @@
             <el-table-column
               v-if="searchParams.typeName === '国内进港'"
               prop="have_part_stock_noarrive"
+              class-name="cell-click"
               label="无到达"
               show-overflow-tooltip="tableColumnProperty.showOverflowTooltip"
               :align="tableColumnProperty.align"
@@ -1532,6 +1544,7 @@
             <el-table-column
               v-if="searchParams.typeName === '国内进港'"
               prop="have_part_stock_nodepotjoin"
+              class-name="cell-click"
               label="无货站交接"
               show-overflow-tooltip="tableColumnProperty.showOverflowTooltip"
               :align="tableColumnProperty.align"
@@ -1540,6 +1553,7 @@
             <el-table-column
               v-if="searchParams.typeName === '国际进港'"
               prop="have_part_stock_nodepotjoin"
+              class-name="cell-click"
               label="无货站交接"
               show-overflow-tooltip="tableColumnProperty.showOverflowTooltip"
               :align="tableColumnProperty.align"
@@ -1681,6 +1695,7 @@
               <el-table-column
                 v-if="searchParams.typeName === '国内出港'"
                 prop="have_part_flight_nosecurity"
+                class-name="cell-click"
                 label="无安检"
                 show-overflow-tooltip="tableColumnProperty.showOverflowTooltip"
                 :align="tableColumnProperty.align"
@@ -1688,6 +1703,7 @@
               <el-table-column
                 v-if="searchParams.typeName === '国内出港'"
                 prop="have_part_flight_noresure"
+                class-name="cell-click"
                 label="无交接复核"
                 show-overflow-tooltip="tableColumnProperty.showOverflowTooltip"
                 :align="tableColumnProperty.align"
@@ -1696,6 +1712,7 @@
               <el-table-column
                 v-if="searchParams.typeName === '国际出港'"
                 prop="have_part_flight_noresure"
+                class-name="cell-click"
                 label="无交接复核"
                 show-overflow-tooltip="tableColumnProperty.showOverflowTooltip"
                 :align="tableColumnProperty.align"
@@ -1703,6 +1720,7 @@
               <el-table-column
                 v-if="searchParams.typeName === '国内进港'"
                 prop="have_part_flight_nounload"
+                class-name="cell-click"
                 label="无卸机"
                 show-overflow-tooltip="tableColumnProperty.showOverflowTooltip"
                 :align="tableColumnProperty.align"
@@ -1710,6 +1728,7 @@
               <el-table-column
                 v-if="searchParams.typeName === '国内进港'"
                 prop="have_part_flight_noarrive"
+                class-name="cell-click"
                 label="无到达"
                 show-overflow-tooltip="tableColumnProperty.showOverflowTooltip"
                 :align="tableColumnProperty.align"
@@ -1717,6 +1736,7 @@
               <el-table-column
                 v-if="searchParams.typeName === '国内进港'"
                 prop="have_part_flight_nodepotjoin"
+                class-name="cell-click"
                 label="无货站交接"
                 show-overflow-tooltip="tableColumnProperty.showOverflowTooltip"
                 :align="tableColumnProperty.align"
@@ -1725,6 +1745,7 @@
               <el-table-column
                 v-if="searchParams.typeName === '国际进港'"
                 prop="have_part_flight_nounload"
+                class-name="cell-click"
                 label="无卸机"
                 show-overflow-tooltip="tableColumnProperty.showOverflowTooltip"
                 :align="tableColumnProperty.align"
@@ -1732,6 +1753,7 @@
               <el-table-column
                 v-if="searchParams.typeName === '国际进港'"
                 prop="have_part_flight_nodepotjoin"
+                class-name="cell-click"
                 label="无货站交接"
                 show-overflow-tooltip="tableColumnProperty.showOverflowTooltip"
                 :align="tableColumnProperty.align"
@@ -1874,6 +1896,7 @@
               <el-table-column
                 v-if="searchParams.typeName === '国内出港'"
                 prop="have_part_stock_nosecurity"
+                class-name="cell-click"
                 label="无安检"
                 show-overflow-tooltip="tableColumnProperty.showOverflowTooltip"
                 :align="tableColumnProperty.align"
@@ -1881,6 +1904,7 @@
               <el-table-column
                 v-if="searchParams.typeName === '国内出港'"
                 prop="have_part_stock_noresure"
+                class-name="cell-click"
                 label="无交接复核"
                 show-overflow-tooltip="tableColumnProperty.showOverflowTooltip"
                 :align="tableColumnProperty.align"
@@ -1889,6 +1913,7 @@
               <el-table-column
                 v-if="searchParams.typeName === '国际出港'"
                 prop="have_part_stock_noresure"
+                class-name="cell-click"
                 label="无交接复核"
                 show-overflow-tooltip="tableColumnProperty.showOverflowTooltip"
                 :align="tableColumnProperty.align"
@@ -1897,6 +1922,7 @@
               <el-table-column
                 v-if="searchParams.typeName === '国内进港'"
                 prop="have_part_stock_noarrive"
+                class-name="cell-click"
                 label="无到达"
                 show-overflow-tooltip="tableColumnProperty.showOverflowTooltip"
                 :align="tableColumnProperty.align"
@@ -1904,6 +1930,7 @@
               <el-table-column
                 v-if="searchParams.typeName === '国内进港'"
                 prop="have_part_stock_nodepotjoin"
+                class-name="cell-click"
                 label="无货站交接"
                 show-overflow-tooltip="tableColumnProperty.showOverflowTooltip"
                 :align="tableColumnProperty.align"
@@ -1912,6 +1939,7 @@
               <el-table-column
                 v-if="searchParams.typeName === '国际进港'"
                 prop="have_part_stock_nodepotjoin"
+                class-name="cell-click"
                 label="无货站交接"
                 show-overflow-tooltip="tableColumnProperty.showOverflowTooltip"
                 :align="tableColumnProperty.align"
@@ -1975,6 +2003,7 @@
           :header-cell-class-name="tableProps.headerCellClassName"
           :tooltip-effect="tableProps.tooltipEffect"
           :header-cell-style="{ background: '#F9FAFC' }"
+          @row-click="dellclick"
         >
           <el-table-column
             prop="flight_all_no"
@@ -2137,6 +2166,10 @@ export default {
       type: Number,
       default: "",
     },
+    copaform: {
+      type: Object,
+      default: () => {},
+    },
     searchParams: {
       type: Object,
       default: () => {},
@@ -2715,6 +2748,32 @@ export default {
           ).toFixed(2) + "%";
       }
     },
+    dellclick(row, column, cell) {
+      // console.log(row);
+      // console.log(this.copaform, "11111111");
+      let arr = {};
+      arr.fd1 = row.flight_date;
+      arr.fd2 = row.flight_date;
+      arr.flighttype = this.copaform.dataContent[0].flighttype;
+      arr.flightno = row.flight_all_no;
+      if (this.copaform.id === 52238) {
+        arr.typeName = "国内出港";
+      } else if (this.copaform.id === 52242) {
+        arr.typeName = "国际出港";
+      } else if (this.copaform.id === 52240) {
+        arr.typeName = "国内进港";
+      } else if (this.copaform.id === 52244) {
+        arr.typeName = "国际进港";
+      }
+      arr.nodeName = row.index_class
+      // arr.typeName = this.copaform.id
+      // arr.nodeName = row.flight_date;
+      // arr.fd1 = row.flight_date;
+      this.$router.push({
+        path: "/statisticalanalysis/dataException/detailWay",
+        query: arr,
+      });
+    },
     cellClick(row, column, cell) {
       if (column.className) {
         if (column.className.includes("cell-click")) {
@@ -2730,6 +2789,16 @@ export default {
               keyObj["nodeName"] = "时间倒置";
             } else if (name == "time_equal_flight") {
               keyObj["nodeName"] = "时间相同";
+            } else if (name == "have_part_flight_nosecurity") {
+              keyObj["nodeName"] = "流程节点缺失-无安检";
+            } else if (name == "have_part_flight_noresure") {
+              keyObj["nodeName"] = "流程节点缺失-无交接复核";
+            } else if (name == "have_part_flight_nounload") {
+              keyObj["nodeName"] = "流程节点缺失-无卸机";
+            } else if (name == "have_part_flight_noarrive") {
+              keyObj["nodeName"] = "流程节点缺失-无到达";
+            } else if (name == "have_part_flight_nodepotjoin") {
+              keyObj["nodeName"] = "流程节点缺失-无货站交接";
             }
             keyObj["nodeDep"] = row.second_department
               ? row.second_department
@@ -2747,10 +2816,19 @@ export default {
               keyObj["nodeName"] = "时间倒置";
             } else if (name == "time_equal_stock") {
               keyObj["nodeName"] = "时间相同";
+            } else if (name == "have_part_stock_nosecurity") {
+              keyObj["nodeName"] = "流程节点缺失-无安检";
+            } else if (name == "have_part_stock_noresure") {
+              keyObj["nodeName"] = "流程节点缺失-无交接复核";
+            } else if (name == "have_part_stock_noarrive") {
+              keyObj["nodeName"] = "流程节点缺失-无到达";
+            } else if (name == "have_part_stock_nodepotjoin") {
+              keyObj["nodeName"] = "流程节点缺失-无货站交接";
             }
             keyObj["nodeDep"] = row.second_department
               ? row.second_department
               : "全部";
+            // console.log(Object.assign(this.searchParams, keyObj));
             this.$router.push({
               path: "/statisticalanalysis/dataException/detailWay",
               query: Object.assign(this.searchParams, keyObj),

+ 31 - 1
src/views/statisticalanalysis/dataException/views/detail.vue

@@ -20,7 +20,12 @@
       class="echart"
     >
       <!-- <Echarts :id="dataid" :option="tableData" v-if="picShow == true ? true : false" /> -->
-      <Tableformbrs :tableList="tableNewList" :action="action" :set="set" />
+      <Tableformbrs
+        :tableList="tableNewList"
+        :action="action"
+        :set="set"
+        :copaform="copaform"
+      />
       <el-table
         ref="table"
         :data="tableList"
@@ -193,6 +198,26 @@ export default {
               value: "时间相同",
               label: "时间相同",
             },
+            {
+              value: "流程节点缺失-无安检",
+              label: "流程节点缺失-无安检",
+            },
+            {
+              value: "流程节点缺失-无交接复核",
+              label: "流程节点缺失-无交接复核",
+            },
+            {
+              value: "流程节点缺失-无卸机",
+              label: "流程节点缺失-无卸机",
+            },
+            {
+              value: "流程节点缺失-无到达",
+              label: "流程节点缺失-无到达",
+            },
+            {
+              value: "流程节点缺失-无货站交接",
+              label: "流程节点缺失-无货站交接",
+            },
             {
               value: "全部",
               label: "全部",
@@ -241,6 +266,7 @@ export default {
       ],
       newObj: {},
       queryParams: {},
+      copaform: {},
     };
   },
   mounted() {
@@ -398,6 +424,10 @@ export default {
       this.formData.fttpId = data.fttpId;
       this.formData.dateTime = data.dateTime;
       this.formData.fttype = data.fttype;
+      this.copaform = {
+        id: data.fttpId,
+        dataContent: option,
+      };
       this.getQuery(data.fttpId, option, null);
       let typeName = null;
       switch (data.fttpId) {

+ 12 - 1
src/views/statisticalanalysis/dataException/views/detailWay.vue

@@ -235,7 +235,15 @@ export default {
     const { query } = this.$route;
     this.queryParams = query;
     if (Object.keys(query).length) {
-      const { typeName, flighttype, fd1, fd2, nodeName, nodeDep } = query;
+      const {
+        typeName,
+        flighttype,
+        fd1,
+        fd2,
+        nodeName,
+        nodeDep,
+        flightno,
+      } = query;
       const options = this.formItems[0].options;
       const frs = options.filter((item) => item.label === typeName);
       if (frs) {
@@ -247,6 +255,9 @@ export default {
             fd2,
           },
         ];
+        if (flightno) {
+          this.formData.flightno = flightno;
+        }
         this.formData.fttpId = fttpId;
         this.formData.fttype = flighttype;
         this.formData.dateTime = [fd1, fd2];