|  |  | 
 |  |  | const OutOrderList = (props) => { | 
 |  |  |   const translate = useTranslate(); | 
 |  |  |   const refresh = useRefresh(); | 
 |  |  |   const notify = useNotify(); | 
 |  |  |  | 
 |  |  |   const [createDialog, setCreateDialog] = useState(false); | 
 |  |  |   const [manualDialog, setManualDialog] = useState(false); | 
 |  |  | 
 |  |  |   //获取波次规则 | 
 |  |  |   const closeDialog = async (value) => { | 
 |  |  |     setWaveRule(false) | 
 |  |  |     refresh() | 
 |  |  |     console.log('=====>'); | 
 |  |  |     console.log(value); | 
 |  |  |     console.log(selectIds); | 
 |  |  |     const res = await request.post(`/outStock/generate/wave`, { ids: selectIds, waveRuleId: value.id }); | 
 |  |  |     if (res?.data?.code === 200) { | 
 |  |  |       notify(res.data.msg); | 
 |  |  |     } else { | 
 |  |  |       notify(res.data.msg); | 
 |  |  |     } | 
 |  |  |     refresh() | 
 |  |  |   } | 
 |  |  |  | 
 |  |  |   return ( | 
 |  |  | 
 |  |  |           bulkActionButtons={<PublicTaskButton setWaveRule={setWaveRule} setSelectIds={setSelectIds} />} | 
 |  |  |           rowClick={false} | 
 |  |  |           expandSingle={true} | 
 |  |  |           omit={['id', 'createTime', 'createBy', 'memo', 'rleStatus$']} | 
 |  |  |           omit={['id', 'createTime', 'createBy$', 'memo', 'rleStatus$']} | 
 |  |  |         > | 
 |  |  |           <NumberField source="id" /> | 
 |  |  |           <TextField source="code" label="table.field.outStock.code" /> | 
 |  |  | 
 |  |  |         drawerVal={drawerVal} | 
 |  |  |         setDrawerVal={setDrawerVal} | 
 |  |  |       > | 
 |  |  |         <OutStockPublic record={select} open={drawerVal} setOpen={setDrawerVal} /> | 
 |  |  |         <OutStockPublic record={select} open={drawerVal} setOpen={setDrawerVal}  /> | 
 |  |  |       </PageEditDrawer> | 
 |  |  |     </Box > | 
 |  |  |   ) |