提交 1ea2fcfe authored 作者: pengxiaohui's avatar pengxiaohui

fix: 增加是否可以开具发票判断字段

上级 4650cc65
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
<div class="right"> <div class="right">
<p><span></span>{{parseFloat(item.amount_received) + parseFloat(item.service_charge) | toFixed}}</p> <p><span></span>{{parseFloat(item.amount_received) + parseFloat(item.service_charge) | toFixed}}</p>
</div> </div>
<van-button v-if="['2', '5', '6'].includes(item.invoice_status) && item.can_add_invoice === '1'" class="invoice-btn" plain round type="primary" size="mini" color="#C01540" @click.stop="handleInvoice(item)">开具发票</van-button> <van-button v-if="item.real_invoice_status === 1" class="invoice-btn" plain round type="primary" size="mini" color="#C01540" @click.stop="handleInvoice(item)">开具发票</van-button>
</div> </div>
<template slot="finished">{{list.length > 8 ? '没有更多了': ''}}</template> <template slot="finished">{{list.length > 8 ? '没有更多了': ''}}</template>
</van-list> </van-list>
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
<van-cell title="发票申请时间" :value="details.invoice_application_time" /> <van-cell title="发票申请时间" :value="details.invoice_application_time" />
<van-cell title="备注" :value="details.invoice_remark" /> <van-cell title="备注" :value="details.invoice_remark" />
</van-cell-group> </van-cell-group>
<div class="btn-bar" v-if="['2', '5', '6'].includes(details.invoice_status) && details.can_add_invoice === '1'"> <div class="btn-bar" v-if="details.real_invoice_status === 1">
<van-button type="info" size="small" round block @click="handleInvoice">开具发票</van-button> <van-button type="info" size="small" round block @click="handleInvoice">开具发票</van-button>
</div> </div>
</div> </div>
......
...@@ -6,9 +6,11 @@ ...@@ -6,9 +6,11 @@
</template> </template>
<!-- 操作 --> <!-- 操作 -->
<template v-slot:table-operate="{ row }"> <template v-slot:table-operate="{ row }">
<el-button v-if="['2', '5', '6'].includes(row.invoice_status) && row.can_add_invoice === '1'" type="text" @click="handleInvoice(row)" size="mini">开具发票</el-button> <template v-if="row.real_invoice_status === 1">
<el-button type="text" @click="handleInvoice(row)" size="mini">开具发票</el-button>
<el-button type="text" @click="handleInvoiceQR(row)" size="mini">开票二维码</el-button> <el-button type="text" @click="handleInvoiceQR(row)" size="mini">开票二维码</el-button>
</template> </template>
</template>
</app-list> </app-list>
<el-drawer title="开具发票" :visible.sync="drawerVisible" :close-on-click-modal="false" :destroy-on-close="true" size="600px" top="15px" @close="handleClose"> <el-drawer title="开具发票" :visible.sync="drawerVisible" :close-on-click-modal="false" :destroy-on-close="true" size="600px" top="15px" @close="handleClose">
<invoice-form :history="history" :initData="initData" @history="handleHistory" @dialogClose="drawerVisible = false" @submit="fetchCreateInvoice"/> <invoice-form :history="history" :initData="initData" @history="handleHistory" @dialogClose="drawerVisible = false" @submit="fetchCreateInvoice"/>
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论