fix(admin): 锁定已收款支付信息并支持人工退款核销

- 已收款/退款中订单禁止编辑支付状态、金额与支付方式,避免覆盖退款状态
- 退款中订单新增「确认已退款」入口,线下退款可核销为已退款
- 线上退款仍保留查询退款结果兜底
This commit is contained in:
lik
2026-11-06 17:30:29 +08:00
parent 4cbf6e7906
commit bfe820aa31
5 changed files with 64 additions and 12 deletions
+4 -3
View File
@@ -104,20 +104,21 @@
<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="{{amountLocked}}">存在未支付流水,金额已锁定</text>
<text class="field-tip" wx:if="{{paymentLocked}}">已收款订单支付信息已锁定,退款请走取消流程</text>
<text class="field-tip" wx:elif="{{amountLocked}}">存在未支付流水,金额已锁定</text>
</view>
<view class="field">
<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" bindchange="onPaidChange" />
<switch checked="{{form.payment.paid}}" color="#17c3a5" disabled="{{paymentLocked}}" bindchange="onPaidChange" />
</view>
</view>
<view class="field">
<text class="field-label">支付方式</text>
<picker class="field-picker" mode="selector" range="{{methodOptions}}" range-key="label" bindchange="onMethodChange">
<picker class="field-picker" mode="selector" range="{{methodOptions}}" range-key="label" disabled="{{paymentLocked}}" bindchange="onMethodChange">
<view class="field-value">
{{methodLabel || '未记录'}}
<text class="arrow">›</text>