-
- 将确认 {ids.length} 笔 T+1 门店对账单
- {amountHint != null ? `,合计约 ¥${amountHint.toFixed(2)}` : ''}。此操作不可撤销。
-
-
{
- paymentRef = e.target.value;
- }}
- />
-
- ),
- okText: '确认打款',
- cancelText: '取消',
- onOk: async () => {
- const body = JSON.stringify({ paymentRef: paymentRef.trim() || undefined });
- if (ids.length === 1) {
- await request(`/admin/store-bills/${ids[0]}/confirm`, { method: 'POST', body });
- } else {
- setBatchLoading(true);
- try {
- await request('/admin/store-bills/batch-confirm', {
- method: 'POST',
- body: JSON.stringify({ ids }),
- });
- } finally {
- setBatchLoading(false);
- }
- }
- message.success('已确认打款');
- setSelectedKeys([]);
- reload();
- },
- });
- }
-
- function approveWithdraw(id: string) {
- let paymentRef = '';
- Modal.confirm({
- title: '审核通过并标记已结算?',
- content: (
-