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

业务审批

parent c40dec0e
...@@ -61,6 +61,10 @@ export const repayRecordFlowStatusByIds = (params) => { ...@@ -61,6 +61,10 @@ export const repayRecordFlowStatusByIds = (params) => {
export const saveReduce = (data) => { export const saveReduce = (data) => {
return request.post('/reduce/save', data); return request.post('/reduce/save', data);
}; };
// 减免申请审批
export const auditReduce = (data) => {
return request.post('/reduce/audit', data);
};
// 减免申请列表 // 减免申请列表
export const getReducePage = (params) => { export const getReducePage = (params) => {
return request.get('/reduce/page', params); return request.get('/reduce/page', params);
......
...@@ -36,14 +36,25 @@ ...@@ -36,14 +36,25 @@
currentDetail?.applyUser?.username currentDetail?.applyUser?.username
}}</span> }}</span>
</el-timeline-item> </el-timeline-item>
<el-timeline-item
:timestamp="currentDetail?.tenantTime"
:color="currentDetail.tenantUser ? '#234ca3' : null"
>
<p class="font-bold text-sm">调解中心审批环节</p>
<span
class="text-xs bg-gray-200 rounded-sm text-slate-900 px-2"
v-if="currentDetail.tenantUser"
>{{ currentDetail?.tenantUser?.username }}</span
>
</el-timeline-item>
<el-timeline-item <el-timeline-item
:timestamp="currentDetail?.repairTime" :timestamp="currentDetail?.repairTime"
:color="currentDetail.flowStatus !== 'pending' ? '#234ca3' : null" :color="currentDetail.repairUser ? '#234ca3' : null"
> >
<p class="font-bold text-sm">平台审批环节</p> <p class="font-bold text-sm">平台审批环节</p>
<span <span
class="text-xs bg-gray-200 rounded-sm text-slate-900 px-2" class="text-xs bg-gray-200 rounded-sm text-slate-900 px-2"
v-if="currentDetail.flowStatus !== 'pending'" v-if="currentDetail.repairUser"
>{{ currentDetail?.repairUser?.username }}</span >{{ currentDetail?.repairUser?.username }}</span
> >
</el-timeline-item> </el-timeline-item>
......
...@@ -370,15 +370,31 @@ ...@@ -370,15 +370,31 @@
width: 120, width: 120,
slots: { slots: {
default: ({ row, rowIndex }) => { default: ({ row, rowIndex }) => {
return ( if (row.flowStatus === 'pending' && authButtonListGet.includes('stages_apply_btn')) {
<> return (
<ElButton type="primary" onClick={() => changeStatus(row)}> <>
{row.flowStatus === 'pending' && authButtonListGet.includes('stages_apply_btn') <ElButton type="primary" onClick={() => changeStatus(row)}>
? '查看并审核' 调解中心审核
: '查看'} </ElButton>
</ElButton> </>
</> );
); } else if (row.flowStatus === 'in_review' && authButtonListGet.includes('stages_tenant_apply_btn')) {
return (
<>
<ElButton type="primary" onClick={() => changeStatus(row)}>
平台审核
</ElButton>
</>
);
} else {
return (
<>
<ElButton type="primary" onClick={() => changeStatus(row)}>
查看
</ElButton>
</>
);
}
}, },
}, },
}, },
......
...@@ -38,14 +38,25 @@ ...@@ -38,14 +38,25 @@
currentDetail?.applyUser?.username currentDetail?.applyUser?.username
}}</span> }}</span>
</el-timeline-item> </el-timeline-item>
<el-timeline-item
:timestamp="currentDetail?.tenantTime"
:color="currentDetail.tenantUser ? '#234ca3' : null"
>
<p class="font-bold text-sm">调解中心审批环节</p>
<span
class="text-xs bg-gray-200 rounded-sm text-slate-900 px-2"
v-if="currentDetail.tenantUser"
>{{ currentDetail?.tenantUser?.username }}</span
>
</el-timeline-item>
<el-timeline-item <el-timeline-item
:timestamp="currentDetail?.repairTime" :timestamp="currentDetail?.repairTime"
:color="currentDetail.flowStatus !== 'pending' ? '#234ca3' : null" :color="currentDetail.repairUser ? '#234ca3' : null"
> >
<p class="font-bold text-sm">平台审批环节</p> <p class="font-bold text-sm">平台审批环节</p>
<span <span
class="text-xs bg-gray-200 rounded-sm text-slate-900 px-2" class="text-xs bg-gray-200 rounded-sm text-slate-900 px-2"
v-if="currentDetail.flowStatus !== 'pending'" v-if="currentDetail.repairUser"
>{{ currentDetail?.repairUser?.username }}</span >{{ currentDetail?.repairUser?.username }}</span
> >
</el-timeline-item> </el-timeline-item>
...@@ -237,7 +248,7 @@ ...@@ -237,7 +248,7 @@
import dayjs from 'dayjs'; import dayjs from 'dayjs';
import { computed } from 'vue'; import { computed } from 'vue';
import { reactive, ref } from 'vue'; import { reactive, ref } from 'vue';
import { saveReduce } from '@/api/property'; import { auditReduce } from '@/api/property';
import { ElMessage, ElTag } from 'element-plus'; import { ElMessage, ElTag } from 'element-plus';
import { Download, ZoomIn } from '@element-plus/icons-vue'; import { Download, ZoomIn } from '@element-plus/icons-vue';
import { listByBorrower } from '@/api/property'; import { listByBorrower } from '@/api/property';
...@@ -554,7 +565,7 @@ ...@@ -554,7 +565,7 @@
images: images.length > 0 ? images : null, images: images.length > 0 ? images : null,
reduceRecords: list, reduceRecords: list,
}; };
saveReduce(params).then((res) => { auditReduce(params).then((res) => {
if (res.success) { if (res.success) {
ElMessage.success({ ElMessage.success({
message: '保存成功', message: '保存成功',
......
...@@ -329,16 +329,31 @@ ...@@ -329,16 +329,31 @@
width: 120, width: 120,
slots: { slots: {
default: ({ row, rowIndex }) => { default: ({ row, rowIndex }) => {
return ( if (row.flowStatus === 'pending' && authButtonListGet.includes('reduction_tenant_apply_btn')) {
<> return (
<ElButton type="primary" onClick={() => changeStatus(row)}> <>
{row.flowStatus === 'pending' && <ElButton type="primary" onClick={() => changeStatus(row)}>
authButtonListGet.includes('reduction_apply_btn') 调解中心审核
? '查看并审核' </ElButton>
: '查看'} </>
</ElButton> );
</> } else if (row.flowStatus === 'in_review' && authButtonListGet.includes('reduction_apply_btn')) {
); return (
<>
<ElButton type="primary" onClick={() => changeStatus(row)}>
平台审核
</ElButton>
</>
);
} else {
return (
<>
<ElButton type="primary" onClick={() => changeStatus(row)}>
查看
</ElButton>
</>
);
}
}, },
}, },
}, },
......
...@@ -339,13 +339,23 @@ ...@@ -339,13 +339,23 @@
: false, : false,
slots: { slots: {
default: ({ row, rowIndex }) => { default: ({ row, rowIndex }) => {
return ( if (row.flowStatus === 'pending' && authButtonListGet.includes('repayment_tenant_apply_btn')) {
<> return (
<ElButton type="primary" onClick={() => changeStatus(row)}> <>
审批 <ElButton type="primary" onClick={() => changeStatus(row)}>
</ElButton> 调解中心审核
</> </ElButton>
); </>
);
} else if (row.flowStatus === 'in_review' && authButtonListGet.includes('repayment_apply_btn')) {
return (
<>
<ElButton type="primary" onClick={() => changeStatus(row)}>
平台审核
</ElButton>
</>
);
}
}, },
}, },
}, },
......
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