瀏覽代碼

feat: 提报汇总

wangzs 3 月之前
父節點
當前提交
b6de8b8b5f
共有 2 個文件被更改,包括 104 次插入0 次删除
  1. 12 0
      package-lock.json
  2. 92 0
      src/views/project/report-manage/report-summary/index.vue

+ 12 - 0
package-lock.json

@@ -45,6 +45,7 @@
         "jslint": "^0.12.1",
         "lodash": "^4.17.21",
         "lunar-javascript": "1.6.12",
+        "marked": "^15.0.7",
         "mitt": "3.0.1",
         "moment": "^2.30.1",
         "monaco-editor": "^0.33.0",
@@ -6133,6 +6134,17 @@
         "url": "https://github.com/sponsors/sindresorhus"
       }
     },
+    "node_modules/marked": {
+      "version": "15.0.12",
+      "resolved": "https://registry.npmjs.org/marked/-/marked-15.0.12.tgz",
+      "integrity": "sha512-8dD6FusOQSrpv9Z1rdNMdlSgQOIP880DHqnohobOmYLElGEqAL/JvxvuxZO16r4HtjTlfPRDC1hbvxC9dPN2nA==",
+      "bin": {
+        "marked": "bin/marked.js"
+      },
+      "engines": {
+        "node": ">= 18"
+      }
+    },
     "node_modules/material-colors": {
       "version": "1.2.6",
       "resolved": "https://registry.npmmirror.com/material-colors/-/material-colors-1.2.6.tgz",

+ 92 - 0
src/views/project/report-manage/report-summary/index.vue

@@ -0,0 +1,92 @@
+<template>
+  <CommonTable ref="commonTableRef" :tableOptions="tableConfig"> </CommonTable>
+</template>
+
+<script setup lang="jsx">
+  import { ref } from 'vue';
+  import { useRouter } from 'vue-router';
+  import { TABLE_ID_CONST } from '/@/constants/support/table-id-const';
+  import useDict from '/@/utils/dict-util';
+  await useDict.init(['MATE_DELIVERY_STATUS']);
+
+  const commonTableRef = ref(null);
+  const tableConfig = ref({
+    url: '/supports/delivery/day/report/summary/list',
+    // 设置网络请求方式为GET
+    requestMethod: 'GET',
+    tableId: TABLE_ID_CONST.TEAMWORK.PROJECT_MANAGE.Task_LIST,
+    tableAttrs: {},
+    showIndexColumn: true,
+    search: [
+      {
+        label: '提报日期',
+        field: 'submitDate',
+        type: 'date',
+      },
+    ],
+    columns: [
+      {
+        title: '提报日期',
+        dataIndex: 'submitDate',
+        align: 'center',
+        width: '90px',
+      },
+      {
+        title: '总工时',
+        dataIndex: 'totalWorkDays',
+        align: 'center',
+        width: '90px',
+      },
+      {
+        title: '任务类工时',
+        dataIndex: 'normalSubmitDays',
+        align: 'center',
+        width: '130px',
+      },
+      {
+        title: '非任务类工时',
+        dataIndex: 'abnormalSubmitDays',
+        align: 'center',
+        width: '130px',
+      },
+      {
+        title: '驻场人数',
+        dataIndex: 'siteCount',
+        align: 'center',
+        width: '170px',
+      },
+      {
+        title: '提报人数',
+        dataIndex: 'submitCount',
+        align: 'center',
+        width: '170px',
+      },
+      {
+        title: '需提报人数 ',
+        dataIndex: 'requireSubmitCount',
+        align: 'center',
+        width: '170px',
+      },
+    ],
+    beforeFetch({ params }) {
+      return {
+        ...params,
+      };
+    },
+    // afterFetch({ data }) {},
+  });
+</script>
+
+<style lang="less" scoped>
+  ::v-deep .ant-float-btn-description {
+    font-size: 18px !important;
+  }
+  :deep(.ant-progress-inner) {
+    width: 27px !important;
+    height: 27px !important;
+    font-size: 11px !important;
+  }
+  :deep(.ant-table-column[data-key='index']) {
+    width: 60px !important;
+  }
+</style>