薪资账套重构

This commit is contained in:
黎永顺 2022-12-08 16:58:32 +08:00
parent 645ec864f3
commit 1d64220c7c
2 changed files with 3 additions and 3 deletions

View File

@ -33,7 +33,7 @@ class CopyLedgerModal extends Component {
const { copyForm: form } = ledgerStore;
form.updateFields({
name: { value: name },
taxAgentId: { value: taxAgentId }
taxAgentId: { value: taxAgentId.toString() }
});
}
}

View File

@ -140,11 +140,11 @@ class LedgerTable extends Component {
};
handleMenuClick = ({ key }, record) => {
const { copyLedgerModal } = this.state;
const { id, name, taxAgenyId } = record;
const { id, name, taxAgentId } = record;
switch (key) {
case "copy":
this.setState({
copyLedgerModal: { ...copyLedgerModal, visible: true, id, name, taxAgenyId }
copyLedgerModal: { ...copyLedgerModal, visible: true, id, name, taxAgentId }
});
break;
case "delete":