Ver código fonte

弹窗提示医保备注

梁欢 2 meses atrás
pai
commit
6a3a038ac9

+ 38 - 20
src/components/zhu-yuan-yi-sheng/yi-zhu-lu-ru/showDialog/ShowDialog.vue

@@ -6,30 +6,39 @@
     :close-on-click-modal="false"
     @closed="emits('closed')"
   >
-    <div class="flex justify-center items-center w-full p-6">
-      <!-- 自费按钮 -->
-      <el-button
-        type="primary"
-        size="large"
-        class="w-24"
-        @click="handleSelfPay"
-      >
-        自费
-      </el-button>
-
-      <!-- 医保按钮 -->
-      <el-button
-        type="success"
-        size="large"
-        class="w-24"
-        @click="cancel"
-      >
-        医保
-      </el-button>
+    <div class="flex flex-col items-center w-full p-4">
+      <div class="gap-6 mt-2">
+        <p v-if="yzData?.ybComment?.trim()" class="text-lg font-bold text-orange-600 mb-6 w-full text-center" style="color:red;  font-weight: bold;font-size: 1.2rem;text-align:center">
+            {{ yzData.ybComment }}
+        </p>
+          <el-button
+            type="primary"
+            size="large"
+            class="w-28"
+            @click="handleSelfPay"
+        >
+          自费
+        </el-button>
+        <el-button
+            type="success"
+            size="large"
+            class="w-28"
+            @click="cancel"
+        >
+          医保
+        </el-button>
+      </div>
     </div>
   </el-dialog>
 </template>
 <script setup>
+import {yiZhuData} from "@/views/hospitalization/zhu-yuan-yi-sheng/public-js/zhu-yuan-yi-sheng";
+
+const props = defineProps({
+  yzData: {
+    type: Object,
+  },
+});
 
 const emits = defineEmits(["closed","select"]);
 
@@ -46,3 +55,12 @@ const cancel = () => {
    ShowDialog.value = false;
 };
 </script>
+<style scoped>
+::v-deep .el-button {
+  transition: all 0.2s ease;
+}
+::v-deep .el-button:hover {
+  transform: translateY(-2px);
+  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
+}
+</style>

+ 6 - 3
src/components/zhu-yuan-yi-sheng/yi-zhu-lu-ru/yz-edit/YzEditor.vue

@@ -432,9 +432,12 @@ const searchClickFunc = async (row: SearchOrdersType): Promise<void> => {
   if (row.showDialog !== undefined) {
     setYzData("showDialog", row.showDialog);
   }
-    if (row.yzDialog !== undefined) {
-      setYzData("yzDialog", row.yzDialog);
-    }
+  if (row.yzDialog !== undefined) {
+    setYzData("yzDialog", row.yzDialog);
+  }
+  if (row.ybComment !== undefined) {
+    setYzData("ybComment", row.ybComment);
+  }
   // 查询一下父医嘱
   fuYiZhuClick();
   // 药品

+ 3 - 0
src/views/hospitalization/zhu-yuan-yi-sheng/public-js/zhu-yuan-yi-sheng.ts

@@ -276,6 +276,7 @@ export interface YzType {
   minAgeRestriction: string;
   showDialog: string;
   yzDialog: string;
+  ybComment: string;
 }
 
 export interface SearchOrdersType {
@@ -411,6 +412,7 @@ export const yiZhuData = ref<YzType>({
   minAgeRestriction: "",
   showDialog: "",
   yzDialog: "",
+  ybComment: "",
 });
 
 export const yiZhuDataInit = (clearOrderNo: boolean = true): void => {
@@ -497,6 +499,7 @@ export const yiZhuDataInit = (clearOrderNo: boolean = true): void => {
     minAgeRestriction: "",
     showDialog: "",
     yzDialog: "",
+    ybComment: "",
   };
 };
 // 保存医嘱数据