fix:之前的部分售后逻辑补足,不过代码判定存在问题,需要未来进行优化
parent
775b339c17
commit
5b58d1de5e
|
@ -70,7 +70,8 @@
|
||||||
<Button @click="goPay(order.sn)" size="small" type="success" v-if="order.allowOperationVO.pay">去支付</Button>
|
<Button @click="goPay(order.sn)" size="small" type="success" v-if="order.allowOperationVO.pay">去支付</Button>
|
||||||
<Button @click="received(order.sn)" size="small" type="warning" v-if="order.allowOperationVO.rog">确认收货</Button>
|
<Button @click="received(order.sn)" size="small" type="warning" v-if="order.allowOperationVO.rog">确认收货</Button>
|
||||||
<!-- 售后 -->
|
<!-- 售后 -->
|
||||||
<Button v-if="order.groupAfterSaleStatus && order.groupAfterSaleStatus.includes('NOT_APPLIED')" @click="applyAfterSale(order.orderItems)" size="small">申请售后</Button>
|
<Button v-if="order.groupAfterSaleStatus && (order.groupAfterSaleStatus==='NOT_APPLIED'|| order.groupAfterSaleStatus==='PART_AFTER_SALE' )"
|
||||||
|
@click="applyAfterSale(order.orderItems)" size="small">申请售后</Button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -206,7 +207,7 @@ export default {
|
||||||
applyAfterSale (goodsItem) { // 申请售后
|
applyAfterSale (goodsItem) { // 申请售后
|
||||||
let arr = []
|
let arr = []
|
||||||
goodsItem.forEach(e => {
|
goodsItem.forEach(e => {
|
||||||
if (e.afterSaleStatus === 'NOT_APPLIED') {
|
if (e.afterSaleStatus === 'NOT_APPLIED'|| e.afterSaleStatus === 'PART_AFTER_SALE') {
|
||||||
arr.push(e)
|
arr.push(e)
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue