修改订单列表售后操作的逻辑判断
This commit is contained in:
parent
2b9a5f9fa1
commit
51787547d2
@ -68,7 +68,7 @@
|
|||||||
</view>
|
</view>
|
||||||
<view class="btn-group" v-if="item.order_status === 5">
|
<view class="btn-group" v-if="item.order_status === 5">
|
||||||
<!-- <text class="afterSaleNum">{{ item.commodity_order_item_list.length }}笔售后</text> -->
|
<!-- <text class="afterSaleNum">{{ item.commodity_order_item_list.length }}笔售后</text> -->
|
||||||
<button class="cancel-btn" @click="afterSale(item)">退换/售后</button>
|
<button class="cancel-btn" @click="afterSale(item)" v-if="item.after_sales_status === 2">退换/售后</button>
|
||||||
<button class="pay-btn" @click="orderEvaluate(item)" :disabled="item.evauate_status === 1">评价</button>
|
<button class="pay-btn" @click="orderEvaluate(item)" :disabled="item.evauate_status === 1">评价</button>
|
||||||
</view>
|
</view>
|
||||||
<view class="btn-group" v-if="item.order_status === 6">
|
<view class="btn-group" v-if="item.order_status === 6">
|
||||||
@ -213,17 +213,17 @@ export default {
|
|||||||
console.log(item.id);
|
console.log(item.id);
|
||||||
|
|
||||||
// 根据条件判断是否可以售后
|
// 根据条件判断是否可以售后
|
||||||
request(afterSaleApi.isAllow, "POST", {
|
// request(afterSaleApi.isAllow, "POST", {
|
||||||
order_id: item.id,
|
// order_id: item.id,
|
||||||
}).then((res) => {
|
// }).then((res) => {
|
||||||
if (res.data.is_allow_after_sales) {
|
// if (res.data.is_allow_after_sales) {
|
||||||
this.afterSaleGoods = res.data.allow_items;
|
// this.afterSaleGoods = res.data.allow_items;
|
||||||
// this.selectedAsGood = item.commodity_order_item_list[0].id;
|
// // this.selectedAsGood = item.commodity_order_item_list[0].id;
|
||||||
this.$refs.afterSalePopupRef.openAfterSalePopup();
|
// this.$refs.afterSalePopupRef.openAfterSalePopup();
|
||||||
} else {
|
// } else {
|
||||||
this.noSalePopup = true
|
// this.noSalePopup = true
|
||||||
}
|
// }
|
||||||
});
|
// });
|
||||||
},
|
},
|
||||||
|
|
||||||
// 处理退款提交事件
|
// 处理退款提交事件
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user