Commit 22c15a8f authored by 沈翠玲's avatar 沈翠玲

修改

parent 8cfd85b3
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
</h4> </h4>
</template> </template>
<div class="flex"> <div class="flex">
<div class="w-1/4 flex-shrink-0"> <div class="w-1/4 flex-shrink-0 after-border">
<p class="font-bold mb-3">审批进程</p> <p class="font-bold mb-3">审批进程</p>
<div :class="{ nopending: currentDetail.flowStatus !== 'pending' }"> <div :class="{ nopending: currentDetail.flowStatus !== 'pending' }">
<el-timeline style="max-width: 600px"> <el-timeline style="max-width: 600px">
...@@ -155,7 +155,7 @@ ...@@ -155,7 +155,7 @@
<el-form-item class="w-full" label="还款总额:" prop="code"> <el-form-item class="w-full" label="还款总额:" prop="code">
<el-input <el-input
v-model="form.totalRepayAmount" v-model="form.totalRepayAmount"
:disabled="currentDetail.flowStatus !== 'pending' || !authButtonListGet.includes('stages_edit_btn')" :disabled="currentDetail.flowStatus !== 'in_review' || !authButtonListGet.includes('stages_edit_btn')"
placeholder="请输入" placeholder="请输入"
@change="changePeriod" @change="changePeriod"
/> />
...@@ -268,7 +268,7 @@ ...@@ -268,7 +268,7 @@
@click="editOrConfirm" @click="editOrConfirm"
class="mr-1 my-2" class="mr-1 my-2"
v-permission="'stages_edit_btn'" v-permission="'stages_edit_btn'"
v-if="currentDetail.flowStatus === 'pending'" v-if="currentDetail.flowStatus === 'in_review'"
>{{ editFirst ? '确定' : '修改' }}</el-button >{{ editFirst ? '确定' : '修改' }}</el-button
> >
</div> </div>
...@@ -286,8 +286,8 @@ ...@@ -286,8 +286,8 @@
type="primary" type="primary"
@click="submitForm('fail')" @click="submitForm('fail')"
v-if=" v-if="
currentDetail.flowStatus === 'pending' && (currentDetail.flowStatus === 'pending' && authButtonListGet.includes('stages_tenant_apply_btn')) ||
(authButtonListGet.includes('stages_apply_btn') || authButtonListGet.includes('stages_tenant_apply_btn')) (currentDetail.flowStatus === 'in_review' && authButtonListGet.includes('stages_apply_btn'))
" "
>不通过</el-button >不通过</el-button
> >
...@@ -295,8 +295,8 @@ ...@@ -295,8 +295,8 @@
type="primary" type="primary"
@click="submitForm('pass')" @click="submitForm('pass')"
v-if=" v-if="
currentDetail.flowStatus === 'pending' && (currentDetail.flowStatus === 'pending' && authButtonListGet.includes('stages_tenant_apply_btn')) ||
(authButtonListGet.includes('stages_apply_btn') || authButtonListGet.includes('stages_tenant_apply_btn')) (currentDetail.flowStatus === 'in_review' && authButtonListGet.includes('stages_apply_btn'))
" "
>通过</el-button >通过</el-button
> >
...@@ -740,16 +740,24 @@ ...@@ -740,16 +740,24 @@
const params = { const params = {
...currentDetail.value, ...currentDetail.value,
...form, ...form,
repairTime: dayjs().format('YYYY-MM-DD HH:mm:ss'),
repairUser: {
username: userStore.userInfo?.username,
id: userStore.userInfo?.id,
},
images: images.length > 0 ? images : null, images: images.length > 0 ? images : null,
byStagesRecords: splitdata.value, byStagesRecords: splitdata.value,
loans: selectdList.value, loans: selectdList.value,
flowStatus: type, flowStatus: type,
}; };
if (authButtonListGet.includes('stages_tenant_apply_btn')) {
params['tenantTime'] = dayjs().format('YYYY-MM-DD HH:mm:ss')
params['tenantUser'] = {
username: userStore.userInfo?.username,
id: userStore.userInfo?.id,
}
} else {
params['repairTime'] = dayjs().format('YYYY-MM-DD HH:mm:ss')
params['repairUser'] = {
username: userStore.userInfo?.username,
id: userStore.userInfo?.id,
}
}
changeAmount(params).then((res) => { changeAmount(params).then((res) => {
if (res.success) { if (res.success) {
ElMessage.success({ ElMessage.success({
......
...@@ -370,7 +370,7 @@ ...@@ -370,7 +370,7 @@
width: 120, width: 120,
slots: { slots: {
default: ({ row, rowIndex }) => { default: ({ row, rowIndex }) => {
if (row.flowStatus === 'pending' && authButtonListGet.includes('stages_apply_btn')) { if (row.flowStatus === 'pending' && authButtonListGet.includes('stages_tenant_apply_btn')) {
return ( return (
<> <>
<ElButton type="primary" onClick={() => changeStatus(row)}> <ElButton type="primary" onClick={() => changeStatus(row)}>
...@@ -378,7 +378,7 @@ ...@@ -378,7 +378,7 @@
</ElButton> </ElButton>
</> </>
); );
} else if (row.flowStatus === 'in_review' && authButtonListGet.includes('stages_tenant_apply_btn')) { } else if (row.flowStatus === 'in_review' && authButtonListGet.includes('stages_apply_btn')) {
return ( return (
<> <>
<ElButton type="primary" onClick={() => changeStatus(row)}> <ElButton type="primary" onClick={() => changeStatus(row)}>
......
...@@ -223,8 +223,8 @@ ...@@ -223,8 +223,8 @@
type="primary" type="primary"
@click="submitForm('fail')" @click="submitForm('fail')"
v-if=" v-if="
currentDetail.flowStatus === 'pending' && (currentDetail.flowStatus === 'pending' && authButtonListGet.includes('reduction_tenant_apply_btn')) ||
(authButtonListGet.includes('reduction_apply_btn') || authButtonListGet.includes('reduction_tenant_apply_btn')) (currentDetail.flowStatus === 'in_review' && authButtonListGet.includes('reduction_apply_btn'))
" "
>不通过</el-button >不通过</el-button
> >
...@@ -232,8 +232,8 @@ ...@@ -232,8 +232,8 @@
type="primary" type="primary"
@click="submitForm('pass')" @click="submitForm('pass')"
v-if=" v-if="
currentDetail.flowStatus === 'pending' && (currentDetail.flowStatus === 'pending' && authButtonListGet.includes('reduction_tenant_apply_btn')) ||
(authButtonListGet.includes('reduction_apply_btn') || authButtonListGet.includes('reduction_tenant_apply_btn')) (currentDetail.flowStatus === 'in_review' && authButtonListGet.includes('reduction_apply_btn'))
" "
>通过</el-button >通过</el-button
> >
...@@ -567,8 +567,8 @@ ...@@ -567,8 +567,8 @@
id: userStore.userInfo?.id, id: userStore.userInfo?.id,
} }
} else { } else {
param['repairTime'] = dayjs().format('YYYY-MM-DD HH:mm:ss') params['repairTime'] = dayjs().format('YYYY-MM-DD HH:mm:ss')
param['repairUser'] = { params['repairUser'] = {
username: userStore.userInfo?.username, username: userStore.userInfo?.username,
id: userStore.userInfo?.id, id: userStore.userInfo?.id,
} }
......
...@@ -22,10 +22,8 @@ ...@@ -22,10 +22,8 @@
ref="ProTableRef" ref="ProTableRef"
:api="getRepayRecordPage" :api="getRepayRecordPage"
:paramCallback="paramCallback" :paramCallback="paramCallback"
:selectdList="selectdList"
> >
<template #left_buttons> <!-- <template #left_buttons>
<!-- <el-button type="primary">下载申请 </el-button> -->
<el-button <el-button
type="primary" type="primary"
@click="changeStatus" @click="changeStatus"
...@@ -34,9 +32,7 @@ ...@@ -34,9 +32,7 @@
:disabled="!selectdList || !selectdList.length" :disabled="!selectdList || !selectdList.length"
>审批 >审批
</el-button> </el-button>
<!-- <el-button type="primary">下载 </el-button> </template> -->
<el-button type="primary">批量修复上传 </el-button> -->
</template>
</ProTable> </ProTable>
<vxe-modal <vxe-modal
resize resize
...@@ -174,7 +170,7 @@ ...@@ -174,7 +170,7 @@
const config = computed(() => { const config = computed(() => {
return { return {
columns: [ columns: [
{ type: 'checkbox', width: 60, fixed: 'left' }, // { type: 'checkbox', width: 60, fixed: 'left' },
{ {
field: 'caseId', field: 'caseId',
showOverflow: 'tooltip', showOverflow: 'tooltip',
......
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