Przeglądaj źródła

fix(退款流程): 更新快递选项接口和退款状态映射

更新快递公司选项的字典类型以匹配后端接口
调整退款状态码映射,新增"商家已签收"状态,使状态流转更清晰
同步更新退款详情页中状态判断逻辑
ylong 1 dzień temu
rodzic
commit
cc10b070f7

+ 4 - 3
pages-car/components/refund-order-item.vue

@@ -84,9 +84,10 @@
                     '5': '审核驳回',
                     '6': '超时关闭',
                     '7': '买家已发货',
-                    '8': '确认收货',
-                    '9': '退款成功',
-                    '10': '退款已撤销'
+                    '8': '商家已签收',
+                    '9': '确认收货',
+                    '10': '退款成功',
+                    '11': '退款已撤销'
                 }
                 return map[status] || '未知状态'
             }

+ 1 - 1
pages-car/pages/fill-logistics.vue

@@ -109,7 +109,7 @@
 		},
 		methods: {
 			getExpressOptions() {
-				uni.$u.http.get('/token/common/getDictOptions?type=shop_order_refund_express_name').then(res => {
+				uni.$u.http.get('/token/common/getDictOptions?type=kd100_express_name').then(res => {
 					if (res.code === 200) {
 						this.expressList = res.data || [];
 					}

+ 7 - 6
pages-car/pages/refund-detail.vue

@@ -44,7 +44,7 @@
 					</view>
 				</view>
 				<!-- 退款成功金额展示 -->
-				<view class="refund-amount-box" v-if="orderInfo.status == '9'">
+				<view class="refund-amount-box" v-if="orderInfo.status == '10'">
 					<view class="amount-row">
 						<!-- @Schema(description = "金额退回方式:1-余额 2-微信 3-支付宝") private String moneyType; -->
 						<text class="label">退回{{ orderInfo.moneyType ? ['余额', '微信', '支付宝'][orderInfo.moneyType - 1] : '余额'
@@ -125,7 +125,7 @@
 					<view class="refund-status-tag red-tag" v-if="orderInfo.status == '1'">
 						<text>退款中</text>
 					</view>
-					<view class="refund-status-tag" v-if="orderInfo.status == '9'">退款成功</view>
+					<view class="refund-status-tag" v-if="orderInfo.status == '10'">退款成功</view>
 				</view>
 			</view>
 		</view>
@@ -330,7 +330,7 @@ export default {
 			});
 		},
 		getStatusText(status) {
-			// 状态 1-申请退款 2-协商中待用户确认 3-协商中待商家确认 4-审核通过 5-审核驳回 6-超时关闭 7-买家已发货 8-确认收货 9-退款成功
+			// 状态 1-申请退款 2-协商中待用户确认 3-协商中待商家确认 4-审核通过 5-审核驳回 6-超时关闭 7-买家已发货 8-商家已签收 9-确认收货 10-退款成功
 			const map = {
 				'1': '请等待平台处理',
 				'2': '协商中待用户确认',
@@ -339,9 +339,10 @@ export default {
 				'5': '审核已驳回',
 				'6': '超时关闭',
 				'7': '待平台确认收货',
-				'8': '平台已确认收货',
-				'9': '退款成功',
-				'10': '申请已撤销'
+				'8': '商家已签收',
+				'9': '平台已确认收货',
+				'10': '退款成功',
+				'11': '申请已撤销'
 			};
 			return map[status] || '处理中';
 		},