From 7662f3bdce6bacb4c0dbdfda635ddc0f575046cd Mon Sep 17 00:00:00 2001
From: vincentlu <t1341870251@gmail.com>
Date: 星期一, 11 八月 2025 13:35:27 +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 d619b4d..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,44 +120,43 @@
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>
--
Gitblit v1.9.1