|
|
@@ -155,6 +155,16 @@
|
|
|
</view>
|
|
|
<!-- #endif -->
|
|
|
|
|
|
+ <!-- 退款方式提示:余额/线上/挂账/线下 -->
|
|
|
+ <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.debt) == 1" class="tip-text debt-tip">此单为挂账单,审核通过后,挂账金额会自动减少</text>
|
|
|
+ <text v-else class="tip-text offline-tip">此单线下付款,审核通过后钱不会原路退回,请线下与供货商协商</text>
|
|
|
+ </block>
|
|
|
+ </view>
|
|
|
+
|
|
|
<!-- 底部操作按钮 -->
|
|
|
<view class="bottom-actions">
|
|
|
<button class="action-btn cancel-btn" @tap="cancelRefund()">取消</button>
|
|
|
@@ -291,7 +301,17 @@ export default {
|
|
|
getOriginalItem:1,
|
|
|
imgList:imgData
|
|
|
};
|
|
|
- that.$util.confirmModal({content:'确认提交?'},() => {
|
|
|
+ let topTitle = '提示'
|
|
|
+ let title = '确认提交?'
|
|
|
+ if (this.orderInfo.payWay == 2) {
|
|
|
+ title = '此单余额付款,审核通过后钱会原路退回余额,确认提交?'
|
|
|
+ } else if (this.orderInfo.onlinePay == 2) {
|
|
|
+ title = '此单线上付款,审核通过后钱会原路退回,确认提交?'
|
|
|
+ } else if (Number(this.orderInfo.debt) != 1) {
|
|
|
+ title = '此单线下付款,钱不会原路退回,请与供货商协商,确认提交?'
|
|
|
+ topTitle = '特别注意'
|
|
|
+ }
|
|
|
+ that.$util.confirmModal({ title: topTitle, content: title }, () => {
|
|
|
uni.showLoading({title: "提交中",mask:true})
|
|
|
createRefund(refundParams).then(res => {
|
|
|
if(res.code == 1){
|
|
|
@@ -323,6 +343,44 @@ export default {
|
|
|
padding: 20upx 0 200upx;
|
|
|
}
|
|
|
|
|
|
+// 退款方式提示
|
|
|
+.tip-section {
|
|
|
+ margin: 20upx;
|
|
|
+ padding: 20upx;
|
|
|
+ border-radius: 12upx;
|
|
|
+
|
|
|
+ .tip-text {
|
|
|
+ display: block;
|
|
|
+ font-size: 32upx;
|
|
|
+ line-height: 1.5;
|
|
|
+ font-weight: 600;
|
|
|
+
|
|
|
+ &.online-tip {
|
|
|
+ background: rgba(51, 133, 255, 0.1);
|
|
|
+ color: #3385ff;
|
|
|
+ padding: 15upx;
|
|
|
+ border-radius: 8upx;
|
|
|
+ border-left: 4upx solid #3385ff;
|
|
|
+ }
|
|
|
+
|
|
|
+ &.debt-tip {
|
|
|
+ background: rgba(51, 133, 255, 0.1);
|
|
|
+ color: #3385ff;
|
|
|
+ padding: 15upx;
|
|
|
+ border-radius: 8upx;
|
|
|
+ border-left: 4upx solid #3385ff;
|
|
|
+ }
|
|
|
+
|
|
|
+ &.offline-tip {
|
|
|
+ background: rgba(255, 71, 87, 0.1);
|
|
|
+ color: #ff4757;
|
|
|
+ padding: 15upx;
|
|
|
+ border-radius: 8upx;
|
|
|
+ border-left: 4upx solid #ff4757;
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
// 信息提示样式
|
|
|
.info-tip {
|
|
|
background: #f0f9f7;
|