落地合伙股东收益体系,并纳入 sheep 用户端源码。

Co-authored-by: Cursor <cursoragent@cursor.com>
这个提交包含在:
chen
2026-09-17 07:47:35 +08:00
父节点 7747dfaa82
当前提交 251d62296e
共有 595 个文件被更改,包括 90234 次插入 和 105 次删除

查看文件

@@ -1,10 +1,21 @@
{include file="/shopro/common/script" /}
<style>
.order-detail .tip {
.order-detail .partner-split-content {
border-radius: 8px;
padding: var(--sa-padding);
background: var(--sa-table-header-bg);
margin-bottom: 16px;
}
.order-detail .partner-split-content .title {
line-height: 24px;
font-size: 16px;
color: var(--sa-title);
font-weight: 700;
margin-bottom: 12px;
}
.order-detail .order-content,
.order-detail .order-content {
border-radius: 8px;
@@ -820,6 +831,89 @@
</el-row>
</el-tab-pane>
</el-tabs>
<div class="partner-split-content order-content">
<div class="title sa-flex sa-row-between">
<span>合伙股东分成明细</span>
<span v-if="state.detail.partner_split?.total_cash" style="font-size:13px;font-weight:400;color:var(--sa-subfont)">
本单即时现金合计 ¥{{ state.detail.partner_split.total_cash }}
<template v-if="state.detail.partner_split.settle_date">
· 均分日 {{ state.detail.partner_split.settle_date }}
</template>
</span>
</div>
<el-table
v-if="state.detail.partner_split?.has_data"
class="sa-table"
:data="state.detail.partner_split.items"
stripe
>
<el-table-column label="收益种类" min-width="140">
<template #default="scope">
<div>{{ scope.row.reward_type_text || scope.row.reward_type }}</div>
<div v-if="scope.row.role_text" style="font-size:12px;color:#999">{{ scope.row.role_text }}</div>
</template>
</el-table-column>
<el-table-column label="受益人 / 参与概况" min-width="220">
<template #default="scope">
<template v-if="scope.row.display === 'share'">
<div>参与用户 {{ scope.row.user_count }} 人</div>
<div style="font-size:12px;color:#999">{{ scope.row.tip || '均分不列出名单' }}</div>
</template>
<template v-else>
<sa-user-profile
v-if="scope.row.user_id > 0"
:user="scope.row.user"
:id="scope.row.user_id"
></sa-user-profile>
<span v-else class="sa-color--info">平台 / 系统</span>
</template>
</template>
</el-table-column>
<el-table-column label="金额" min-width="160">
<template #default="scope">
<template v-if="scope.row.display === 'share'">
<div v-if="scope.row.unit === '马豆'">
每人 {{ scope.row.each_madow }} 马豆
</div>
<div v-else>
每人 ¥{{ scope.row.each_amount }}
</div>
<div style="font-size:12px;color:#999">
<template v-if="scope.row.unit === '马豆'">
合计 {{ scope.row.total_madow }} 马豆
</template>
<template v-else>
合计 ¥{{ scope.row.total_amount }}
</template>
</div>
</template>
<template v-else>
<span v-if="Number(scope.row.amount) > 0">¥{{ scope.row.amount }}</span>
<span v-else-if="Number(scope.row.madow) > 0">{{ scope.row.madow }} 马豆</span>
<span v-else>¥0.00</span>
</template>
</template>
</el-table-column>
<el-table-column label="状态" min-width="90">
<template #default="scope">
<span :class="`sa-color--${partnerStatusStyle[scope.row.status] || 'info'}`">
{{ scope.row.status_text || '-' }}
</span>
</template>
</el-table-column>
<el-table-column label="说明" min-width="220">
<template #default="scope">
<div>{{ scope.row.formula || '-' }}</div>
<div v-if="scope.row.skip_reason_text" class="sa-color--warning" style="font-size:12px">
{{ scope.row.skip_reason_text }}
</div>
</template>
</el-table-column>
</el-table>
<div v-else style="padding:16px 0;color:#999;font-size:13px">
暂无合伙股东分成记录(未计奖、未支付或尚未日结)
</div>
</div>
<div class="goods-content">
<el-tabs>
<el-tab-pane label="商品信息">