Browse Source

no message

linwenxin 4 months ago
parent
commit
5c1c1a0f7c

+ 8 - 0
src/api/appraisalStatement.js

@@ -1,5 +1,13 @@
 import request, { postBlob, getBlob, handleImport } from '@/utils/request'
 
+export function appraiseApplyApplyCount(params) {
+  return request({
+    url: `/appraise/apply/apply/count`,
+    method: 'post',
+    params
+  })
+}
+
 export function appraiseApplyApplyList(data) {
   return request({
     url: `/appraise/apply/apply/list?moduleId=${data.moduleId}`,

+ 65 - 3
src/views/workOrder/appraiseAppeal/appraisalStatement/index.vue

@@ -8,6 +8,7 @@
     :tableAttributes="tableAttributes"
     :tableEvents="tableEvents"
     :operation="operation()"
+    :moreParameters="moreParameters"
   >
     <div class="cartographer_big">
       <el-dialog title="配置" width="100%" :modal="false" :visible.sync="formBool" :before-close="handleClose">
@@ -60,7 +61,8 @@ import {
   appraiseApplyApplyConfirm,
   appraiseApplyBatchUpdateEnd,
   appraiseApplyBatchUpdateReset,
-  appraiseApplyApplyReject
+  appraiseApplyApplyReject,
+  appraiseApplyApplyCount
 } from '@/api/appraisalStatement'
 import operation_mixin from '@/components/template/operation_mixin.js'
 import { required, requiredValueMin } from '@/components/template/rules_verify.js'
@@ -119,10 +121,27 @@ export default {
         applicationDocument: []
       },
       formRules: {},
-      appraiseApplyCategoryList: []
+      appraiseApplyCategoryList: [],
+      zhuangtaiList: []
     }
   },
   computed: {
+    moreParameters() {
+      return [
+        {
+          name: '状态',
+          key: 'zhuangtai',
+          value: '',
+          conditions: [
+            {
+              label: '全部',
+              value: ''
+            },
+            ...this.zhuangtaiList
+          ]
+        }
+      ]
+    },
     optionsEvensGroup() {
       return [
         [
@@ -596,7 +615,50 @@ export default {
   },
   methods: {
     // 列表请求函数
-    getList: appraiseApplyApplyList,
+    getList(p, cb) {
+      var pam = JSON.parse(JSON.stringify(p))
+      try {
+        if (pam.zhuangtai == 'dss') {
+          pam.params.push({ param: 'a.status', compare: '=', value: 'WAIT' })
+        } else if (pam.zhuangtai == 'dzxss') {
+          pam.params.push({ param: 'a.status', compare: '=', value: 'WAIT_CENTER' })
+        } else if (pam.zhuangtai == 'wdwz') {
+          pam.params.push({ param: 'a.websit_result', compare: '=', value: 'NOT' })
+        } else if (pam.zhuangtai == 'wdqz') {
+          pam.params.push({ param: 'a.websit_result', compare: '=', value: 'ALL' })
+        } else if (pam.zhuangtai == 'wdbz') {
+          pam.params.push({ param: 'a.websit_result', compare: '=', value: 'HALF' })
+        }
+        cb && cb(pam)
+        return appraiseApplyApplyList(pam)
+      } catch (err) {
+      } finally {
+        appraiseApplyApplyCount().then(res => {
+          this.zhuangtaiList = [
+            {
+              label: `待申诉(${res.data.waitCount})`,
+              value: 'dss'
+            },
+            {
+              label: `待中心审核(${res.data.centerCount})`,
+              value: 'dzxss'
+            },
+            {
+              label: '网点无责',
+              value: 'wdwz'
+            },
+            {
+              label: '网点全责',
+              value: 'wdqz'
+            },
+            {
+              label: '网点半责',
+              value: 'wdbz'
+            }
+          ]
+        })
+      }
+    },
     // 导出
     exportList: appraiseApplyApplyListExport,
     // 辅材工单内容