Commit b34fa970 authored by 沈翠玲's avatar 沈翠玲

业务审批

parent d6f85ce9
<template> <template>
<div class="table-box"> <div class="table-box">
<!-- <div class=" bg-white pt-2 pl-2"> <div class=" bg-white pt-2 pl-2">
<el-tabs v-model="activeName" class="demo-tabs" @tab-click="handleClick"> <el-tabs v-model="activeName" class="demo-tabs" @tab-click="handleClick" v-if="roleType !== 'view'">
<el-tab-pane <el-tab-pane
:label="item.label" :label="item.label"
:name="item.value" :name="item.value"
...@@ -16,14 +16,14 @@ ...@@ -16,14 +16,14 @@
</template> </template>
</el-tab-pane> </el-tab-pane>
</el-tabs> </el-tabs>
</div> --> </div>
<ProTable ref="proTable" :config="config" :api="func" :paramCallback="paramCallback"> <ProTable ref="proTable" :config="config" :api="func" :paramCallback="paramCallback">
</ProTable> </ProTable>
</div> </div>
</template> </template>
<script setup lang="jsx" name="platformManage"> <script setup lang="jsx" name="platformManage">
import { ref, reactive, onMounted } from 'vue'; import { ref, reactive, onMounted, computed } from 'vue';
import { Plus, Delete, Edit, Setting } from '@element-plus/icons-vue'; import { Plus, Delete, Edit, Setting } from '@element-plus/icons-vue';
import { getcustomerReportPage, getriskPage, getlegalPage } from '@/api/customer'; import { getcustomerReportPage, getriskPage, getlegalPage } from '@/api/customer';
import { ElMessageBox, ElMessage, ElButton, ElTag } from 'element-plus'; import { ElMessageBox, ElMessage, ElButton, ElTag } from 'element-plus';
...@@ -41,7 +41,15 @@ ...@@ -41,7 +41,15 @@
const onCheckboxChange = (row) => { const onCheckboxChange = (row) => {
selectdList.value = row.records; selectdList.value = row.records;
}; };
const roleType = computed(() => {
if (route.fullPath.includes('infoGather/dangerReport')) {
return 'view'
} else if (route.fullPath.includes('/business-approval/riskManager')) {
return 'risk'
}else if (route.fullPath.includes('/business-approval/legalManager')) {
return 'legal'
}
});
const router = useRouter(); const router = useRouter();
const func = () => { const func = () => {
if (route.fullPath.includes('infoGather/dangerReport')) { if (route.fullPath.includes('infoGather/dangerReport')) {
...@@ -60,6 +68,32 @@ ...@@ -60,6 +68,32 @@
if (obj['createTime'][1]) obj['createTimeEnd'] = obj['createTime'][1]; if (obj['createTime'][1]) obj['createTimeEnd'] = obj['createTime'][1];
delete obj['createTime']; delete obj['createTime'];
} }
if (roleType.value === 'risk') {
obj['riskControlStatus'] = activeName.value;
} else if (roleType.value === 'legal') {
obj['legalAffairStatus'] = activeName.value;
}
setTimeout(() => {
const arr = JSON.parse(JSON.stringify(FlowStatus.value))
// getRepairApplyTotal({...obj, flowStatus: null}).then(res => {
// if (res.success) {
// arr.forEach(item => {
// const tt = res.result.find(v => v.flowStatus === item.value)
// if (tt) {
// item['msg'] = tt.number
// } else {
// item['msg'] = 0
// }
// })
// tabs.value = arr
// } else {
// tabs.value = arr
// }
// }).catch(e => {
// tabs.value = arr
// })
tabs.value = arr
}, (FlowStatus.value && FlowStatus.value.length) ? 100 : 1000)
paramObj.value = obj paramObj.value = obj
return obj; return obj;
}; };
......
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