|
@@ -8,6 +8,7 @@ import './index.less'
|
|
|
import apiObj from '@api/index';
|
|
|
import EditProblem from './editProblem';
|
|
|
import ProblemContext from './problem-context';
|
|
|
+import { getValueFromEvent } from '@utils/index'
|
|
|
const { post, api, xPost } = apiObj;
|
|
|
const { RangePicker } = DatePicker;
|
|
|
const { Option } = Select;
|
|
@@ -143,7 +144,7 @@ function FieldProblem() {
|
|
|
{ title: '上传字段值', dataIndex: 'tableVal', key: 'tableVal' },
|
|
|
{
|
|
|
title: '备注', dataIndex: 'description', key: 'description', render: (text, record) => {
|
|
|
- return (record.description||"").length > 20 ? <span title={record.description}>{record.description.substring(0, 20) + '...'}</span> : record.description;
|
|
|
+ return (record.description || "-").length > 20 ? <span title={record.description}>{record.description.substring(0, 20) + '...'}</span> : record.description;
|
|
|
}
|
|
|
},
|
|
|
{
|
|
@@ -187,23 +188,23 @@ function FieldProblem() {
|
|
|
</Form.Item>
|
|
|
</Col>
|
|
|
<Col span={5} key={1}>
|
|
|
- <Form.Item label="住院序号" name="behospitalCode">
|
|
|
- <Input placeholder="住院序号" autoComplete='off' allowClear maxLength='30'/>
|
|
|
+ <Form.Item label="住院序号" name="behospitalCode" getValueFromEvent={getValueFromEvent}>
|
|
|
+ <Input placeholder="住院序号" autoComplete='off' allowClear maxLength='30' />
|
|
|
</Form.Item>
|
|
|
</Col>
|
|
|
<Col span={5} key={2}>
|
|
|
- <Form.Item label="文书编号" name="recId">
|
|
|
- <Input placeholder="文书编号" autoComplete='off' allowClear maxLength='30'/>
|
|
|
+ <Form.Item label="文书编号" name="recId" getValueFromEvent={getValueFromEvent}>
|
|
|
+ <Input placeholder="文书编号" autoComplete='off' allowClear maxLength='30' />
|
|
|
</Form.Item>
|
|
|
</Col>
|
|
|
<Col span={5} key={3}>
|
|
|
- <Form.Item label="文书标题" name="recTitle">
|
|
|
- <Input placeholder="文书标题" autoComplete='off' allowClear maxLength='30'/>
|
|
|
+ <Form.Item label="文书标题" name="recTitle" getValueFromEvent={getValueFromEvent}>
|
|
|
+ <Input placeholder="文书标题" autoComplete='off' allowClear maxLength='30' />
|
|
|
</Form.Item>
|
|
|
</Col>
|
|
|
<Col span={5} key={4}>
|
|
|
- <Form.Item label="质控模块名称" name="modeName">
|
|
|
- <Input placeholder="质控模块名称" autoComplete='off' allowClear maxLength='30'/>
|
|
|
+ <Form.Item label="质控模块名称" name="modeName" getValueFromEvent={getValueFromEvent}>
|
|
|
+ <Input placeholder="质控模块名称" autoComplete='off' allowClear maxLength='30' />
|
|
|
</Form.Item>
|
|
|
</Col>
|
|
|
<Col span={5} key={5}>
|
|
@@ -256,37 +257,37 @@ function FieldProblem() {
|
|
|
<div className="table-data" style={{ justifyContent: 'left' }}>
|
|
|
<Row className="data-box">
|
|
|
<Col span={6} order={1} className="box-item">
|
|
|
- <p>{probleData.notSolvedNonnull || '-'}</p>
|
|
|
+ <p>{probleData.notSolvedNonnull || probleData.notSolvedNonnull == 0 ? probleData.notSolvedNonnull : '-'}</p>
|
|
|
<p>数据缺失</p>
|
|
|
</Col>
|
|
|
<Col span={6} order={2} className="box-item">
|
|
|
- <p>{probleData.notSolvedStandardvalue || '-'}</p>
|
|
|
+ <p>{probleData.notSolvedStandardvalue || probleData.notSolvedStandardvalue == 0 ? probleData.notSolvedStandardvalue : '-'}</p>
|
|
|
<p>非标准值</p>
|
|
|
</Col>
|
|
|
<Col span={6} order={3} className="box-item">
|
|
|
- <p>{probleData.notSolvedRegular || '-'}</p>
|
|
|
+ <p>{probleData.notSolvedRegular || probleData.notSolvedRegular == 0 ? probleData.notSolvedRegular : '-'}</p>
|
|
|
<p>正则校验失败</p>
|
|
|
</Col>
|
|
|
<Col span={6} order={4} className="box-item item">
|
|
|
- <p>{probleData.notSolved || '-'}</p>
|
|
|
+ <p>{probleData.notSolved || probleData.notSolved == 0 ? probleData.notSolved : '-'}</p>
|
|
|
<p>未处理</p>
|
|
|
</Col>
|
|
|
</Row>
|
|
|
<Row className="data-box">
|
|
|
<Col span={6} order={1} className="box-item">
|
|
|
- <p>{probleData.resolvedNonnull || '-'}</p>
|
|
|
+ <p>{probleData.resolvedNonnull || probleData.resolvedNonnull == 0 ? probleData.resolvedNonnull : '-'}</p>
|
|
|
<p>数据缺失</p>
|
|
|
</Col>
|
|
|
<Col span={6} order={2} className="box-item">
|
|
|
- <p>{probleData.resolvedStandardvalue || '-'}</p>
|
|
|
+ <p>{probleData.resolvedStandardvalue || probleData.resolvedStandardvalue == 0 ? probleData.resolvedStandardvalue : '-'}</p>
|
|
|
<p>非标准值</p>
|
|
|
</Col>
|
|
|
<Col span={6} order={3} className="box-item">
|
|
|
- <p>{probleData.resolvedRegular || '-'}</p>
|
|
|
+ <p>{probleData.resolvedRegular || probleData.resolvedRegular == 0 ? probleData.resolvedRegular : '-'}</p>
|
|
|
<p>正则校验失败</p>
|
|
|
</Col>
|
|
|
<Col span={6} order={4} className="box-item box">
|
|
|
- <p>{probleData.resolved || '-'}</p>
|
|
|
+ <p>{probleData.resolved || probleData.resolved == 0 ? probleData.resolved : '-'}</p>
|
|
|
<p>已处理</p>
|
|
|
</Col>
|
|
|
</Row>
|