| | |
| | | config.columns.forEach(item => { |
| | | if (item.Hide === 'true') return |
| | | _columns.push({ |
| | | align: 'center', |
| | | align: 'left', |
| | | dataIndex: item.field, |
| | | title: item.label, |
| | | sorter: false, |
| | |
| | | * @description 数据加载 |
| | | */ |
| | | async loadData () { |
| | | const { config } = this.props |
| | | const { config, tax_type } = this.props |
| | | const { search, pageIndex, pageSize } = this.state |
| | | |
| | | this.setState({ |
| | |
| | | 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 |
| | | }) |
| | | |