fix: 修改bug

This commit is contained in:
fyy
2025-07-23 20:54:54 +08:00
parent db8186d055
commit f6da015fb7
7 changed files with 160 additions and 136 deletions

View File

@@ -127,24 +127,24 @@ function handleDownloadExcel() {
);
}
function handleView(row: Required<CleanForm>) {
function handleView(row: Required<CleanForm>) {
modalApi.setData({ id: row.id, readonly: true });
modalApi.open();
}
function handleAudit(row:any) {
function handleAudit(row: any) {
// 审核逻辑
// TODO: 实现审核功能
console.log('审核', row);
modalApi.setData({ id: row.id, readonly: true,audit:true,row:row });
modalApi.setData({ id: row.id, readonly: true, audit: true, row: row });
modalApi.open();
}
function handleRefund(row:any) {
function handleRefund(row: any) {
// 退定逻辑
// TODO: 实现退定功能
console.log('退定', row);
modalApi.setData({ id: row.id, readonly: true,refund:true,row:row });
modalApi.setData({ id: row.id, readonly: true, refund: true, row: row });
modalApi.open();
}
</script>
@@ -160,15 +160,6 @@ function handleRefund(row:any) {
>
{{ $t('pages.common.export') }}
</a-button>
<a-button
:disabled="!vxeCheckboxChecked(tableApi)"
danger
type="primary"
v-access:code="['property:clean:remove']"
@click="handleMultiDelete"
>
{{ $t('pages.common.delete') }}
</a-button>
<a-button
type="primary"
v-access:code="['property:clean:add']"
@@ -187,11 +178,20 @@ function handleRefund(row:any) {
<Space>
<ghost-button @click.stop="handleView(row)"> 查看 </ghost-button>
<template v-if="row.state === 0">
<ghost-button type="primary" @click.stop="handleAudit(row)">审核</ghost-button>
<ghost-button type="primary" @click.stop="handleAudit(row)"
>审核</ghost-button
>
</template>
<template v-else>
<ghost-button danger @click.stop="handleRefund(row)" v-if="row.isUnbooking === 0">退定</ghost-button>
<ghost-button disabled v-else>已退定</ghost-button>
<ghost-button
danger
@click.stop="handleRefund(row)"
v-if="row.isUnbooking === 0"
>退定</ghost-button
>
<ghost-button disabled v-else-if="row.isUnbooking === 1"
>已退定</ghost-button
>
</template>
</Space>
</template>