|
@@ -85,7 +85,7 @@ export default {
|
|
|
orderTitle(info) {
|
|
orderTitle(info) {
|
|
|
let orderTitleName = ''
|
|
let orderTitleName = ''
|
|
|
if (this.orderInfo.orderStatus == 4) {
|
|
if (this.orderInfo.orderStatus == 4) {
|
|
|
- orderTitleName = this.afterSaleInfo.afterSaleStatusName
|
|
|
|
|
|
|
+ orderTitleName = this.afterSaleInfo?.afterSaleStatusName
|
|
|
} else {
|
|
} else {
|
|
|
orderTitleName = this.orderInfo.orderStatusName
|
|
orderTitleName = this.orderInfo.orderStatusName
|
|
|
}
|
|
}
|
|
@@ -314,7 +314,7 @@ export default {
|
|
|
<button class="action-button" @click="handleRefund('receipt')">确认收货</button>
|
|
<button class="action-button" @click="handleRefund('receipt')">确认收货</button>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="action-buttons" :class="{ 'safe-area': hasSafeArea }"
|
|
<view class="action-buttons" :class="{ 'safe-area': hasSafeArea }"
|
|
|
- v-if="orderInfo.orderStatus == 4 && ([0, 2].includes(afterSaleInfo.afterSaleStatus))">
|
|
|
|
|
|
|
+ v-if="orderInfo.orderStatus == 4 && afterSaleInfo !== null && ([0, 2].includes(afterSaleInfo.afterSaleStatus))">
|
|
|
<button class="action-button" @click="handleRefund('cancel')">取消申请</button>
|
|
<button class="action-button" @click="handleRefund('cancel')">取消申请</button>
|
|
|
<button class="action-button" @click="handleLogistics" v-if="afterSaleInfo.afterSaleStatus == 2">填写物流单号</button>
|
|
<button class="action-button" @click="handleLogistics" v-if="afterSaleInfo.afterSaleStatus == 2">填写物流单号</button>
|
|
|
</view>
|
|
</view>
|