Просмотр исходного кода

稽核统计添加集合类型

sunyize 2 лет назад
Родитель
Сommit
f013682bc3
1 измененных файлов с 91 добавлено и 10 удалено
  1. 91 10
      src/views/statistics/SmsCheckStatistics.vue

+ 91 - 10
src/views/statistics/SmsCheckStatistics.vue

@@ -53,7 +53,7 @@
               </a-col>
               <a-col :xl="6" :lg="7" :md="8" :sm="24">
                 <a-form-item label="稽核状态">
-                  <j-dict-select-tag placeholder="请选择稽核状态" v-model:value="checkState"  dictCode="sms_check_check_state" />
+                  <j-dict-select-tag placeholder="请选择稽核状态" v-model:value="checkState"  dictCode="check_status" />
                 </a-form-item>
               </a-col>
               <template v-if="toggleSearchStatus">
@@ -97,7 +97,7 @@
       </div>
       <!-- 查询区域-END -->
 
-      <a-col :span="5" style="padding-top: 10px" v-if="this.viewIs === '' ">
+      <a-col :span="3" style="padding-top: 10px" v-if="this.viewIs === '' ">
         <a-card>
           <a-statistic
             title="行短稽核"
@@ -113,7 +113,7 @@
         </a-card>
       </a-col>
 
-      <a-col :span="5" style="padding-top: 10px" v-if="this.viewIs === ''">
+      <a-col :span="4" style="padding-top: 10px" v-if="this.viewIs === ''">
         <a-card>
           <a-statistic
             title="物联网业务稽核"
@@ -130,7 +130,7 @@
         </a-card>
       </a-col>
 
-      <a-col :span="5" style="padding-top: 10px" v-if="this.viewIs === ''">
+      <a-col :span="4" style="padding-top: 10px" v-if="this.viewIs === ''">
         <a-card>
           <a-statistic
             title="复开审批"
@@ -179,11 +179,11 @@
         </a-card>
       </a-col>
 
-      <!--稽核状态 -->
+      <!--任务状态-->
       <a-col :span="5" style="padding-top: 10px"  v-if="this.viewIs !== '' ">
         <a-card>
           <a-statistic
-            title="未开始"
+            title="(任务)未开始"
             :value="notStart"
             :precision="0"
             suffix="个"
@@ -199,7 +199,7 @@
       <a-col :span="5" style="padding-top: 10px" v-if="this.viewIs !== '' ">
         <a-card>
           <a-statistic
-            title="进行中"
+            title="(任务)进行中"
             :value="inProgress"
             :precision="0"
             suffix="个"
@@ -215,7 +215,7 @@
       <a-col :span="5" style="padding-top: 10px" v-if="this.viewIs !== '' ">
         <a-card>
           <a-statistic
-            title="已结束"
+            title="(任务)已结束"
             :value="completed"
             :precision="0"
             suffix="个"
@@ -228,8 +228,73 @@
           </a-statistic>
         </a-card>
       </a-col>
+      <!--任务状态 -->
+
+      <!--稽核状态-->
+      <a-col :span="3" style="padding-top: 10px"  >
+        <a-card>
+          <a-statistic
+            title="未完善"
+            :value="Incomplete"
+            :precision="0"
+            suffix="个"
+            :value-style="{ color: '#fa073f' }"
+            style="margin-right: 10px"
+          >
+            <template #prefix>
+            </template>
+          </a-statistic>
+        </a-card>
+      </a-col>
+      <a-col :span="4" style="padding-top: 10px"  >
+        <a-card>
+          <a-statistic
+            title="待稽核"
+            :value="toBeAudited"
+            :precision="0"
+            suffix="个"
+            :value-style="{ color: '#810320' }"
+            style="margin-right: 50px"
+          >
+            <template #prefix>
+
+            </template>
+          </a-statistic>
+        </a-card>
+      </a-col>
+      <a-col :span="4" style="padding-top: 10px"  >
+        <a-card>
+          <a-statistic
+            title="待整改"
+            :value="toBeRectified"
+            :precision="0"
+            suffix="个"
+            :value-style="{ color: '#0a0a09' }"
+            style="margin-right: 50px"
+          >
+            <template #prefix>
+
+            </template>
+          </a-statistic>
+        </a-card>
+      </a-col>
+      <a-col :span="4" style="padding-top: 10px" >
+        <a-card>
+          <a-statistic
+            title="通过"
+            :value="pass"
+            :precision="0"
+            suffix="个"
+            :value-style="{ color: '#3f8600' }"
+            style="margin-right: 50px"
+          >
+            <template #prefix>
 
-      <!--稽核状态 -->
+            </template>
+          </a-statistic>
+        </a-card>
+      </a-col>
+      <!--稽核状态-->
 
 
       <a-col :span="19" style="top: 10px">
@@ -358,6 +423,8 @@ export default {
         "checkStateCount": "/smsCheck/workLog/check/state/count",
         //各个稽核点状态
         statusToCount:"/smsCheck/statistics/statusToCount",
+        //根据稽核状态   查 任务状稽核类型统计数
+        checkStatusToCount:"/smsCheck/statistics/checkStatusToCount",
         //各个稽核点个数
         "statisticsCount": "/smsCheck/statistics/count",
         //用户工作量接口
@@ -532,7 +599,11 @@ export default {
       inProgress:'',
       notStart:'',
       viewIs:'',
-      checkState:''
+      checkState:'',
+      Incomplete:'',
+      toBeAudited:'',
+      toBeRectified:'',
+      pass:''
     }
   },
 
@@ -708,6 +779,16 @@ export default {
     },
 
     statisticsCount(queryParam) {
+      //根据稽核状态 查 任务状稽核类型统计数
+      getAction(this.url.checkStatusToCount, queryParam).then(res => {
+        if (res.success) {
+          this.Incomplete = res.result["0"] ;
+          this.toBeAudited = res.result["2"];
+          this.toBeRectified = res.result["4"];
+          this.pass = res.result["5"];
+        }
+      }).finally(() => {
+      })
       if (this.taskType===''){
         getAction(this.url.statisticsCount, queryParam).then(res => {
           if (res.success) {