Ver código fonte

无内容展示

1178232204@qq.com 3 anos atrás
pai
commit
daaa8d9572

+ 18 - 10
src/components/BlockLossManage/index.js

@@ -79,7 +79,7 @@ function BlockLossManage() {
         setCurrent(page)
         getBlockLossPage()
     }
-    
+
     //返回
     function cancel() {
         setVisible(false)
@@ -124,26 +124,34 @@ function BlockLossManage() {
         { title: '住院序号', dataIndex: 'behospitalCode', key: 'behospitalCode' },
         { title: '文书编号', dataIndex: 'recId', key: 'recId' },
         { title: '文书标题', dataIndex: 'recTitle', key: 'recTitle' },
-        { title: '丢失原因', dataIndex: 'lossCause', key: 'lossCause' },
+        {
+            title: '丢失原因', dataIndex: 'lossCause', key: 'lossCause', render: (text, record) => {
+                return record.lossCause || '-';
+            }
+        },
         {
             title: '丢失类型', dataIndex: 'lossType', key: 'lossType', render: (text, record) => {
-                return (<span>{record.lossType == 0 ? '文书丢失' : record.lossType == 1 ? '病案首页丢失' : record.lossType == 2 ? '患者信息丢失' : ''}</span>);
+                return (<span>{record.lossType == 0 ? '文书丢失' : record.lossType == 1 ? '病案首页丢失' : record.lossType == 2 ? '患者信息丢失' : '-'}</span>);
             }
         },
         {
             title: '丢失途径', dataIndex: 'lossWay', key: 'lossWay', render: (text, record) => {
-                return (<span>{record.lossWay == 0 ? '外部丢失' : record.lossWay == 1 ? '内部丢失' : ''}</span>);
+                return (<span>{record.lossWay == 0 ? '外部丢失' : record.lossWay == 1 ? '内部丢失' : '-'}</span>);
+            }
+        },
+        {
+            title: '更新时间', dataIndex: 'auditTime', key: 'auditTime', render: (text, record) => {
+                return record.auditTime || '-';
             }
         },
-        { title: '更新时间', dataIndex: 'auditTime', key: 'auditTime' },
         {
             title: '状态', key: 'status', render: (text, record) => {
-                return (<span className={(record.status === '已恢复') ? 'Adopt' : 'Delete'}>{record.status == 0 ? '已丢失' : record.status == 1 ? '已恢复' : ''}</span>);
+                return (<span className={(record.status === '已恢复') ? 'Adopt' : 'Delete'}>{record.status == 0 ? '已丢失' : record.status == 1 ? '已恢复' : '-'}</span>);
             }
         },
         {
             title: '审核结果', key: 'isAudited', render: (text, record) => {
-                return (<span className={(record.isAudited === '0') ? 'delete' : (record.isAudited === '1') ? 'adopt' : 'disable'}>{record.isAudited == 0 ? '审核未通过' : record.isAudited == 1 ? '审核通过' : record.isAudited == 2 ? '未核查' : ''}</span>);
+                return (<span className={(record.isAudited === '0') ? 'delete' : (record.isAudited === '1') ? 'adopt' : 'disable'}>{record.isAudited == 0 ? '审核未通过' : record.isAudited == 1 ? '审核通过' : record.isAudited == 2 ? '未核查' : '-'}</span>);
             }
         },
         {
@@ -175,17 +183,17 @@ function BlockLossManage() {
                         </Col>
                         <Col span={5} key={1}>
                             <Form.Item label="住院序号" name="behospitalCode">
-                                <Input placeholder="住院序号" autoComplete='off' maxLength='30'/>
+                                <Input placeholder="住院序号" autoComplete='off' maxLength='30' />
                             </Form.Item>
                         </Col>
                         <Col span={5} key={2}>
                             <Form.Item label="文书编号" name="recId">
-                                <Input placeholder="文书编号" autoComplete='off' maxLength='30'/>
+                                <Input placeholder="文书编号" autoComplete='off' maxLength='30' />
                             </Form.Item>
                         </Col>
                         <Col span={5} key={3}>
                             <Form.Item label="文书标题" name="recTitle">
-                                <Input placeholder="文书标题" autoComplete='off' maxLength='30'/>
+                                <Input placeholder="文书标题" autoComplete='off' maxLength='30' />
                             </Form.Item>
                         </Col>
                         <Col span={5} key={4}>

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

@@ -147,7 +147,7 @@ function FieldProblem() {
         { title: '更新时间', dataIndex: 'auditTime', key: 'auditTime' },
         {
             title: '状态', dataIndex: 'isRequired', key: 'isRequired', render: (text, record) => {
-                return record.isSolved == 1 ? "已解决" : "未解决";
+                return record.isSolved == 1 ? "已解决" : record.isSolved == 0 ? "未解决" :"-";
             }
         },
         {

+ 6 - 2
src/components/FieldRules/index.js

@@ -223,7 +223,11 @@ function FieldRules() {
             }
         },
         { title: '标准值维护', dataIndex: 'standardvalue', key: 'standardvalue', width: 110 },
-        { title: '正则式名称', dataIndex: 'regular', key: 'regular', width: 110 },
+        {
+            title: '正则式名称', dataIndex: 'regular', key: 'regular', width: 110, render: (text, record) => {
+                return record.regular || '-';
+            }
+        },
         { title: '说明', dataIndex: 'description', key: 'description' },
         {
             title: '操作', dataIndex: 'key', render: (text, record) => (
@@ -312,7 +316,7 @@ function FieldRules() {
                         </Col>
                         <Col span={5} key={5}>
                             <Form.Item label="标准值" name="standardValue">
-                                <Input placeholder="标准值" autoComplete='off' maxLength='30'/>
+                                <Input placeholder="标准值" autoComplete='off' maxLength='30' />
                             </Form.Item>
                         </Col>
                         <Col span={5} key={6}>