feat:退租审核增加(拒绝原因、审核时间)

fix:提现管理修复没有审核,时间已经显示问题
This commit is contained in:
yangqingyuan
2024-07-19 10:07:09 +08:00
parent 633ae12c9d
commit 8eee2c5b01
4 changed files with 22 additions and 4 deletions

View File

@@ -24,7 +24,7 @@ export interface OrderRefund {
status?: number;
merchantCode?: string;
createTime?: string;
updateTIme?: string;
updateTime?: string;
tenantId?: string;
}

View File

@@ -43,7 +43,7 @@ import {ref, reactive, watch, computed} from 'vue';
import { useUserStore } from '@/store/modules/user';
import { OrderRefund } from "@/api/order/refund/model";
import { updateOrderRefund } from "@/api/order/refund";
import { assignObject } from "ele-admin-pro";
import {assignObject, toDateString} from "ele-admin-pro";
const userStore = useUserStore();
// 当前用户信息
@@ -109,7 +109,8 @@ import { assignObject } from "ele-admin-pro";
...form,
orderRefundId: props.data?.orderRefundId,
orderId: props.data?.orderId,
tenantId: props.data?.tenantId
tenantId: props.data?.tenantId,
updateTime:toDateString(new Date(), 'yyyy-MM-dd HH:mm:ss'),
};
// 转字符串
updateOrderRefund(data)

View File

@@ -69,6 +69,10 @@
<a-button v-if="record.auditStatus == 10" @click="openEdit(record)">审核</a-button>
</a-space>
</template>
<template v-if="column.key === 'updateTime'">
<span v-if="record.auditStatus ===10">-</span>
<span v-else>{{ record.updateTime }}</span>
</template>
</template>
</ele-pro-table>
</a-card>
@@ -142,6 +146,12 @@
key: 'applyDesc',
ellipsis: true
},
{
title: '拒绝原因',
dataIndex: 'refuseDesc',
key: 'refuseDesc',
ellipsis: true
},
{
title: '实际返还金额',
dataIndex: 'refundMoney',
@@ -152,6 +162,12 @@
key: 'auditStatus',
dataIndex: 'auditStatus'
},
{
title: '审核时间',
dataIndex: 'updateTime',
key: 'updateTime',
customRender: ({ text }) => toDateString(text)
},
{
title: '创建时间',
dataIndex: 'createTime',

View File

@@ -78,7 +78,8 @@
{{ record.createTime }}
</template>
<template v-if="column.key === 'updateTime'">
{{ record.updateTime }}
<span v-if="record.applyStatus ===20">{{ record.updateTime }}</span>
<span v-else>-</span>
</template>
</template>