|
@@ -7,7 +7,7 @@ import './index.less'
|
|
|
import apiObj from '@api/index';
|
|
|
import EditBlock from './editBlock';
|
|
|
import BlockContext from './block-context';
|
|
|
-import { disabledDate, getValueFromEvent } from '@utils/index'
|
|
|
+import { getValueFromEvent } from '@utils/index'
|
|
|
const { post, api, xPost } = apiObj;
|
|
|
const { RangePicker } = DatePicker;
|
|
|
const { Option } = Select;
|
|
@@ -21,6 +21,7 @@ function BlockLossManage() {
|
|
|
const [title, setTitle] = useState(0);
|
|
|
const [visible, setVisible] = useState(false);
|
|
|
const [size, setSize] = useState(15);
|
|
|
+ const [dates, setDates] = useState([]);
|
|
|
const [current, setCurrent] = useState(1);
|
|
|
const [type, setType] = useState(null);
|
|
|
const [blockData, setBlockData] = useState({});
|
|
@@ -67,6 +68,14 @@ function BlockLossManage() {
|
|
|
}
|
|
|
})
|
|
|
}
|
|
|
+ function disabledDate(current) {
|
|
|
+ if (!dates || dates.length === 0) {
|
|
|
+ return current && current >= moment().endOf('day');
|
|
|
+ }
|
|
|
+ const tooLate = dates[0] && current.diff(dates[0], 'days') > 364;
|
|
|
+ const tooEarly = dates[1] && dates[1].diff(current, 'days') > 364;
|
|
|
+ return current && current >= moment().endOf('day') || tooEarly || tooLate;
|
|
|
+ };
|
|
|
//修改
|
|
|
function showModal(title, row, type) {
|
|
|
setVisible(true)
|
|
@@ -98,6 +107,7 @@ function BlockLossManage() {
|
|
|
function userChange() {
|
|
|
setVisible(false)
|
|
|
getBlockLossPage();
|
|
|
+ blockLossTypeGather({ startDate: params.startDate, endDate: params.endDate })
|
|
|
setBlockDetail(null)
|
|
|
}
|
|
|
const onFinish = (value) => {
|
|
@@ -152,8 +162,8 @@ function BlockLossManage() {
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
- title: '更新时间', dataIndex: 'auditTime', key: 'auditTime', render: (text, record) => {
|
|
|
- return record.auditTime || '-';
|
|
|
+ title: '更新时间', dataIndex: 'gmtModified', key: 'gmtModified', render: (text, record) => {
|
|
|
+ return record.gmtModified || '-';
|
|
|
}
|
|
|
},
|
|
|
{
|
|
@@ -191,6 +201,7 @@ function BlockLossManage() {
|
|
|
allowClear={false}
|
|
|
disabledDate={disabledDate} // 限制日期不可选
|
|
|
placeholder={['开始时间', '结束时间']}
|
|
|
+ onCalendarChange={val => setDates(val)}
|
|
|
/>
|
|
|
</Form.Item>
|
|
|
</Col>
|
|
@@ -241,8 +252,8 @@ function BlockLossManage() {
|
|
|
allowClear
|
|
|
>
|
|
|
<Option value="" key={3}>全部</Option>
|
|
|
- <Option value="0" key={0}>未通过</Option>
|
|
|
- <Option value="1" key={1}>已通过</Option>
|
|
|
+ <Option value="0" key={0}>核查未通过</Option>
|
|
|
+ <Option value="1" key={1}>核查通过</Option>
|
|
|
<Option value="2" key={2}>未核查</Option>
|
|
|
</Select>
|
|
|
</Form.Item>
|
|
@@ -312,7 +323,7 @@ function BlockLossManage() {
|
|
|
</Col>
|
|
|
<Col span={6} order={3} className="box-item">
|
|
|
<p>{blockData.outCodeNum || blockData.outCodeNum == 0 ? blockData.outCodeNum : '-'}</p>
|
|
|
- <p>病历号丢失</p>
|
|
|
+ <p>患者信息丢失</p>
|
|
|
</Col>
|
|
|
<Col span={6} order={4} className="box-item box">
|
|
|
<p>{blockData.outLossNum || blockData.outLossNum == 0 ? blockData.outLossNum : '-'}</p>
|
|
@@ -330,7 +341,7 @@ function BlockLossManage() {
|
|
|
</Col>
|
|
|
<Col span={6} order={3} className="box-item">
|
|
|
<p>{blockData.inCodeNum || blockData.inCodeNum == 0 ? blockData.inCodeNum : '-'}</p>
|
|
|
- <p>病历号丢失</p>
|
|
|
+ <p>患者信息丢失</p>
|
|
|
</Col>
|
|
|
<Col span={6} order={4} className="box-item box">
|
|
|
<p>{blockData.inLossNum || blockData.inLossNum == 0 ? blockData.inLossNum : '-'}</p>
|