|
@@ -10,6 +10,14 @@
|
|
|
<text class="warning-action">查看</text>
|
|
<text class="warning-action">查看</text>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
|
|
|
+ <!-- 支付方式提示:线上/余额/挂账/线下 -->
|
|
|
|
|
+ <view class="tip-section">
|
|
|
|
|
+ <text v-if="orderInfo.onlinePay == 2" class="tip-text online-tip">此单线上付款,售后钱会原路自动退回给客户</text>
|
|
|
|
|
+ <text v-else-if="orderInfo.payWay == 2" class="tip-text online-tip">此单余额付款,售后钱会原路自动退回到客户余额</text>
|
|
|
|
|
+ <text v-else-if="orderInfo.payWay == 3 || Number(orderInfo.debtPrice)>0" class="tip-text debt-tip">此单挂账,售后挂账金额会自动减少</text>
|
|
|
|
|
+ <text v-else class="tip-text offline-tip">此单线下付款,售后请确认退回方式</text>
|
|
|
|
|
+ </view>
|
|
|
|
|
+
|
|
|
<!-- 退款方式选择卡片 -->
|
|
<!-- 退款方式选择卡片 -->
|
|
|
<view class="card-section">
|
|
<view class="card-section">
|
|
|
<view class="section-title">
|
|
<view class="section-title">
|
|
@@ -186,16 +194,6 @@
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
|
- <!-- 提示信息 -->
|
|
|
|
|
- <view class="tip-section">
|
|
|
|
|
- <text v-if="orderInfo.onlinePay == 2" class="tip-text online-tip">此单线上付款,提交后,钱会原路自动退回给客户</text>
|
|
|
|
|
- <text v-else-if="orderInfo.payWay == 2" class="tip-text online-tip">此单余额付款,提交后,钱会原路自动退回到客户余额</text>
|
|
|
|
|
- <block v-else>
|
|
|
|
|
- <text v-if="Number(orderInfo.debtPrice)>0" class="tip-text debt-tip">此单为欠款单,提交后,欠款金额会自动减少</text>
|
|
|
|
|
- <text v-else class="tip-text offline-tip">此单线下付款,提交后钱不会原路退回,请线下转账给客户</text>
|
|
|
|
|
- </block>
|
|
|
|
|
- </view>
|
|
|
|
|
-
|
|
|
|
|
<!-- 底部操作按钮 -->
|
|
<!-- 底部操作按钮 -->
|
|
|
<view class="bottom-actions">
|
|
<view class="bottom-actions">
|
|
|
<button class="action-btn cancel-btn" @tap="cancelRefund">取消</button>
|
|
<button class="action-btn cancel-btn" @tap="cancelRefund">取消</button>
|
|
@@ -236,10 +234,10 @@ export default {
|
|
|
orderInfo:{},
|
|
orderInfo:{},
|
|
|
couldRefundPrice:0,
|
|
couldRefundPrice:0,
|
|
|
unClear:[],
|
|
unClear:[],
|
|
|
- // 隔天冲销预检
|
|
|
|
|
|
|
+ // 隔天售后预检
|
|
|
nextDayEligible: false,
|
|
nextDayEligible: false,
|
|
|
showForwardPop: false,
|
|
showForwardPop: false,
|
|
|
- // 已结账(当天也走冲销)
|
|
|
|
|
|
|
+ // 已结账(当天也走隔天售后)
|
|
|
orderCleared: false
|
|
orderCleared: false
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
@@ -361,10 +359,10 @@ export default {
|
|
|
let topTitle = '提示'
|
|
let topTitle = '提示'
|
|
|
let title = '确认退款?'
|
|
let title = '确认退款?'
|
|
|
if(this.orderInfo.payWay == 2){
|
|
if(this.orderInfo.payWay == 2){
|
|
|
- title = '此单余额付款,提交后钱会原路退回客户余额,确认退款?'
|
|
|
|
|
|
|
+ title = '此单余额付款,提交后会原路退回客户余额,确认退款?'
|
|
|
}else if(this.orderInfo.onlinePay == 1 && Number(this.orderInfo.debtPrice)<=0){
|
|
}else if(this.orderInfo.onlinePay == 1 && Number(this.orderInfo.debtPrice)<=0){
|
|
|
- title = '此单线下付款,钱没有原路退回,还要线下转钱给客户,确认知道了?'
|
|
|
|
|
- topTitle = '特别注意!!!'
|
|
|
|
|
|
|
+ title = '确认退款?'
|
|
|
|
|
+ topTitle = '确认退款'
|
|
|
}
|
|
}
|
|
|
that.$util.confirmModal({title:topTitle,content:title},() => {
|
|
that.$util.confirmModal({title:topTitle,content:title},() => {
|
|
|
that.submitRefund(that._pendingRefundParams)
|
|
that.submitRefund(that._pendingRefundParams)
|
|
@@ -411,7 +409,7 @@ export default {
|
|
|
},
|
|
},
|
|
|
submitRefund(refundParams) {
|
|
submitRefund(refundParams) {
|
|
|
const that = this
|
|
const that = this
|
|
|
- uni.showLoading({title: "提交中",mask:true})
|
|
|
|
|
|
|
+ uni.showLoading({title: "提交中"})
|
|
|
refund(refundParams).then(res => {
|
|
refund(refundParams).then(res => {
|
|
|
uni.hideLoading()
|
|
uni.hideLoading()
|
|
|
if(res.code == 1){
|
|
if(res.code == 1){
|
|
@@ -420,8 +418,11 @@ export default {
|
|
|
return
|
|
return
|
|
|
}
|
|
}
|
|
|
const data = res.data || {}
|
|
const data = res.data || {}
|
|
|
|
|
+ // 待确认退回方式:当天/隔天线下等 hasReturn=0 且 couldReturn=1
|
|
|
const needFund = Number(data.needFundAction) === 1
|
|
const needFund = Number(data.needFundAction) === 1
|
|
|
- || (Number(data.hasReturn) === 0 && Number(data.returnBalance) === 0 && Number(data.sameDay) === 0 && Number(data.couldReturn) === 1)
|
|
|
|
|
|
|
+ || (Number(data.hasReturn) === 0
|
|
|
|
|
+ && Number(data.returnBalance) === 0
|
|
|
|
|
+ && Number(data.couldReturn) === 1)
|
|
|
const showPoster = Number(data.returnBalance) === 1
|
|
const showPoster = Number(data.returnBalance) === 1
|
|
|
// 待资金落地或已返充:进结果页
|
|
// 待资金落地或已返充:进结果页
|
|
|
if (needFund || showPoster) {
|
|
if (needFund || showPoster) {
|
|
@@ -434,6 +435,7 @@ export default {
|
|
|
forwardId: data.id || 0,
|
|
forwardId: data.id || 0,
|
|
|
orderId: data.orderId || that.option.id,
|
|
orderId: data.orderId || that.option.id,
|
|
|
payWay: data.payWay != null ? data.payWay : that.orderInfo.payWay,
|
|
payWay: data.payWay != null ? data.payWay : that.orderInfo.payWay,
|
|
|
|
|
+ onlinePay: data.onlinePay != null ? data.onlinePay : that.orderInfo.onlinePay,
|
|
|
hasReturn: data.hasReturn || 0,
|
|
hasReturn: data.hasReturn || 0,
|
|
|
couldReturn: data.couldReturn != null ? data.couldReturn : 1,
|
|
couldReturn: data.couldReturn != null ? data.couldReturn : 1,
|
|
|
returnBalance: data.returnBalance || 0,
|
|
returnBalance: data.returnBalance || 0,
|
|
@@ -451,8 +453,6 @@ export default {
|
|
|
}
|
|
}
|
|
|
that.$util.pageTo({url: '/pagesOrder/refundSuccess?id='+(data.id||''),type:2})
|
|
that.$util.pageTo({url: '/pagesOrder/refundSuccess?id='+(data.id||''),type:2})
|
|
|
}
|
|
}
|
|
|
- }).catch(() => {
|
|
|
|
|
- uni.hideLoading()
|
|
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
needCancelRemind(id){
|
|
needCancelRemind(id){
|
|
@@ -485,7 +485,7 @@ export default {
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- // 预检是否可走隔天冲销
|
|
|
|
|
|
|
+ // 预检是否可走隔天售后
|
|
|
checkNextDayEligible({ orderId: this.option.id }).then(r => {
|
|
checkNextDayEligible({ orderId: this.option.id }).then(r => {
|
|
|
if (r.code == 1 && r.data && r.data.ok) {
|
|
if (r.code == 1 && r.data && r.data.ok) {
|
|
|
this.nextDayEligible = true
|
|
this.nextDayEligible = true
|
|
@@ -903,15 +903,15 @@ export default {
|
|
|
resize: none;
|
|
resize: none;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-// 提示信息
|
|
|
|
|
|
|
+// 支付方式提示(页顶)
|
|
|
.tip-section {
|
|
.tip-section {
|
|
|
margin: 20upx;
|
|
margin: 20upx;
|
|
|
- padding: 20upx;
|
|
|
|
|
|
|
+ padding: 0 0 0;
|
|
|
border-radius: 12upx;
|
|
border-radius: 12upx;
|
|
|
|
|
|
|
|
.tip-text {
|
|
.tip-text {
|
|
|
display: block;
|
|
display: block;
|
|
|
- font-size: 32upx;
|
|
|
|
|
|
|
+ font-size: 30upx;
|
|
|
line-height: 1.5;
|
|
line-height: 1.5;
|
|
|
font-weight: 600;
|
|
font-weight: 600;
|
|
|
|
|
|