2
0

2 Коммитууд dc6dda34e3 ... a4987d9b7b

Эзэн SHA1 Мессеж Огноо
  chenrui  a4987d9b7b Merge branch 'master' of http://120.26.64.82:10880/BFFE/CA3.0 1 жил өмнө
  chenrui  c967b09577 11111 1 жил өмнө

+ 2 - 0
public/config.js

@@ -169,6 +169,8 @@ window.SERVICE_ID = {
   transferBaggageDirection: 1851, // 中转行李四个流向
   transferBaggageDirectionDetails: 1852, // 中转行李流向明细
   baggageServicePercentage: 1853, // 行李全流程服务水平百分比
+  workerqueryAll: 200502,//工作者查询
+  workloadTableID: 200501,//工作量统计
 
   /***-----速运行李------***/
   expressTransportationUpload: 20034, // 速运行李数据上传

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

@@ -409,6 +409,17 @@ const statisticsChartsRoutes = {
                 roles: ['scanning_node_and_location_analysis'],
               },
             },
+            {
+              path: 'WorkloadTable',
+              name: 'WorkloadTable',
+              hidden: true,
+              component: () =>
+                import('@/views/statisticsCharts/views/report/workloadTable'),
+              meta: {
+                title: '工作量统计',
+                roles: ['scanning_node_and_location_analysis'],
+              },
+            },
           ],
         },
         {

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

@@ -213,6 +213,10 @@ export default {
               path: 'Percentageofbaggage',
               title: '行李全流程服务水平百分比',
             },
+            {
+              path: 'WorkloadTable',
+              title: '工作量统计',
+            },
           ],
         },
         {

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

@@ -1123,6 +1123,45 @@
           </el-table-column>
         </el-table>
       </template>
+      <template v-else-if="tableData.length && upid == 9">
+        <el-table
+          :data="tableData"
+          style="width: 100%"
+          :show-summary="true"
+          ref="userTableDataelt"
+        >
+        <el-table-column
+            prop="time"
+            label="日期"
+          >
+          </el-table-column>
+          <el-table-column
+            prop="bpm"
+            label="航班号"
+          >
+          </el-table-column>
+          <el-table-column
+            prop="bsm"
+            label="机号"
+          >
+          </el-table-column>
+          <el-table-column
+            prop="lv"
+            label="机位"
+          >
+          </el-table-column>
+          <el-table-column
+            prop="lv"
+            label="员工号"
+          >
+          </el-table-column>
+          <el-table-column
+            prop="lv"
+            label="行李件类"
+          >
+          </el-table-column>
+        </el-table>
+      </template>
       <template v-else>
         <NoData
           image-width="auto"

+ 114 - 0
src/views/statisticsCharts/views/report/workloadTable.vue

@@ -0,0 +1,114 @@
+<template>
+  <!-- 工作量统计 -->
+  <div class="statstics-wrapper">
+    <StatisticsHeader
+      title="工作量统计"
+      :items="formItems"
+      :data="formData"
+      with-setting
+      :withSetting="false"
+      @getFormData="getFormData"
+      @export="exportup"
+    />
+    <Tableformbrs
+      upid="9"
+      :data-id="dataId"
+      :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 Tableformbrs from '../../components/tableformbrs'
+import { Format } from '@/utils/validate'
+export default {
+  name: 'ReportStatistics',
+  data() {
+    return {
+      formData: {
+        agentNumber: '',
+        dateTime: [],
+        td: '',
+      },
+      formItems: [
+        {
+          prop: 'agentNumber',
+          inputType: 'select',
+          placeholder: '工作人员',
+          filterable: true,
+          clearable: true,
+          // multiple: true,
+          // disabled: true,
+          queryId: SERVICE_ID.workerqueryAll,
+          setKey: 'a2',
+          options: [],
+        },
+        {
+          prop: 'td',
+          inputType: 'select',
+          placeholder: '时间维度',
+          requiredWarning: '请先选择统计时间维度',
+          clearable: true,
+          options: [
+            {
+              value: '日',
+              label: '按日统计',
+            },
+            {
+              value: '月',
+              label: '按月统计',
+            },
+            {
+              value: '年',
+              label: '按年统计',
+            },
+          ],
+        },
+        {
+          prop: 'dateTime',
+          inputType: 'datePicker',
+          clearable: true,
+          width: '240px',
+          options: [],
+        },
+      ],
+      dataId: SERVICE_ID.workloadTableID,
+      dataContent: [],
+      isloadings: 1,
+    }
+  },
+  components: {
+    StatisticsHeader,
+    Tableformbrs,
+  },
+  mounted() {
+    this.dataContent = [
+      '日',
+      '',
+      Format('yyyy-MM-dd', new Date()),
+      Format('yyyy-MM-dd', new Date()),
+    ]
+  },
+  methods: {
+    getFormData(data) {
+      this.dataContent = []
+      this.dataContent.push(
+        data.agentNumber,
+        data.td,
+        data.dateTime[0] ? data.dateTime[0] : '',
+        data.dateTime[1] ? data.dateTime[1] : ''
+      )
+    },
+    exportup() {
+      this.isloadings = this.isloadings += 1
+    },
+  },
+}
+</script>
+<style lang="scss" scoped></style>