Selaa lähdekoodia

修改节点统计配置

zhaoke 1 vuosi sitten
vanhempi
commit
9b23ec250d

+ 8 - 0
public/config.js

@@ -134,6 +134,10 @@ var NEW_DATACONTENT_ID = [
   52238,
   52239,
   52240,
+  52241,
+  52242,
+  52243,
+  52244,
   51063
 ]
 
@@ -467,12 +471,16 @@ var DATACONTENT_ID = {
   dimensionGjArrival: 52232, //数据异常统计-部门维度统计-国际进港
   dimensionGnDepartureWay: 52237, //数据异常统计-运单部门维度统计-国内离港
   dimensionGnArrivalWay: 52239, //数据异常统计-运单部门维度统计-国内进港
+  dimensionGjDepartureWay: 52241, //数据异常统计-运单部门维度统计-国际离港
+  dimensionGjArrivalWay: 52243, //数据异常统计-运单部门维度统计-国际进港
   detailGnDeparture: 52233, //数据异常统计-节点明细统计-国内离港
   detailGnArrival: 52234, //数据异常统计-节点明细统计-国内进港
   detailGjDeparture: 52235, //数据异常统计-节点明细统计-国际离港
   detailGjArrival: 52236, //数据异常统计-节点明细统计-国际进港
   detailGnDepartureWay: 52238, //数据异常统计-航班节点明细统计-国内离港
   detailGnArrivalWay: 52240, //数据异常统计-航班节点明细统计-国内进港
+  detailGjDepartureWay: 52242, //数据异常统计-航班节点明细统计-国际离港
+  detailGjArrivalWay: 52244, //数据异常统计-航班节点明细统计-国际进港
 }
 
 var SERVICE_ID = {

+ 8 - 8
src/views/statisticalanalysis/components/echart/tableforms.vue

@@ -413,19 +413,19 @@
             </el-table-column>
             <el-table-column label="数据缺失" show-overflow-tooltip="tableColumnProperty.showOverflowTooltip" :align="tableColumnProperty.align" :render-header="renderHeader">
               <el-table-column prop="havenot_allnode_flight" class-name="cell-click" label="航班数" show-overflow-tooltip="tableColumnProperty.showOverflowTooltip" :align="tableColumnProperty.align"></el-table-column>
-              <el-table-column prop="havenot_allnode_lv_flight" label="占比(%)" show-overflow-tooltip="tableColumnProperty.showOverflowTooltip" :align="tableColumnProperty.align"></el-table-column>
+              <el-table-column prop="havenot_allnode_lv" label="占比(%)" show-overflow-tooltip="tableColumnProperty.showOverflowTooltip" :align="tableColumnProperty.align"></el-table-column>
             </el-table-column>
             <el-table-column label="流程节点缺失" show-overflow-tooltip="tableColumnProperty.showOverflowTooltip" :align="tableColumnProperty.align" :render-header="renderHeader">
               <el-table-column prop="have_part_flight" class-name="cell-click" label="航班数" show-overflow-tooltip="tableColumnProperty.showOverflowTooltip" :align="tableColumnProperty.align"></el-table-column>
-              <el-table-column prop="have_part_lv_flight" label="占比(%)" show-overflow-tooltip="tableColumnProperty.showOverflowTooltip" :align="tableColumnProperty.align"></el-table-column>
+              <el-table-column prop="have_part_lv" label="占比(%)" show-overflow-tooltip="tableColumnProperty.showOverflowTooltip" :align="tableColumnProperty.align"></el-table-column>
             </el-table-column>
             <el-table-column label="时间倒置" show-overflow-tooltip="tableColumnProperty.showOverflowTooltip" :align="tableColumnProperty.align" :render-header="renderHeader">
               <el-table-column prop="time_inversion_flight" class-name="cell-click" label="航班数" show-overflow-tooltip="tableColumnProperty.showOverflowTooltip" :align="tableColumnProperty.align"></el-table-column>
-              <el-table-column prop="time_inversion_lv_flight" label="占比(%)" show-overflow-tooltip="tableColumnProperty.showOverflowTooltip" :align="tableColumnProperty.align"></el-table-column>
+              <el-table-column prop="time_inversion_lv" label="占比(%)" show-overflow-tooltip="tableColumnProperty.showOverflowTooltip" :align="tableColumnProperty.align"></el-table-column>
             </el-table-column>
             <el-table-column label="时间相同" show-overflow-tooltip="tableColumnProperty.showOverflowTooltip" :align="tableColumnProperty.align" :render-header="renderHeader">
               <el-table-column prop="time_equal_flight" class-name="cell-click" label="航班数" show-overflow-tooltip="tableColumnProperty.showOverflowTooltip" :align="tableColumnProperty.align"></el-table-column>
-              <el-table-column prop="time_equal_lv_flight" label="占比(%)" show-overflow-tooltip="tableColumnProperty.showOverflowTooltip" :align="tableColumnProperty.align"></el-table-column>
+              <el-table-column prop="time_equal_lv" label="占比(%)" show-overflow-tooltip="tableColumnProperty.showOverflowTooltip" :align="tableColumnProperty.align"></el-table-column>
             </el-table-column>
           </el-table-column>
         </el-table>
@@ -443,19 +443,19 @@
             </el-table-column>
             <el-table-column label="数据缺失" show-overflow-tooltip="tableColumnProperty.showOverflowTooltip" :align="tableColumnProperty.align" :render-header="renderHeader">
               <el-table-column prop="havenot_allnode_stock" class-name="cell-click" label="运单数" show-overflow-tooltip="tableColumnProperty.showOverflowTooltip" :align="tableColumnProperty.align"></el-table-column>
-              <el-table-column prop="havenot_allnode_lv_stock" label="占比(%)" show-overflow-tooltip="tableColumnProperty.showOverflowTooltip" :align="tableColumnProperty.align"></el-table-column>
+              <el-table-column prop="havenot_allnode_lv" label="占比(%)" show-overflow-tooltip="tableColumnProperty.showOverflowTooltip" :align="tableColumnProperty.align"></el-table-column>
             </el-table-column>
             <el-table-column label="流程节点缺失" show-overflow-tooltip="tableColumnProperty.showOverflowTooltip" :align="tableColumnProperty.align" :render-header="renderHeader">
               <el-table-column prop="have_part_stock" class-name="cell-click" label="运单数" show-overflow-tooltip="tableColumnProperty.showOverflowTooltip" :align="tableColumnProperty.align"></el-table-column>
-              <el-table-column prop="have_part_lv_stock" label="占比(%)" show-overflow-tooltip="tableColumnProperty.showOverflowTooltip" :align="tableColumnProperty.align"></el-table-column>
+              <el-table-column prop="have_part_lv" label="占比(%)" show-overflow-tooltip="tableColumnProperty.showOverflowTooltip" :align="tableColumnProperty.align"></el-table-column>
             </el-table-column>
             <el-table-column label="时间倒置" show-overflow-tooltip="tableColumnProperty.showOverflowTooltip" :align="tableColumnProperty.align" :render-header="renderHeader">
               <el-table-column prop="time_inversion_stock" class-name="cell-click" label="运单数" show-overflow-tooltip="tableColumnProperty.showOverflowTooltip" :align="tableColumnProperty.align"></el-table-column>
-              <el-table-column prop="time_inversion_lv_stock" label="占比(%)" show-overflow-tooltip="tableColumnProperty.showOverflowTooltip" :align="tableColumnProperty.align"></el-table-column>
+              <el-table-column prop="time_inversion_lv" label="占比(%)" show-overflow-tooltip="tableColumnProperty.showOverflowTooltip" :align="tableColumnProperty.align"></el-table-column>
             </el-table-column>
             <el-table-column label="时间相同" show-overflow-tooltip="tableColumnProperty.showOverflowTooltip" :align="tableColumnProperty.align" :render-header="renderHeader">
               <el-table-column prop="time_equal_stock" class-name="cell-click" label="运单数" show-overflow-tooltip="tableColumnProperty.showOverflowTooltip" :align="tableColumnProperty.align"></el-table-column>
-              <el-table-column prop="time_equal_lv_stock" label="占比(%)" show-overflow-tooltip="tableColumnProperty.showOverflowTooltip" :align="tableColumnProperty.align"></el-table-column>
+              <el-table-column prop="time_equal_lv" label="占比(%)" show-overflow-tooltip="tableColumnProperty.showOverflowTooltip" :align="tableColumnProperty.align"></el-table-column>
             </el-table-column>
           </el-table-column>
         </el-table>

+ 3 - 3
src/views/statisticalanalysis/dataException/views/detail.vue

@@ -107,7 +107,7 @@ export default {
               label: "国内出港",
             },
             {
-              value: DATACONTENT_ID.detailGjDeparture,
+              value: DATACONTENT_ID.detailGjDepartureWay,
               label: "国际出港",
             },
             {
@@ -337,10 +337,10 @@ export default {
         case 52240:
           typeName = '国内进港'
           break;
-        case 52235:
+        case 52242:
           typeName = '国际出港'
           break;
-        case 52236:
+        case 52244:
           typeName = '国际进港'
           break;
         default:

+ 10 - 0
src/views/statisticalanalysis/dataException/views/dimension.vue

@@ -222,6 +222,16 @@ export default {
           }
           copyDatas.forEach(item => {
             item.typeName = typeName
+            for (const key in item) {
+              if (Object.hasOwnProperty.call(item, key)) {
+                const element = item[key];
+                if (key.includes('lv') && !element) {
+                  item[key] = 0.00
+                } else if (!key.includes('lv') && !element) {
+                  item[key] = 0
+                }
+              }
+            }
           });
           this.tableList = copyDatas;
           this.tableListcop = copyDatas;

+ 16 - 6
src/views/statisticalanalysis/dataException/views/dimensionWay.vue

@@ -81,7 +81,7 @@ export default {
               label: "国内出港",
             },
             {
-              value: DATACONTENT_ID.dimensionGjDeparture,
+              value: DATACONTENT_ID.dimensionGjDepartureWay,
               label: "国际出港",
             },
             {
@@ -89,7 +89,7 @@ export default {
               label: "国内进港",
             },
             {
-              value: DATACONTENT_ID.dimensionGjArrival,
+              value: DATACONTENT_ID.dimensionGjArrivalWay,
               label: "国际进港",
             },
           ],
@@ -164,16 +164,16 @@ export default {
       ];
       let typeName = null
       switch (data.fttp) {
-        case 52229:
+        case 52237:
           typeName = '国内出港'
           break;
-        case 52230:
+        case 52239:
           typeName = '国内进港'
           break;
-        case 52231:
+        case 52241:
           typeName = '国际出港'
           break;
-        case 52232:
+        case 52243:
           typeName = '国际进港'
           break;
         default:
@@ -222,6 +222,16 @@ export default {
           }
           copyDatas.forEach(item => {
             item.typeName = typeName
+            for (const key in item) {
+              if (Object.hasOwnProperty.call(item, key)) {
+                const element = item[key];
+                if (key.includes('lv') && !element) {
+                  item[key] = 0.00
+                } else if (!key.includes('lv') && !element) {
+                  item[key] = 0
+                }
+              }
+            }
           });
           this.tableList = copyDatas;
           this.tableListcop = copyDatas;

+ 12 - 0
src/views/statisticalanalysis/dataException/views/flight.vue

@@ -192,6 +192,18 @@ export default {
           this.tableData.time = [];
           this.tableData.data1 = [];
           this.tableData.data2 = [];
+          returnData.forEach(item => {
+            for (const key in item) {
+              if (Object.hasOwnProperty.call(item, key)) {
+                const element = item[key];
+                if (key.includes('lv') && !element) {
+                  item[key] = 0.00
+                } else if (!key.includes('lv') && !element) {
+                  item[key] = 0
+                }
+              }
+            }
+          })
           this.tableList = _.cloneDeep(returnData);
           this.tableListcop = _.cloneDeep(returnData);
           this.loading = false

+ 12 - 0
src/views/statisticalanalysis/dataException/views/waybill.vue

@@ -199,6 +199,18 @@ export default {
           this.tableData.time = [];
           this.tableData.data1 = [];
           this.tableData.data2 = [];
+          returnData.forEach(item => {
+            for (const key in item) {
+              if (Object.hasOwnProperty.call(item, key)) {
+                const element = item[key];
+                if (key.includes('lv') && !element) {
+                  item[key] = 0.00
+                } else if (!key.includes('lv') && !element) {
+                  item[key] = 0
+                }
+              }
+            }
+          })
           this.tableList = _.cloneDeep(returnData);
           this.tableListcop = _.cloneDeep(returnData);
           this.loading = false