浏览代码

病案首页质控

‘chenzhilei’ 2 周之前
父节点
当前提交
ed76d5ea1e

+ 9 - 1
src/components/inpatient/frontsheet-printpage/HeadPage.vue

@@ -254,7 +254,7 @@
               width: 330px;
             "
           >
-            {{ patient.unitName }}/{{ patient.unitPlace }}
+            {{transUnitInfo(patient.unitName,patient.unitPlace)  }}
           </span>
           单位电话:
           <span
@@ -846,6 +846,14 @@ const props = defineProps({
   },
 });
 
+const transUnitInfo = (val1, val2) => {
+  if ((!val1 && !val2) || (val1 == '-' && val2 == '-')) {
+    return "-";
+  } else {
+    return `${val1}/${val2}`
+  }
+  
+};
 const filterNameInDic = (val, dic) => {
   if (!val) {
     return "";

+ 23 - 3
src/views/hospitalization/case-front-sheet/FillCaseFrontSheet.vue

@@ -265,7 +265,7 @@
             </select>
             (年龄不足 1 周岁的)年龄:
             <input
-              id="ageDays"
+              id="infAge"
               v-model="patientTransformData.infAge"
               style="width: 50px"
             />月
@@ -986,6 +986,12 @@
               v-model="patient.studyDoctorName"
               @click="showSearchData('studydoctor')"
             />
+            &nbsp;&nbsp;<el-button
+              type="danger"
+              circle
+              icon="Delete"
+              @click="clearLine('studydoctor')"
+            ></el-button>
             实习医师:
             <input
               id="internshipDoctorName"
@@ -994,6 +1000,12 @@
               v-model="patient.internshipDoctorName"
               @click="showSearchData('internshipdoctor')"
             />
+            &nbsp;&nbsp;<el-button
+              type="danger"
+              circle
+              icon="Delete"
+              @click="clearLine('internshipdoctor')"
+            ></el-button>
             编码员:
             <input
               id="coderName"
@@ -2548,8 +2560,8 @@ const fetchSheetInfo = row => {
     }
     //初始化重症监护室横线
     for (let i = 0; i < patient.value.icuInfoList.length; i++) {
-      if(patient.value.icuInfoList[i].name == '-' || patient.value.icuInfoList[i].name == null){
-        patient.value.icuInfoList[i].name = '-'
+      if(patient.value.icuInfoList[i].icuName == '-' || patient.value.icuInfoList[i].icuName == null){
+        patient.value.icuInfoList[i].icuName = '-'
         break;
       }
     }
@@ -2997,6 +3009,14 @@ const clearLine = option => {
         item.endTime = null
       });
       break;
+      case "studydoctor":
+        patient.value.studyDoctorName = "-"
+        patient.value.studyDoctorNameName = "-"
+      break;
+      case "internshipdoctor":
+        patient.value.internshipDoctor = "-"
+        patient.value.internshipDoctorName = "-"
+      break;
   }
 };
 

+ 15 - 2
src/views/hospitalization/case-front-sheet/FrontSheetQuality.vue

@@ -184,6 +184,7 @@ import { magicApi } from "@/utils/database/magic-api-request";
 import { Export } from "@/utils/ExportExcel";
 import { useDialog } from "@/components/cy/CyDialog/index";
 import { useUserStore } from "@/pinia/user-store";
+import { deepClone } from "@/components/fullScreen/utils";
 
 const { CyDateRange, dateRange } = useDateRange({
   shortcutsIndex: 1,
@@ -447,9 +448,11 @@ const executeSearch = () => {
 
 const showMessageDrawer = ref(false);
 const basicControl = () => {
+  let val = deepClone(sheet.value,true)
+  initSheetLineData(val)
   if (nullPatient()) return;
   executePrintVerify({
-    sheet: sheet.value,
+    sheet: val,
   })
     .then(() => {
       xcMessage.success("基础质控通过。");
@@ -461,6 +464,14 @@ const basicControl = () => {
     });
 };
 
+const initSheetLineData = (val) => {
+  val.infAge == '-'?val.infAge = null:false
+  val.ageDays == '-'?val.ageDays = null:false
+  val.newBornWeight1 == '-'?val.newBornWeight1 = null:false
+  val.newBornWeight2 == '-'?val.newBornWeight2 = null:false
+  val.newBornAdmissWeight == '-'?val.newBornAdmissWeight = null:false
+};
+
 const forceVerifies = ref([]);
 const adviceVerifies = ref([]);
 const currentMessageIndex = ref(null);
@@ -477,6 +488,8 @@ const messageColor = id => {
 };
 
 function approveAudit() {
+  let val = deepClone(sheet.value,true)
+  initSheetLineData(val)
   if (nullPatient()) {
     return;
   }
@@ -490,7 +503,7 @@ function approveAudit() {
       currentRow.value.auditState = "APPROVED";
       currentRow.value.auditRemark = "审核通过";
       currentRow.value.coderNote = value;
-      currentRow.value.sheet = sheet.value;
+      currentRow.value.sheet = val;
       executeAudit(currentRow.value).then(res => {
         xcMessage.success(res);
         querySearch();