提交 6a1dc850 authored 作者: matian's avatar matian

fix:代码修改

上级 6b1723fb
...@@ -19,9 +19,9 @@ ...@@ -19,9 +19,9 @@
</tr> </tr>
<tr v-show="item.invoice_status === 6"> <tr v-show="item.invoice_status === 6">
<th>原发票号码</th> <th>原发票号码</th>
<td colspan="4">{{ item.old_invoice_haoma }}</td> <td colspan="4">{{ item.invoice_haoma }}</td>
<th>原发票代码</th> <th>原发票代码</th>
<td colspan="4">{{ item.old_invoice_daima }}</td> <td colspan="4">{{ item.invoice_daima }}</td>
</tr> </tr>
<tr> <tr>
<th>含税金额</th> <th>含税金额</th>
...@@ -89,27 +89,31 @@ export default { ...@@ -89,27 +89,31 @@ export default {
return this.dealList.invoices_list || [] return this.dealList.invoices_list || []
} }
}, },
mounted() {
// console.log(this.dealList.invoices_list)
},
methods: { methods: {
invoice_type(item) { invoice_type(item) {
if (item === 1 || item === '1') { if (item.invoice_type === 1 || item.invoice_type === '1') {
return '普通纸质发票' return '普通纸质发票'
} else if (item === 2 || item === '2') { } else if (item.invoice_type === 2 || item.invoice_type === '2') {
return '普通电子发票' return '普通电子发票'
} else { } else {
return '专用纸质发票' return '专用纸质发票'
} }
}, },
taxpayer_type(item) { taxpayer_type(item) {
if (item === 1 || item === '1') { console.log(item)
if (item.taxpayer_type === 1 || item.taxpayer_type === '1') {
return '个人' return '个人'
} else if (item === 2 || item === '2') { } else if (item.taxpayer_type === 2 || item.taxpayer_type === '2') {
return '企业' return '企业'
} else { } else {
return '非营利单位' return '非营利单位'
} }
}, },
invoice_color_type(item) { invoice_color_type(item) {
if (item === 1 || item === '1') { if (item.invoice_color_type === 1 || item.invoice_color_type === '1') {
return '红字发票' return '红字发票'
} else { } else {
return '蓝字发票' return '蓝字发票'
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论