king
2024-04-22 fc8c8d714687a22f711d642d192bd4149f3b7e88
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
      })