Bläddra i källkod

余额 售后

shish 1 månad sedan
förälder
incheckning
40e090f8f2
2 ändrade filer med 63 tillägg och 2 borttagningar
  1. 4 1
      ghsApp/src/pagesOrder/refund.vue
  2. 59 1
      hdApp/src/pagesPurchase/refund.vue

+ 4 - 1
ghsApp/src/pagesOrder/refund.vue

@@ -189,6 +189,7 @@
 		<!-- 提示信息 -->
 		<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>
@@ -331,7 +332,9 @@ export default {
 			};
 			let topTitle = '提示'
 			let title = '确认退款?'
-			if(this.orderInfo.onlinePay == 1 && Number(this.orderInfo.debtPrice)<=0){
+			if(this.orderInfo.payWay == 2){
+				title = '此单余额付款,提交后钱会原路退回客户余额,确认退款?'
+			}else if(this.orderInfo.onlinePay == 1 && Number(this.orderInfo.debtPrice)<=0){
 				title = '此单线下付款,钱没有原路退回,还要线下转钱给客户,确认知道了?'
 				topTitle = '特别注意!!!'
 			}

+ 59 - 1
hdApp/src/pagesPurchase/refund.vue

@@ -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;