Переглянути джерело

修改预览诊断化验辅检标点为中文(2889)

zhangxc 5 роки тому
батько
коміт
59ab6f9c62

+ 2 - 2
src/components/PreviewBody/Inspect/index.jsx

@@ -22,7 +22,7 @@ const PreviewInspect = (props) => {
                       <td className={style.assistTableTdTrd}>
                         {normalVal(value.min, value.max)}
                       </td>
-                      <td className={style.assistTableTdFor}>{value.time == '' ? ('导入时间: ' + dateTime) : '化验时间: ' + toTime(value.time)
+                      <td className={style.assistTableTdFor}>{value.time == '' ? ('导入时间:' + dateTime) : '化验时间:' + toTime(value.time)
                     }</td>
                     </tr>
                   })
@@ -55,7 +55,7 @@ const PreviewInspect = (props) => {
                       <td className={style.assistTableTdTrd}>
                         {normalVal(val.minValue, val.maxValue)}
                       </td>
-                      <td className={style.assistTableTdFor}>{'化验时间:' + item.time}</td>
+                      <td className={style.assistTableTdFor}>{'化验时间' + item.time}</td>
                     </tr>
                   }
                 })

+ 1 - 1
src/store/actions/diagnosticList.js

@@ -54,7 +54,7 @@ export const getDiagnosticStr = (state, action) => {
     let diagnosticStr= '';
     let diagnosticStrNoType = ''
     for (let i = 0; i < diagnosticList.length; i++) {
-        diagnosticStr = diagnosticStr + diagnosticList[i].name + '(' + getDiagType(diagnosticList[i].type) + '); '
+        diagnosticStr = diagnosticStr + diagnosticList[i].name + '(' + getDiagType(diagnosticList[i].type) + ')'
         diagnosticStrNoType = diagnosticStrNoType + diagnosticList[i].name + ','
     }
     res.diagnosticStrNoType = diagnosticStrNoType

+ 6 - 6
src/utils/tools.js

@@ -850,17 +850,17 @@ function normalVal(min,max){//添加正常值0处理
   if(!min&&!max){
     return null;
   }else if(min&&max){
-      return `正常值: (${min}~${max})`
+      return `正常值(${min}~${max})`
   }else if(!min && max){
     if(min == 0){
-      return `正常值: (${min}~${max})`
+      return `正常值(${min}~${max})`
     }
-    return `正常值: (<${max})`
+    return `正常值(<${max})`
   }else if(min && !max){
     if(max == 0){
-      return `正常值: (${min}~${max})`
+      return `正常值(${min}~${max})`
     }
-      return `正常值: (>${min})`
+      return `正常值(>${min})`
   }
 }
 /**
@@ -1440,7 +1440,7 @@ function getAllString(checkedListImport,assistLabel,flg){
       "result": tempArr[i].value||"",
     }
     tmpArr.push(obj)
-    tmpString += (tempArr[i].name + (tmpVal ? (':' + tmpVal) + ', ' : ': ') + (tempArr[i].time ? '报告日期:' + tempArr[i].time : '') + '^;')
+    tmpString += (tempArr[i].name + (tmpVal ? (':' + tmpVal) + ', ' : ':') + (tempArr[i].time ? '报告日期:' + tempArr[i].time : '') + '^;')
   }
   return tmpObj = {
     arr:tmpArr,