king
2024-05-08 db731b1d8b3ed1fcce588307b8bd5eccc4f805b2
src/tabviews/custom/components/module/invoice/subTable/index.jsx
@@ -89,7 +89,7 @@
    config.columns.forEach(item => {
      if (item.Hide === 'true') return
      _columns.push({
        align: 'center',
        align: 'left',
        dataIndex: item.field,
        title: item.label,
        sorter: false,
@@ -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
      })