提交 88cee3c4 authored 作者: pengxiaohui's avatar pengxiaohui

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

上级 9b59dc90
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
<div class="right"> <div class="right">
<p><span></span>{{item.amount_received}}</p> <p><span></span>{{item.amount_received}}</p>
</div> </div>
<van-button v-if="['2', '5', '6'].includes(item.invoice_status)" class="invoice-btn" plain round type="primary" size="mini" color="#C01540" @click.stop="handleInvoice(item)">开具发票</van-button> <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>
</div> </div>
<template slot="finished">{{list.length > 8 ? '没有更多了': ''}}</template> <template slot="finished">{{list.length > 8 ? '没有更多了': ''}}</template>
</van-list> </van-list>
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
</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)" type="text" @click="handleInvoice(row)" size="mini">开具发票</el-button> <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>
<el-button type="text" @click="handleInvoiceQR(row)" size="mini">开票二维码</el-button> <el-button type="text" @click="handleInvoiceQR(row)" size="mini">开票二维码</el-button>
</template> </template>
</app-list> </app-list>
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论