fix: 修改bug
This commit is contained in:
@@ -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>
|
||||
|
@@ -42,7 +42,7 @@ export const columns: VxeGridProps['columns'] = [
|
||||
{
|
||||
title: '劳务名称',
|
||||
field: 'name',
|
||||
width: '120',
|
||||
minWidth: '120',
|
||||
},
|
||||
{
|
||||
title: '计量单位',
|
||||
@@ -95,6 +95,7 @@ export const columns: VxeGridProps['columns'] = [
|
||||
fixed: 'right',
|
||||
slots: { default: 'action' },
|
||||
title: '操作',
|
||||
width: '230',
|
||||
},
|
||||
];
|
||||
|
||||
|
Reference in New Issue
Block a user