From cb2339b2f1530132659c8c320cfdd91ee7f68c61 Mon Sep 17 00:00:00 2001 From: skyouc Date: 星期四, 31 七月 2025 12:47:28 +0800 Subject: [PATCH] 调拔单功能优化 库位编辑更新不生效问题修复 --- rsf-admin/src/page/orders/delivery/DeliveryEdit.jsx | 37 +++++++++++++++++++++++++++---------- 1 files changed, 27 insertions(+), 10 deletions(-) diff --git a/rsf-admin/src/page/orders/delivery/DeliveryEdit.jsx b/rsf-admin/src/page/orders/delivery/DeliveryEdit.jsx index 6113334..aeabe72 100644 --- a/rsf-admin/src/page/orders/delivery/DeliveryEdit.jsx +++ b/rsf-admin/src/page/orders/delivery/DeliveryEdit.jsx @@ -57,8 +57,22 @@ <SimpleForm shouldUnregister warnWhenUnsavedChanges - toolbar={<FormToolbar />} + toolbar={false} mode="onTouched" + sx={{ + "& .MuiFormLabel-root.MuiInputLabel-root.Mui-disabled": { + bgcolor: 'white', + WebkitTextFillColor: "rgba(0, 0, 0)" + }, + + "& .MuiInputBase-input.MuiFilledInput-input.Mui-disabled": { + bgcolor: 'white', + WebkitTextFillColor: "rgba(0, 0, 0)" + }, + "& .MuiFilledInput-root.MuiInputBase-sizeSmall": { + bgcolor: 'white', + } + }} defaultValues={{}} > <Grid container width={{ xs: '100%', xl: '100%' }} rowSpacing={3} columnSpacing={3}> @@ -71,7 +85,8 @@ label="table.field.delivery.code" source="code" parse={v => v} - autoFocus + readOnly + /> <AutocompleteInput choices={dicts} @@ -89,12 +104,15 @@ source="wkType" optionValue="value" parse={v => v} + readOnly /> <TextInput label="table.field.delivery.source" source="source" parse={v => v} validate={required()} + readOnly + /> </Stack> <Stack direction='row' gap={2}> @@ -102,45 +120,44 @@ label="table.field.delivery.anfme" source="anfme" validate={required()} + readOnly /> <NumberInput label="table.field.delivery.qty" source="qty" + readOnly /> <NumberInput label="table.field.delivery.workQty" source="workQty" + readOnly /> <TextInput label="table.field.delivery.platId" source="platId" parse={v => v} + readOnly /> <TextInput label="table.field.delivery.platCode" source="platCode" parse={v => v} + readOnly /> </Stack> <Stack direction='row' gap={2}> <DateInput label="table.field.delivery.startTime" source="startTime" + readOnly /> <DateInput label="table.field.delivery.endTime" source="endTime" + readOnly /> </Stack> </Grid> - {/* <Grid item xs={8} md={2}> - <Typography variant="h6" gutterBottom> - {translate('common.edit.title.common')} - </Typography> - <StatusSelectInput /> - <Box mt="2em" /> - <MemoInput /> - </Grid> */} </Grid> </SimpleForm> </Edit > -- Gitblit v1.9.1