|
@@ -19,7 +19,10 @@
|
|
|
</view>
|
|
|
<view class="details-invoice-list-item u-skeleton-fillet">
|
|
|
<view class="details-invoice-list-item-label">发票状态:</view>
|
|
|
- <view class="details-invoice-list-item-content" :class="formatStatusType(invoiceInfo.status)">{{ formatStatus(invoiceInfo.status) }}</view>
|
|
|
+ <view class="details-invoice-list-item-content status" :class="formatStatusType(invoiceInfo.status)">
|
|
|
+ <view class="status">{{ formatStatus(invoiceInfo.status) }}</view>
|
|
|
+ <u-button v-if="invoiceInfo.status === 2 && invoiceInfo.ifReopen===1" type="primary" size="mini" @click="reopen(invoiceInfo.invoType)">重新申请</u-button>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
<view class="details-invoice-list-item u-skeleton-fillet">
|
|
|
<view class="details-invoice-list-item-label">申请时间:</view>
|
|
@@ -199,7 +202,21 @@ export default {
|
|
|
formatInvoiceType(val) {
|
|
|
if (!val) return;
|
|
|
if (this.chooseRecords.list.length) return this.chooseRecords.list.find((item) => Number(item.dictValue) === Number(val)).dictLabel;
|
|
|
- }
|
|
|
+ },
|
|
|
+ /**
|
|
|
+ * @description: 跳转到重新开票页面
|
|
|
+ * @param {number}invoType 开票类型 1-路边停车订单 2-室内订单 3-包月订单
|
|
|
+ * @return {*}
|
|
|
+ */
|
|
|
+ reopen(invoType){
|
|
|
+ // console.log('invoType',invoType);
|
|
|
+ this.$u.route({
|
|
|
+ url: '/pages/invoiceModule/addInvoice/addInvoice',
|
|
|
+ params: {
|
|
|
+ invoType: invoType
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
}
|
|
|
};
|
|
|
</script>
|