chenrui  2 жил өмнө
parent
commit
0b727ca180

+ 70 - 0
src/views/statisticsCharts/components/tableformbrs.vue

@@ -81,6 +81,71 @@
           </el-table-column>
         </el-table>
       </template>
+      <template v-else-if="tableData.length && upid == 4">
+          <el-table
+          ref="userTableDatas"
+          :data="tableData"
+          style="width: 100%"
+          :show-summary="true"
+          :summary-method="getSummaries"
+        >
+          <el-table-column prop="a1" label="日期"> </el-table-column>
+          <el-table-column label="T3-T3  D-D">
+            <el-table-column prop="a2" label="中转航班数"> </el-table-column>
+            <el-table-column prop="a3" label="出港航班数"> </el-table-column>
+            <el-table-column prop="a4" label="转出"> </el-table-column>
+            <el-table-column prop="a5" label="未转出"> </el-table-column>
+            <el-table-column prop="a6" label="转出成功率"> </el-table-column>
+          </el-table-column>
+          <el-table-column label="T3-T2  D-I">
+            <el-table-column prop="a7" label="中转航班数"> </el-table-column>
+            <el-table-column prop="a8" label="出港航班数"> </el-table-column>
+            <el-table-column prop="a9" label="转出"> </el-table-column>
+            <el-table-column prop="a10" label="未转出"> </el-table-column>
+            <el-table-column prop="a11" label="转出成功率"> </el-table-column>
+          </el-table-column>
+          <el-table-column label="T3-T3  D-I">
+            <el-table-column prop="a12" label="中转航班数"> </el-table-column>
+            <el-table-column prop="a13" label="出港航班数"> </el-table-column>
+            <el-table-column prop="a14" label="转出"> </el-table-column>
+            <el-table-column prop="a15" label="未转出"> </el-table-column>
+            <el-table-column prop="a16" label="转出成功率"> </el-table-column>
+          </el-table-column>
+          <el-table-column label="T3-T2   D-D">
+            <el-table-column prop="a17" label="中转航班数"> </el-table-column>
+            <el-table-column prop="a18" label="出港航班数"> </el-table-column>
+            <el-table-column prop="a19" label="转出"> </el-table-column>
+            <el-table-column prop="a20" label="未转出"> </el-table-column>
+            <el-table-column prop="a21" label="转出成功率"> </el-table-column>
+          </el-table-column>
+          <el-table-column label="T2-T2  D-D">
+            <el-table-column prop="a22" label="中转航班数"> </el-table-column>
+            <el-table-column prop="a23" label="出港航班数"> </el-table-column>
+            <el-table-column prop="a24" label="转出"> </el-table-column>
+            <el-table-column prop="a25" label="未转出"> </el-table-column>
+            <el-table-column prop="a26" label="转出成功率"> </el-table-column>
+          </el-table-column>
+          <el-table-column label="T2-T2  D-I">
+            <el-table-column prop="a27" label="中转航班数"> </el-table-column>
+            <el-table-column prop="a28" label="出港航班数"> </el-table-column>
+            <el-table-column prop="a29" label="转出"> </el-table-column>
+            <el-table-column prop="a30" label="未转出"> </el-table-column>
+            <el-table-column prop="a31" label="转出成功率"> </el-table-column>
+          </el-table-column>
+          <el-table-column label="T2-T3  D-D">
+            <el-table-column prop="a32" label="中转航班数"> </el-table-column>
+            <el-table-column prop="a33" label="出港航班数"> </el-table-column>
+            <el-table-column prop="a34" label="转出"> </el-table-column>
+            <el-table-column prop="a35" label="未转出"> </el-table-column>
+            <el-table-column prop="a36" label="转出成功率"> </el-table-column>
+          </el-table-column>
+          <el-table-column prop="a37" label="进港中转航班数"> </el-table-column>
+          <el-table-column prop="a38" label="出港航班数"> </el-table-column>
+          <el-table-column prop="a39" label="中转总件数"> </el-table-column>
+          <el-table-column prop="a40" label="未转出总件数"> </el-table-column>
+          <el-table-column prop="a41" label="转出成功率"> </el-table-column>
+        </el-table>
+      </template>
       <template v-else>
         <NoData image-width="auto" image-height="100%" />
       </template>
@@ -267,6 +332,11 @@ export default {
         const table = this.$refs["TableDatardrfid"].$el.cloneNode(true);
         const fileName = `${tableName}.xlsx`;
         throttledExportToExcel(table, tableName, fileName);
+      } else if (this.upid == 4) {
+        let tableName = "中转专项报表";
+        const table = this.$refs["userTableDatas"].$el.cloneNode(true);
+        const fileName = `${tableName}.xlsx`;
+        throttledExportToExcel(table, tableName, fileName);
       }
     },
   },

+ 27 - 4
src/views/statisticsCharts/views/report/transitTable.vue

@@ -8,20 +8,33 @@
       with-setting
       :withSetting="false"
       @export="exportup"
+      @getFormData="getFormData"
     />
-    <Tableformcp
+    <!-- <Tableformcp
       :isloadings="isloadings"
       :rows="12"
       label-width="140px"
       :min-height="70"
       width="800px"
       tableHeight="750"
+    /> -->
+    <Tableformbrs
+      :data-id="dataId"
+      upid="4"
+      :isloadings="isloadings"
+      :data-content="dataContent"
+      :rows="12"
+      label-width="140px"
+      :min-height="70"
+      width="800px"
+      tableHeight="750"
     />
   </div>
 </template>
 <script>
 import StatisticsHeader from "../../components/statisticsHeader.vue";
-import Tableformcp from "../../components/tableformcp";
+// import Tableformcp from "../../components/tableformcp";
+import Tableformbrs from "../../components/tableformbrs";
 export default {
   name: "ReportStatistics",
   data() {
@@ -31,11 +44,13 @@ export default {
         dateTime: "",
       },
       isloadings: 1,
+      dataContent: [],
+      dataId: '1833',
       formItems: [
         {
           prop: "airport",
           inputType: "select",
-          placeholder: "航站选择",
+          placeholder: "PEK",
           filterable: true,
           clearable: true,
           // multiple: true,
@@ -56,9 +71,17 @@ export default {
   },
   components: {
     StatisticsHeader,
-    Tableformcp,
+    // Tableformcp,
+    Tableformbrs
   },
   methods: {
+    getFormData(data) {
+      this.dataContent = [];
+      this.dataContent.push(
+        data.dateTime[0] ? data.dateTime[0] : "",
+        data.dateTime[1] ? data.dateTime[1] : ""
+      );
+    },
     exportup() {
       this.isloadings = this.isloadings += 1;
     },