Browse Source

提交更新

837390164@qq.com 3 weeks ago
parent
commit
6a599cd8a8
1 changed files with 5 additions and 4 deletions
  1. 5 4
      frontend/src/pages/Warning/Center.tsx

+ 5 - 4
frontend/src/pages/Warning/Center.tsx

@@ -182,8 +182,8 @@ const Center: React.FC = () => {
   const [currentRecord, setCurrentRecord] = useState<WarningRecord | null>(null);
   const [processType, setProcessType] = useState<'processed' | 'ignored'>('processed');
   const [processing, setProcessing] = useState(false);
-  // 处理方式范围:single=单条处理(默认,走 02010104);batch=当日同患者同类型批量处理(走 02010109)
-  const [processScope, setProcessScope] = useState<'single' | 'batch'>('single');
+  // 处理方式范围:single=单条处理(走 02010104);batch=当日同患者同类型批量处理(默认,走 02010109)
+  const [processScope, setProcessScope] = useState<'single' | 'batch'>('batch');
   const [batchHintCount, setBatchHintCount] = useState<number | null>(null);
 
   // HIS 弹框预览
@@ -259,10 +259,11 @@ const Center: React.FC = () => {
   const handleProcess = (record: WarningRecord, type: 'processed' | 'ignored') => {
     setCurrentRecord(record);
     setProcessType(type);
-    setProcessScope('single');
-    setBatchHintCount(null);
+    setProcessScope('batch');
     setProcessModalVisible(true);
     form.resetFields();
+    // 默认批量处理,预查当日同类待处理条数
+    handleScopeChange('batch');
   };
 
   // 切换处理方式范围:选择批量时预查当日同类待处理条数