From bf616f97b4d1a96e0ee89c52178a88e044e52a1d Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期六, 21 九月 2024 10:40:24 +0800
Subject: [PATCH] #

---
 zy-acs-flow/src/page/agv/AgvShow.jsx |   32 +++++++++++++++++---------------
 1 files changed, 17 insertions(+), 15 deletions(-)

diff --git a/zy-acs-flow/src/page/agv/AgvShow.jsx b/zy-acs-flow/src/page/agv/AgvShow.jsx
index d758cea..0e0d751 100644
--- a/zy-acs-flow/src/page/agv/AgvShow.jsx
+++ b/zy-acs-flow/src/page/agv/AgvShow.jsx
@@ -22,9 +22,13 @@
     ListItemText,
     Stack,
     Typography,
+    Avatar,
 } from '@mui/material';
 import { formatDistance } from 'date-fns';
-
+import { AgvShowDetail } from "./show/AgvShowDetail";
+import { AgvShowAside } from "./show/AgvShowAside";
+import CustomerTopToolBar from "../components/EditTopToolBar";
+import { useTheme } from '@mui/material/styles';
 
 export const AgvShow = () => {
 
@@ -39,6 +43,7 @@
 
 const AgvShowContent = (props) => {
     const { record, isPending } = useShowContext();
+    const theme = useTheme();
     if (isPending || !record) return null;
 
     return (
@@ -46,11 +51,15 @@
             <Box mt={2} display="flex">
                 <Box flex="1">
                     <Card>
-                        <CardContent>
-                            <Box display="flex" mb={1}>
-                                <Typography variant="h5" ml={2} flex="1">
-                                    {record.uuid}
-                                </Typography>
+                        <CardContent sx={{ pt: 0 }}>
+                            <Box display="flex" mb={1} sx={{
+                                justifyContent: 'space-between',
+                                alignItems: 'center',
+                            }}>
+                                <CustomerTopToolBar />
+                                <Box mt={1}>
+                                    <Avatar sx={{ bgcolor: theme.palette.primary.main }}>{record.uuid}</Avatar>
+                                </Box>
                             </Box>
 
                             <TabbedShowLayout
@@ -58,7 +67,8 @@
                                     '& .RaTabbedShowLayout-content': { p: 0 },
                                 }}
                             >
-                                <TabbedShowLayout.Tab label="Activity">
+                                <TabbedShowLayout.Tab label="DETAIL">
+                                    <AgvShowDetail record={record} />
                                 </TabbedShowLayout.Tab>
                             </TabbedShowLayout>
                         </CardContent>
@@ -69,11 +79,3 @@
         </>
     )
 }
-
-const AgvShowAside = (props) => {
-    const { record, isPending } = useShowContext();
-
-    return (<>
-        <h1>{JSON.stringify(record)}</h1>
-    </>)
-}
\ No newline at end of file

--
Gitblit v1.9.1