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

业务审批

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