Browse Source

电签检测进度

duy 1 month ago
parent
commit
1d197986fe
2 changed files with 43 additions and 5 deletions
  1. 9 1
      src/api/modules/data-fill/query.js
  2. 34 4
      src/views/systemService/test.vue

+ 9 - 1
src/api/modules/data-fill/query.js

@@ -220,11 +220,19 @@ export default {
             data: form,
         })
     },
-        async updateCheckPdfInfo(form) {
+    async updateCheckPdfInfo(form) {
         return HcApi({
             url: '/api/blade-business/informationWriteQuery/updateCheckPdfInfo',
             method: 'get',
             params: form,
         })
     },
+    //获取进度
+      async getCheckPdfPaceInfo(form) {
+        return HcApi({
+            url: '/api/blade-business/informationWriteQuery/getCheckPdfPaceInfo',
+            method: 'get',
+            params: form,
+        })
+    },
 }

+ 34 - 4
src/views/systemService/test.vue

@@ -90,7 +90,7 @@
                         </div>
                     </hc-card>
                     <hc-card class="ml-2">
-                        <div v-if="false" style="line-height: 26px;">
+                        <div v-if="progressObj.pace === 0" style="line-height: 26px;">
                             <div>
                                 <div class="text-16px font-800">电签检测</div>
                                 <div>暂无任务...</div>
@@ -103,12 +103,12 @@
                                     <el-progress
                                         :text-inside="true"
                                         :stroke-width="20"
-                                        :percentage="100"
+                                        :percentage="progressObj.pace"
                                         status="success"
                                         size="small"
                                         style="width: 80%;"
                                     />
-                                    <span class="ml-1">300/300</span>
+                                    <span class="ml-1">{{ `${progressObj.finishCount}/${progressObj.TotalCount}` }}</span>
                                 </div>
                             </div>
                         </div>
@@ -457,6 +457,7 @@ const treeAutoExpandKeys = ref(getStoreValue('wbsTreeExpandKeys') || [])
 
 //渲染完成
 onMounted(() => {
+    getCheckPdfPaceInfoData()
     getFileUser()
     getReportNumber()
     getFirstTaskStatus()
@@ -613,6 +614,7 @@ const getReportNumber = async () => {
     }
 }
 
+
 //获取流程状态
 const getFirstTaskStatus = async () => {
     const { error, code, data } = await queryApi.getFirstTaskStatus()
@@ -1512,7 +1514,8 @@ const ElTreeMenuClick = async ({ key, node, data, keys }) => {
 
                         if (!error && code === 200) {
                             window.$message?.success(msg )
-                            
+                            getCheckPdfPaceInfoData().then()
+
                             getTableData().then()
                         } 
                 }
@@ -1521,6 +1524,33 @@ const ElTreeMenuClick = async ({ key, node, data, keys }) => {
         
     }
    
+}
+//获取进度状态
+const progressObj = ref({
+    finishCount:0,
+    TotalCount:0,
+    pace:0,
+})
+const getCheckPdfPaceInfoData = async () => {
+           const { error, code, data, msg } = await queryApi.getCheckPdfPaceInfo({
+           
+            contractId: contractId.value,
+          
+            classifyType: contractTypeTabKey.value,
+        })
+        //处理数据
+      
+        if (!error && code === 200) {
+            progressObj.value = getObjValue(data)
+            
+        } else {
+          progressObj.value = {
+            finishCount:0,
+            TotalCount:0,
+            pace:0,
+        }
+        }
+ 
 }
 </script>