feat:【mall 商城】分销提现的迁移(antd 50%)
This commit is contained in:
@@ -39,10 +39,10 @@ export function useGridFormSchema(): VbenFormSchema[] {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
fieldName: 'userName',
|
fieldName: 'userName',
|
||||||
label: '真实名字',
|
label: '真实姓名',
|
||||||
component: 'Input',
|
component: 'Input',
|
||||||
componentProps: {
|
componentProps: {
|
||||||
placeholder: '请输入真实名字',
|
placeholder: '请输入真实姓名',
|
||||||
allowClear: true,
|
allowClear: true,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@@ -73,6 +73,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
|
|||||||
componentProps: {
|
componentProps: {
|
||||||
...getRangePickerDefaultProps(),
|
...getRangePickerDefaultProps(),
|
||||||
allowClear: true,
|
allowClear: true,
|
||||||
|
placeholder: ['开始时间', '结束时间'],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -29,19 +29,23 @@ import { useGridColumns, useGridFormSchema } from './data';
|
|||||||
defineOptions({ name: 'BrokerageWithdraw' });
|
defineOptions({ name: 'BrokerageWithdraw' });
|
||||||
|
|
||||||
/** 刷新表格 */
|
/** 刷新表格 */
|
||||||
function onRefresh() {
|
function handleRefresh() {
|
||||||
gridApi.query();
|
gridApi.query();
|
||||||
}
|
}
|
||||||
|
|
||||||
/** 审核通过 */
|
/** 审核通过 */
|
||||||
async function handleApprove(row: MallBrokerageWithdrawApi.BrokerageWithdraw) {
|
async function handleApprove(row: MallBrokerageWithdrawApi.BrokerageWithdraw) {
|
||||||
|
await confirm('确定要审核通过吗?');
|
||||||
|
const hideLoading = message.loading({
|
||||||
|
content: '审核通过中 ...',
|
||||||
|
duration: 0,
|
||||||
|
});
|
||||||
try {
|
try {
|
||||||
await confirm('确定要审核通过吗?');
|
|
||||||
await approveBrokerageWithdraw(row.id);
|
await approveBrokerageWithdraw(row.id);
|
||||||
message.success($t('ui.actionMessage.operationSuccess'));
|
message.success($t('ui.actionMessage.operationSuccess'));
|
||||||
onRefresh();
|
handleRefresh();
|
||||||
} catch (error) {
|
} finally {
|
||||||
console.error('审核失败:', error);
|
hideLoading();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -64,7 +68,7 @@ function handleReject(row: MallBrokerageWithdrawApi.BrokerageWithdraw) {
|
|||||||
id: row.id as number,
|
id: row.id as number,
|
||||||
auditReason: val,
|
auditReason: val,
|
||||||
});
|
});
|
||||||
onRefresh();
|
handleRefresh();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -73,13 +77,17 @@ function handleReject(row: MallBrokerageWithdrawApi.BrokerageWithdraw) {
|
|||||||
async function handleRetryTransfer(
|
async function handleRetryTransfer(
|
||||||
row: MallBrokerageWithdrawApi.BrokerageWithdraw,
|
row: MallBrokerageWithdrawApi.BrokerageWithdraw,
|
||||||
) {
|
) {
|
||||||
|
await confirm('确定要重新转账吗?');
|
||||||
|
const hideLoading = message.loading({
|
||||||
|
content: '审核通过中 ...',
|
||||||
|
duration: 0,
|
||||||
|
});
|
||||||
try {
|
try {
|
||||||
await confirm('确定要重新转账吗?');
|
|
||||||
await approveBrokerageWithdraw(row.id);
|
await approveBrokerageWithdraw(row.id);
|
||||||
message.success($t('ui.actionMessage.operationSuccess'));
|
message.success($t('ui.actionMessage.operationSuccess'));
|
||||||
onRefresh();
|
handleRefresh();
|
||||||
} catch (error) {
|
} finally {
|
||||||
console.error('重新转账失败:', error);
|
hideLoading();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -107,6 +115,7 @@ const [Grid, gridApi] = useVbenVxeGrid({
|
|||||||
},
|
},
|
||||||
rowConfig: {
|
rowConfig: {
|
||||||
keyField: 'id',
|
keyField: 'id',
|
||||||
|
isHover: true,
|
||||||
},
|
},
|
||||||
toolbarConfig: {
|
toolbarConfig: {
|
||||||
refresh: true,
|
refresh: true,
|
||||||
@@ -130,11 +139,12 @@ const [Grid, gridApi] = useVbenVxeGrid({
|
|||||||
</template>
|
</template>
|
||||||
<div v-if="row.qrCodeUrl" class="mt-2">
|
<div v-if="row.qrCodeUrl" class="mt-2">
|
||||||
<div>收款码:</div>
|
<div>收款码:</div>
|
||||||
<img :src="row.qrCodeUrl" class="mt-1 h-10 w-10" />
|
<div>
|
||||||
|
<img :src="row.qrCodeUrl" class="mt-1 h-10 w-10" />
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<template #status-info="{ row }">
|
<template #status-info="{ row }">
|
||||||
<div>
|
<div>
|
||||||
<DictTag
|
<DictTag
|
||||||
@@ -152,11 +162,9 @@ const [Grid, gridApi] = useVbenVxeGrid({
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<template #actions="{ row }">
|
<template #actions="{ row }">
|
||||||
<TableAction
|
<TableAction
|
||||||
:actions="[
|
:actions="[
|
||||||
// 审核中状态且没有支付转账编号,显示通过和驳回按钮
|
|
||||||
{
|
{
|
||||||
label: '通过',
|
label: '通过',
|
||||||
type: 'link' as const,
|
type: 'link' as const,
|
||||||
|
|||||||
Reference in New Issue
Block a user