feat(admin): 新增陪诊员入驻申请与全局角色守卫
- 新增 pages/apply 入驻申请页:填写资料、上传证件、查看审核状态 - 新增 utils/role.js 统一角色解析与管理端页面守卫 - app.js 包装 Page 构造器集中做 onShow 守卫,无身份用户重定向至申请页 - 订单、客户、档案、统计等按角色区分能力:陪诊员不请求档案接口,改用订单快照 - 订单列表支持待取消订单一键同意取消;新增订单价格由服务目录决定只读展示
This commit is contained in:
@@ -33,6 +33,8 @@
|
||||
<text wx:if="{{profileSummary.weight}}" class="brief-tag">体重 {{profileSummary.weight}}kg</text>
|
||||
</view>
|
||||
<text wx:if="{{profileSummary.remark}}" class="brief-remark">备注:{{profileSummary.remark}}</text>
|
||||
<!-- 档案未关联客户:订单归属留空,管理员可后期在订单编辑中补录 -->
|
||||
<text wx:if="{{profileOwnerMissing}}" class="field-tip">该档案未关联客户,订单归属将留空,可后期在订单编辑中补录</text>
|
||||
</view>
|
||||
|
||||
<view class="form">
|
||||
@@ -103,20 +105,25 @@
|
||||
|
||||
<view class="field">
|
||||
<text class="field-label">费用(元)</text>
|
||||
<input class="field-input" type="digit" placeholder="请输入服务费用" value="{{form.payment.totalFee}}" data-key="payment.totalFee" bindinput="onInput" disabled="{{amountLocked}}" />
|
||||
<text class="field-tip" wx:if="{{paymentLocked}}">已收款订单支付信息已锁定,退款请走取消流程</text>
|
||||
<text class="field-tip" wx:elif="{{amountLocked}}">存在未支付流水,金额已锁定</text>
|
||||
<!-- 新增:价格由服务目录决定,只读展示;编辑:管理员可改价 -->
|
||||
<text wx:if="{{!isEdit}}" class="field-value">{{servicePrice ? servicePrice : '选择服务后自动带出'}}</text>
|
||||
<block wx:else>
|
||||
<input class="field-input" type="digit" placeholder="请输入服务费用" value="{{form.payment.totalFee}}" data-key="payment.totalFee" bindinput="onInput" disabled="{{amountLocked}}" />
|
||||
<text class="field-tip" wx:if="{{paymentLocked}}">已收款订单支付信息已锁定,退款请走取消流程</text>
|
||||
<text class="field-tip" wx:elif="{{amountLocked}}">存在未支付流水,金额已锁定</text>
|
||||
</block>
|
||||
</view>
|
||||
|
||||
<view class="field">
|
||||
<!-- 支付状态与方式仅编辑时维护:新增订单固定为未支付,收款由编辑页补记 -->
|
||||
<view class="field" wx:if="{{isEdit}}">
|
||||
<text class="field-label">是否已支付</text>
|
||||
<view class="field-switch">
|
||||
<text class="switch-label {{form.payment.paid ? 'paid' : 'unpaid'}}">{{form.payment.paid ? '已支付' : '未支付'}}</text>
|
||||
<switch checked="{{form.payment.paid}}" color="#17c3a5" disabled="{{paymentLocked}}" bindchange="onPaidChange" />
|
||||
<switch checked="{{form.payment.paid}}" color="#C26A2E" disabled="{{paymentLocked}}" bindchange="onPaidChange" />
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="field">
|
||||
<view class="field" wx:if="{{isEdit}}">
|
||||
<text class="field-label">支付方式</text>
|
||||
<picker class="field-picker" mode="selector" range="{{methodOptions}}" range-key="label" disabled="{{paymentLocked}}" bindchange="onMethodChange">
|
||||
<view class="field-value">
|
||||
|
||||
Reference in New Issue
Block a user