- 后端:RlzDispatch/Profit/Promotion/Region 控制器、服务、Mapper、领域模型 - 权限:MethodSecurityConfig + PermissionInterceptor - 管理后台:派单/分润/推广/区域 页面与 API - Android 陪护端:派单/运营/退款 Fragment 及布局 - 小程序:推广员子包、派单/运营/退款/检索子包、自定义 tabBar - 文档:多角色系统方案、角色权限矩阵、用户操作手册等 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
55 lines
2.4 KiB
Plaintext
55 lines
2.4 KiB
Plaintext
<view class="container">
|
|
<view class="section-title">待派单订单</view>
|
|
|
|
<view wx:if="{{orderLoading}}" class="loading">加载中...</view>
|
|
|
|
<block wx:for="{{orders}}" wx:key="orderId">
|
|
<view class="order-card">
|
|
<view class="order-info">
|
|
<text class="order-no">#{{item.yuliu1 || item.orderId}}</text>
|
|
<text class="order-hospital">医院{{item.hospitalId}}</text>
|
|
<text class="order-amount">¥{{item.yuguMoney}}</text>
|
|
</view>
|
|
<view class="order-meta">
|
|
<text class="order-time">{{item.createTime}}</text>
|
|
<text class="order-status">{{item.status === '0' ? '待接单' : item.status}}</text>
|
|
</view>
|
|
<view class="order-action">
|
|
<button class="assign-btn" bindtap="showAssignDialog" data-item="{{item}}">派单</button>
|
|
</view>
|
|
</view>
|
|
</block>
|
|
|
|
<view wx:if="{{!orderLoading && orders.length === 0}}" class="empty">暂无待派单订单</view>
|
|
|
|
<!-- 陪诊师选择弹窗 -->
|
|
<view wx:if="{{showDialog}}" class="dialog-mask" bindtap="closeDialog">
|
|
<view class="dialog-box" catchtap="">
|
|
<view class="dialog-title">选择陪诊师</view>
|
|
<scroll-view scroll-y class="caregiver-list">
|
|
<view wx:for="{{caregivers}}" wx:key="userId" class="caregiver-item {{selectedCaregiverId === item.userId ? 'selected' : ''}}" data-id="{{item.userId}}" bindtap="selectCaregiver">
|
|
<text class="cg-name">{{item.nickName || '未命名'}}</text>
|
|
<text class="cg-phone">{{item.phonenumber}}</text>
|
|
</view>
|
|
</scroll-view>
|
|
<view class="dialog-buttons">
|
|
<button class="btn-cancel" bindtap="closeDialog">取消</button>
|
|
<button class="btn-confirm" bindtap="doAssign" disabled="{{!selectedCaregiverId}}">确认派单</button>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
|
|
<!-- 派单历史 -->
|
|
<view class="section-title">我的派单记录</view>
|
|
<view wx:if="{{historyLoading}}" class="loading">加载中...</view>
|
|
<block wx:for="{{history}}" wx:key="orderId">
|
|
<view class="history-item">
|
|
<text class="h-order">#{{item.yuliu1 || item.orderId}}</text>
|
|
<text class="h-caregiver">陪诊师{{item.bId}}</text>
|
|
<text class="h-amount">¥{{item.yuguMoney}}</text>
|
|
<text class="h-status">{{item.status === '1' ? '已接单' : item.status === '4' ? '已完成' : item.status}}</text>
|
|
</view>
|
|
</block>
|
|
<view wx:if="{{!historyLoading && history.length === 0}}" class="empty">暂无记录</view>
|
|
</view>
|