sunyize 2 年之前
父节点
当前提交
473df599b9

+ 7 - 8
src/components/layouts/stock/AuditTable.vue

@@ -41,12 +41,12 @@
 
              <div class="table-operator" style='float: right'>
                <!-- 高级查询区域 -->
-               <a-dropdown v-if="selectedRowKeys.length > 0">
-                 <a-menu slot="overlay">
-                   <a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item>
-                 </a-menu>
-                 <a-button style="margin-left: 8px"> 批量操作 <a-icon type="down" /></a-button>
-               </a-dropdown>
+<!--               <a-dropdown v-if="selectedRowKeys.length > 0">-->
+<!--                 <a-menu slot="overlay">-->
+<!--                   <a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item>-->
+<!--                 </a-menu>-->
+<!--                 <a-button style="margin-left: 8px"> 批量操作 <a-icon type="down" /></a-button>-->
+<!--               </a-dropdown>-->
                   <a-button type="primary" @click="searchQuery()" icon="search" >查询</a-button>
                <a-button type="primary" @click="searchReset" icon="reload" style="margin-left: 8px">重置</a-button>
 
@@ -72,8 +72,7 @@
           :dataSource="dataSource"
           :pagination="ipagination"
           :loading="loading"
-          :rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
-          class="j-table-force-nowrap"
+           class="j-table-force-nowrap"
           @change="handleTableChange">
 
           <template v-slot:checkState="status">

+ 72 - 4
src/components/layouts/stock/Warning.vue

@@ -26,7 +26,7 @@
             <a-row :gutter="24">
 
               <a-col :xl="16" :lg="7" :md="8" :sm="24">
-                <a-form-item label="稽核工作日期范围">
+                <a-form-item label="稽核预警工作日期范围">
                   <a-range-picker @change="handleChange" v-model:value="taskDate"/>
                   <a-radio-group @change="changeReportDate()" style="padding-left: 10px" v-model:value="latestDate" button-style="solid">
                     <a-radio-button value="7">最近7天</a-radio-button>
@@ -150,7 +150,11 @@
             <div id="statusRefusePieNo" ref="statusRefusePieNo" style="width:100%;height:500px"></div>
           </a-card>
         </a-col>
-
+        <a-col :span="24" style="top: 10px">
+          <a-card title="预警整改率" :bordered="false" style='height: 400px'>
+            <div id="rectificationRate" ref="rectificationRate" style="width:100%;height:400px"></div>
+          </a-card>
+        </a-col>
 <!--        <a-col :span="24" style="top: 10px">-->
 <!--          <a-card title=" " :bordered="false">-->
 <!--            <h2 style='text-align:center'>任务维度预警明细</h2>-->
@@ -463,12 +467,13 @@ export default {
         "getWarningCountOrg":"/smsCheck/customerInfo/status/getWarningCountOrg",
         "getWarningCount":"/smsCheck/customerInfo/status/getWarningCount",
         "getTaksCount":"/smsCheck/customerInfo/status/getTaksCount",
-        "statusRefuse": "/smsCheck/customerInfo/status/refuse",
+        "statusRefuse": "/smsCheck/customerInfo/status/warningRefuse",
         "taskList": "/smsCheck/task/list",
         "dateList": "/smsCheck/task/year/list",
         //基本信息 规范信息  附件资料 异常稽核统计
         "checkStateCount": "/smsCheck/workLog/check/state/count",
-        "abnormalCreateTime": "/smsCheck/workLog/check/abnormal/count"
+        "abnormalCreateTime": "/smsCheck/workLog/check/abnormal/count",
+        "warningCountGroup": "/smsCheck/customerInfo/status/warningCountGroup"
       },
       // '1': '未完善',
       statusMap: {
@@ -527,6 +532,7 @@ export default {
    // this.checkStateCount(this.url.checkStateCount);
     this.abnormalCreateTime();
 
+    this.warningCountGroup()
 
   },
   computed: {},
@@ -579,6 +585,7 @@ export default {
       this.statusRefuse(this.taskId);
       this.checkStateCount(this.url.checkStateCount, this.taskId);
       this.abnormalCreateTime(this.taskId);
+      this.warningCountGroup()
     },
 
     handleChange(value,model){
@@ -960,6 +967,27 @@ export default {
         }
       })
     },
+
+    warningCountGroup(){
+      let taskDate = this.taskDate;
+      let queryParam = {
+        "taskType":this.taskType,
+        "startDate": taskDate[0],
+        "endDate": taskDate[1],
+      }
+      getAction(this.url.warningCountGroup, queryParam).then((res) => {
+        if (res.success) {
+          debugger
+          if ( res.result){
+            this.rectificationRate(res)
+          }else {
+
+          }
+        }else{
+          this.$message.warning(res.message)
+        }
+      })
+    },
     //任务列表数据
     taskList() {
       let queryParam = {
@@ -1314,7 +1342,47 @@ export default {
         ]
       };
       myChart.setOption(option);
+
+    },
+
+    rectificationRate(res){
+      var myChart = echarts.init(document.getElementById('rectificationRate'));
+      var  option = {
+        title: {
+          text: '预警稽核整改率',
+          subtext: '预警整改率',
+          left: 'center'
+        },
+        tooltip: {
+          trigger: 'item'
+        },
+        legend: {
+          orient: 'vertical',
+          left: 'left'
+        },
+        series: [
+          {
+            name: '预警整改率',
+            type: 'pie',
+            radius: '50%',
+            data: [
+              { value: res.result.his, name: '整改数据量' },
+              { value: res.result.sum, name: '未整改数据量' },
+
+            ],
+            emphasis: {
+              itemStyle: {
+                shadowBlur: 10,
+                shadowOffsetX: 0,
+                shadowColor: 'rgba(0, 0, 0, 0.5)'
+              }
+            }
+          }
+        ]
+      };
+      myChart.setOption(option);
     },
+
     statusRefusePieNo(builderJson) {
 
       let allCount=this.getWarningCountOrg.all;

+ 1 - 1
src/components/layouts/stock/WorkTable.vue

@@ -612,7 +612,7 @@ export default {
           dataIndex: 'staff_no'
         },
         {
-          title:'提交次数',
+          title:'稽核次数',
           align:"center",
           dataIndex: 'c'
         } ,

+ 1 - 1
src/components/layouts/stock/ZgTable.vue

@@ -141,7 +141,7 @@
         </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>
+            <div id="statusRefusePie" ref="statusRefusePie" style="width:100%;height:1300px"></div>
           </a-card>
         </a-col>
         <a-col :span="24" style="top: 10px">

+ 20 - 0
src/views/warningList/TaskCheckList.vue

@@ -352,6 +352,7 @@ export default {
       },
       dataSource:[],
       url: {
+        queryUrlById:"/smsCheck/customerInfo/queryUrlById",
         queryTask: "/smsCheck/task/queryById",
         list: "/smsCheck/customerInfo/warningList",
         count: "/smsCheck/customerInfo/WarningCount",
@@ -569,6 +570,25 @@ export default {
     showImproveGZ(record) {
       this.$router.push({path: '/sms/warning/TaskUploadDataCheckZG', query: {id: record.infoId,dueId: record.id}});
     },
+    // 一键下载资料
+    getFileUrls(data) {
+      let url = this.url.queryUrlById;
+      let params = {
+        id: data.id
+      }
+      let that = this;
+      getAction(url, params).then(res => {
+        if (res.success) {
+          that.fileInfoList = res.result
+          this.$message.success('开始下载请等待...')
+          this.filesToRar(this.fileInfoList, '客户:'+data.customerName+'资料下载');
+        }else {
+          this.$message.warning('该客户没有资料')
+        }
+      })
+    },
+    /**文件打包* arrImages:文件list:[{fileUrl:文件url,renameFileName:文件名}]* filename 压缩包名* */
+
 // 历史
     selectData(record) {
       this.$router.push({path: '/sms/warning/TaskUploadDataSelect', query: {id: record.infoId,dueId: record.id}});