Ver código fonte

新增审核记录

yuanmingze 5 meses atrás
pai
commit
99ddc181e2

+ 9 - 0
src/api/serviceManagement/servicesToBeReviewed/index.js

@@ -95,3 +95,12 @@ export function getTaskV2PageCheckedApi(params) {
     params: params
   });
 }
+
+// 获取任务审核记录
+export function getTaskV2CheckHisApi(params) {
+  return request({
+    url: ' /admin/task/v2/check/his',
+    method: 'get',
+    params: params
+  });
+}

+ 57 - 2
src/views/serviceManagement/serviceReviewed/index.vue

@@ -116,6 +116,28 @@
         <vxe-table-column field="mahName" title="产品所属生产企业" width="200"></vxe-table-column>
         <vxe-table-column field="skuName" title="关联产品名称" width="200"></vxe-table-column>
         <vxe-table-column field="provAbbr" title="执行包所属省份" width="130"></vxe-table-column>
+        <vxe-table-column title="已审批节点" width="120">
+          <template slot-scope="scope">
+            <div class="btns">
+              <el-popover
+                placement="top-start"
+                width="320"
+                trigger="hover"
+                @hide="hide"
+                @show="
+                  () => {
+                    show(scope.row);
+                  }
+                "
+              >
+                <div v-loading="infoLoading" class="info-list">
+                  <div v-html="infoContent"></div>
+                </div>
+                <div slot="reference">审核详情</div>
+              </el-popover>
+            </div>
+          </template>
+        </vxe-table-column>
         <vxe-table-column title="操作" fixed="right" width="130">
           <template slot-scope="scope">
             <div class="btns"><el-button type="text" @click="serviceDetail(scope.row)">服务详情</el-button></div>
@@ -137,7 +159,15 @@
 </template>
 
 <script>
-import { getTaskTypeAvailApi, getDeptv2Avail, getDrug2Avail, getUserV2Avail, getPkgV2Api, getTaskV2PageCheckedApi } from '@/api/serviceManagement/servicesToBeReviewed/index.js';
+import {
+  getTaskTypeAvailApi,
+  getDeptv2Avail,
+  getDrug2Avail,
+  getUserV2Avail,
+  getPkgV2Api,
+  getTaskV2PageCheckedApi,
+  getTaskV2CheckHisApi
+} from '@/api/serviceManagement/servicesToBeReviewed/index.js';
 import { tableOptin } from './index.js';
 import { getDictType } from '@/api/common';
 import abbreviationsProvinces from '@/const/abbreviationsProvinces.js';
@@ -192,7 +222,9 @@ export default {
       },
       rules: {
         checkResult: [{ required: true, message: '请选择审批意见', trigger: 'change' }]
-      }
+      },
+      infoLoading: false,
+      infoContent: ''
     };
   },
   computed: {
@@ -309,6 +341,22 @@ export default {
         'newwindow',
         'height=500, width=400, top=200, left=300, toolbar=no, menubar=no, scrollbars=no, resizable=no, location=no, status=no'
       );
+    },
+    async show(item) {
+      this.infoLoading = true;
+      const res = await getTaskV2CheckHisApi({ taskId: item.taskId });
+      if (res.data.code === 0 && res.data.data.length > 0) {
+        let str = '';
+        res.data.data.forEach((item) => {
+          str += `${item.checker}:${item.checkTime}<br>`;
+        });
+        this.infoContent = str;
+      }
+      this.infoLoading = false;
+    },
+    hide() {
+      this.infoContent = '';
+      this.infoLoading = false;
     }
   }
 };
@@ -355,4 +403,11 @@ export default {
   text-align: center;
   font-weight: 600;
 }
+
+.info-list {
+  margin-bottom: 10px;
+  li {
+    list-style: none;
+  }
+}
 </style>