在线算税

This commit is contained in:
黎永顺 2024-06-17 17:04:06 +08:00
parent d14003a125
commit 808936f540
1 changed files with 2 additions and 1 deletions

View File

@ -12,6 +12,7 @@ import { WeaLocaleProvider, WeaSearchGroup, WeaTab } from "ecCom";
import LedgerFieldsItemPopver from "./ledgerFieldsItemPopver";
import { taxruleGetForm } from "../../../apis/ledger";
import LedgerFieldsTable from "./ledgerFieldsTable";
import uuidV4 from "uuid/v4";
const { getLabel } = WeaLocaleProvider;
@ -37,7 +38,7 @@ class IncomeTaxFields extends Component {
selectedKey: _.take(data)[0].incomeCategoryId,
incomeTaxFields: _.map(data, it => ({
...it, taxReportRules: _.map(it.taxRules, o => ({
...o, canEdit: o.canEdit, id: "", reportColumnDataIndex: o.taxIndex, reportColumnName: o.name,
...o, canEdit: o.canEdit, id: uuidV4(), reportColumnDataIndex: o.taxIndex, reportColumnName: o.name,
salaryItem: [{ id: o.salaryItemId, name: o.salaryItemName }]
}))
}))