|
|
@@ -33,7 +33,7 @@
|
|
|
</view>
|
|
|
|
|
|
<!-- 商品选择卡片 -->
|
|
|
- <view class="card-section">
|
|
|
+ <view class="card-section" v-if="refundType==1">
|
|
|
<view class="section-title">
|
|
|
<text class="title-text">退货商品</text>
|
|
|
</view>
|
|
|
@@ -139,7 +139,16 @@
|
|
|
</view>
|
|
|
<view class="amount-row input-row">
|
|
|
<text class="amount-label required">退款金额</text>
|
|
|
- <text class="amount-value refund-amount">¥{{refundMoney}}</text>
|
|
|
+ <view class="amount-input-wrapper">
|
|
|
+ <text class="currency-symbol">¥</text>
|
|
|
+ <input
|
|
|
+ class="amount-input"
|
|
|
+ type="digit"
|
|
|
+ v-model="refundMoney"
|
|
|
+ placeholder="请输入"
|
|
|
+ placeholder-style="color:#999"
|
|
|
+ @focus="clearRefundMoney">
|
|
|
+ </view>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
@@ -264,6 +273,10 @@ export default {
|
|
|
},
|
|
|
askRefund(){
|
|
|
if(this.orderInfo.payWay == 3 && Number(this.orderInfo.remainDebtPrice)>0 && Number(this.refundMoney) > Number(this.orderInfo.remainDebtPrice)){
|
|
|
+ if(this.refundType==2){
|
|
|
+ uni.showToast({title:'售后付款要选择商品',icon:'none'})
|
|
|
+ return false
|
|
|
+ }
|
|
|
//如果退款金额大于剩余欠款,则提醒走开付款单方式退款
|
|
|
this.$util.confirmModal({content:'售后金额超过剩余欠款,只能开付款单方式售后'},() => {
|
|
|
this.shAddPay = 1
|
|
|
@@ -325,7 +338,7 @@ export default {
|
|
|
if(hasError){
|
|
|
return
|
|
|
}
|
|
|
- if(this.$util.isEmpty(selectProduct)){
|
|
|
+ if(this.$util.isEmpty(selectProduct) && this.refundType==1){
|
|
|
uni.showToast({title:'请选择商品',icon:'none'})
|
|
|
return;
|
|
|
}
|