From 1aebdca4fee83fc0153efcdfe72db6fee606e6ba Mon Sep 17 00:00:00 2001
From: 1 <1@123>
Date: 星期二, 27 一月 2026 09:43:53 +0800
Subject: [PATCH] lsh#

---
 rsf-admin/src/page/task/TaskEdit.jsx |   55 +++++++++++++++++++++++++++++++++----------------------
 1 files changed, 33 insertions(+), 22 deletions(-)

diff --git a/rsf-admin/src/page/task/TaskEdit.jsx b/rsf-admin/src/page/task/TaskEdit.jsx
index bca87b3..a1c55c7 100644
--- a/rsf-admin/src/page/task/TaskEdit.jsx
+++ b/rsf-admin/src/page/task/TaskEdit.jsx
@@ -20,7 +20,8 @@
     const { getValues } = useFormContext();
     return (
         <Toolbar sx={{ justifyContent: 'end' }}>
-            <SaveButton />
+            <></>
+            {/* <SaveButton /> */}
             {/* <DeleteButton mutationMode="optimistic" /> */}
         </Toolbar>
     )
@@ -39,9 +40,20 @@
                 <SimpleForm
                     shouldUnregister
                     warnWhenUnsavedChanges
-                    toolbar={<FormToolbar />}
+                    toolbar={false}
                     mode="onTouched"
                     defaultValues={{}}
+                    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)"
+                        }
+                    }}
                 >
                     <Grid container width={{ xs: '100%', xl: '80%' }} rowSpacing={3} columnSpacing={3}>
                         <Grid item xs={24} md={16}>
@@ -67,6 +79,19 @@
                                     readOnly
                                 />
                                 <TextInput
+                                    label="table.field.task.barcode"
+                                    source="barcode"
+                                    readOnly
+                                    parse={v => v}
+                                />
+                                <NumberInput
+                                    label="table.field.task.sort"
+                                    source="sort"
+                                    readOnly
+                                />                                
+                            </Stack>
+                            <Stack direction='row' gap={2}>
+                                <TextInput
                                     label="table.field.task.orgLoc"
                                     source="orgLoc"
                                     readOnly
@@ -84,37 +109,23 @@
                                     readOnly
                                     parse={v => v}
                                 />
-                            </Stack>
-                            <Stack direction='row' gap={2}>
                                 <TextInput
                                     label="table.field.task.targSite"
                                     source="targSite"
                                     readOnly
                                     parse={v => v}
                                 />
-                                <TextInput
-                                    label="table.field.task.barcode"
-                                    source="barcode"
-                                    readOnly
-                                    parse={v => v}
-                                />
-                                <NumberInput
-                                    label="table.field.task.sort"
-                                    source="sort"
-                                />
                             </Stack>
                         </Grid>
                     </Grid>
                 </SimpleForm>
             </Edit >
-            <Card sx={{ marginTop: '1em', }}>
-                <Grid item xs={24} md={16} sx={{ margin: '1em' }}>
-                    <Typography variant="h6" gutterBottom >
-                        {translate('common.edit.title.common')}
-                    </Typography>
-                    <TaskItemList />
-                </Grid>
-            </Card>
+            <Grid item xs={24} md={16} sx={{ margin: '1em', height: 'auto' }}>
+                <Typography variant="h6" gutterBottom >
+                    {translate('common.edit.title.common')}
+                </Typography>
+            </Grid>
+            <TaskItemList />
         </>
     )
 }

--
Gitblit v1.9.1