Browse Source

优化医嘱勾选方式

xiaochan 2 years ago
parent
commit
105f6061c5

+ 2 - 2
src/components/xiao-chan/xc-table-v2/XcTableV2.vue

@@ -206,14 +206,14 @@ const clickSelectedAll = (val: boolean) => {
 const getSelectedData = () => {
   let temp = []
   try {
-    for (let i = 0; i < props.data.length; i++) {
+    for (let i = 0, len = props.data.length; i < len; i++) {
       let item = props.data[i]
       if (item.$selected) {
         temp.push(item)
       }
     }
     return temp
-  } catch (e) {
+  } catch {
     return []
   }
 }

+ 6 - 6
src/views/hospitalization/zhu-yuan-yi-sheng/yi-zhu-lu-ru/YiZhuLuRu.vue

@@ -23,7 +23,8 @@
       <button @click="confirmAssociationClick" title="关联医嘱">关联</button>
       <button @click="openRationalDrugUse" title="进入到合理用药的页面">合理用药</button>
       <button @click="allergen.open()" title="患者过敏源信息维护">过敏源维护</button>
-      <blood-sugar :pat-no="huanZheXinXi.inpatientNo" :times="huanZheXinXi.admissTimes"/>
+      <blood-sugar :pat-no="huanZheXinXi.inpatientNo"
+                   :times="huanZheXinXi.admissTimes"/>
       <report-of-infectious-diseases :pat-no="huanZheXinXi.inpatientNo"
                                      :times="huanZheXinXi.admissTimes"
                                      :ward="huanZheXinXi.admissWard"/>
@@ -393,11 +394,6 @@ const orderTemplateClickCopy = () => {
   })
 }
 
-onMounted(async () => {
-  await sleep(200)
-  zkList.value = await getTheTransferList()
-})
-
 
 // 点击修改医嘱时间
 const clickToModifyTheDoctorSOrderTime = () => {
@@ -500,6 +496,10 @@ const batchDeleteOrdersClick = () => {
   })
 }
 
+onMounted(async () => {
+  await sleep(200)
+  zkList.value = await getTheTransferList()
+})
 
 onActivated(async () => {
   if (router.currentRoute.value.params.inpatientNo) {

+ 1 - 1
src/views/hospitalization/zhu-yuan-yi-sheng/yi-zhu-lu-ru/components/OutpatientAppointments.vue

@@ -191,7 +191,7 @@ const cancel = () => {
 <template>
   <button @click="openDialog()">门诊预约</button>
 
-  <el-dialog v-model="dialog" title="门诊预约">
+  <el-dialog v-model="dialog" title="门诊预约" @closed="cancel">
     <el-form inline
              ref="formRef"
              label-position="right"