Browse Source

手术推荐是显示主诊断名称

lighter 3 years ago
parent
commit
f7fe075eb7
1 changed files with 13 additions and 1 deletions
  1. 13 1
      src/views/hospitalization/case-front-sheet/FillCaseFrontSheet.vue

+ 13 - 1
src/views/hospitalization/case-front-sheet/FillCaseFrontSheet.vue

@@ -744,7 +744,13 @@
           clearable
           @input="executeSearch"
         ></el-input>
-        <div v-if="showSurgeryRecommand" style="padding: 12px 0 4px 4px; color: gray">根据患者主要诊断,推荐以下手术操作:</div>
+        <div v-if="showSurgeryRecommand" style="padding: 12px 0 4px 4px; color: gray">
+          根据患者主诊断
+          <el-tag
+            >{{ patient.disdiagList[0].code }} <span style="color: blue">{{ patient.disdiagList[0].name }}</span>
+          </el-tag>
+          ,推荐以下手术操作:
+        </div>
         <el-table :data="searchResults" height="400" stripe highlight-current-row @row-click="handleSelectSearch">
           <el-table-column prop="code" label="编码" width="180"></el-table-column>
           <el-table-column prop="name" label="名称" width="430"></el-table-column>
@@ -997,6 +1003,7 @@ const searchMethod = ref('alpha')
 const searchResults = ref([])
 const showSearchData = (flag) => {
   mainSurgeryFocused = false
+  showSurgeryRecommand = false
   searchUrl.value = 'place'
   if (flag === 'birth') {
     searchTargetCode.value = 'birthPlace'
@@ -1083,6 +1090,7 @@ const confirmSurgeryDatetime = () => {
 
 const showSearchSurgerior = (flag, index) => {
   mainSurgeryFocused = false
+  showSurgeryRecommand = false
   if (flag === 'operator') {
     searchTargetCode.value = 'surgeryOperatorCode' + (index - 1)
     searchTargetName.value = 'surgeryOperatorName' + (index - 1)
@@ -1222,6 +1230,7 @@ const saveYbDiags = () => {
 
 const onSearchDiagFocus = (n) => {
   mainSurgeryFocused = false
+  showSurgeryRecommand = false
   if (n > 0 && !patient.value.disdiagList[n - 1].code) {
     ElMessage({
       message: '请按顺序填写',
@@ -1254,6 +1263,7 @@ const onSearchSurgeryFocus = (n) => {
     return
   }
   mainSurgeryFocused = false
+  showSurgeryRecommand = false
   searchUrl.value = 'surgery'
   searchTargetCode.value = 'surgeryCode' + n
   searchTargetName.value = 'surgeryName' + n
@@ -1281,6 +1291,7 @@ const onEditSurgeryClick = (n) => {
     })
   } else {
     mainSurgeryFocused = false
+    showSurgeryRecommand = false
   }
 }
 
@@ -1302,6 +1313,7 @@ const deleteDisdiag = (index) => {
 
 const insertDisdiag = (index) => {
   mainSurgeryFocused = false
+  showSurgeryRecommand = false
   insertDiag.value = true
   searchUrl.value = 'normalDiag'
   searchTargetCode.value = 'disdiagsCode' + index