Commit 4b61bbdb authored by 前端-彭佳文's avatar 前端-彭佳文

Merge branch 'v2-220418' into 'v2-220418'

fix: 单据管理-添加单据明细过滤重复 See merge request linkseeks-design/pro-platform!630
parents e13dd915 d9e581aa
...@@ -233,9 +233,10 @@ const BillsForm: React.FC<BillsFormProps> = ({ ...@@ -233,9 +233,10 @@ const BillsForm: React.FC<BillsFormProps> = ({
}; };
values.push(atom); values.push(atom);
}); });
const new_values = values.filter(val => !preValues.some(v=>v.goodsId === val.goodsId))
addSchemaAction.setFieldValue( addSchemaAction.setFieldValue(
'invoicesDetailsDTOList', 'invoicesDetailsDTOList',
preValues?.concat(values), preValues?.concat(new_values),
); );
productRowCtl.setSelectRow([]); productRowCtl.setSelectRow([]);
productRowCtl.setSelectedRowKeys([]); productRowCtl.setSelectedRowKeys([]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment