From 5c372e346df385e4ca4600e0bd3c3f2e143ead7e Mon Sep 17 00:00:00 2001
From: skyouc
Date: 星期一, 28 七月 2025 15:55:34 +0800
Subject: [PATCH] 调拔单功能优化

---
 rsf-admin/src/page/orders/transfer/TransferEdit.jsx |   39 +++++++++++++++++++++++++++++++--------
 1 files changed, 31 insertions(+), 8 deletions(-)

diff --git a/rsf-admin/src/page/orders/transfer/TransferEdit.jsx b/rsf-admin/src/page/orders/transfer/TransferEdit.jsx
index fedacf5..bc709f9 100644
--- a/rsf-admin/src/page/orders/transfer/TransferEdit.jsx
+++ b/rsf-admin/src/page/orders/transfer/TransferEdit.jsx
@@ -34,7 +34,7 @@
   const { getValues } = useFormContext();
 
   return (
-    <Toolbar sx={{ justifyContent: "space-between" }}>
+    <Toolbar sx={{ justifyContent: "flex-end" }}>
       <SaveButton />
       <DeleteButton mutationMode="optimistic" />
     </Toolbar>
@@ -53,20 +53,34 @@
         aside={<EditBaseAside />}
       >
         <SimpleForm
+          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',
+            }
+          }}
           shouldUnregister
           warnWhenUnsavedChanges
-          toolbar={<FormToolbar />}
+          toolbar={false}
           mode="onTouched"
           defaultValues={{}}
-          // validate={(values) => { }}
         >
           <Grid
             container
-            width={{ xs: "100%", xl: "80%" }}
+            width={{ xs: "100%", xl: "90%", }}
             rowSpacing={3}
             columnSpacing={3}
           >
-            <Grid item xs={12} md={8}>
+            <Grid item xs={24} md={16}>
               <Typography variant="h6" gutterBottom>
                 {translate("common.edit.title.main")}
               </Typography>
@@ -76,13 +90,13 @@
                   source="code"
                   parse={(v) => v}
                   autoFocus
+                  readOnly
                 />
-              </Stack>
-              <Stack direction="row" gap={2}>
-                <NumberInput label="table.field.transfer.type" source="type" />
+                <NumberInput label="table.field.transfer.type" source="type" readOnly/>
                 <SelectInput
                   label="table.field.transfer.source"
                   source="source"
+                  readOnly
                   choices={[
                     { id: 1, name: "ERP绯荤粺" },
                     { id: 2, name: "WMS绯荤粺鐢熸垚" },
@@ -93,6 +107,7 @@
                 <SelectInput
                   label="table.field.transfer.exceStatus"
                   source="exceStatus"
+                  readOnly
                   choices={[
                     { id: 0, name: "鏈墽琛�" },
                     { id: 1, name: "鎵ц涓�" },
@@ -104,19 +119,23 @@
                 <NumberInput
                   label="table.field.transfer.orgWareId"
                   source="orgWareId"
+                  readOnly
                 />
                 <TextInput
                   label="table.field.transfer.orgWareName"
                   source="orgWareName"
+                  readOnly
                   parse={(v) => v}
                 />
                 <NumberInput
                   label="table.field.transfer.tarWareId"
                   source="tarWareId"
+                  readOnly
                 />
                 <TextInput
                   label="table.field.transfer.tarWareName"
                   source="tarWareName"
+                  readOnly
                   parse={(v) => v}
                 />
               </Stack>
@@ -124,19 +143,23 @@
                 <NumberInput
                   label="table.field.transfer.orgAreaId"
                   source="orgAreaId"
+                  readOnly
                 />
                 <TextInput
                   label="table.field.transfer.orgAreaName"
                   source="orgAreaName"
+                  readOnly
                   parse={(v) => v}
                 />
                 <NumberInput
                   label="table.field.transfer.tarAreaId"
                   source="tarAreaId"
+                  readOnly
                 />
                 <TextInput
                   label="table.field.transfer.tarAreaName"
                   source="tarAreaName"
+                  readOnly
                   parse={(v) => v}
                 />
               </Stack>

--
Gitblit v1.9.1