From 4c66319211f9f7e496dfc32718dbd7aefed4ca88 Mon Sep 17 00:00:00 2001
From: chen.lin <1442464845@qq.com>
Date: 星期四, 12 三月 2026 10:46:47 +0800
Subject: [PATCH] 任务管理完结、取消按钮

---
 rsf-admin/src/page/orders/check/CheckOrderItemList.jsx |   64 ++++++--------------------------
 1 files changed, 12 insertions(+), 52 deletions(-)

diff --git a/rsf-admin/src/page/orders/check/CheckOrderItemList.jsx b/rsf-admin/src/page/orders/check/CheckOrderItemList.jsx
index e79fac0..efbea15 100644
--- a/rsf-admin/src/page/orders/check/CheckOrderItemList.jsx
+++ b/rsf-admin/src/page/orders/check/CheckOrderItemList.jsx
@@ -2,59 +2,27 @@
 import { useNavigate, useLocation } from 'react-router-dom';
 import {
   List,
-  DatagridConfigurable,
+  Datagrid,
   SearchInput,
   TopToolbar,
-  SelectColumnsButton,
-  EditButton,
   FilterButton,
-  CreateButton,
-  ExportButton,
-  BulkDeleteButton,
-  WrapperField,
   useRecordContext,
   useTranslate,
   useNotify,
   useListContext,
-  FunctionField,
   TextField,
   NumberField,
   DateField,
-  BooleanField,
-  ReferenceField,
   TextInput,
-  DateTimeInput,
   DateInput,
   SelectInput,
   NumberInput,
-  ReferenceInput,
-  ReferenceArrayInput,
-  AutocompleteInput,
-  DeleteButton,
-  Button,
   useEditContext,
   useGetRecordId,
-  useGetOne
 } from 'react-admin';
-import { Box, Typography, Card, Stack, Dialog, DialogActions, DialogTitle } from '@mui/material';
-import { styled } from '@mui/material/styles';
+import { Box } from '@mui/material';
 import PageDrawer from "../../components/PageDrawer";
-import BillStatusField from '../../components/BillStatusField';
-import { PAGE_DRAWER_WIDTH, OPERATE_MODE, DEFAULT_PAGE_SIZE, DEFAULT_ITEM_PAGE_SIZE } from '@/config/setting';
-
-const StyledDatagrid = styled(DatagridConfigurable)(({ theme }) => ({
-  '& .css-1vooibu-MuiSvgIcon-root': {
-    height: '.9em',
-  },
-  '& .RaDatagrid-row': {
-    cursor: 'auto'
-  },
-  '& .column-name': {
-  },
-  '& .opt': {
-    width: 200
-  },
-}));
+import { PAGE_DRAWER_WIDTH, DEFAULT_ITEM_PAGE_SIZE } from '@/config/setting';
 
 const filters = [
   <SearchInput source="condition" alwaysOn />,
@@ -93,20 +61,20 @@
   const [drawerVal, setDrawerVal] = useState(false);
   const [select, setSelect] = useState({});
   const asnId = useGetRecordId();
-  const { data: dicts, isPending, error } = useGetOne('outStock', { id: asnId });
+
+  if (asnId == null || asnId === undefined) {
+    return <Box sx={{ flexGrow: 1, minHeight: 200 }} />;
+  }
 
   return (
     <>
-      <Box display="flex">
+      <Box display="flex" sx={{ minWidth: 0 }}>
         <List
           resource="checkItem"
-          storeKey='checkItem'
+          storeKey={`checkItem-detail-${asnId}`}
           sx={{
             flexGrow: 1,
-            transition: (theme) =>
-              theme.transitions.create(['all'], {
-                duration: theme.transitions.duration.enteringScreen,
-              }),
+            minWidth: 0,
             marginRight: drawerVal ? `${PAGE_DRAWER_WIDTH}px` : 0,
           }}
           title={"menu.checkItem"}
@@ -117,18 +85,14 @@
           actions={(
             <TopToolbar>
               <FilterButton />
-              <SelectColumnsButton preferenceKey='checkItem' />
             </TopToolbar>
           )}
           perPage={DEFAULT_ITEM_PAGE_SIZE}
         >
-          <StyledDatagrid
-            preferenceKey='checkItem'
+          <Datagrid
             bulkActionButtons={false}
             rowClick={false}
-            omit={['id', 'createTime', 'createBy$', 'memo', 'poDetlId', 'purQty', 'trackCode', 'qty','qrcode', 'splrName', 'matnrId', 'orderId']}
           >
-            <NumberField source="id" />
             <NumberField source="orderId" label="table.field.checkOrderItem.orderId" />
             <TextField source="orderCode" label="table.field.checkOrderItem.orderCode" />
             <TextField source="matnrId" label="table.field.checkOrderItem.matnrId" />
@@ -137,17 +101,13 @@
             <TextField source="platOrderCode" label="table.field.checkOrderItem.platOrderCode" />
             <NumberField source="anfme" label="table.field.checkOrderItem.anfme" />
             <NumberField source="workQty" label="table.field.checkOrderItem.workQty" />
-            <NumberField source="qty" label="table.field.checkOrderItem.qty" />
             <TextField source="stockUnit" label="table.field.checkOrderItem.stockUnit" />
             <TextField source="splrBatch" label="table.field.checkOrderItem.splrBatch" />
             <TextField source="splrCode" label="table.field.checkOrderItem.splrCode" />
             <TextField source="splrName" label="table.field.checkOrderItem.splrName" />
             <DateField source="updateTime" label="common.field.updateTime" showTime />
             <TextField source="updateBy$" label="common.field.updateBy" />
-            <TextField source="createBy$" label="common.field.createBy" />
-            <DateField source="createTime" label="common.field.createTime" showTime />
-            <TextField source="memo" label="common.field.memo" sortable={false} />
-          </StyledDatagrid>
+          </Datagrid>
         </List>
 
         {/* <OutOrderItemCreate

--
Gitblit v1.9.1