|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | const getData = async () => { | 
|---|
|  |  |  | const res = await request.post(`/qlyIsptItem/page`, { ispectId, isptStatus: '0' }); | 
|---|
|  |  |  | const res = await request.post(`/qlyIsptItem/ispts/page`, { ispectId }); | 
|---|
|  |  |  | if (res?.data?.code === 200) { | 
|---|
|  |  |  | const data = res.data.data.records.map(item => { | 
|---|
|  |  |  | return { | 
|---|
|  |  |  | 
|---|
|  |  |  | backgroundColor: 'background.paper', | 
|---|
|  |  |  | zIndex: 1000 | 
|---|
|  |  |  | }}> | 
|---|
|  |  |  | 执行质检 | 
|---|
|  |  |  | <Box sx={{ position: 'absolute', top: 8, right: 8, zIndex: 1001 }}> | 
|---|
|  |  |  | <DialogCloseButton onClose={handleClose} /> | 
|---|
|  |  |  | </Box> | 
|---|
|  |  |  | </DialogTitle> | 
|---|
|  |  |  | <DialogContent sx={{ mt: 2 }}> | 
|---|
|  |  |  | {/* <Box component="form" onSubmit={handleSubmit} sx={{ display: 'flex', flexDirection: 'column', gap: 3 }}> | 
|---|
|  |  |  | <Grid container spacing={2}> | 
|---|
|  |  |  | <Grid item md={4}> | 
|---|
|  |  |  | <TextField | 
|---|
|  |  |  | label={translate('table.field.asnOrder.code')} | 
|---|
|  |  |  | name="code" | 
|---|
|  |  |  | value={formData.code} | 
|---|
|  |  |  | onChange={handleChange} | 
|---|
|  |  |  | size="small" | 
|---|
|  |  |  | /> | 
|---|
|  |  |  | </Grid> | 
|---|
|  |  |  | </Grid> | 
|---|
|  |  |  | </Box> */} | 
|---|
|  |  |  | <Box sx={{ mt: 2 }}> | 
|---|
|  |  |  | {/* <Stack direction="row" spacing={2}> | 
|---|
|  |  |  | <Button variant="contained" onClick={handleSearch}>搜索</Button> | 
|---|
|  |  |  | </Stack> */} | 
|---|
|  |  |  |  | 
|---|
|  |  |  | <Stack direction="row" spacing={2}> | 
|---|
|  |  |  | <Button variant="contained" onClick={batchQualified}>批量合格</Button> | 
|---|
|  |  |  | <Button variant="contained" color="error" onClick={batchUnQualified}>批量不合格</Button> | 
|---|
|  |  |  | <Button variant="contained" onClick={batchQualified}>{translate('common.action.batchSafe')} </Button> | 
|---|
|  |  |  | <Button variant="contained" color="error" onClick={batchUnQualified}>{translate('common.action.batchDef')} </Button> | 
|---|
|  |  |  | </Stack> | 
|---|
|  |  |  | </Box> | 
|---|
|  |  |  | <Box sx={{ mt: 2, height: 400, width: '100%' }}> | 
|---|
|  |  |  | 
|---|
|  |  |  | </Box> | 
|---|
|  |  |  | </DialogContent> | 
|---|
|  |  |  | <DialogActions sx={{ position: 'sticky', bottom: 0, backgroundColor: 'background.paper', zIndex: 1000 }}> | 
|---|
|  |  |  | <Box sx={{ width: '100%', display: 'flex', justifyContent: 'space-between' }}> | 
|---|
|  |  |  | <Box sx={{ width: '100%', display: 'flex', justifyContent: 'end' }}> | 
|---|
|  |  |  | <Button onClick={handleSubmit} variant="contained" startIcon={<SaveIcon />}> | 
|---|
|  |  |  | {translate('toolbar.confirm')} | 
|---|
|  |  |  | </Button> | 
|---|
|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | }; | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | const [columns, setColumns] = useState([ | 
|---|
|  |  |  | // { field: 'id', headerName: 'ID', width: 100 }, | 
|---|
|  |  |  | { field: 'maktx', headerName: translate('table.field.qlyIsptItem.maktx'), width: 300 }, | 
|---|
|  |  |  | { field: 'matnrCode', headerName: translate('table.field.qlyIsptItem.matnrCode') }, | 
|---|
|  |  |  | { field: 'maktx', headerName: translate('table.field.qlyIsptItem.maktx'), width: 300 }, | 
|---|
|  |  |  | { field: 'splrName', headerName: translate('table.field.qlyIsptItem.splrName') }, | 
|---|
|  |  |  | { field: 'splrBatch', headerName: translate('table.field.qlyIsptItem.splrBatch') }, | 
|---|
|  |  |  | { field: 'stockBatch', headerName: translate('table.field.qlyIsptItem.stockBatch') }, | 
|---|
|  |  |  | { field: 'dlyQty', headerName: translate('table.field.qlyIsptItem.dlyQty') }, | 
|---|
|  |  |  | // { field: 'stockBatch', headerName: translate('table.field.qlyIsptItem.stockBatch') }, | 
|---|
|  |  |  | // { field: 'dlyQty', headerName: translate('table.field.qlyIsptItem.dlyQty') }, | 
|---|
|  |  |  | { field: 'rcptQty', headerName: translate('table.field.qlyIsptItem.rcptQty') }, | 
|---|
|  |  |  | { | 
|---|
|  |  |  | field: 'safeQty', headerName: translate('table.field.qlyIsptItem.safeQty'), editable: true, type: 'number', | 
|---|
|  |  |  | 
|---|
|  |  |  | ), | 
|---|
|  |  |  | }, | 
|---|
|  |  |  |  | 
|---|
|  |  |  | { | 
|---|
|  |  |  | field: 'isptResult', headerName: translate('table.field.qlyIsptItem.isptResult'), width: 150, type: 'singleSelect', | 
|---|
|  |  |  | editable: true, valueOptions: [{ value: '1', label: '合格' }, { value: '2', label: '不合格' }, { value: '3', label: '待定' }, { value: '4', label: '部分合格' }], | 
|---|
|  |  |  | }, | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | // { | 
|---|
|  |  |  | //     field: 'isptResult', headerName: translate('table.field.qlyIsptItem.isptResult'), width: 150, type: 'singleSelect', | 
|---|
|  |  |  | //     editable: true, valueOptions: [{ value: '1', label: '合格' }, { value: '2', label: '不合格' }, { value: '3', label: '待定' }, { value: '4', label: '部分合格' }], | 
|---|
|  |  |  | // }, | 
|---|
|  |  |  | ]) | 
|---|
|  |  |  |  | 
|---|
|  |  |  | const processRowUpdate = (newRow, oldRow) => { | 
|---|