Browse Source

添加和更新功能

yangll 4 years ago
parent
commit
ecd34173e2

+ 104 - 34
src/views/smscheck/modules/TaskCheckCheck.vue

@@ -20,12 +20,14 @@
 
     <a-card :bordered="false" style="margin-top: 10px;">
       <a-form-model
-        ref="ruleForm"
-        :label-col="labelCol"
-        :wrapper-col="wrapperCol"
+        ref="form"
+        :model="model"
+        :rules="validatorRules"
+        :label-col="{ span: 2 , pull: 1}"
+        :wrapper-col="{ span: 22 , pull: 1}"
       >
         <a-card title="业务基本情况内容" :bordered="true">
-          <a-descriptions :column="3" :bordered="false">
+          <a-descriptions :bordered="false">
             <a-descriptions-item label="用户开通状态">{{checkInfo.info.userOpenState}}</a-descriptions-item>
             <a-descriptions-item label="码号" :span="2">{{checkInfo.info.smsNumberPrefix}}</a-descriptions-item>
             <a-descriptions-item label="详细用途" :span="3">{{checkInfo.info.smsNumberUsage}}</a-descriptions-item>
@@ -34,14 +36,15 @@
             <a-descriptions-item label="客户经理">{{checkInfo.info.accountManager}}</a-descriptions-item>
             <a-descriptions-item label="手机号" :span="2">{{checkInfo.info.accountManagerPhone}}</a-descriptions-item>
           </a-descriptions>
-          <a-form-model-item label="稽核状态" prop="resource">
-            <a-radio-group >
-              <a-radio value="1">未通过</a-radio>
-              <a-radio value="2">通过</a-radio>
+          <a-form-model-item label="稽核状态" prop="basicCheckState">
+            <a-radio-group v-model="model.basicCheckState">
+              <a-radio :value="1">未通过</a-radio>
+              <a-radio :value="2">通过</a-radio>
             </a-radio-group>
           </a-form-model-item>
-          <a-form-model-item label="稽核结果" prop="resource">
+          <a-form-model-item label="稽核结果" prop="basicCheckNote">
             <a-textarea
+              v-model="model.basicCheckNote"
               placeholder="请输入业务基本情况内容的稽核结果"
               :auto-size="{ minRows: 3, maxRows: 5 }"
             />
@@ -49,7 +52,7 @@
         </a-card>
 
         <a-card title="业务规范性内容" :bordered="true">
-          <a-descriptions :column="3" :bordered="false">
+          <a-descriptions :bordered="false">
             <a-descriptions-item label="合同到期时间">{{checkInfo.info.contractExpireTime}}</a-descriptions-item>
             <a-descriptions-item label="码号证书到期时间">{{checkInfo.info.smsNumberCertificateExpireTime}}</a-descriptions-item>
             <a-descriptions-item label="备案通知到期时间">{{checkInfo.info.recordNoticeExpireTime}}</a-descriptions-item>
@@ -61,14 +64,15 @@
             <a-descriptions-item label="是否完成整改">{{checkInfo.info.rectifyReformOver}}</a-descriptions-item>
           </a-descriptions>
 
-          <a-form-model-item label="稽核状态" prop="resource">
-            <a-radio-group >
-              <a-radio value="1">未通过</a-radio>
-              <a-radio value="2">通过</a-radio>
+          <a-form-model-item label="稽核状态" prop="standardCheckState">
+            <a-radio-group v-model="model.standardCheckState">
+              <a-radio :value="1">未通过</a-radio>
+              <a-radio :value="2">通过</a-radio>
             </a-radio-group>
           </a-form-model-item>
-          <a-form-model-item label="稽核结果" prop="resource">
+          <a-form-model-item label="稽核结果" prop="standardCheckNote">
             <a-textarea
+              v-model="model.standardCheckNote"
               placeholder="请输入业务规范性内容的稽核结果"
               :auto-size="{ minRows: 3, maxRows: 5 }"
             />
@@ -78,39 +82,40 @@
         <a-card title="附件资料" :bordered="true">
           <a-descriptions :column="1" :bordered="false">
             <a-descriptions-item label="业务合同">
-              <a-space><a v-for="(file,index) in fileList" :href="file.url">{{'附件' + (index + 1)}}</a></a-space>
+              <a-space><a v-for="(file,index) in fileList" :href="handlePreview(file)" target="_blank">{{'附件' + (index + 1)}}</a></a-space>
             </a-descriptions-item>
             <a-descriptions-item label="号码证书">
-              <a-space><a v-for="(file,index) in fileList" :href="file.url">{{'附件' + (index + 1)}}</a></a-space>
+              <a-space><a v-for="(file,index) in fileList" :href="handlePreview(file)" target="_blank">{{'附件' + (index + 1)}}</a></a-space>
             </a-descriptions-item>
             <a-descriptions-item label="备案通知">
-              <a-space><a v-for="(file,index) in fileList" :href="file.url">{{'附件' + (index + 1)}}</a></a-space>
+              <a-space><a v-for="(file,index) in fileList" :href="handlePreview(file)" target="_blank">{{'附件' + (index + 1)}}</a></a-space>
             </a-descriptions-item>
             <a-descriptions-item label="集团政企价格审批单">
-              <a-space><a v-for="(file,index) in fileList" :href="file.url">{{'附件' + (index + 1)}}</a></a-space>
+              <a-space><a v-for="(file,index) in fileList" :href="handlePreview(file)" target="_blank">{{'附件' + (index + 1)}}</a></a-space>
             </a-descriptions-item>
             <a-descriptions-item label="营业执照" :span="2">
-              <a-space><a v-for="(file,index) in fileList" :href="file.url">{{'附件' + (index + 1)}}</a></a-space>
+              <a-space><a v-for="(file,index) in fileList" :href="handlePreview(file)" target="_blank">{{'附件' + (index + 1)}}</a></a-space>
             </a-descriptions-item>
             <a-descriptions-item label="客户介绍信">
-              <a-space><a v-for="(file,index) in fileList" :href="file.url">{{'附件' + (index + 1)}}</a></a-space>
+              <a-space><a v-for="(file,index) in fileList" :href="handlePreview(file)" target="_blank">{{'附件' + (index + 1)}}</a></a-space>
             </a-descriptions-item>
             <a-descriptions-item label="经办人身份证复印件">
-              <a-space><a v-for="(file,index) in fileList" :href="file.url">{{'附件' + (index + 1)}}</a></a-space>
+              <a-space><a v-for="(file,index) in fileList" :href="handlePreview(file)" target="_blank">{{'附件' + (index + 1)}}</a></a-space>
             </a-descriptions-item>
             <a-descriptions-item label="在CRM没有行短业务的截图">
-              <a-space><a v-for="(file,index) in fileList" :href="file.url">{{'附件' + (index + 1)}}</a></a-space>
+              <a-space><a v-for="(file,index) in fileList" :href="handlePreview(file)" target="_blank">{{'附件' + (index + 1)}}</a></a-space>
             </a-descriptions-item>
           </a-descriptions>
 
-          <a-form-model-item label="稽核状态" prop="resource">
-            <a-radio-group >
-              <a-radio value="1">未通过</a-radio>
-              <a-radio value="2">通过</a-radio>
+          <a-form-model-item label="稽核状态" prop="dataCheckState">
+            <a-radio-group v-model="model.dataCheckState">
+              <a-radio :value="1">未通过</a-radio>
+              <a-radio :value="2">通过</a-radio>
             </a-radio-group>
           </a-form-model-item>
-          <a-form-model-item label="稽核结果" prop="resource">
+          <a-form-model-item label="稽核结果" prop="dataCheckNote">
             <a-textarea
+              v-model="model.dataCheckNote"
               placeholder="请输入附件资料的稽核结果"
               :auto-size="{ minRows: 3, maxRows: 5 }"
             />
@@ -120,10 +125,10 @@
         <a-form-model-item :wrapper-col="{ span: 14, offset: 4 }" style="margin-top: 10px;">
 <!--          <a-button type="primary" @click="onSubmit">-->
           <a-space>
-            <a-button type="primary" @click="showCheckList">
+            <a-button type="primary" @click="submit">
               提交
             </a-button>
-            <a-button @click="showList">
+            <a-button @click="showCheckList">
               返回
             </a-button>
           </a-space>
@@ -142,6 +147,7 @@
 import { httpAction, getAction } from '@api/manage'
 import '@/assets/less/TableExpand.less'
 import { JeecgListMixin } from '@/mixins/JeecgListMixin'
+let Base64 = require('js-base64').Base64
 
 export default {
   name: 'TaskCheckCheck',
@@ -155,15 +161,36 @@ export default {
   data () {
     return {
       description: '稽核详情页面',
-      labelCol: { span: 1 },
-      wrapperCol: { span: 23 },
+      model: {
+      },
+      validatorRules: {
+        basicCheckState: [
+          { required: true, message: '请选择稽核状态!'},
+        ],
+        basicCheckNote: [
+          // { required: true, message: '请输入稽核内容!'},
+        ],
+        standardCheckState: [
+          { required: true, message: '请选择稽核状态!'},
+        ],
+        standardCheckNote: [
+          // { required: true, message: '请输入稽核内容!'},
+        ],
+        dataCheckState: [
+          { required: true, message: '请选择稽核状态!'},
+        ],
+        dataCheckNote: [
+          // { required: true, message: '请输入稽核内容!'},
+        ],
+      },
       url: {
         list: "/smsCheck/customerInfo/list",
+        check: "/smsCheck/customerInfo/checkInfo",
       },
       autoSearch: false,
       fileList: [
-        {text: '附件', url: "http://www.baidu.com"},
-        {text: '附件', url: "http://www.zhaopin.com"}
+        {text: '附件', url: "http://202.85.214.182:9001/default/by2_1650088480055.jpg"},
+        {text: '附件', url: "http://202.85.214.182:9001/default/《Nginx代理系统常用手册》电子书_1650129698991.pdf"}
       ],
     }
   },
@@ -177,6 +204,49 @@ export default {
       let taskInfo = this.checkInfo.task;
       this.$emit('goCheckList', taskInfo);
     },
+    // 显示列表页面
+    submit() {
+      const that = this;
+      // 触发表单验证
+      this.$refs.form.validate(valid => {
+        // 验证通过
+        if (valid) {
+
+          that.model.infoId = that.checkInfo.info.id;
+          that.model.customerNo = that.checkInfo.info.customerNo;
+          that.model.staffNo = that.checkInfo.info.staffNo;
+
+          console.log(that.checkInfo)
+
+          let httpUrl = this.url.check;
+          let method = 'post';
+          // 发送请求
+          httpAction(httpUrl, this.model, method)
+            .then((res) => {
+              if(res.success){
+                that.$message.success(res.message);
+                that.$emit('ok');
+                that.visible = false;
+              }else{
+                that.$message.warning(res.message);
+              }
+            }).finally(() => {
+            that.confirmLoading = false;
+          })
+
+          let taskInfo = this.checkInfo.task;
+          that.$emit('goCheckList', taskInfo);
+        } else {
+          that.$message.warning('请检查必填项!');
+        }
+      });
+    },
+    handlePreview(record) {
+      if (record && record.url) {
+        let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + encodeURIComponent(Base64.encode((record.url)))
+        return url;
+      }
+    },
   }
 }
 </script>

+ 27 - 20
src/views/smscheck/modules/TaskCheckDetail.vue

@@ -25,7 +25,7 @@
         :wrapper-col="wrapperCol"
       >
         <a-card title="业务基本情况内容" :bordered="true">
-          <a-descriptions :column="3" :bordered="false">
+          <a-descriptions :bordered="false">
             <a-descriptions-item label="用户开通状态">{{checkInfo.info.userOpenState}}</a-descriptions-item>
             <a-descriptions-item label="码号" :span="2">{{checkInfo.info.smsNumberPrefix}}</a-descriptions-item>
             <a-descriptions-item label="详细用途" :span="3">{{checkInfo.info.smsNumberUsage}}</a-descriptions-item>
@@ -33,14 +33,14 @@
             <a-descriptions-item label="手机号" :span="2">{{checkInfo.info.customerContactsPhone}}</a-descriptions-item>
             <a-descriptions-item label="客户经理">{{checkInfo.info.accountManager}}</a-descriptions-item>
             <a-descriptions-item label="手机号" :span="2">{{checkInfo.info.accountManagerPhone}}</a-descriptions-item>
-            <a-descriptions-item label="稽核状态" :span="3">未处理</a-descriptions-item>
-            <a-descriptions-item label="稽核结果" :span="3">未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理/未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理/未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理/未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理</a-descriptions-item>
+            <a-descriptions-item label="稽核状态" :span="3"></a-descriptions-item>
+            <a-descriptions-item label="稽核结果" :span="3"></a-descriptions-item>
           </a-descriptions>
 
         </a-card>
 
         <a-card title="业务规范性内容" :bordered="true">
-          <a-descriptions :column="3" :bordered="false">
+          <a-descriptions :bordered="false">
             <a-descriptions-item label="合同到期时间">{{checkInfo.info.contractExpireTime}}</a-descriptions-item>
             <a-descriptions-item label="码号证书到期时间">{{checkInfo.info.smsNumberCertificateExpireTime}}</a-descriptions-item>
             <a-descriptions-item label="备案通知到期时间">{{checkInfo.info.recordNoticeExpireTime}}</a-descriptions-item>
@@ -50,43 +50,43 @@
             <a-descriptions-item label="是否有集团价格审批" :span="2">{{checkInfo.info.groupPriceApproval}}</a-descriptions-item>
             <a-descriptions-item label="资料是否完整">{{checkInfo.info.dataComplete}}</a-descriptions-item>
             <a-descriptions-item label="是否完成整改" :span="2">{{checkInfo.info.rectifyReformOver}}</a-descriptions-item>
-            <a-descriptions-item label="稽核状态" :span="3">未处理</a-descriptions-item>
-            <a-descriptions-item label="稽核结果" :span="3">未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理/未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理/未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理/未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理</a-descriptions-item>
+            <a-descriptions-item label="稽核状态" :span="3"></a-descriptions-item>
+            <a-descriptions-item label="稽核结果" :span="3"></a-descriptions-item>
           </a-descriptions>
 
         </a-card>
 
         <a-card title="附件资料" :bordered="true">
-          <a-descriptions :column="2" :bordered="false">
+          <a-descriptions :column="1" :bordered="false">
             <a-descriptions-item label="业务合同" :span="2">
-              <a-space><a v-for="(file,index) in fileList" :href="file.url">{{'附件' + (index + 1)}}</a></a-space>
+              <a-space><a v-for="(file,index) in fileList" :href="handlePreview(file)" target="_blank">{{'附件' + (index + 1)}}</a></a-space>
             </a-descriptions-item>
             <a-descriptions-item label="号码证书" :span="2">
-              <a-space><a v-for="(file,index) in fileList" :href="file.url">{{'附件' + (index + 1)}}</a></a-space>
+              <a-space><a v-for="(file,index) in fileList" :href="handlePreview(file)" target="_blank">{{'附件' + (index + 1)}}</a></a-space>
             </a-descriptions-item>
             <a-descriptions-item label="备案通知" :span="2">
-              <a-space><a v-for="(file,index) in fileList" :href="file.url">{{'附件' + (index + 1)}}</a></a-space>
+              <a-space><a v-for="(file,index) in fileList" :href="handlePreview(file)" target="_blank">{{'附件' + (index + 1)}}</a></a-space>
             </a-descriptions-item>
             <a-descriptions-item label="集团政企价格审批单" :span="2">
-              <a-space><a v-for="(file,index) in fileList" :href="file.url">{{'附件' + (index + 1)}}</a></a-space>
+              <a-space><a v-for="(file,index) in fileList" :href="handlePreview(file)" target="_blank">{{'附件' + (index + 1)}}</a></a-space>
             </a-descriptions-item>
             <a-descriptions-item label="营业执照" :span="2">
-              <a-space><a v-for="(file,index) in fileList" :href="file.url">{{'附件' + (index + 1)}}</a></a-space>
+              <a-space><a v-for="(file,index) in fileList" :href="handlePreview(file)" target="_blank">{{'附件' + (index + 1)}}</a></a-space>
             </a-descriptions-item>
             <a-descriptions-item label="客户介绍信" :span="2">
-              <a-space><a v-for="(file,index) in fileList" :href="file.url">{{'附件' + (index + 1)}}</a></a-space>
+              <a-space><a v-for="(file,index) in fileList" :href="handlePreview(file)" target="_blank">{{'附件' + (index + 1)}}</a></a-space>
             </a-descriptions-item>
             <a-descriptions-item label="经办人身份证复印件" :span="2">
-              <a-space><a v-for="(file,index) in fileList" :href="file.url">{{'附件' + (index + 1)}}</a></a-space>
+              <a-space><a v-for="(file,index) in fileList" :href="handlePreview(file)" target="_blank">{{'附件' + (index + 1)}}</a></a-space>
             </a-descriptions-item>
             <a-descriptions-item label="在CRM没有行短业务的截图" :span="2">
-              <a-space><a v-for="(file,index) in fileList" :href="file.url">{{'附件' + (index + 1)}}</a></a-space>
+              <a-space><a v-for="(file,index) in fileList" :href="handlePreview(file)" target="_blank">{{'附件' + (index + 1)}}</a></a-space>
             </a-descriptions-item>
             <a-descriptions-item label="稽核状态" :span="2">
-              <a-space>未处理</a-space>
+              <a-space></a-space>
             </a-descriptions-item>
             <a-descriptions-item label="稽核结果" :span="2">
-              未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理/未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理/未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理/未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理未处理
+
             </a-descriptions-item>
           </a-descriptions>
 
@@ -94,7 +94,7 @@
 
         <a-form-model-item :wrapper-col="{ span: 14, offset: 4 }" style="margin-top: 10px;">
           <a-space>
-            <a-button @click="showList">
+            <a-button @click="showCheckList">
               返回
             </a-button>
           </a-space>
@@ -113,6 +113,7 @@
 import { httpAction, getAction } from '@api/manage'
 import '@/assets/less/TableExpand.less'
 import { JeecgListMixin } from '@/mixins/JeecgListMixin'
+let Base64 = require('js-base64').Base64
 
 export default {
   name: 'TaskCheckDetail',
@@ -133,8 +134,8 @@ export default {
       },
       autoSearch: false,
       fileList: [
-        {text: '附件', url: "http://www.baidu.com"},
-        {text: '附件', url: "http://www.zhaopin.com"}
+        {text: '附件', url: "http://202.85.214.182:9001/default/by2_1650088480055.jpg"},
+        {text: '附件', url: "http://202.85.214.182:9001/default/《Nginx代理系统常用手册》电子书_1650129698991.pdf"}
       ],
     }
   },
@@ -148,6 +149,12 @@ export default {
       let taskInfo = this.checkInfo.task;
       this.$emit('goCheckList', taskInfo);
     },
+    handlePreview(record) {
+      if (record && record.url) {
+        let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + encodeURIComponent(Base64.encode((record.url)))
+        return url;
+      }
+    },
   }
 }
 </script>

+ 59 - 29
src/views/smscheck/modules/TaskCheckList.vue

@@ -17,7 +17,7 @@
     </a-page-header>
 
     <a-card :bordered="false" style="margin-top: -20px;">
-      <a-tabs default-active-key="1" @change="tabChange">
+      <a-tabs :active-key="currentTab" default-active-key="all" @change="tabChange">
         <a-tab-pane key="all" :tab="tabAll"></a-tab-pane>
         <a-tab-pane key="undo" :tab="tabUndo"></a-tab-pane>
         <a-tab-pane key="uncheck" :tab="tabUncheck"></a-tab-pane>
@@ -146,6 +146,8 @@ export default {
   data () {
     return {
       description: '稽核详情页面',
+      currentTab: 'all',
+      currentCheckState: null,
       tabAll: '全部(0)',
       tabUndo: '未完善(0)',
       tabUncheck: '待稽核(0)',
@@ -229,28 +231,7 @@ export default {
   created() {
     this.queryParam.taskId = this.task.id;
     this.loadData();
-    let url = this.url.count;
-    let params = {
-      id: this.task.id
-    }
-    let that = this;
-    getAction(url, params).then(res => {
-      let { result } = res;
-      if (result) {
-        that.count = result.count;
-        that.undoCount = result.undoCount;
-        that.uncheckCount = result.uncheckCount;
-        that.checkedCount = result.checkedCount;
-        that.passedCount = result.passedCount;
-        that.tabAll= '全部(' + result.count + ')';
-        that.tabUndo= '未完善(' + result.undoCount + ')';
-        that.tabUncheck= '待稽核(' + result.uncheckCount + ')';
-        that.tabChecked= '待整改(' + result.checkedCount + ')';
-        that.tabPassed= '稽核通过(' + result.passedCount + ')';
-      }
-    }).finally(() => {
-
-    })
+    this.loadTabNumber();
   },
   methods: {
     // 显示列表页面
@@ -294,18 +275,67 @@ export default {
       this.model = Object.assign({}, record);
       this.visible = true;
     },
+    searchQuery() {
+      this.loadData(1);
+      this.selectedRowKeys = [];
+      this.selectionRows = [];
+      this.loadTabNumber();
+    },
+    searchReset() {
+      this.queryParam = {};
+      this.queryParam.taskId = this.task.id;
+      this.queryParam.checkState_MultiString = this.currentCheckState;
+      this.tabChange('all');
+      this.loadTabNumber();
+    },
     tabChange (key) {
       // 稽核状态(0:未处理;1:未完善;2:待稽核;3:待整改;4:已整改;5:稽核通过;)
-      if (key === 'undo') {
-        this.queryParam.checkState_MultiString = '0,1';
+      if (key === 'all') {
+        this.currentCheckState = null;
+        this.queryParam.checkState_MultiString = this.currentCheckState;
+        this.currentTab = 'all';
+      } else if (key === 'undo') {
+        this.currentCheckState = '0,1';
+        this.queryParam.checkState_MultiString = this.currentCheckState;
+        this.currentTab = 'undo';
       } else if (key === 'uncheck') {
-        this.queryParam.checkState_MultiString = '2,4';
+        this.currentCheckState = '2,4';
+        this.queryParam.checkState_MultiString = this.currentCheckState;
+        this.currentTab = 'uncheck';
       } else if (key === 'checked') {
-        this.queryParam.checkState_MultiString = '3';
+        this.currentCheckState = '3';
+        this.queryParam.checkState_MultiString = this.currentCheckState;
+        this.currentTab = 'checked';
       } else if (key === 'passed') {
-        this.queryParam.checkState_MultiString = '5';
+        this.currentCheckState = '5';
+        this.queryParam.checkState_MultiString = this.currentCheckState;
+        this.currentTab = 'passed';
       }
-      this.loadData();
+      this.loadData(1);
+    },
+    loadTabNumber () {
+      let url = this.url.count;
+      let params = {
+        id: this.task.id
+      }
+      let that = this;
+      getAction(url, params).then(res => {
+        let { result } = res;
+        if (result) {
+          that.count = result.count;
+          that.undoCount = result.undoCount;
+          that.uncheckCount = result.uncheckCount;
+          that.checkedCount = result.checkedCount;
+          that.passedCount = result.passedCount;
+          that.tabAll= '全部(' + result.count + ')';
+          that.tabUndo= '未完善(' + result.undoCount + ')';
+          that.tabUncheck= '待稽核(' + result.uncheckCount + ')';
+          that.tabChecked= '待整改(' + result.checkedCount + ')';
+          that.tabPassed= '稽核通过(' + result.passedCount + ')';
+        }
+      }).finally(() => {
+
+      })
     },
   }
 }