From c55a86895cabc3e91c2e7aa4eab099a7287e0ae6 Mon Sep 17 00:00:00 2001
From: cl <1442464845@qq.com>
Date: 星期二, 21 四月 2026 14:54:16 +0800
Subject: [PATCH] 站点优化

---
 rsf-admin/src/page/locItem/LocItemEdit.jsx |   84 +++++++++++++++++++++++++++++++++++++-----
 1 files changed, 74 insertions(+), 10 deletions(-)

diff --git a/rsf-admin/src/page/locItem/LocItemEdit.jsx b/rsf-admin/src/page/locItem/LocItemEdit.jsx
index 120f850..4a2fb96 100644
--- a/rsf-admin/src/page/locItem/LocItemEdit.jsx
+++ b/rsf-admin/src/page/locItem/LocItemEdit.jsx
@@ -23,6 +23,7 @@
 import { useWatch, useFormContext } from "react-hook-form";
 import { Stack, Grid, Box, Typography } from '@mui/material';
 import * as Common from '@/utils/common';
+import QuantityInput from "../components/QuantityInput";
 import { EDIT_MODE, REFERENCE_INPUT_PAGESIZE } from '@/config/setting';
 import EditBaseAside from "../components/EditBaseAside";
 import CustomerTopToolBar from "../components/EditTopToolBar";
@@ -33,9 +34,9 @@
     const { getValues } = useFormContext();
 
     return (
-        <Toolbar sx={{ justifyContent: 'end' }}>
+        <Toolbar sx={{ justifyContent: 'space-between' }}>
             <SaveButton />
-            {/* <DeleteButton mutationMode="optimistic" /> */}
+            <DeleteButton mutationMode="optimistic" />
         </Toolbar>
     )
 }
@@ -58,8 +59,8 @@
                 defaultValues={{}}
             // validate={(values) => { }}
             >
-                <Grid container width={{ xs: '100%', xl: '100%' }} rowSpacing={3} columnSpacing={3}>
-                    <Grid item xs={14} md={10}>
+                <Grid container width={{ xs: '100%', xl: '80%' }} rowSpacing={3} columnSpacing={3}>
+                    <Grid item xs={12} md={8}>
                         <Typography variant="h6" gutterBottom>
                             {translate('common.edit.title.main')}
                         </Typography>
@@ -69,18 +70,24 @@
                                 source="locId"
                                 autoFocus
                             />
+                        </Stack>
+                        <Stack direction='row' gap={2}>
                             <TextInput
                                 label="table.field.locItem.locCode"
                                 source="locCode"
                                 parse={v => v}
                             />
+                        </Stack>
+                        <Stack direction='row' gap={2}>
                             <NumberInput
                                 label="table.field.locItem.orderId"
                                 source="orderId"
                             />
+                        </Stack>
+                        <Stack direction='row' gap={2}>
                             <TextInput
                                 label="table.field.locItem.type"
-                                source="type$"
+                                source="type"
                                 parse={v => v}
                             />
                         </Stack>
@@ -89,10 +96,14 @@
                                 label="table.field.locItem.orderItemId"
                                 source="orderItemId"
                             />
+                        </Stack>
+                        <Stack direction='row' gap={2}>
                             <NumberInput
                                 label="table.field.locItem.wkType"
                                 source="wkType"
                             />
+                        </Stack>
+                        <Stack direction='row' gap={2}>
                             <NumberInput
                                 label="table.field.locItem.matnrId"
                                 source="matnrId"
@@ -104,17 +115,52 @@
                                 source="maktx"
                                 parse={v => v}
                             />
-
+                        </Stack>
+                        {/* 鐜板搧绁ㄥ彿宸叉敞閲�
+                        <Stack direction='row' gap={2}>
+                            <TextInput
+                                label="table.field.locItem.platItemId"
+                                source="platItemId"
+                                parse={v => v}
+                            />
+                        </Stack>
+                        */}
+                        <Stack direction='row' gap={2}>
+                            <TextInput
+                                label="table.field.locItem.platOrderCode"
+                                source="platOrderCode"
+                                parse={v => v}
+                            />
+                        </Stack>
+                        <Stack direction='row' gap={2}>
+                            <TextInput
+                                label="table.field.locItem.platWorkCode"
+                                source="platWorkCode"
+                                parse={v => v}
+                            />
+                        </Stack>
+                        <Stack direction='row' gap={2}>
+                            <TextInput
+                                label="table.field.locItem.projectCode"
+                                source="projectCode"
+                                parse={v => v}
+                            />
+                        </Stack>
+                        <Stack direction='row' gap={2}>
                             <TextInput
                                 label="table.field.locItem.matnrCode"
                                 source="matnrCode"
                                 parse={v => v}
                             />
+                        </Stack>
+                        <Stack direction='row' gap={2}>
                             <TextInput
                                 label="table.field.locItem.trackCode"
                                 source="trackCode"
                                 parse={v => v}
                             />
+                        </Stack>
+                        <Stack direction='row' gap={2}>
                             <TextInput
                                 label="table.field.locItem.unit"
                                 source="unit"
@@ -122,18 +168,24 @@
                             />
                         </Stack>
                         <Stack direction='row' gap={2}>
-                            <NumberInput
+                            <QuantityInput
                                 label="table.field.locItem.anfme"
                                 source="anfme"
                             />
-                            <NumberInput
+                        </Stack>
+                        <Stack direction='row' gap={2}>
+                            <QuantityInput
                                 label="table.field.locItem.qty"
                                 source="qty"
                             />
-                            <NumberInput
+                        </Stack>
+                        <Stack direction='row' gap={2}>
+                            <QuantityInput
                                 label="table.field.locItem.workQty"
                                 source="workQty"
                             />
+                        </Stack>
+                        <Stack direction='row' gap={2}>
                             <TextInput
                                 label="table.field.locItem.batch"
                                 source="batch"
@@ -146,16 +198,28 @@
                                 source="splrBatch"
                                 parse={v => v}
                             />
+                        </Stack>
+                        <Stack direction='row' gap={2}>
+                            <NumberInput
+                                label="table.field.locItem.splrId"
+                                source="splrId"
+                            />
+                        </Stack>
+                        <Stack direction='row' gap={2}>
                             <TextInput
                                 label="table.field.locItem.spec"
                                 source="spec"
                                 parse={v => v}
                             />
+                        </Stack>
+                        <Stack direction='row' gap={2}>
                             <TextInput
                                 label="table.field.locItem.model"
                                 source="model"
                                 parse={v => v}
                             />
+                        </Stack>
+                        <Stack direction='row' gap={2}>
                             <TextInput
                                 label="table.field.locItem.fieldsIndex"
                                 source="fieldsIndex"
@@ -164,7 +228,7 @@
                         </Stack>
 
                     </Grid>
-                    <Grid item xs={10} md={2}>
+                    <Grid item xs={12} md={4}>
                         <Typography variant="h6" gutterBottom>
                             {translate('common.edit.title.common')}
                         </Typography>

--
Gitblit v1.9.1