Files
qingcheng-xiaochengxu/pages/dashboardModule/supervisorPerformance/supervisorPerformance.wxml

129 lines
4.4 KiB
Plaintext
Raw Normal View History

2025-08-04 16:31:21 +08:00
<!-- pages/dashboardModule/supervisorPerformance/supervisorPerformance.wxml -->
2025-08-15 00:36:04 +08:00
<view class="page">
2025-08-04 16:31:21 +08:00
<!-- 标题 -->
2025-08-15 00:36:04 +08:00
<view class="page-title">
<text class="title">{{ showRole }}业绩报表</text>
</view>
2025-08-04 16:31:21 +08:00
2025-08-15 00:36:04 +08:00
<scroll-view scroll-y class="content no-scrollbar">
<!-- 搜索表单 -->
<view class="card form-card">
2025-08-04 16:31:21 +08:00
<!-- 主管名称 -->
2025-08-15 00:36:04 +08:00
<view class="field">
<text class="field-label">{{ showRole }}名称</text>
<view class="input-box">
2025-08-04 16:31:21 +08:00
<input
2025-08-15 00:36:04 +08:00
class="input"
2025-08-04 16:31:21 +08:00
placeholder="请输入{{ showRole }}名称"
2025-08-15 00:36:04 +08:00
placeholder-class="ph"
2025-08-04 16:31:21 +08:00
bindinput="onNameInput"
2025-08-15 00:36:04 +08:00
value="{{ nickName }}"
2025-08-04 16:31:21 +08:00
/>
</view>
</view>
<!-- 手机号 -->
2025-08-15 00:36:04 +08:00
<view class="field">
<text class="field-label">手机号</text>
<view class="input-box">
2025-08-04 16:31:21 +08:00
<input
2025-08-15 00:36:04 +08:00
class="input"
2025-08-04 16:31:21 +08:00
placeholder="请输入手机号"
2025-08-15 00:36:04 +08:00
placeholder-class="ph"
2025-08-04 16:31:21 +08:00
bindinput="onPhoneInput"
2025-08-15 00:36:04 +08:00
value="{{ phoneNumber }}"
2025-08-09 01:21:59 +08:00
type="number"
2025-08-15 00:36:04 +08:00
maxlength="11"
2025-08-04 16:31:21 +08:00
/>
</view>
</view>
<!-- 搜索按钮 -->
2025-08-15 00:36:04 +08:00
<view class="btn btn-primary" bindtap="onSearch">搜索</view>
2025-08-04 16:31:21 +08:00
</view>
2025-08-15 00:36:04 +08:00
<!-- 业绩列表(按需显示) -->
<block wx:if="{{ showList }}">
<!-- 空状态(可选) -->
<view wx:if="{{ !performanceList || performanceList.length === 0 }}" class="empty">
<image class="empty-img" src="/assets/empty-list.png" mode="aspectFit" />
<text class="empty-text">暂无数据</text>
</view>
2025-08-04 16:31:21 +08:00
2025-08-15 00:36:04 +08:00
<!-- 列表卡片 -->
<view wx:for="{{ performanceList }}"
wx:for-item="item"
wx:for-index="index"
wx:key="item.id"
class="card perf-card">
<!-- 顶部:编号 + 主管 + 跳转员工绩效 -->
<view class="topline">
<view class="id-and-name">
<text class="no">编号:{{ index + 1 }}</text>
<text class="name">主管:{{ item.nickName }}</text>
</view>
<view class="link-btn" bind:tap="changeStaff" data-id="{{ item.userId }}">
<text class="link-text">员工绩效排名 >></text>
2025-08-04 16:31:21 +08:00
</view>
2025-08-15 00:36:04 +08:00
</view>
2025-08-04 16:31:21 +08:00
2025-08-15 00:36:04 +08:00
<!-- 手机号 + 复制 -->
<view class="row">
<text class="row-key">手机号</text>
<view class="row-val">
<text class="mono">{{ item.phoneNumber }}</text>
<text class="copy" bindtap="onCopyPhone" data-phone="{{ item.phoneNumber }}">复制</text>
2025-08-04 16:31:21 +08:00
</view>
2025-08-15 00:36:04 +08:00
</view>
<!-- 员工数 + 抽成比例(徽标 chip -->
<view class="chips">
<view class="chip">员工数:{{ item.empCount }}</view>
<view class="chip">比例:{{ item.ratePercent }}%</view>
</view>
2025-08-04 16:31:21 +08:00
2025-08-15 00:36:04 +08:00
<!-- 业绩九宫格 -->
<view class="grid">
<view class="grid-item">
<text class="gi-label">下单量</text>
<text class="gi-value">{{ item.orderCount }}</text>
</view>
<view class="grid-item">
<text class="gi-label">总订单</text>
<text class="gi-value">¥{{ item.totalAmount }}</text>
</view>
<view class="grid-item">
<text class="gi-label">净成交</text>
<text class="gi-value">¥{{ item.netAmount }}</text>
</view>
<view class="grid-item">
<text class="gi-label">待释放</text>
<text class="gi-value">¥{{ item.toRelease }}</text>
</view>
<view class="grid-item">
<text class="gi-label">可结算</text>
<text class="gi-value">{{ item.toSettle }}</text>
</view>
<view class="grid-item">
<text class="gi-label">已结算</text>
<text class="gi-value">¥{{ item.settled }}</text>
</view>
<view class="grid-item">
<text class="gi-label">推广数</text>
<text class="gi-value">{{ item.promoCount }}</text>
</view>
<view class="grid-item">
<text class="gi-label">退款</text>
<text class="gi-value">¥{{ item.refunded }}</text>
</view>
<view class="grid-item">
<text class="gi-label">已回退</text>
<text class="gi-value">¥0</text>
2025-08-04 16:31:21 +08:00
</view>
</view>
</view>
2025-08-15 00:36:04 +08:00
</block>
</scroll-view>
2025-08-04 16:31:21 +08:00
</view>