From f2833c7f3e01c997e94a66bd5dd9be738b5c6cc7 Mon Sep 17 00:00:00 2001
From: skyouc
Date: 星期四, 26 六月 2025 13:31:08 +0800
Subject: [PATCH] 波次任务下发功能优化

---
 rsf-admin/src/page/statistics/stockManage/WarehouseStockList.jsx |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/rsf-admin/src/page/statistics/stockManage/WarehouseStockList.jsx b/rsf-admin/src/page/statistics/stockManage/WarehouseStockList.jsx
index 3a463e3..dd6f42a 100644
--- a/rsf-admin/src/page/statistics/stockManage/WarehouseStockList.jsx
+++ b/rsf-admin/src/page/statistics/stockManage/WarehouseStockList.jsx
@@ -62,6 +62,8 @@
 
 
 const WarehouseStockList = () => {
+    const dict = JSON.parse(localStorage.getItem('sys_dicts'))?.filter(dict => (dict.dictTypeCode == 'sys_stock_summary_code')) || [];
+
     const translate = useTranslate();
     const [createDialog, setCreateDialog] = useState(false);
     const [filters, setFilters] = useState([
@@ -69,9 +71,7 @@
         <NumberInput source="locId" label="table.field.locItem.locId" />,
         <TextInput source="locCode" label="table.field.locItem.locCode" />,
         <TextInput source="type" label="table.field.locItem.type" />,
-        <ReferenceInput source="aggType" reference="dictData" filter={{ dictTypeCode: 'sys_stock_summary_code' }} alwaysOn>
-            <AutocompleteInput optionText='label' optionValue="value" label="table.field.locItem.aggType" />
-        </ReferenceInput>,
+        <AutocompleteInput choices={dict} optionText='label' optionValue="value" source="aggType" label="table.field.locItem.aggType" />,
         <NumberInput source="orderItemId" label="table.field.locItem.orderItemId" />,
         <NumberInput source="wkType" label="table.field.locItem.wkType" />,
         <NumberInput source="matnrId" label="table.field.locItem.matnrId" />,
@@ -98,6 +98,9 @@
                                 duration: theme.transitions.duration.enteringScreen,
                             }),
                         marginRight: 0,
+                        '& .RaAutocompleteInput-textField.MuiFormControl-root.MuiTextField-root': {
+                            width: '200px'
+                        }
                     }}
                     resource="warehouse/stock"
                     title={"common.button.detail"}

--
Gitblit v1.9.1