From 5807fc22aba974b4ca85a8049ecd983673b0ca28 Mon Sep 17 00:00:00 2001
From: skyouc <958836976@qq.com>
Date: 星期一, 20 十月 2025 16:59:34 +0800
Subject: [PATCH] 1. 添加大屏接口 2. 任务站点确认修改
---
rsf-admin/src/page/statistics/stockManage/WarehouseStockList.jsx | 25 +++++++++++++++++++------
1 files changed, 19 insertions(+), 6 deletions(-)
diff --git a/rsf-admin/src/page/statistics/stockManage/WarehouseStockList.jsx b/rsf-admin/src/page/statistics/stockManage/WarehouseStockList.jsx
index 3a463e3..94fb604 100644
--- a/rsf-admin/src/page/statistics/stockManage/WarehouseStockList.jsx
+++ b/rsf-admin/src/page/statistics/stockManage/WarehouseStockList.jsx
@@ -52,16 +52,28 @@
'& .RaDatagrid-row': {
cursor: 'auto'
},
- '& .column-name': {
+ '& .MuiTableCell-root': {
+ whiteSpace: 'nowrap',
+ overflow: 'visible',
+ textOverflow: 'unset'
},
'& .opt': {
- width: 180
+ width: 180,
+ whiteSpace: 'normal',
+ },
+ '& .column-maktx': {
+ maxWidth: '15em',
+ overflow: 'hidden',
+ textOverflow: 'ellipsis',
+ whiteSpace: 'nowrap',
},
}));
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 +81,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 +108,9 @@
duration: theme.transitions.duration.enteringScreen,
}),
marginRight: 0,
+ '& .RaAutocompleteInput-textField.MuiFormControl-root.MuiTextField-root': {
+ width: '200px'
+ }
}}
resource="warehouse/stock"
title={"common.button.detail"}
@@ -229,7 +242,7 @@
rowClick={false}
expand={false}
expandSingle={true}
- omit={['id', 'createTime', 'locId', 'spec', 'model', 'locCode', 'orderId', 'orderItemId', 'matnrId', 'splrBatch', 'createBy', 'memo', 'fieldsIndex']}
+ omit={['id', 'createTime', 'locId', 'spec', 'model', 'locCode', 'orderId', 'orderItemId', 'matnrId', 'splrBatch', 'createBy', 'memo', 'fieldsIndex','updateBy$']}
>
{columns.map((column) => column)}
</StyledDatagrid>}
--
Gitblit v1.9.1