feat(layout):优化API地址配置逻辑- 移除对API_BASE_URL常量的依赖- 生产环境优先使用远程配置的ApiUrl
- 简化请求工具中API地址获取逻辑 - 删除冗余的订单结算功能代码
This commit is contained in:
@@ -262,35 +262,6 @@ const reload = (where?: ShopDealerOrderParam) => {
|
||||
tableRef?.value?.reload({where: where});
|
||||
};
|
||||
|
||||
/* 结算单个订单 */
|
||||
// const settleOrder = (row: ShopDealerOrder) => {
|
||||
// const totalCommission = (parseFloat(row.firstMoney || '0') +
|
||||
// parseFloat(row.secondMoney || '0') +
|
||||
// parseFloat(row.thirdMoney || '0')).toFixed(2);
|
||||
//
|
||||
// Modal.confirm({
|
||||
// title: '确认结算',
|
||||
// content: `确定要结算此订单吗?总佣金金额:¥${totalCommission}`,
|
||||
// icon: createVNode(DollarOutlined),
|
||||
// okText: '确认结算',
|
||||
// okType: 'primary',
|
||||
// cancelText: '取消',
|
||||
// onOk: () => {
|
||||
// const hide = message.loading('正在结算...', 0);
|
||||
// // 这里调用结算API
|
||||
// updateSdyDealerOrder({
|
||||
// ...row,
|
||||
// isSettled: 1
|
||||
// })
|
||||
// setTimeout(() => {
|
||||
// hide();
|
||||
// message.success('结算成功');
|
||||
// reload();
|
||||
// }, 1000);
|
||||
// }
|
||||
// });
|
||||
// };
|
||||
|
||||
/* 批量结算 */
|
||||
const batchSettle = () => {
|
||||
if (!selection.value.length) {
|
||||
|
||||
Reference in New Issue
Block a user