feat(shop): 添加分销商资金流动管理功能
- 在 shopDealerOrder 模型中新增 title 和 degreePrice 字段 - 优化 request 工具函数,仅在生产环境使用 localStorage 的 ApiUrl - 新增 shopDealerCapital 资金流动记录的完整 CRUD 功能 - 包括搜索组件、编辑弹窗和列表页面 - 支持四种资金流动类型:佣金收入、提现支出、转账收支 - 实现资金流动记录的新增、编辑、删除和批量删除功能 - 在 shopDealerOrder 编辑页调整佣金计算逻辑和显示方式 - 更新订单列表页字段展示,替换 comments 为 title- 调整订单导入提示文案,增加结算确认说明 -优化订单编辑页分销商佣金比例和收益计算显示
This commit is contained in:
@@ -22,8 +22,8 @@
|
||||
</template>
|
||||
<template #bodyCell="{ column, record }">
|
||||
|
||||
<template v-if="column.key === 'comments'">
|
||||
<div>{{ record.comments }}</div>
|
||||
<template v-if="column.key === 'title'">
|
||||
<div>{{ record.title }}</div>
|
||||
<div class="text-gray-400">用户ID:{{ record.userId }}</div>
|
||||
</template>
|
||||
|
||||
@@ -31,12 +31,12 @@
|
||||
{{ parseFloat(record.orderPrice).toFixed(2) }}
|
||||
</template>
|
||||
|
||||
<template v-if="column.key === 'orderPrice1000'">
|
||||
{{ (record.orderPrice * 1000).toFixed(2) }}
|
||||
<template v-if="column.key === 'degreePrice'">
|
||||
{{ record.degreePrice.toFixed(2) }}
|
||||
</template>
|
||||
|
||||
<template v-if="column.key === 'price'">
|
||||
{{ (record.price || 0).toFixed(2) }}
|
||||
{{ record.price || 0 }}
|
||||
</template>
|
||||
|
||||
<template v-if="column.key === 'settledPrice'">
|
||||
@@ -192,8 +192,8 @@ const columns = ref<ColumnItem[]>([
|
||||
},
|
||||
{
|
||||
title: '客户名称',
|
||||
dataIndex: 'comments',
|
||||
key: 'comments',
|
||||
dataIndex: 'title',
|
||||
key: 'title',
|
||||
width: 180
|
||||
},
|
||||
{
|
||||
@@ -204,8 +204,8 @@ const columns = ref<ColumnItem[]>([
|
||||
},
|
||||
{
|
||||
title: '换算成度',
|
||||
dataIndex: 'orderPrice1000',
|
||||
key: 'orderPrice1000',
|
||||
dataIndex: 'degreePrice',
|
||||
key: 'degreePrice',
|
||||
align: 'center'
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user