Commit 68884e5c authored by 沈翠玲's avatar 沈翠玲

我的稽核

parent 83b5ad32
<template> <template>
<div class="table-box"> <div class="table-box">
<div> <div class=" bg-white">
<ProTable
:config="config"
ref="caseLRef"
:api="getTrackRecord"
:paramCallback="paramCallback"
>
<template #table_top>
<div>
<el-tabs v-model="activeName" type="card" class="demo-tabs" @tab-click="handleClick"> <el-tabs v-model="activeName" type="card" class="demo-tabs" @tab-click="handleClick">
<el-tab-pane <el-tab-pane
:label="item.label" :label="item.label"
:name="item.value" :name="item.value"
v-for="(item, index) in AuditStatus" v-for="(item, index) in tabs"
:key="index" :key="index"
></el-tab-pane> >
</el-tabs> <template #label>
<div>
{{item.label}}
<el-badge :value='item.msg' :max="9999"></el-badge>
</div> </div>
</template> </template>
</el-tab-pane>
</el-tabs>
</div>
<div>
<ProTable
:config="config"
ref="caseLRef"
:api="getTrackRecord"
:paramCallback="paramCallback"
>
<!-- 表格 header 按钮 --> <!-- 表格 header 按钮 -->
<template #left_buttons> <template #left_buttons>
<el-button <el-button
...@@ -46,32 +51,81 @@ ...@@ -46,32 +51,81 @@
import { getTrackRecord } from '@/api/property'; import { getTrackRecord } from '@/api/property';
import { batchSave } from '@/api/audit'; import { batchSave } from '@/api/audit';
import { useUserStore } from '@/stores/modules/user'; import { useUserStore } from '@/stores/modules/user';
const { userInfo } = useUserStore();
import { getTenantPage } from '@/api/tenant'; import { getTenantPage } from '@/api/tenant';
import { useDict } from '@/hooks/useDict'; import { useDict } from '@/hooks/useDict';
import { watch } from 'vue';
const { PhoneResultStatus, ReduceType, FlowStatus, FollowStatus, AuditStatus, CaseStatus } = useDict("PhoneResultStatus","ReduceType", "FlowStatus", "FollowStatus","AuditStatus", "CaseStatus"); const { PhoneResultStatus, ReduceType, FlowStatus, FollowStatus, AuditStatus, CaseStatus } = useDict("PhoneResultStatus","ReduceType", "FlowStatus", "FollowStatus","AuditStatus", "CaseStatus");
const envs = getAppEnvConfig(); const envs = getAppEnvConfig();
const { userInfo } = useUserStore();
import { reactive, ref } from 'vue'; import { reactive, ref } from 'vue';
const downloadfile = inject('download'); const downloadfile = inject('download');
const allocationModalRef = ref(); const allocationModalRef = ref();
const caseLRef = ref(); const caseLRef = ref();
const selectdList = ref([]); const selectdList = ref([]);
const tabs = ref([]);
const callDrawerRef = ref(); const callDrawerRef = ref();
const srcList = ref([]); const srcList = ref([]);
const RefImage = ref(false); const RefImage = ref(false);
const onCheckboxChange = (row) => { const onCheckboxChange = (row) => {
selectdList.value = row.records; selectdList.value = row.records;
}; };
watch(
() => AuditStatus.value,
(newValue, oldValue) => {
const list = []
if (AuditStatus && AuditStatus.value && AuditStatus.value.length) {
AuditStatus.value.forEach(async e => {
const param = {
current: 1,
size: 1,
auditStatus: e.value,
followStatus: [
'progress',
'pass_on',
'no_pass',
'Claims_unrelated_to_creditors',
'Claiming_not_to_be_myself',
]
}
const t = e.value
if (userInfo.id) {
param['createBy'] = userInfo.id;
}
let result = new Promise((resolve, reject) => {
getTrackRecord(param).then(res => {
const obj = {}
obj[e.value] = res
resolve(obj)
})
});
list.push(result)
})
}
Promise.all(list).then(res => {
console.log(res)
let tttt = {}
res.forEach(e => {
tttt = {...tttt, ...e}
})
AuditStatus.value.forEach(e => {
const obj = JSON.parse(JSON.stringify(e))
obj['msg'] = tttt[e.value].result.page.totalElements
tabs.value.push(obj)
})
})
}
);
const activeName = ref('un_audit'); const activeName = ref('un_audit');
const callMode = ref(''); const callMode = ref('');
const paramCallback = (param) => { const paramCallback = (param) => {
const obj = JSON.parse(JSON.stringify(param)); const obj = JSON.parse(JSON.stringify(param));
obj['auditStatus'] = activeName.value;
if (userInfo.id) { if (userInfo.id) {
obj['createBy'] = userInfo.id; obj['createBy'] = userInfo.id;
} }
obj['auditStatus'] = activeName.value;
if (obj['trackTime']) { if (obj['trackTime']) {
if (obj['trackTime'][0]) obj['trackTimeBegin'] = obj['trackTime'][0]; if (obj['trackTime'][0]) obj['trackTimeBegin'] = obj['trackTime'][0];
if (obj['trackTime'][1]) obj['trackTimeEnd'] = obj['trackTime'][1]; if (obj['trackTime'][1]) obj['trackTimeEnd'] = obj['trackTime'][1];
...@@ -150,7 +204,7 @@ ...@@ -150,7 +204,7 @@
); );
}, },
}, },
// search: { el: 'input', props: { clearable: true }, key: 'cpeName', labelWidth: 78 }, search: { el: 'input', props: { clearable: true }, key: 'cpeName', labelWidth: 78 },
}, },
{ {
showOverflow: 'tooltip', showOverflow: 'tooltip',
...@@ -162,7 +216,7 @@ ...@@ -162,7 +216,7 @@
}, },
}, },
enum: () => getTenantPage({ current: 1, size: 999999999, status: 'enable' }), enum: () => getTenantPage({ current: 1, size: 999999999, status: 'enable' }),
// search: { el: 'select', props: { filterable: true }, key: 'tenantId', labelWidth: 78 }, search: { el: 'select', props: { filterable: true }, key: 'tenantId', labelWidth: 78 },
fieldNames: { label: 'name', value: 'id' }, fieldNames: { label: 'name', value: 'id' },
title: '调解中心', title: '调解中心',
width: 100, width: 100,
...@@ -285,7 +339,7 @@ ...@@ -285,7 +339,7 @@
<> <>
{row.voices.map((item, index) => ( {row.voices.map((item, index) => (
<el-icon> <el-icon>
<Download onClick={() => download(item)} /> <Download onClick={() => download(item)} style="cursor: pointer;" />
</el-icon> </el-icon>
))} ))}
</> </>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment