feat: 退款原因

This commit is contained in:
2026-07-20 22:25:12 +08:00
parent 82a8043578
commit 8c66197177
3 changed files with 85 additions and 72 deletions
+25 -18
View File
@@ -7,8 +7,8 @@
</view>
<view class="order_type_title">
<view :class="form.type === item.id
? 'order_type_title_item order_type_title_item_sel'
: 'order_type_title_item'
? 'order_type_title_item order_type_title_item_sel'
: 'order_type_title_item'
" v-for="(item, index) in orderTypeList" @click="checkType(item)" :key="index">
{{ item.title }}
</view>
@@ -88,9 +88,12 @@
<view class="content_item_yd_msg">(快递动态跟进请复制单号至[快递100官网] 查询)</view>
<view>共{{ item.buyNum }}件,合计¥{{ item.sumAmount }}</view>
</view> -->
<view class="collect_msg" v-if="item.buyDeductionValue">共{{ item.buyNum }}件,合计数字积分{{item.buyDeductionValue}} +¥{{item.sumAmount}}</view>
<view class="collect_msg" v-if="!item.buyDeductionValue">运费:¥{{ item.postage }},商品总价:¥{{item.sumAmount}}</view>
<view class="collect_msg" v-if="!item.buyDeductionValue">共{{ item.buyNum }}件,合计¥{{ item.sumAmount + item.postage }}</view>
<view class="collect_msg" v-if="item.buyDeductionValue">共{{ item.buyNum }}件,合计数字积分{{ item.buyDeductionValue }}
+¥{{ item.sumAmount }}</view>
<view class="collect_msg" v-if="!item.buyDeductionValue">运费:¥{{ item.postage }},商品总价:¥{{ item.sumAmount }}
</view>
<view class="collect_msg" v-if="!item.buyDeductionValue">共{{ item.buyNum }}件,合计¥{{ item.sumAmount +
item.postage }}</view>
<view class="collect_operate">
<!-- <view class="operate_comm operate_but_1" v-if="item.status === ORDER_TYPE.UNSHIPPED" @click="checkCancel(true)">取消订单</view> -->
<view class="operate_comm operate_but_2" v-if="
@@ -175,7 +178,7 @@
<!-- 申请售后 -->
<up-popup v-model:show="afterShow" class="after-sales-popup" :customStyle="{
height: '1300rpx',
// maxHeight: '80%',
overflow: 'scroll',
position: 'relative',
paddingBottom: '80rpx',
@@ -329,7 +332,7 @@ export default {
},
data() {
return {
salesServer: 1, //为1展示申请售后 2:选择退货原因 3.退货退款申请
salesServer: 1, //为1展示申请售后 2:选择退货原因 3.退货退款申请,4.退款申请失败
orderTypeList: [
{
id: MINE_ORDER_TYPE.UNPAID,
@@ -410,7 +413,11 @@ export default {
});
},
onNextRefund() {
// 退款申请失败
this.salesServer = 2;
if (this.aftterSalesProduct.status == 8) {
this.salesServer = 4;
}
this.aftterSalesProduct = {
...this.aftterSalesProduct,
@@ -447,16 +454,16 @@ export default {
},
// 售后订单详情
async onAfterSaleDetail(item) {
if (item.status === 8) {
this.$refs.uToastRef.show({
type: "success",
message: "订单已作废",
});
return;
}
// if (item.status === 8) {
// this.$refs.uToastRef.show({
// type: "success",
// message: "订单已作废",
// });
// return;
// }
const { bizcode, data } = await afterSaleDetail({ id: item.afterId });
if (bizcode == 100) {
this.aftterSalesProduct = { ...data, ...{ afterId: item.afterId } };
this.aftterSalesProduct = { ...data, ...{ afterId: item.afterId, status: item.status } };
this.salesServer = 2;
this.afterShow = true;
}
@@ -493,7 +500,7 @@ export default {
},
async againDeleteOrder() {
let params;
if (this.form.type === 4 && (this.deleteInfo.status === 4 || this.deleteInfo.status === 5 || this.deleteInfo.status === 6 || this.deleteInfo.status === 7)) {
if (this.form.type === 4 && (this.deleteInfo.status === 4 || this.deleteInfo.status === 5 || this.deleteInfo.status === 6 || this.deleteInfo.status === 7)) {
params = {
orderId: this.deleteInfo.id,
type: 1
@@ -506,7 +513,7 @@ export default {
}
}
console.log("删除-1", params);
if(!params.orderId){
if (!params.orderId) {
return;
}
const res = await deleteOrderQuery(params);
@@ -858,7 +865,7 @@ export default {
}
.after-sales-popup {
height: 400px !important;
max-height: 80% !important;
.after-sales-title {
font-size: 28rpx;