Browse Source

i病案首页默认值横线

‘chenzhilei’ 6 days ago
parent
commit
857acac88c

+ 9 - 2
src/components/inpatient/frontsheet-printpage/TailPage.vue

@@ -557,7 +557,7 @@
               <tr v-for="n in 3">
                 <td>
                   <div style="height: 26px;line-height: 26px;padding-left: 5px">
-                    {{ patient.icuInfoList[n - 1].icuName }}
+                    {{ initIcuInfoListName(n) }}
                   </div>
                 </td>
                 <td>
@@ -808,7 +808,14 @@ const dismissStatusText = val => {
       return "";
   }
 };
-
+const initIcuInfoListName = (n) => {
+  if (n == 1) {
+    if (props.patient.icuInfoList[n - 1].icuName == null) {
+      return "-"
+    }
+  }
+  return props.patient.icuInfoList[n - 1].icuName
+};
 const filterNameInDic = (val, dic) => {
   if (!val) {
     return "";

+ 53 - 35
src/views/hospitalization/case-front-sheet/FillCaseFrontSheet.vue

@@ -339,7 +339,6 @@
               id="socialNo"
               v-model="patient.noCertReasonInput"
               style="width: 160px"
-              maxlength="18"
             />
           </div>
           <div>
@@ -402,6 +401,8 @@
                   id="livePlace"
                   v-model="patient.livePlace"
                   style="width: 350px;padding-left: 5px"
+                  readonly
+                  @click="showSearchData('livePlace')"
               />
             </div>
             <span style="margin-left: 12px">电话</span>
@@ -421,6 +422,8 @@
                   id="hkPlaceName"
                   v-model="patient.hkPlaceName"
                   style="width: 480px;padding-left: 5px"
+                  readonly
+                  @click="showSearchData('hk')"
               />
             </div>
             <span style="margin-left: 12px">邮编</span>
@@ -1040,10 +1043,10 @@
           >
             <tr>
               <th rowspan="2" style="border: none"></th>
-              <th rowspan="2">手术及操作名称</th>
+              <th rowspan="2">手术及操作编码</th>
               <th rowspan="2" style="width: 70px">手术及操作日期</th>
               <th rowspan="2" style="width: 10px">手术级别</th>
-              <th rowspan="2">手术及操作编码</th>
+              <th rowspan="2">手术及操作名称</th>
               <th colspan="3">手术及操作医师</th>
               <th rowspan="2" style="width: 30px">切口愈合等级</th>
               <th rowspan="2">麻醉方式</th>
@@ -1082,33 +1085,14 @@
                   </div>
                 </div>
               </td>
-              <td style="padding: 3px">
-                <textarea
-                  id="surgeryMain"
-                  style="border: none !important; width: 90px"
-                  rows="3"
-                  v-model="patient.surgeryList[n - 1].name"
-                  @click="onSearchSurgeryFocus(n - 1)"
+              <td>
+                <input
+                  v-model="patient.surgeryList[n - 1].code"
+                  style="border: none !important; width: 70px"
                   readonly
-                ></textarea>
-                <div
-                  v-show="showDel[n - 1]"
-                  style="width: 100%; text-align: center"
-                >
-                  <el-button
-                    type="primary"
-                    circle
-                    icon="Edit"
-                    @click="onEditSurgeryClick(n - 1)"
-                  ></el-button>
-                  <el-button
-                    type="danger"
-                    circle
-                    icon="Delete"
-                    @click="deleteSurgery(n - 1)"
-                  ></el-button>
-                </div>
+                />
               </td>
+              
               <td style="padding: 3px">
                 <textarea
                   style="border: none !important; width: 70px"
@@ -1132,12 +1116,32 @@
                   </option>
                 </select>
               </td>
-              <td>
-                <input
-                  v-model="patient.surgeryList[n - 1].code"
-                  style="border: none !important; width: 70px"
+              <td style="padding: 3px">
+                <textarea
+                  id="surgeryMain"
+                  style="border: none !important; width: 90px"
+                  rows="3"
+                  v-model="patient.surgeryList[n - 1].name"
+                  @click="onSearchSurgeryFocus(n - 1)"
                   readonly
-                />
+                ></textarea>
+                <div
+                  v-show="showDel[n - 1]"
+                  style="width: 100%; text-align: center"
+                >
+                  <el-button
+                    type="primary"
+                    circle
+                    icon="Edit"
+                    @click="onEditSurgeryClick(n - 1)"
+                  ></el-button>
+                  <el-button
+                    type="danger"
+                    circle
+                    icon="Delete"
+                    @click="deleteSurgery(n - 1)"
+                  ></el-button>
+                </div>
               </td>
               <td>
                 <input
@@ -1513,7 +1517,7 @@
               <tr v-for="n in 3">
                 <td>
                   <div style="height: 26px;line-height: 26px;padding-left: 5px" @click="clickIcuInfo('icuName',n)">
-                    {{ patient.icuInfoList[n - 1].icuName }}
+                    {{ initIcuInfoListName(n) }}
                   </div>
                 </td>
                 <td>
@@ -2305,7 +2309,14 @@ const searchPatient = () => {
     smoothScrollTableColumn(asideTable.value, patientIndex, currentPatient);
   }
 };
-
+const initIcuInfoListName = (n) => {
+  if (n == 1) {
+    if (patient.value.icuInfoList[n - 1].icuName == null) {
+      return "-"
+    }
+  }
+  return patient.value.icuInfoList[n - 1].icuName
+};
 const changeDate = () => {
   console.log("changeDate",v  )
 };
@@ -2566,6 +2577,12 @@ const showSearchData = flag => {
   if (flag === "birth") {
     searchTargetCode.value = "birthPlace";
     searchTargetName.value = "birthPlaceName";
+  } else if (flag === "birthPlace") {
+    searchTargetCode.value = "birthPlace";
+    searchTargetName.value = "birthPlaceName";
+  } else if (flag === "livePlace") {
+    searchTargetCode.value = "livePlace";
+    searchTargetName.value = "livePlace";
   } else if (flag === "native") {
     searchTargetCode.value = "nativePlace";
     searchTargetName.value = "nativePlaceName";
@@ -3156,6 +3173,7 @@ const saveVerifyFillBlank = (data) => {
     data.studyDoctorName = '-'
   }
   
+  data.noCertReasonInput == null?data.noCertReasonInput = '-':false;
   data.dismissDestination == null?data.dismissDestination = '-':false;
   data.admissAgainInOneMonth == null?data.admissAgainInOneMonth = '-':false;
   data.admissAgainPurpose == null?data.admissAgainPurpose = '-':false;