From fc8c8d714687a22f711d642d192bd4149f3b7e88 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期一, 22 四月 2024 11:15:14 +0800 Subject: [PATCH] 2024-04-22 --- src/tabviews/custom/components/module/invoice/subTable/index.jsx | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/src/tabviews/custom/components/module/invoice/subTable/index.jsx b/src/tabviews/custom/components/module/invoice/subTable/index.jsx index 04ab0e9..953fbe3 100644 --- a/src/tabviews/custom/components/module/invoice/subTable/index.jsx +++ b/src/tabviews/custom/components/module/invoice/subTable/index.jsx @@ -138,7 +138,7 @@ * @description 鏁版嵁鍔犺浇 */ async loadData () { - const { config } = this.props + const { config, tax_type } = this.props const { search, pageIndex, pageSize } = this.state this.setState({ @@ -167,6 +167,11 @@ item.key = index item.$Index = start + index + '' + if (tax_type) { + item.tax_rate = tax_type === 'special_invoice' ? item.general_tax_rate : item.small_tax_rate + item.tax_rate = isNaN(item.tax_rate) ? 0 : +item.tax_rate + } + return item }) -- Gitblit v1.8.0