From 81fa2ee00313e7f786be6f5c109b92ed612f61c1 Mon Sep 17 00:00:00 2001
From: skyouc
Date: 星期二, 05 八月 2025 13:00:05 +0800
Subject: [PATCH] Merge branch 'devlop' of http://47.97.1.152:5880/r/wms-master into devlop

---
 rsf-admin/src/page/stockManage/locRevise/LocReviseEdit.jsx |   71 +++++++++++++----------------------
 1 files changed, 27 insertions(+), 44 deletions(-)

diff --git a/rsf-admin/src/page/locRevise/LocReviseEdit.jsx b/rsf-admin/src/page/stockManage/locRevise/LocReviseEdit.jsx
similarity index 62%
rename from rsf-admin/src/page/locRevise/LocReviseEdit.jsx
rename to rsf-admin/src/page/stockManage/locRevise/LocReviseEdit.jsx
index d1e9fda..80db4ee 100644
--- a/rsf-admin/src/page/locRevise/LocReviseEdit.jsx
+++ b/rsf-admin/src/page/stockManage/locRevise/LocReviseEdit.jsx
@@ -24,21 +24,11 @@
 import { Stack, Grid, Box, Typography } from '@mui/material';
 import * as Common from '@/utils/common';
 import { EDIT_MODE, REFERENCE_INPUT_PAGESIZE } from '@/config/setting';
-import EditBaseAside from "../components/EditBaseAside";
-import CustomerTopToolBar from "../components/EditTopToolBar";
-import MemoInput from "../components/MemoInput";
-import StatusSelectInput from "../components/StatusSelectInput";
+import EditBaseAside from "@/page/components/EditBaseAside";
+import CustomerTopToolBar from "@/page/components/EditTopToolBar";
+import MemoInput from "@/page/components/MemoInput";
+import StatusSelectInput from "@/page/components/StatusSelectInput";
 
-const FormToolbar = () => {
-    const { getValues } = useFormContext();
-
-    return (
-        <Toolbar sx={{ justifyContent: 'space-between' }}>
-            <SaveButton />
-            <DeleteButton mutationMode="optimistic" />
-        </Toolbar>
-    )
-}
 
 const LocReviseEdit = () => {
     const translate = useTranslate();
@@ -53,13 +43,24 @@
             <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)"
+                    }
+                }}
             // validate={(values) => { }}
             >
                 <Grid container width={{ xs: '100%', xl: '80%' }} rowSpacing={3} columnSpacing={3}>
-                    <Grid item xs={12} md={8}>
+                    <Grid item xs={24} md={12}>
                         <Typography variant="h6" gutterBottom>
                             {translate('common.edit.title.main')}
                         </Typography>
@@ -68,64 +69,46 @@
                                 label="table.field.locRevise.code"
                                 source="code"
                                 parse={v => v}
-                                autoFocus
+                                readOnly
                             />
-                        </Stack>
-                        <Stack direction='row' gap={2}>
                             <SelectInput
                                 label="table.field.locRevise.type"
                                 source="type"
                                 choices={[
                                     { id: 0, name: ' 搴撳瓨璋冩暣' },
-                                    { id:  2, name: ' 鐩樼偣璋冩暣' },
+                                    { id: 2, name: ' 鐩樼偣璋冩暣' },
                                 ]}
+                                readOnly
                             />
-                        </Stack>
-                        <Stack direction='row' gap={2}>
                             <NumberInput
                                 label="table.field.locRevise.anfme"
                                 source="anfme"
+                                readOnly
                             />
                         </Stack>
                         <Stack direction='row' gap={2}>
                             <NumberInput
                                 label="table.field.locRevise.reviseQty"
                                 source="reviseQty"
+                                readOnly
                             />
-                        </Stack>
-                        <Stack direction='row' gap={2}>
                             <SelectInput
                                 label="table.field.locRevise.exceStatus"
                                 source="exceStatus"
                                 choices={[
                                     { id: 0, name: '鏈墽琛�' },
-                                    { id:  1, name: '鎵ц涓�' },
-                                    { id:  2, name: '鎵ц瀹屾垚' },
+                                    { id: 1, name: '鎵ц涓�' },
+                                    { id: 2, name: '鎵ц瀹屾垚' },
                                 ]}
+                                readOnly
                             />
-                        </Stack>
-                        <Stack direction='row' gap={2}>
-                            <NumberInput
-                                label="table.field.locRevise.orgAreaId"
-                                source="orgAreaId"
-                            />
-                        </Stack>
-                        <Stack direction='row' gap={2}>
                             <TextInput
-                                label="table.field.locRevise.orgAreaName"
+                                label="table.field.locRevise.areaName"
                                 source="orgAreaName"
                                 parse={v => v}
+                                readOnly
                             />
                         </Stack>
-
-                    </Grid>
-                    <Grid item xs={12} md={4}>
-                        <Typography variant="h6" gutterBottom>
-                            {translate('common.edit.title.common')}
-                        </Typography>
-                        <StatusSelectInput />
-                        <Box mt="2em" />
-                        <MemoInput />
                     </Grid>
                 </Grid>
             </SimpleForm>

--
Gitblit v1.9.1