Browse Source

优化代码

DESKTOP-0GD05B0\Administrator 2 years ago
parent
commit
94d4d54ee4

+ 1 - 1
src/components/zhu-yuan-yi-sheng/yi-zhu-lu-ru/RationalDrugUseWindow.vue

@@ -14,11 +14,11 @@
 import {rationalUseOfMedicine} from "@/api/heliyongyao/rational-use";
 import XcDialogV2 from "@/components/xiao-chan/dialog/XcDialogV2.vue";
 
-
 const emit = defineEmits(['submit'])
 
 let dialog = $ref(false)
 let rationalUse = $ref({})
+
 const check = async (patNo, times) => {
   rationalUse = await rationalUseOfMedicine(patNo, times)
   console.log(rationalUse)

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

@@ -7,6 +7,7 @@
                         :click-on-the-order-template="clickOnTheOrderTemplate"
                         :confirm-orders-click="confirmOrdersClick"/>
     <div>
+      <div style="height: 5px"/>
       <button @click="orderTemplateClick">维护模板</button>
       <button @click="clickToStopTheOrder">批量停止</button>
       <el-divider direction="vertical"></el-divider>
@@ -23,6 +24,7 @@
       <button @click="allergen.open()">患者过敏原信息维护</button>
       <button @click="openDualScreen">双屏模式</button>
     </div>
+    <div style="height: 5px"/>
     <yz-editor :patient-info="huanZheXinXi"
                ref="yzEditorRef"
                :current-page="currentPage"
@@ -168,9 +170,11 @@ const confirmOrdersClick = async () => {
 // 真正的向后台确认医嘱
 const confirmOrder = async () => {
   // 确认医嘱
-  // await yzEditorRef.value.confirmOrdersClick()
+  if (!isDev) {
+    await yzEditorRef.value.confirmOrdersClick()
+  }
   // 查询医嘱
-  await yzQueryRef.value.queryYz()
+  await yzQueryRef.value.queryYz();
 }
 
 /**
@@ -442,8 +446,6 @@ onActivated(async () => {
 </script>
 
 <style scoped lang="scss">
-
-
 :deep(.el-table .children-row) {
   background: rgba(145, 247, 145, 0.93);
 }
@@ -458,4 +460,5 @@ onActivated(async () => {
   line-height: 26px;
   font-weight: bold;
 }
+
 </style>