fix:之前的部分售后逻辑补足,不过代码判定存在问题,需要未来进行优化

master
Chopper711 2023-05-31 15:04:46 +08:00
parent 775b339c17
commit 5b58d1de5e
1 changed files with 3 additions and 2 deletions

View File

@ -70,7 +70,8 @@
<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 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>
@ -206,7 +207,7 @@ export default {
applyAfterSale (goodsItem) { //
let arr = []
goodsItem.forEach(e => {
if (e.afterSaleStatus === 'NOT_APPLIED') {
if (e.afterSaleStatus === 'NOT_APPLIED'|| e.afterSaleStatus === 'PART_AFTER_SALE') {
arr.push(e)
}
});