线下支付支付成功更新paid

This commit is contained in:
lxy 2024-06-02 18:21:36 +08:00
parent f41d0d66f7
commit 93f7b1b93b
2 changed files with 7 additions and 3 deletions

View File

@ -86,7 +86,9 @@ export default function Render(props) {
});
}
else {
updateItem({}, row.id, 'succeedPaying');
updateItem({
paid:row.price,
}, row.id, 'succeedPaying');
setSpId(row.id);
}
}

View File

@ -114,7 +114,9 @@ export default function Render(props: WebComponentProps<EntityDict, 'pay', false
})
}
else {
updateItem({}, row.id!, 'succeedPaying');
updateItem({
paid: row?.price,
}, row.id!, 'succeedPaying');
setSpId(row.id!);
}
}
@ -133,7 +135,7 @@ export default function Render(props: WebComponentProps<EntityDict, 'pay', false
<div className={Styles.spCon}>
<Alert type="warning" message={t('csp.tips')} />
<Divider style={{ width: '80%', alignSelf: 'flex-end' }} />
<RenderOffline
<RenderOffline
pay={spRow as RowWithActions<EntityDict, 'pay'>}
t={t}
offline={offlineConfig}