浏览代码

no message

xiaochan 2 年之前
父节点
当前提交
0e50efa14c

+ 22 - 22
src/components/zhu-yuan-yi-sheng/he-li-yong-yao/YaoPingXiangQing.vue

@@ -1,12 +1,12 @@
 <template>
-    <el-dialog v-model="dialog" title="药品说明书" @close="emit('close')">
-        <div :style="{height: getWindowSize.h / 1.4 + 'px',width : '100%'}">
-            <iframe v-if="showIframe"
-                    style="width: 100%;height: 100%"
-                    :src="src">
-            </iframe>
-        </div>
-    </el-dialog>
+  <el-dialog v-model="dialog" title="药品说明书" @close="emit('close')">
+    <div :style="{height: getWindowSize.h / 1.4 + 'px',width : '100%'}">
+      <iframe v-if="showIframe"
+              style="width: 100%;height: 100%"
+              :src="src">
+      </iframe>
+    </div>
+  </el-dialog>
 </template>
 
 <script name="YaoPingXiangQing" setup>
@@ -20,12 +20,12 @@
 import {getWindowSize} from "@/utils/window-size";
 
 const props = defineProps({
-    code: {
-        type: String,
-    },
-    url: {
-        type: String,
-    }
+  code: {
+    type: String,
+  },
+  url: {
+    type: String,
+  }
 })
 const emit = defineEmits(['close'])
 
@@ -35,14 +35,14 @@ let src = $ref('')
 let showIframe = $ref(false)
 
 onMounted(() => {
-    nextTick(() => {
-        if (props.url) {
-            src = props.url
-        } else {
-            src = "http://172.16.32.121:9097/web/sms/hpms_medi_show.aspx?his_code=" + props.code
-        }
-        showIframe = true
-    })
+  nextTick(() => {
+    if (props.url) {
+      src = props.url
+    } else {
+      src = "http://172.16.32.121:9097/web/sms/hpms_medi_show.aspx?his_code=" + props.code
+    }
+    showIframe = true
+  })
 })
 
 </script>

+ 30 - 32
src/components/zhu-yuan-yi-sheng/yi-zhu-lu-ru/EmrControlRuleDialog.vue

@@ -1,31 +1,32 @@
 <template>
-    <xc-dialog-v2 v-model="dialog" title="病历质控" width="80%" maximize>
-        <el-tabs>
-            <el-tab-pane label="时间质控">
-                <RuleSift :data="patientList" default-expand-all/>
-            </el-tab-pane>
-
-            <el-tab-pane label="质控建议">
-                <div v-for="(value,key) in suggestion">
-                    <div>
-                        {{ key }}
-                    </div>
-                    <el-table :data="value">
-                        <el-table-column prop="name" label="项目" width="180"/>
-                        <el-table-column prop="scoringCriteriaName" label="等级" width="40"/>
-                        <el-table-column prop="remark" label="备注" show-overflow-tooltip/>
-                        <el-table-column prop="numberOfDefects" label="缺陷数"/>
-                    </el-table>
-                </div>
-            </el-tab-pane>
-        </el-tabs>
-    </xc-dialog-v2>
+  <xc-dialog-v2 v-model="dialog" title="病历质控" width="80%" maximize>
+    <el-tabs>
+      <el-tab-pane label="时间质控">
+        <RuleSift :data="patientList" default-expand-all/>
+      </el-tab-pane>
+
+      <el-tab-pane label="质控建议">
+        <div v-for="(value,key) in suggestion">
+          <div>
+            {{ key }}
+          </div>
+          <el-table :data="value">
+            <el-table-column prop="name" label="项目" width="180"/>
+            <el-table-column prop="scoringCriteriaName" label="等级" width="40"/>
+            <el-table-column prop="remark" label="备注" show-overflow-tooltip/>
+            <el-table-column prop="numberOfDefects" label="缺陷数"/>
+          </el-table>
+        </div>
+      </el-tab-pane>
+    </el-tabs>
+  </xc-dialog-v2>
 </template>
 
 <script setup name='EmrControlRuleDialog'>
 import XcDialogV2 from "@/components/xiao-chan/dialog/XcDialogV2.vue";
 import {myPatientQualityControl} from "@/api/zhu-yuan-yi-sheng/emr-control-rule";
-import RuleSift from "@/views/hospitalization/zhu-yuan-yi-sheng/electronic-medical-record/emr_control_rule/RuleSift.vue";
+import RuleSift
+  from "@/views/hospitalization/zhu-yuan-yi-sheng/electronic-medical-record/emr_control_rule/RuleSift.vue";
 
 
 const patientList = ref([])
@@ -35,19 +36,16 @@ const dialog = ref(false)
 
 onMounted(() => {
 
-    myPatientQualityControl().then((res) => {
+  myPatientQualityControl().then((res) => {
 
-        patientList.value = res.timeQualityControl.details
-        suggestion.value = res.emrSuggestion
+    patientList.value = res.timeQualityControl.details
+    suggestion.value = res.emrSuggestion
 
+    if (patientList.value.length > 0) {
+      dialog.value = true
+    }
 
-        console.log(res)
-
-        if (patientList.value.length > 0) {
-            dialog.value = true
-        }
-
-    })
+  })
 
 })
 

+ 0 - 54
src/instructions/tip.js

@@ -1,54 +0,0 @@
-export default (app) => {
-    let div = null
-
-    app.directive('tip', (el, binding, vnode, prevVnode) => {
-        el.onmouseover = (event) => {
-            // console.log(el, binding, vnode, prevVnode)
-            // console.log(el.clientHeight, el.clientWidth, el.offsetHeight, el.offsetWidth);
-            console.log(el.getBoundingClientRect())
-            let rect = el.getBoundingClientRect()
-
-            div = document.createElement("div")
-            div.style.position = 'fixed'
-            div.style.width = 'max-content'
-            div.style.top = rect.y + el.clientHeight + (el.clientHeight / 2) + 'px'
-            div.style.left = rect.x + el.clientWidth + 'px'
-            div.style.backgroundColor = 'rgb(0,0,0)'
-            div.innerHTML = binding.value
-            div.style.fontSize = '12px'
-            div.style.color = '#fff'
-            div.style.padding = '10px'
-            div.style.zIndex = '999'
-            div.style.borderRadius = '3px'
-            div.style.boxShadow = '0px 0px 12px rgba(0, 0, 0, 0.12)'
-            document.body.appendChild(div)
-            edgeMonitoringJudgment(div)
-        }
-
-        el.onmouseout = () => {
-            document.body.removeChild(div)
-        }
-
-    })
-
-    app.beforeUnmount = () => {
-        document.body.removeChild(div)
-    }
-
-
-}
-
-function edgeMonitoringJudgment(el) {
-    let w, h;
-    w = window.innerWidth;
-    h = window.innerHeight;
-    // 监测右边超出
-    if (el.offsetLeft + el.offsetWidth >= w) {
-        console.log('超出', w - el.offsetLeft)
-        el.style.left = el.offsetLeft - (el.offsetWidth - (w - el.offsetLeft)) + 'px'
-        console.log(el)
-    }
-
-}
-
-

+ 0 - 7
src/main.js

@@ -12,7 +12,6 @@ import zhCn from 'element-plus/es/locale/lang/zh-cn'
 import JsonViewer from "vue3-json-viewer";
 import "vue3-json-viewer/dist/index.css";
 import DataVVue3 from '@kjgl77/datav-vue3'
-import tip from '@/instructions/tip'
 import VXETable from 'vxe-table'
 import 'vxe-table/lib/style.css'
 import print from 'vue3-print-nb'
@@ -23,7 +22,6 @@ const app = createApp(App)
 for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
     app.component(key, component)
 }
-tip(app)
 
 VXETable.setup({
     version: 0,
@@ -38,11 +36,6 @@ app.use(store)
 app.use(router)
 app.use(DataVVue3)
 app.use(print)
-tip(app)
-
 app.use(VXETable)
 app.use(JsonViewer);
 app.mount('#app')
-
-
-

+ 2 - 2
src/views/examination/BloodSugarQuery/BloodSugarQuery.vue

@@ -257,8 +257,8 @@ const print = () => {
 onMounted(() => {
     initLodop()
     if (isDev) {
-        patNo = '0372621'
-        times = 8
+        patNo = '0397171'
+        times = 7
         queryPatientSBloodSugarInformation()
     }
 })

+ 18 - 25
src/views/settings/Test.vue

@@ -1,40 +1,33 @@
 <template>
-    <vxe-table :data="data"
-               :height="400"
-               border
-               show-overflow
-               class="vxe-padding_zero"
-               :row-config="{isHover : true, isCurrent: true,height: 24}">
-        <vxe-column field="code" title="编码"/>
-        <vxe-colgroup title="测试">
-            <vxe-column field="name" title="name"/>
-        </vxe-colgroup>
-    </vxe-table>
+  <component :is="a"/>
 </template>
 
-<script setup>
-import SdTable from "@/components/xiao-chan/sd-table/SdTable.vue";
-import SdColumn from "@/components/xiao-chan/sd-table/table-column/sd-column";
+<script setup lang="jsx">
 
-const data = ref([])
-
-for (let i = 0; i < 100; i++) {
-    data.value.push({
-        code: i + 'asdas',
-        name: i + '测试'
-    })
+const test = (val) => {
+  console.log(111)
 }
 
-const te = (val) => {
-    console.log(val)
+const test1 = (val) => {
+  console.log(val)
+  console.log(222)
 }
 
+const a = () => (
+    <div onClick={test1} className="a">
+      <div onClick={test}>测试</div>
+    </div>
+)
+
 </script>
 
 <style lang="scss">
 
-
-
+.a {
+  width: 120px;
+  height: 220px;
+  border: 1px solid;
+}
 
 </style>