feature/2.15.2.2411.01业务线

This commit is contained in:
lys 2024-12-27 14:11:20 +08:00
parent c00a678df1
commit 33280a603f
1 changed files with 2 additions and 1 deletions

View File

@ -63,7 +63,8 @@ class CopyLedgerModal extends Component {
const { copyForm: form } = ledgerStore;
form.validateForm().then(f => {
if (f.isValid) {
const payload = { id, ...form.getFormParams(), taxAgentIds: form.getFormParams().taxAgentId.split(",") };
const { taxAgentId, ...formParams } = form.getFormParams();
const payload = { id, ...formParams, taxAgentIds: taxAgentId.split(",") };
this.setState({ loading: true });
duplicateLedger(payload).then(({ status, errormsg }) => {
this.setState({ loading: false });