修改商家已处理的页面

This commit is contained in:
赵毅 2025-09-12 16:11:31 +08:00
parent 4098389254
commit 866ee54a0b
7 changed files with 65 additions and 51 deletions

View File

@ -157,14 +157,21 @@ export default {
},
pendingPage(item) {
console.log("🚀 ~ pendingPage ~ item:", item)
if (item.after_sales_type === 3) {
NavgateTo(`/packages/myOrders/changeInfo/index?item=${JSON.stringify(item)}`)
} else {
NavgateTo(`/packages/myOrders/pending/index?item=${JSON.stringify(item)}`); //
NavgateTo(`/packages/myOrders/refundOver/index?item=${JSON.stringify(item)}`);
// if (item.after_sales_type === 3) {
// if (item.review_status === 2) {
// NavgateTo(`/packages/myOrders/sendBack/index?item=${JSON.stringify(item)}`); //
// return;
// }
// NavgateTo(`/packages/myOrders/changeInfo/index?item=${JSON.stringify(item)}`)
// } else {
// if (item.refund_completed_time) {
// NavgateTo(`/packages/myOrders/refundOver/index?item=${JSON.stringify(item)}`); //退
// NavgateTo(`/packages/myOrders/changeInfo/index?item=${JSON.stringify(item)}`); //
}
// return;
// }
// NavgateTo(`/packages/myOrders/pending/index?item=${JSON.stringify(item)}`);
// }
}
},
};

View File

@ -83,7 +83,7 @@
<text class="goods-desc">{{ currentAfterSale.commodity_order_item[0].goods_spec }}</text>
<text class="goods-price">
{{ '¥' + currentAfterSale.commodity_order_item[0].sales_price.toFixed(2) + '/个' }}
<text class="goods-count">X{{ currentAfterSale.commodity_order_item[0].count }}</text>
<text class="goods-count">X{{ currentAfterSale.after_sales_goods.split('@')[0] }}</text>
</text>
</view>
</view>
@ -197,6 +197,7 @@ import {
upload,
NavgateTo
} from '../../../utils';
import { apiArr } from "../../../api/afterSale";
export default {
data() {

View File

@ -1,7 +1,7 @@
<template>
<view class="container">
<!-- 进度条 -->
<view class="progress-container" v-if="false">
<view class="progress-container" v-if="currentAfterSale.process_status === 1">
<view class="progress-item active">
<text class="progress-text">商家处理</text>
</view>
@ -15,7 +15,7 @@
</view>
</view>
<view class="progress-container">
<view class="progress-container" v-if="currentAfterSale.process_status === 2">
<view class="progress-item active">
<text class="progress-text">商家处理</text>
</view>
@ -26,13 +26,13 @@
</view>
<!-- 状态提示 -->
<view class="status-tip" v-if="false">
<view class="status-tip" v-if="currentAfterSale.process_status === 1">
<text class="status-title">请等待商家处理</text>
<text class="status-desc"><text style="font-weight: bold;">2</text>后商家未处理将自动同意</text>
<text class="status-desc">您已成功发起退款申请请耐心等待商家处理</text>
</view>
<view class="status-tip">
<view class="status-tip" v-if="currentAfterSale.review_status === 3">
<text class="status-title">商家拒绝申请,请您处理</text>
<text class="status-desc"><text style="color: #f63b08;">2</text>后未处理将自动关闭</text>
</view>
@ -91,7 +91,7 @@
</view>
<!-- 操作按钮 -->
<view class="action-buttons">
<view class="action-buttons" v-if="currentAfterSale.process_status === 1">
<button class="cancel-btn" @click="cancelRefund">撤销申请</button>
<button class="modify-btn" @click="modifyRefund">修改申请</button>
<button class="urge-btn" @click="urgeProcess">催处理</button>

View File

@ -107,6 +107,7 @@
display: flex;
flex-direction: column;
justify-content: space-between;
position: relative;
}
.asGoodTag {
@ -141,12 +142,9 @@
.goods-desc {
font-size: 26rpx;
color: #ff4d4f;
background-color: #fff2f0;
padding: 4rpx 12rpx;
color: #999999;
border-radius: 8rpx;
display: inline-block;
margin: 10rpx 0;
}
.goods-price {
@ -164,10 +162,9 @@
.refund-amount {
font-size: 28rpx;
align-self: flex-start;
margin-top: 20rpx;
font-weight: 500;
position: relative;
left: 140rpx;
position: absolute;
right: 10rpx;
}
.refund-info {

View File

@ -46,10 +46,10 @@
{{ currentAfterSale.commodity_order_item[0].goods_name }}
<text class="refund-amount">退款¥{{ currentAfterSale.refund_amount.toFixed(2) }}</text>
</text>
<text class="goods-desc">{{ ite.after_sales_reason }}</text>
<text class="goods-desc">{{ currentAfterSale.commodity_order_item[0].goods_spec }}</text>
<text class="goods-price">
{{ '¥' + currentAfterSale.commodity_order_item[0].sales_price.toFixed(2) + '/个' }}
<text class="goods-count">X{{ currentAfterSale.commodity_order_item[0].count }}</text>
<text class="goods-count">X{{ currentAfterSale.after_sales_goods.split('@')[0] }}</text>
</text>
</view>
</view>
@ -155,6 +155,7 @@ import {
upload,
NavgateTo
} from '../../../utils';
import { apiArr } from "../../../api/afterSale";
export default {
data() {
@ -175,7 +176,7 @@ export default {
},
methods: {
getServiceTypeText(type) {
return type === 1 ? '退货退款' : '仅退款';
return type === 1 ? '仅退款' : (type === 2 ? '退货退款' : '换货');
},
//
@ -237,11 +238,15 @@ export default {
confirmColor: "#ff4d4f",
success: (res) => {
if (res.confirm) {
//
const params = {
id: this.currentAfterSale.id,
}
request(apiArr.revokeApply, "POST", params).then((res) => {
uni.showToast({
title: '订单撤销成功',
icon: 'success'
});
});
}
},
});

View File

@ -108,6 +108,7 @@
display: flex;
flex-direction: column;
justify-content: space-between;
position: relative;
}
.asGoodTag {
@ -142,12 +143,9 @@
.goods-desc {
font-size: 26rpx;
color: #ff4d4f;
background-color: #fff2f0;
padding: 4rpx 12rpx;
color: #999999;
border-radius: 8rpx;
display: inline-block;
margin: 10rpx 0;
}
.goods-price {
@ -165,10 +163,9 @@
.refund-amount {
font-size: 28rpx;
align-self: flex-start;
margin-top: 20rpx;
font-weight: 500;
position: relative;
left: 140rpx;
position: absolute;
right: 10rpx;
}
.refund-info {

View File

@ -22,7 +22,7 @@
<view class="status-desc2">需您自行联系快递公司退回请不要邮寄到付</view>
<view class="info-item" style="border: none;">
<text class="info-label">商家地址</text>
<text class="info-value">{{ currentAfterSale.after_sales_no }}</text>
<text class="info-value">{{ currentAfterSale.supplier_address }}</text>
<text class="copy-icon" @click="copyAdress"></text>
</view>
@ -44,10 +44,11 @@
{{ currentAfterSale.commodity_order_item[0].goods_name }}
<text class="refund-amount">退款¥{{ currentAfterSale.refund_amount.toFixed(2) }}</text>
</text>
<text class="goods-desc">{{ ite.after_sales_reason }}</text>
<text class="goods-desc">{{ currentAfterSale.commodity_order_item[0].goods_spec }}</text>
<text class="goods-price">
{{ '¥' + currentAfterSale.commodity_order_item[0].sales_price.toFixed(2) + '/个' }}
<text class="goods-count">X{{ currentAfterSale.commodity_order_item[0].count }}</text>
<text class="goods-count">X{{ currentAfterSale.after_sales_goods.split('@')[0] }}
</text>
</text>
</view>
</view>
@ -83,7 +84,8 @@
<!-- 操作按钮 -->
<view class="action-buttons">
<view>
<image class="bottomImg" src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/secdBack_bottom.png" alt=""/>
<image class="bottomImg" src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/secdBack_bottom.png"
alt="" />
</view>
<button class="modify-btn" @click="modifyRefund">平台介入</button>
<button class="cancel-btn" @click="cancelRefund">撤销申请</button>
@ -99,6 +101,7 @@ import {
upload,
NavgateTo
} from '../../../utils';
import { apiArr } from "../../../api/afterSale";
export default {
data() {
@ -118,7 +121,7 @@ export default {
},
methods: {
getServiceTypeText(type) {
return type === 1 ? '退货退款' : '仅退款';
return type === 1 ? '仅退款' : (type === 2 ? '退货退款' : '换货');
},
//
@ -131,7 +134,7 @@ export default {
//
copyAdress() {
uni.setClipboardData({
data: this.currentAfterSale.after_sales_no,
data: this.currentAfterSale.supplier_address,
success: () => {
uni.showToast({
title: '复制成功',
@ -180,11 +183,15 @@ export default {
confirmColor: "#ff4d4f",
success: (res) => {
if (res.confirm) {
//
const params = {
id: this.currentAfterSale.id,
}
request(apiArr.revokeApply, "POST", params).then((res) => {
uni.showToast({
title: '订单撤销成功',
icon: 'success'
});
});
}
},
});
@ -192,7 +199,7 @@ export default {
//
modifyRefund() {
NavgateTo(`../apply/index?item=${JSON.stringify(this.currentAfterSale)}`);
// NavgateTo(`../apply/index?item=${JSON.stringify(this.currentAfterSale)}`);
},
}
};