|
@@ -2,6 +2,7 @@ import React, { useState, useEffect } from 'react';
|
|
|
import { Form, Input, Button, Table, Select, Space, Modal, message, Row, Col } from 'antd';
|
|
|
import { PlusOutlined } from '@ant-design/icons';
|
|
|
import AddTerm from '../DiagManager/addDiag'
|
|
|
+import { getCookie } from '@utils/index'
|
|
|
import '@common/common.less';
|
|
|
import apiObj from '@api/index';
|
|
|
|
|
@@ -50,7 +51,8 @@ function SurgManager() {
|
|
|
}
|
|
|
//表格数据
|
|
|
function getSurgeryPage(param) { //type(必填): 类型:1-化验、3-辅检、4-诊断、5-药品、6-手术和操作
|
|
|
- post(api.getTermPage, {...(param || params),type:6}).then((res) => {
|
|
|
+ const hospitalId = getCookie('hospitalId')
|
|
|
+ post(api.getTermPage, {...(param || params),type:6,hospitalId:hospitalId}).then((res) => {
|
|
|
if (res.data.code === 200) {
|
|
|
const data = res.data.data;
|
|
|
setSurgList(data.records);
|