【修复】修复后台关闭发票功能,而用户订单详情还可以申请发票的问题。

This commit is contained in:
jianweie code
2023-12-06 14:52:41 +08:00
parent ffd8f1d794
commit 0da1112f08

View File

@@ -474,7 +474,7 @@
<view class="coreshop-width-fit-content coreshop-padding-left-10 coreshop-padding-right-10" v-if="orderInfo.billAftersalesId && orderInfo.billAftersalesId != false">
<u-button class='coreshop-bg-red coreshop-margin-left-10 coreshop-margin-right-10' size="small" @click="showCustomerService(orderInfo)">查看售后</u-button>
</view>
<view class="coreshop-width-fit-content coreshop-padding-left-10 coreshop-padding-right-10" v-if="orderInfo.status === 1 && orderInfo.payStatus > 1 && orderInfo.invoice && orderInfo.invoice.type == 1">
<view class="coreshop-width-fit-content coreshop-padding-left-10 coreshop-padding-right-10" v-if="orderInfo.status === 1 && orderInfo.payStatus > 1 && orderInfo.invoice && orderInfo.invoice.type == 1 && InvoiceSwitch == 1">
<u-button class='coreshop-margin-left-10 coreshop-margin-right-10' type="primary " size="small" @click="goApplyForInvoice(orderInfo.orderId)">申请发票</u-button>
</view>
</view>
@@ -532,6 +532,9 @@
return false
}
},
InvoiceSwitch() {
return this.$store.state.config.invoiceSwitch || 2;
},
orderCancelTime() {
return this.$store.state.config.orderCancelTime || 60;
},