瀏覽代碼

质控模块搜索接口

1178232204@qq.com 3 年之前
父節點
當前提交
c337a007d6

+ 1 - 0
src/api/request.js

@@ -128,6 +128,7 @@ const request = {
     getColumnResultNumber:'/daqe-center/columnResultManagement/getColumnResultNumber',//字段校验问题明细数量
     dataCheck:'/daqe-center/columnResultManagement/dataCheck',//数据校验
     updateColumnResult:'/daqe-center/columnResultManagement/updateColumnResult',//修改
+    getModeName:'/daqe-center/columnResultManagement/getModeName',//质控模块名称
 
     getBlockLossPage:'/daqe-center/blockLossManage/getBlockLossPage',//病历数据丢失明细列表
     upBlockLossById:'/daqe-center/blockLossManage/upBlockLossById',//病历数据丢失明细修改

+ 1 - 1
src/components/BlockLossManage/index.js

@@ -276,7 +276,7 @@ function BlockLossManage() {
                     <Row className="data-box">
                         <Col span={6} order={1} className="data-item">
                             <p>{blockData.hisNum || blockData.hisNum == 0 ? blockData.hisNum : '-'}</p>
-                            <p>His</p>
+                            <p>HIS</p>
                         </Col>
                         <Col span={6} order={2} className="data-item">
                             <p>{blockData.logNum || blockData.logNum == 0 ? blockData.logNum : '-'}</p>

+ 24 - 3
src/components/FieldProblem/index.js

@@ -16,6 +16,7 @@ function FieldProblem() {
     useEffect(() => {
         getColumnResultPage();
         getColumnResultNumber(date)
+        getModeName()
     }, []);
     const [logList, setLogList] = useState([]);
     const [total, setTotal] = useState(0);
@@ -26,6 +27,8 @@ function FieldProblem() {
     const [probleData, setProbleData] = useState({});
     const [problemDetail, setProblemDetail] = useState(null);//详情数据
     const [title, setTitle] = useState();//正则式数据
+    const [modeList, setModeList] = useState([]);//质控模块
+
     const [params, setParams] = useState({
         pages: 1,
         current: 1,
@@ -66,7 +69,19 @@ function FieldProblem() {
             }
         })
     }
-
+    function getModeName(name) {
+        post(api.getModeName, {
+            modeName: name
+        }).then((res) => {
+            if (res.data.code === 200) {
+                const data = res.data.data || [];
+                setModeList(data)
+            }
+        })
+    }
+    function onSearch(val) {
+        getModeName(val)
+    }
     //修改
     function showModal(title, row, type) {
         setVisible(true)
@@ -203,8 +218,14 @@ function FieldProblem() {
                             </Form.Item>
                         </Col>
                         <Col span={5} key={4}>
-                            <Form.Item label="质控模块名称" name="modeName" getValueFromEvent={getValueFromEvent}>
-                                <Input placeholder="质控模块名称" autoComplete='off' allowClear maxLength='30' />
+                            <Form.Item label="质控模块名称" name="modeName" >
+                                <Select showSearch allowClear onSearch={onSearch} placeholder="请选择">
+                                    {modeList.map((item,i) => {
+                                        return (
+                                            <Option value={item} key={i}>{item}</Option>
+                                        )
+                                    })}
+                                </Select>
                             </Form.Item>
                         </Col>
                         <Col span={5} key={5}>

+ 12 - 7
src/components/FieldRules/addRules.js

@@ -61,7 +61,7 @@ function ContentForm(props) {
     const [tableList, setTableList] = useState([]);//表名称
     const [colList, setColList] = useState([[]]);//字段名称
     const [list, setList] = useState([]);
-    const [disable, seDisable] = useState(true);
+    const [disable, seDisable] = useState([true]);
     const { type, detail } = useContext(FiledContext);
     const { back, form, cancel } = props;
     const initialValues = detail
@@ -118,12 +118,14 @@ function ContentForm(props) {
         const formData = form.getFieldsValue();
         if (value) {
             colList[i] = list[options.key].getColumnNameDTOList
-            seDisable(false)
+            disable[i] = false
+            seDisable([...disable])
             setColList([...colList])
-        }else{
+        } else {
             colList[i] = []
+            disable[i] = true
+            seDisable([...disable])
             setColList([...colList])
-            seDisable(true)
         }
         let columnList = formData.columnList;
         columnList[i].columnCname = undefined
@@ -174,8 +176,11 @@ function ContentForm(props) {
         form.setFieldsValue({
             columnList: columnList
         });
+        const index = columnList.length - 1
         colList.push(...[[]])
         setColList([...colList])
+        disable[index] = true
+        seDisable([...disable])
     }
     //标准值维护
     function modifyStand(i) {
@@ -255,7 +260,7 @@ function ContentForm(props) {
             });
         }
         if (type == 2) {
-            seDisable(false)
+            seDisable([false])
         }
     }, []);
 
@@ -297,7 +302,7 @@ function ContentForm(props) {
                                         </div>
                                         <div className='item-box'>
                                             <Form.Item label="字段名称(中文)" rules={[{ required: true }]} style={{ width: '50%' }} name={['columnList', i, 'columnCname']} labelAlign="right">
-                                                <Select allowClear showSearch onChange={colchange} onSearch={colmeSearch} style={{ width: 160 }} placeholder="请选择" disabled={disable}>
+                                                <Select allowClear showSearch onChange={colchange} onSearch={colmeSearch} style={{ width: 160 }} placeholder="请选择" disabled={disable[i]}>
                                                     {colList[i].map((item) => {
                                                         return (
                                                             <Option value={item.columnCname} key={item.id} index={i}>{item.columnCname}</Option>
@@ -306,7 +311,7 @@ function ContentForm(props) {
                                                 </Select>
                                             </Form.Item>
                                             <Form.Item label="字段名称(英文)" rules={[{ required: true }]} name={['columnList', i, 'columnEname']} labelAlign="right">
-                                                <Select allowClear showSearch onChange={colchange} onSearch={coleneSearch} style={{ width: 160 }} placeholder="请选择" disabled={disable}>
+                                                <Select allowClear showSearch onChange={colchange} onSearch={coleneSearch} style={{ width: 160 }} placeholder="请选择" disabled={disable[i]}>
                                                     {colList[i].map((item) => {
                                                         return (
                                                             <Option value={item.columnEname} key={item.id} index={i}>{item.columnEname}</Option>

+ 0 - 1
src/components/SurgeryManager/index.js

@@ -374,7 +374,6 @@ function SurgManager() {
         visible={msvisible}
         onOk={delOperationById}
         onCancel={handleCancel}
-        maskClosable={false}
       >
         <p>诊断信息删除后将无法恢复,确认删除这{Surgid.length}条信息。</p>
       </Modal>