|
@@ -28,15 +28,11 @@ function FieldProblem() {
|
|
|
const [problemDetail, setProblemDetail] = useState(null);//详情数据
|
|
|
const [title, setTitle] = useState();//正则式数据
|
|
|
const [modeList, setModeList] = useState([]);//质控模块
|
|
|
-
|
|
|
const [params, setParams] = useState({
|
|
|
pages: 1,
|
|
|
current: 1,
|
|
|
size: 15,
|
|
|
- behospitalStartDate: getCurrentDataFront().split('/').join('-') + ' 00:00:00',
|
|
|
- behospitalEndDate: getCurrentData().split('/').join('-') + ' 23:23:59'
|
|
|
- });
|
|
|
- const [date, setDate] = useState({
|
|
|
+ desc:['isSolved','solveTime'],
|
|
|
behospitalStartDate: getCurrentDataFront().split('/').join('-') + ' 00:00:00',
|
|
|
behospitalEndDate: getCurrentData().split('/').join('-') + ' 23:23:59'
|
|
|
});
|
|
@@ -45,6 +41,11 @@ function FieldProblem() {
|
|
|
pages: 1,
|
|
|
current: 1,
|
|
|
size: size,
|
|
|
+ desc:['isSolved','solveTime'],
|
|
|
+ behospitalStartDate: getCurrentDataFront().split('/').join('-') + ' 00:00:00',
|
|
|
+ behospitalEndDate: getCurrentData().split('/').join('-') + ' 23:23:59'
|
|
|
+ }
|
|
|
+ let date = {
|
|
|
behospitalStartDate: getCurrentDataFront().split('/').join('-') + ' 00:00:00',
|
|
|
behospitalEndDate: getCurrentData().split('/').join('-') + ' 23:23:59'
|
|
|
}
|
|
@@ -125,7 +126,6 @@ function FieldProblem() {
|
|
|
...data,
|
|
|
...value,
|
|
|
}
|
|
|
- setDate({ behospitalStartDate: value.behospitalStartDate, behospitalEndDate: value.behospitalEndDate })
|
|
|
setCurrent(1)
|
|
|
setParams(param)
|
|
|
getColumnResultPage(param);
|
|
@@ -136,6 +136,7 @@ function FieldProblem() {
|
|
|
setParams(data)
|
|
|
form.resetFields();
|
|
|
getColumnResultPage(data);
|
|
|
+ getColumnResultNumber(date)
|
|
|
};
|
|
|
function getCurrentDataFront() {
|
|
|
let time = new Date((new Date() - 30 * 24 * 3600 * 1000)).toLocaleDateString()
|
|
@@ -156,10 +157,14 @@ function FieldProblem() {
|
|
|
{ title: '表名称(英文)', dataIndex: 'tableEname', key: 'tableEname' },
|
|
|
{ title: '字段名称(中文)', dataIndex: 'columnCname', key: 'columnCname' },
|
|
|
{ title: '字段名称(英文)', dataIndex: 'columnEname', key: 'columnEname' },
|
|
|
- { title: '上传字段值', dataIndex: 'tableVal', key: 'tableVal' },
|
|
|
+ {
|
|
|
+ title: '上传字段值', dataIndex: 'tableVal', key: 'tableVal', render: (text, record) => {
|
|
|
+ return record.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 ? record.description.length > 20 ? <span title={record.description}>{record.description.substring(0, 20) + '...'}</span> : record.description : '-';
|
|
|
}
|
|
|
},
|
|
|
{
|
|
@@ -167,10 +172,14 @@ function FieldProblem() {
|
|
|
return record.type == 1 ? "数据缺失" : record.type == 2 ? "非标准值" : "正则校验失败";
|
|
|
}
|
|
|
},
|
|
|
- { title: '更新时间', dataIndex: 'auditTime', key: 'auditTime' },
|
|
|
+ {
|
|
|
+ title: '更新时间', dataIndex: 'auditTime', key: 'auditTime', render: (text, record) => {
|
|
|
+ return record.auditTime || '-';
|
|
|
+ }
|
|
|
+ },
|
|
|
{
|
|
|
title: '状态', dataIndex: 'isRequired', key: 'isRequired', render: (text, record) => {
|
|
|
- return record.isSolved == 1 ? "已解决" : record.isSolved == 0 ? "未解决" : "-";
|
|
|
+ return record.isSolved == 1 ? "已处理" : record.isSolved == 0 ? "未处理" : "-";
|
|
|
}
|
|
|
},
|
|
|
{
|
|
@@ -208,19 +217,19 @@ function FieldProblem() {
|
|
|
</Form.Item>
|
|
|
</Col>
|
|
|
<Col span={5} key={2}>
|
|
|
- <Form.Item label="文书编号" name="recId" getValueFromEvent={getValueFromEvent}>
|
|
|
+ <Form.Item label="文书编号" name="hosptialDatatmpCode" getValueFromEvent={getValueFromEvent}>
|
|
|
<Input placeholder="文书编号" autoComplete='off' allowClear maxLength='30' />
|
|
|
</Form.Item>
|
|
|
</Col>
|
|
|
<Col span={5} key={3}>
|
|
|
- <Form.Item label="文书标题" name="recTitle" getValueFromEvent={getValueFromEvent}>
|
|
|
+ <Form.Item label="文书标题" name="hosptialDatatmpName" getValueFromEvent={getValueFromEvent}>
|
|
|
<Input placeholder="文书标题" autoComplete='off' allowClear maxLength='30' />
|
|
|
</Form.Item>
|
|
|
</Col>
|
|
|
<Col span={5} key={4}>
|
|
|
<Form.Item label="质控模块名称" name="modeName" >
|
|
|
<Select showSearch allowClear onSearch={onSearch} placeholder="请选择">
|
|
|
- {modeList.map((item,i) => {
|
|
|
+ {modeList.map((item, i) => {
|
|
|
return (
|
|
|
<Option value={item} key={i}>{item}</Option>
|
|
|
)
|
|
@@ -315,7 +324,7 @@ function FieldProblem() {
|
|
|
</div>
|
|
|
<Table
|
|
|
columns={columns}
|
|
|
- scroll={{ y: 'calc(100vh - 470px)' }}
|
|
|
+ scroll={{ y: 'calc(100vh - 510px)' }}
|
|
|
dataSource={logList}
|
|
|
rowKey={record => record.id}
|
|
|
pagination={{
|