|  |  |  | 
|---|
|  |  |  | const selectLocItem = async() =>{ | 
|---|
|  |  |  | const { | 
|---|
|  |  |  | data: { code, data, msg }, | 
|---|
|  |  |  | } = await request.post("/locItem/page",{ | 
|---|
|  |  |  | } = await request.post("/locItem/useO/page",{ | 
|---|
|  |  |  | locCode: orgLoc, | 
|---|
|  |  |  | current: 1, | 
|---|
|  |  |  | pageSize: 100, | 
|---|
|  |  |  | 
|---|
|  |  |  | <Stack direction='row' spacing={2} minWidth={200}> | 
|---|
|  |  |  | <SubmitButton | 
|---|
|  |  |  | orgLoc={orgLoc} | 
|---|
|  |  |  | tarLoc={tarLoc} | 
|---|
|  |  |  | tarLoc={tarLoc} | 
|---|
|  |  |  | tabelData={tabelData} | 
|---|
|  |  |  | /> | 
|---|
|  |  |  | </Stack> | 
|---|
|  |  |  | </Box> | 
|---|
|  |  |  | 
|---|
|  |  |  | const notify = useNotify(); | 
|---|
|  |  |  | const redirect = useRedirect(); | 
|---|
|  |  |  | const refresh = useRefresh(); | 
|---|
|  |  |  | const { orgLoc, tarLoc } = props; | 
|---|
|  |  |  | const { orgLoc, tarLoc, tabelData } = props; | 
|---|
|  |  |  | const move = () => { | 
|---|
|  |  |  | console.log(orgLoc, tarLoc); | 
|---|
|  |  |  | if (orgLoc === "" || orgLoc === undefined || orgLoc === null) { | 
|---|
|  |  |  | notify("请选择站点"); | 
|---|
|  |  |  | notify("请输入源库位"); | 
|---|
|  |  |  | return; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | if (tarLoc === "" || tarLoc === undefined || tarLoc === null) { | 
|---|
|  |  |  | notify("请选择站点"); | 
|---|
|  |  |  | // if (tarLoc === "" || tarLoc === undefined || tarLoc === null) { | 
|---|
|  |  |  | //     notify("请输入目标库位"); | 
|---|
|  |  |  | //     return; | 
|---|
|  |  |  | // } | 
|---|
|  |  |  | if (tabelData.length === 0) { | 
|---|
|  |  |  | notify("源库位明细无,请检查库位状态"); | 
|---|
|  |  |  | return; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | http(orgLoc, tarLoc?.id) | 
|---|
|  |  |  | } | 
|---|
|  |  |  | const http = async (orgLoc, tarLoc) => { | 
|---|
|  |  |  | 
|---|
|  |  |  | width: 100, | 
|---|
|  |  |  | editable: false, | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | { | 
|---|
|  |  |  | field: 'workQty', | 
|---|
|  |  |  | headerName: translate('table.field.locItem.workQty'), | 
|---|
|  |  |  | width: 100, | 
|---|
|  |  |  | type: 'number', | 
|---|
|  |  |  | editable: false, | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | // { | 
|---|
|  |  |  | //     field: 'workQty', | 
|---|
|  |  |  | //     headerName: translate('table.field.locItem.workQty'), | 
|---|
|  |  |  | //     width: 100, | 
|---|
|  |  |  | //     type: 'number', | 
|---|
|  |  |  | //     editable: false, | 
|---|
|  |  |  | // }, | 
|---|
|  |  |  | { | 
|---|
|  |  |  | field: 'locCode', | 
|---|
|  |  |  | headerName: translate('table.field.locItem.locCode'), | 
|---|