sunyize 2 gadi atpakaļ
vecāks
revīzija
3756a6ed72

+ 48 - 7
src/components/layouts/stock/Warning.vue

@@ -48,7 +48,7 @@
             </a-row>
           </a-form>
         </a-col>
-        <a-col :span="4" style="padding-top: 10px">
+        <a-col :span="3" style="padding-top: 10px">
           <a-card>
             <a-statistic
               title="客户总数"
@@ -64,7 +64,7 @@
             </a-statistic>
           </a-card>
         </a-col>
-        <a-col :span="4" style="padding-top: 10px">
+        <a-col :span="3" style="padding-top: 10px">
           <a-card>
             <a-statistic
               title="未处理客户数量"
@@ -80,7 +80,7 @@
             </a-statistic>
           </a-card>
         </a-col>
-        <a-col :span="4" style="padding-top: 10px">
+        <a-col :span="3" style="padding-top: 10px">
           <a-card>
             <a-statistic
               title="未完善客户数量"
@@ -96,7 +96,7 @@
             </a-statistic>
           </a-card>
         </a-col>
-        <a-col :span="4" style="padding-top: 10px">
+        <a-col :span="3" style="padding-top: 10px">
           <a-card>
             <a-statistic
               title="待整改客户数量"
@@ -112,7 +112,7 @@
             </a-statistic>
           </a-card>
         </a-col>
-        <a-col :span="4" style="padding-top: 10px">
+        <a-col :span="3" style="padding-top: 10px">
           <a-card>
             <a-statistic
               title="待稽核客户数量"
@@ -128,10 +128,10 @@
             </a-statistic>
           </a-card>
         </a-col>
-        <a-col :span="4" style="padding-top: 10px">
+        <a-col :span="3" style="padding-top: 10px">
           <a-card>
             <a-statistic
-              title="稽核通过客户数"
+              title="稽核通过客户数"
               :value="auditPassed"
               :precision="0"
               suffix="个"
@@ -144,6 +144,38 @@
             </a-statistic>
           </a-card>
         </a-col>
+        <a-col :span="3" style="padding-top: 10px">
+          <a-card>
+            <a-statistic
+              title="稽核整改率"
+              :value="zgl"
+              :precision="0"
+              suffix=""
+              :value-style="{ color: '#3f8600' }"
+              style="margin-right: 50px"
+            >
+              <template #prefix>
+                <arrow-up-outlined/>
+              </template>
+            </a-statistic>
+          </a-card>
+        </a-col>
+        <a-col :span="3" style="padding-top: 10px">
+          <a-card>
+            <a-statistic
+              title="稽核通过率"
+              :value="tgl"
+              :precision="0"
+              suffix=""
+              :value-style="{ color: '#3f8600' }"
+              style="margin-right: 50px"
+            >
+              <template #prefix>
+                <arrow-up-outlined/>
+              </template>
+            </a-statistic>
+          </a-card>
+        </a-col>
         <a-col :span="24" style="top: 10px">
           <a-card title="任务维度预警图标" :bordered="false">
             <div id="statusRefusePie" ref="statusRefusePie" style="width:100%;height:500px"></div>
@@ -518,6 +550,8 @@ export default {
       toBeAudited: 0,
       tobeRectified: 0,
       auditPassed: 0,
+      zgl:0,
+      tgl:0,
       treeData: [],
       expandedKeys: ['2022', '2022-10'],
       selectedKeys: {},
@@ -1111,6 +1145,7 @@ export default {
                     columnDate[status] = resultListElement.count
                   }
                   this.allCount = this.noHandle + this.toImproveUser + this.toBeAudited + this.tobeRectified + this.auditPassed
+                  this.tgl= Math.round(this.auditPassed /   this.allCount * 10000) / 100 + "%";
                 }
                 this.getTaksCount(builderJson);
                 this.getWarningCountOrg1(builderJson);
@@ -1403,6 +1438,12 @@ export default {
           }
         ]
       };
+      if (res.result.his+res.result.sum>0 && res.result.his<=res.result.his+res.result.sum){
+        this.zgl =Math.round(res.result.his / (res.result.his+res.result.sum) * 10000) / 100 + "%";
+      }else {
+        this.zgl='0%'
+      }
+
       myChart.setOption(option);
     },
 

+ 48 - 7
src/components/layouts/stock/WorkTable.vue

@@ -48,7 +48,7 @@
              </a-row>
            </a-form>
          </a-col>
-        <a-col :span="5" style="padding-top: 10px">
+        <a-col :span="4" style="padding-top: 10px">
           <a-card>
             <a-statistic
               title="未处理客户数量"
@@ -64,7 +64,7 @@
             </a-statistic>
           </a-card>
         </a-col>
-         <a-col :span="5" style="padding-top: 10px">
+         <a-col :span="4" style="padding-top: 10px">
            <a-card>
              <a-statistic
                title="未完善客户数量"
@@ -80,7 +80,7 @@
              </a-statistic>
            </a-card>
          </a-col>
-        <a-col :span="5" style="padding-top: 10px">
+        <a-col :span="3" style="padding-top: 10px">
           <a-card>
             <a-statistic
               title="待整改客户数量"
@@ -96,7 +96,7 @@
             </a-statistic>
           </a-card>
         </a-col>
-        <a-col :span="5" style="padding-top: 10px">
+        <a-col :span="3" style="padding-top: 10px">
           <a-card>
             <a-statistic
               title="待稽核客户数量"
@@ -128,6 +128,38 @@
             </a-statistic>
           </a-card>
         </a-col>
+         <a-col :span="3" style="padding-top: 10px">
+           <a-card>
+             <a-statistic
+               title="稽核整改率"
+               :value="zgl"
+               :precision="0"
+               suffix=""
+               :value-style="{ color: '#3f8600' }"
+               style="margin-right: 50px"
+             >
+               <template #prefix>
+                 <arrow-up-outlined/>
+               </template>
+             </a-statistic>
+           </a-card>
+         </a-col>
+         <a-col :span="3" style="padding-top: 10px">
+           <a-card>
+             <a-statistic
+               title="稽核通过率"
+               :value="tgl"
+               :precision="0"
+               suffix=""
+               :value-style="{ color: '#3f8600' }"
+               style="margin-right: 50px"
+             >
+               <template #prefix>
+                 <arrow-up-outlined/>
+               </template>
+             </a-statistic>
+           </a-card>
+         </a-col>
         <a-col :span="24" style="top: 10px">
           <a-card title="稽核概况统计" :bordered="false">
             <div id="statusRefusePie" ref="statusRefusePie" style="width:100%;height:500px"></div>
@@ -156,8 +188,9 @@
                        </a-form-item>
                      </a-col>
                      <a-col :xl="5" :lg="7" :md="8" :sm="24">
-                       <a-form-item label="任务名称">
-                         <j-input placeholder="任务名称" v-model="queryParam.taskName" ></j-input>
+                       <a-form-item label="稽核次数">
+                         <a-input-number style='width: 200px' id="inputNumber" v-model="queryParam.count" :min="1" :max="100"  />
+
                        </a-form-item>
                      </a-col>
 
@@ -706,6 +739,8 @@ export default {
       toBeAudited: 0,
       tobeRectified: 0,
       auditPassed: 0,
+      zgl:0,
+      tgl:0,
       treeData: [],
       expandedKeys: ['2022', '2022-10'],
       selectedKeys: {},
@@ -1017,6 +1052,11 @@ export default {
           }
         ]
       };
+      if (res.result.his+res.result.sum>0 && res.result.his<=res.result.his+res.result.sum){
+        this.zgl =Math.round(res.result.his / (res.result.his+res.result.sum) * 10000) / 100 + "%";
+      }else {
+        this.zgl='0%'
+      }
       myChart.setOption(option);
     },
     checkStatePie(data) {
@@ -1271,7 +1311,8 @@ export default {
       this.toBeAudited = builderJson.charts["待稽核"];
       this.tobeRectified = builderJson.charts["待整改"];
       this.auditPassed = builderJson.charts["稽核通过"];
-
+      //this.zgl=  (parseInt(percentage) / 100) * total;
+      this.tgl= Math.round(this.auditPassed / (this.toImproveUser+this.wanshan+this.toBeAudited+this.tobeRectified+this.auditPassed) * 10000) / 100 + "%";
       let option = {
         backgroundColor: {
           type: 'pattern',