Commit 210dc1ea authored by huangtingjian's avatar huangtingjian

修复BUG

parent aba3a171
......@@ -225,6 +225,7 @@ const OrderMaterialsDrawer: React.ForwardRefRenderFunction<OrderMaterialsDrawerR
};
const defaultMaterialsList = (dataSource: MaterialsListItem[]) => {
console.log(requisitionListValue.current, 'requisitionListValue.current',dataSource)
const requisitionValue: { [key: string]: string } = {};
dataSource.forEach(({ children }) => {
children?.forEach(child => {
......@@ -287,6 +288,7 @@ const OrderMaterialsDrawer: React.ForwardRefRenderFunction<OrderMaterialsDrawerR
const handleSelectRow = (record: MaterialsListItem, selected: boolean, selectedRows?: MaterialsListItem[]) => {
const { levelMap, maxLevel } = getLevelEntities(keyEntities.current);
if (selected) {
const keys = [...checkedKeysState, record.key];
const { halfCheckedKeys, checkedKeys } = fillConductCheck(keys, levelMap, maxLevel);
......
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