fix:更新bug
All checks were successful
Build and Push Docker Image / build (push) Successful in 5m5s

This commit is contained in:
Your Name 2026-04-23 10:19:50 +08:00
parent 3d574f204a
commit 66ec3a87bb
5 changed files with 24 additions and 11 deletions

View File

@ -2,7 +2,7 @@ import { MyBetaModalFormProps } from '@/common';
import { ProCard } from '@ant-design/pro-components';
export default function Attachments(props: MyBetaModalFormProps) {
return (
<ProCard title="合同附件">
<ProCard title="件文件">
{props?.item?.map((item: any) => {
const handleDownload = async (e: React.MouseEvent) => {
e.preventDefault();

View File

@ -15,7 +15,6 @@ import {
ApprovalTemplatesTypeEnum,
HouseBillsBillStatusEnum,
HouseBillsTypeEnum,
RefundsTypeEnum,
} from '@/gen/Enums';
import { ProTable } from '@ant-design/pro-components';
import { useNavigate } from '@umijs/max';
@ -86,7 +85,13 @@ export default function Index({ title = '账单明细' }) {
download={Apis.Bill.HouseBills}
/>
),
add: <BillCreate key="Create" reload={action?.reload} title={title} />,
add: (
<BillCreate
key="Create"
reload={action?.reload}
title={title}
/>
),
}}
/>,
]}
@ -226,7 +231,9 @@ export default function Index({ title = '账单明细' }) {
title="查看"
/>
),
qrcode: <ShowQrCode key="ShowQrCode" item={item} title="收款码" />,
qrcode: (
<ShowQrCode key="ShowQrCode" item={item} title="收款码" />
),
pay: (
<PayCreate
item={{ ...item, size: 'small' }}
@ -234,7 +241,13 @@ export default function Index({ title = '账单明细' }) {
title={title}
/>
),
update: <BillUpdate item={item} reload={action?.reload} title={title} />,
update: (
<BillUpdate
item={item}
reload={action?.reload}
title={title}
/>
),
complete: (
<RefundComplete
item={{ ...item, id: item?.refunds[0]?.id }}
@ -246,7 +259,7 @@ export default function Index({ title = '账单明细' }) {
<BillRefund
item={{
...item,
type: RefundsTypeEnum.HouseBill.value,
type: item?.type,
approval_type: ApprovalTemplatesTypeEnum.Refund.value,
total_paid_amount: item.total_paid_amount,
}}

View File

@ -76,9 +76,9 @@
transition: color 0.3s ease;
}
&:hover &_label {
color: #f77a3a;
}
// &:hover &_label {
// color: #f77a3a;
// }
&_footer {
width: 100%;

View File

@ -63,7 +63,7 @@ export default function Create(props: MyBetaModalFormProps) {
{
valueType: 'formList',
dataIndex: 'members',
title: '团队成员',
// title: '团队成员',
formItemProps: { ...rulesHelper.array },
fieldProps: {
copyIconProps: false,

View File

@ -68,7 +68,7 @@ export default function Index({ title = '应急小组' }) {
<Update item={item} reload={action?.reload} title={title} />
<MyButtons.Delete
onConfirm={() =>
Apis.Emergency.EmergencyEventCategories.Delete({
Apis.Emergency.EmergencyEventTeams.Delete({
id: item.id,
}).then(() => action?.reload())
}