From 9598da0195806329f911f6d5b73573b429f1926c Mon Sep 17 00:00:00 2001
From: zhou zhou <3272660260@qq.com>
Date: 星期四, 15 一月 2026 09:56:23 +0800
Subject: [PATCH] #

---
 rsf-admin/src/page/basicInfo/basStation/CrossZoneAreaField.jsx |   30 +++++++++++++++---------------
 1 files changed, 15 insertions(+), 15 deletions(-)

diff --git a/rsf-admin/src/page/basicInfo/basStation/CrossZoneAreaField.jsx b/rsf-admin/src/page/basicInfo/basStation/CrossZoneAreaField.jsx
index e8f9de3..97b0746 100644
--- a/rsf-admin/src/page/basicInfo/basStation/CrossZoneAreaField.jsx
+++ b/rsf-admin/src/page/basicInfo/basStation/CrossZoneAreaField.jsx
@@ -1,4 +1,4 @@
-import  { useState, useRef, useEffect, useMemo, useCallback } from 'react';
+import { useState, useRef, useEffect, useMemo, useCallback } from 'react';
 import { Stack, Chip, Dialog, DialogTitle, DialogContent, IconButton, CircularProgress } from '@mui/material';
 import { useTranslate, useRecordContext } from 'react-admin';
 import CloseIcon from '@mui/icons-material/Close';
@@ -20,11 +20,11 @@
     };
 
     const fetchAreaNames = async () => {
-        if (!record?.areaIds || record.areaIds.length === 0) return;
-        
+        if (!record?.areas || record.areas.length === 0) return;
+
         setLoading(true);
-        try {            
-            const res = await request.post(`/warehouseAreas/many/${record.areaIds.join(',')}`);
+        try {
+            const res = await request.post(`/warehouseAreas/many/${record.areas.join(',')}`);
             if (res?.data?.code === 200) {
                 setAreaNames(res.data.data || []);
             }
@@ -36,10 +36,10 @@
     };
 
     useEffect(() => {
-        if (record?.areaIds && record.areaIds.length !== 0  && record.areaIds.length > 0) {
+        if (record?.areas && record.areas.length !== 0 && record.areas.length > 0) {
             fetchAreaNames();
         }
-    }, [record]);    
+    }, [record]);
 
     if (loading) {
         return <CircularProgress size={20} />;
@@ -47,10 +47,10 @@
 
     return (
         <>
-            <Stack 
-                direction="row" 
-                gap={1} 
-                flexWrap="wrap" 
+            <Stack
+                direction="row"
+                gap={1}
+                flexWrap="wrap"
                 onClick={handleOpen}
                 sx={{ cursor: 'pointer' }}
             >
@@ -67,16 +67,16 @@
                         label={`+${areaNames.length - 1}`}
                     />
                 )}
-                {areaNames.length === 0 && record.areaIds && record.areaIds.length > 0 && (
+                {areaNames.length === 0 && record.areas && record.areas.length > 0 && (
                     <Chip
                         size="small"
-                        label={`${record.areaIds.length} 涓尯鍩焋}
+                        label={`${record.areas.length} 涓尯鍩焋}
                     />
                 )}
             </Stack>
 
-            <Dialog 
-                open={open} 
+            <Dialog
+                open={open}
                 onClose={handleClose}
                 maxWidth="md"
                 fullWidth

--
Gitblit v1.9.1