Selaa lähdekoodia

打印新增 20mm 的边距, 手动查询医嘱

xiaochan 2 vuotta sitten
vanhempi
commit
e07a0d8b59

+ 141 - 140
src/components/hui-zhen-da-ying/PrintTheConsultationForm.vue

@@ -1,121 +1,122 @@
 <template>
-    <el-button @click="printClick">打印</el-button>
-    <div style="width: 595.275pt;  height: 841.89pt;  font-size: 6.75pt;
+  <el-button @click="printClick">打印</el-button>
+  <div style="width: 595.275pt;  height: 841.89pt;  font-size: 6.75pt;
    border: 0.75pt solid" ref="divRef">
-        <h1 style="text-align: center; font-size: 22.5pt;margin-bottom: 3.75pt">长沙泰和医院</h1>
-        <h4 style="text-align: center; font-size: 12.75pt; margin-top: 0">会 诊 记 录 单</h4>
-        <table style="width: 100%;border-bottom: 0.75pt solid #000">
+    <div style="margin-left: 20mm; ">
+      <h1 style="text-align: center; font-size: 22.5pt;  margin-bottom: 3.75pt">长沙泰和医院</h1>
+      <h4 style="text-align: center; font-size: 12.75pt; margin-top: 0">会 诊 记 录 单</h4>
+      <table style="width: 100%;border-bottom: 0.75pt solid #000">
+        <tr>
+          <td>
+            住院号:{{ huanZheXinXi.inpatientNo }}
+          </td>
+          <td>
+            姓名:{{ huanZheXinXi.name }}
+          </td>
+          <td>
+            性别:{{ cptSex(huanZheXinXi.sex) }}
+          </td>
+          <td>
+            年龄:{{ huanZheXinXi.age }}
+          </td>
+          <td>
+            科室:{{ huanZheXinXi.deptCodeName }}
+          </td>
+          <td>
+            床号:{{ huanZheXinXi.bedNo }}
+          </td>
+        </tr>
+      </table>
+      <div style="height: 3.75pt"/>
+      <div style="width: 100%; height: 15pt;">
+        <div style="width: 375pt;height: 100%;float: left">
+          <table>
             <tr>
-                <td>
-                    住院号:{{ huanZheXinXi.inpatientNo }}
-                </td>
-                <td>
-                    姓名:{{ huanZheXinXi.name }}
-                </td>
-                <td>
-                    性别:{{ cptSex(huanZheXinXi.sex) }}
-                </td>
-                <td>
-                    年龄:{{ huanZheXinXi.age }}
-                </td>
-                <td>
-                    科室:{{ huanZheXinXi.deptCodeName }}
-                </td>
-                <td>
-                    床号:{{ huanZheXinXi.bedNo }}
-                </td>
+              <td>
+                请
+              </td>
+              <td style="width: 115pt;border-bottom: 0.75pt solid #000">
+                {{ huanZheXinXi.reqDept1Name }}
+              </td>
+              <td>
+                会诊
+              </td>
             </tr>
-        </table>
-        <div style="height: 3.75pt"/>
-        <div style="width: 100%; height: 15pt;">
-            <div style="width: 375pt;height: 100%;float: left">
-                <table>
-                    <tr>
-                        <td>
-                            请
-                        </td>
-                        <td style="width: 115pt;border-bottom: 0.75pt solid #000">
-                            {{ huanZheXinXi.reqDept1Name }}
-                        </td>
-                        <td>
-                            会诊
-                        </td>
-                    </tr>
-                </table>
-            </div>
+          </table>
+        </div>
 
-            <div style=" width: 120pt;float: right">
-                会诊类别: {{ huanZheXinXi.hzLevelName }}
-            </div>
+        <div style=" width: 120pt;float: right">
+          会诊类别: {{ huanZheXinXi.hzLevelName }}
         </div>
-        <div style="width: 100%;padding: 7.5pt 7.5pt 0 7.5pt">
-            病情简介
-            <textarea v-model="huanZheXinXi.reqComment"
-                      readonly="readonly"
-                      style="height: 115.5pt;
-                margin: 3.75pt 0 0;width: 574.75pt;border: none;overflow: hidden;
+      </div>
+      <div style="width: 100%;padding: 7.5pt 7.5pt 0 7.5pt">
+        病情简介
+        <textarea v-model="huanZheXinXi.reqComment"
+                  readonly="readonly"
+                  style="height: 115.5pt;
+                margin: 3.75pt 0 0;width:522.75pt;border: none;overflow: hidden;
                 resize:none;"/>
-            <br>
-            目前主要诊断
-            <textarea v-model="huanZheXinXi.hzZd"
-                      readonly="readonly"
-                      style="height: 37.5pt;
-                margin: 3.75pt 0 0;width: 574.75pt;border: none;overflow: hidden;
+        <br>
+        目前主要诊断
+        <textarea v-model="huanZheXinXi.hzZd"
+                  readonly="readonly"
+                  style="height: 37.5pt;
+                margin: 3.75pt 0 0;width: 522.75pt;border: none;overflow: hidden;
                 resize:none;"/>
-            <br>
-            会诊目的
-            <textarea v-model="huanZheXinXi.hzMd"
-                      readonly="readonly"
-                      style="height: 37.5pt;
-                margin: 3.75pt 0 0;width: 574.75pt;border: none;overflow: hidden;
+        <br>
+        会诊目的
+        <textarea v-model="huanZheXinXi.hzMd"
+                  readonly="readonly"
+                  style="height: 37.5pt;
+                margin: 3.75pt 0 0;width: 522.75pt;border: none;overflow: hidden;
                 resize:none;"/>
-            <div style="float: right">
-                <table>
-                    <tr>
-                        <td style="width: 165pt">
-                            请求会诊科室:{{ huanZheXinXi.deptCodeName }}
-                        </td>
-                        <td style="width: 165pt">
-                            会诊申请医师:{{ huanZheXinXi.reqDoctor }}
-                        </td>
-                    </tr>
-                    <tr>
-                        <td style="width: 165pt">
-                            申请时间:{{ huanZheXinXi.reqDate }}
-                        </td>
-                    </tr>
-                </table>
-            </div>
-            <div style="clear: both"></div>
-            <hr>
-            会诊意见
-            <textarea v-model="huanZheXinXi.hzComment"
-                      maxlength="1100"
-                      :readonly="laiYuan === 2"
-                      onkeydown="if(event.keyCode === 13)event.returnValue = false;"
-                      style="height: 246.75pt;
-                margin: 3.75pt 0 0;width: 574.75pt;border: none;overflow: hidden;
+        <div style="float: right">
+          <table>
+            <tr>
+              <td style="width: 165pt">
+                请求会诊科室:{{ huanZheXinXi.deptCodeName }}
+              </td>
+              <td style="width: 165pt">
+                会诊申请医师:{{ huanZheXinXi.reqDoctor }}
+              </td>
+            </tr>
+            <tr>
+              <td style="width: 165pt">
+                申请时间:{{ huanZheXinXi.reqDate }}
+              </td>
+            </tr>
+          </table>
+        </div>
+        <div style="clear: both"></div>
+        <hr>
+        会诊意见
+        <textarea v-model="huanZheXinXi.hzComment"
+                  maxlength="1100"
+                  :readonly="laiYuan === 2"
+                  onkeydown="if(event.keyCode === 13)event.returnValue = false;"
+                  style="height: 246.75pt;
+                margin: 3.75pt 0 0;width: 522.75pt;border: none;overflow: hidden;
                 resize:none;"/>
-            <div style="float: right">
-                <table>
-                    <tr>
-                        <td style="width: 165pt">
-                            会诊科室:{{ huanZheXinXi.reqDept1Name }}
-                        </td>
-                        <td style="width: 165pt">
-                            医师:{{ props.laiYuan === 2 ? huanZheXinXi.hzDoctor2Name : store.state.user.info.name }}
-                        </td>
-                    </tr>
-                    <tr>
-                        <td style="width: 165pt">
-                            会诊时间:{{ huanZheXinXi.hzDate }}
-                        </td>
-                    </tr>
-                </table>
-            </div>
-
+        <div style="float: right">
+          <table>
+            <tr>
+              <td style="width: 165pt">
+                会诊科室:{{ huanZheXinXi.reqDept1Name }}
+              </td>
+              <td style="width: 165pt">
+                医师:{{ props.laiYuan === 2 ? huanZheXinXi.hzDoctor2Name : store.state.user.info.name }}
+              </td>
+            </tr>
+            <tr>
+              <td style="width: 165pt">
+                会诊时间:{{ huanZheXinXi.hzDate }}
+              </td>
+            </tr>
+          </table>
         </div>
+      </div>
     </div>
+  </div>
 
 </template>
 
@@ -127,61 +128,61 @@ import store from '@/store'
 import {getServerDateApi} from "@/api/public-api";
 
 const props = defineProps({
-    laiYuan: {
-        type: Number,
-        default: 1,
-    },
+  laiYuan: {
+    type: Number,
+    default: 1,
+  },
 })
 
 const divRef = ref()
 const huanZheXinXi = ref({})
 
 async function shiJian() {
-    if (props.laiYuan === 1) {
-        huanZheXinXi.value.hzDate = await getServerDateApi()
-    }
+  if (props.laiYuan === 1) {
+    huanZheXinXi.value.hzDate = await getServerDateApi()
+  }
 }
 
 const huiZhenXinXiXiangQing = async (val) => {
-    await shiJian()
-    huanZheXinXi.value = val
+  await shiJian()
+  huanZheXinXi.value = val
 }
 
 const printClick = async () => {
-    if (props.laiYuan === 1) {
-        await shiJian()
-    }
-    const allTextArea = divRef.value.getElementsByTagName('textarea')
-    const textInput = divRef.value.getElementsByTagName('input')
-    for (let i = 0; i < textInput.length; i++) {
-        textInput[i].setAttribute('value', textInput[i].value)
-    }
-    for (let i = 0; i < allTextArea.length; i++) {
-        allTextArea[i].innerHTML = allTextArea[i].value
-    }
-    let LODOP = getLodop()
-    const strFormHtml = '<body>' + divRef.value.innerHTML + '</body>'
-    LODOP.PRINT_INIT('会诊记录单') // 初始化打印机 名字
-    LODOP.SET_PRINT_PAGESIZE(1, '210mm', '297mm', '') // 设置纸张大小  A4
-    LODOP.SET_PRINT_MODE('FULL_WIDTH_FOR_OVERFLOW', true) // 整宽不变形
-    LODOP.ADD_PRINT_HTM('2mm', '5mm', '100%', '100%', strFormHtml) //要打印的内容
-    LODOP.SET_PRINT_STYLE('ItemType', 3) //设置对象风格
-    LODOP.ADD_PRINT_TEXT('290mm', '190mm', '20mm', '2mm', '第#页/共&页') //增加纯文本项
-    LODOP.PREVIEW() // 关闭
+  if (props.laiYuan === 1) {
+    await shiJian()
+  }
+  const allTextArea = divRef.value.getElementsByTagName('textarea')
+  const textInput = divRef.value.getElementsByTagName('input')
+  for (let i = 0; i < textInput.length; i++) {
+    textInput[i].setAttribute('value', textInput[i].value)
+  }
+  for (let i = 0; i < allTextArea.length; i++) {
+    allTextArea[i].innerHTML = allTextArea[i].value
+  }
+  let LODOP = getLodop()
+  const strFormHtml = '<body>' + divRef.value.innerHTML + '</body>'
+  LODOP.PRINT_INIT('会诊记录单') // 初始化打印机 名字
+  LODOP.SET_PRINT_PAGESIZE(1, '210mm', '297mm', '') // 设置纸张大小  A4
+  LODOP.SET_PRINT_MODE('FULL_WIDTH_FOR_OVERFLOW', true) // 整宽不变形
+  LODOP.ADD_PRINT_HTM('2mm', '5mm', '100%', '100%', strFormHtml) //要打印的内容
+  LODOP.SET_PRINT_STYLE('ItemType', 3) //设置对象风格
+  LODOP.ADD_PRINT_TEXT('290mm', '190mm', '20mm', '2mm', '第#页/共&页') //增加纯文本项
+  LODOP.PREVIEW() // 关闭
 }
 
 const populateTheComments = (val) => {
-    huanZheXinXi.value.hzComment = val
+  huanZheXinXi.value.hzComment = val
 }
 
 onMounted(() => {
-    initLodop()
+  initLodop()
 })
 
 defineExpose({
-    huiZhenXinXiXiangQing,
-    printClick,
-    populateTheComments
+  huiZhenXinXiXiangQing,
+  printClick,
+  populateTheComments
 })
 </script>
 

+ 1 - 1
src/components/zhu-yuan-yi-sheng/emr/auxiliary-tools/EmrYzTemperature.vue

@@ -25,7 +25,7 @@
                    :scroll-x="{gt: 0,enabled: false}"
                    :scroll-y="{gt: 0 ,enabled: true}"
                    :column-config="{resizable: true}"
-                   :row-config="{ height: 24}"
+                   :row-config="{height: 24}"
                    class="vxe-padding_zero hl-style"
                    header-row-class-name="padding_zero"
                    :row-class-name="rowClassName"

+ 3 - 1
src/components/zhu-yuan-yi-sheng/jian-cha-shen-qing/TianJiaJianYan.vue

@@ -83,7 +83,7 @@ import {ElMessage, ElMessageBox} from 'element-plus'
 import {stringIsBlank, stringNotBlank} from '@/utils/blank-utils'
 import {
   cuoWuXinXi,
-  huanZheXinXi,
+  huanZheXinXi, jsQueryYzData,
   xuanZhongJianYan, yzMitt, yzSize
 } from '@/views/hospitalization/zhu-yuan-yi-sheng/public-js/zhu-yuan-yi-sheng'
 import {getServerDateApi, yaoPinXiangMuPiPeiYiBao} from '@/api/public-api'
@@ -183,6 +183,8 @@ function baoCunShuJu() {
           xuanZhongJianYan.value.weiBianMa = []
           xuanZhongJianYan.value.data = []
           extraInformation = {}
+          // 查询医嘱
+          jsQueryYzData()
         })
         .catch((e) => {
           cuoWuXinXi.value = e

+ 3 - 1
src/views/hospitalization/zhu-yuan-yi-sheng/cao-yao-yi-zhu/ChaXunChaoYaoYiZhu.vue

@@ -82,7 +82,7 @@
 <script setup name="CaoYaoYiZhu">
 import {shortcuts} from '@/data/shortcuts'
 import {
-  huanZheXinXi,
+  huanZheXinXi, jsQueryYzData,
   youWuXuanZheHuanZhe,
   yzHeaderSize, yzSize
 } from '@/views/hospitalization/zhu-yuan-yi-sheng/public-js/zhu-yuan-yi-sheng'
@@ -145,6 +145,8 @@ const dianJiChaXunYiZhu = (val) => {
 const saveSuccess = () => {
   handleCurrentChange(1)
   tabsName.value = 0
+  // 查询医嘱
+  jsQueryYzData()
 }
 
 const handleCurrentChange = (val) => {

+ 0 - 6
src/views/hospitalization/zhu-yuan-yi-sheng/cao-yao-yi-zhu/XinZhengCaoYao.vue

@@ -410,12 +410,6 @@ const dianJiBaoCunCaoYao = () => {
   if (stringIsBlank(chuFang.value.orderName)) {
     return ElMessage.error('请输入处方名。')
   }
-  // if (chuFang.value.quantity === 0) {
-  //     return ElMessage.error('请选择剂数')
-  // }
-  // if (chuFang.value.quantityDj === 0) {
-  //     return ElMessage.error('请选择代煎数')
-  // }
   let listCode = []
   mingXi.value.list.forEach((item) => {
     listCode.push(item.chargeCode + '-' + item.serial)

+ 3 - 1
src/views/hospitalization/zhu-yuan-yi-sheng/hui-zhen/HuiZhenShenQing.vue

@@ -77,7 +77,7 @@ import {computed, onActivated, ref, watch} from 'vue'
 import {chaKanHuiZhenShenQing, shanChuHuiZhenShenQing} from '@/api/case-front-sheet'
 import {
   consultationApplication,
-  huanZheXinXi,
+  huanZheXinXi, jsQueryYzData,
   youWuXuanZheHuanZhe, yzHeaderSize, yzSize
 } from '@/views/hospitalization/zhu-yuan-yi-sheng/public-js/zhu-yuan-yi-sheng'
 import store from '@/store'
@@ -124,6 +124,8 @@ const successfulApplication = () => {
   chaKanHuiZhenShenQingClick()
   consultationApplication.value = false
   tabs.value = 0
+  // 查询医嘱
+  jsQueryYzData()
 }
 
 /**

+ 3 - 2
src/views/hospitalization/zhu-yuan-yi-sheng/jian-cha-jian-yan-shen-qing/JianChaShenQing.vue

@@ -69,7 +69,7 @@ import {
   addJcCheck,
   addCheckList, cuoWuXinXi,
   huanZheXinXi,
-  youWuXuanZheHuanZhe, yzHeaderSize, yzSize
+  youWuXuanZheHuanZhe, yzHeaderSize, yzSize, jsQueryYzData
 } from '@/views/hospitalization/zhu-yuan-yi-sheng/public-js/zhu-yuan-yi-sheng'
 import {computed, ref, watch} from 'vue'
 import {
@@ -177,7 +177,6 @@ let extraInformation = $ref({})
 
 // 保存数据
 const saveData = () => {
-
   if (youWuXuanZheHuanZhe()) return
 
   function error() {
@@ -248,6 +247,8 @@ function baoCunShuJu() {
           mainTabs.value = 0
           asideTabs.value = 1
           extraInformation = {}
+          // 查询医嘱
+          jsQueryYzData()
         })
   }).catch(() => {
   })

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

@@ -517,6 +517,9 @@ export const clickOnThePatient = async (patNo) => {
     clearAssociate()
 }
 
+
+
+
 const switchPatients = () => {
     let str = ''
     if (stringNotBlank(yiZhuData.value.actOrderNo) && yiZhuData.value.statusFlag === '1') {

+ 3 - 1
src/views/hospitalization/zhu-yuan-yi-sheng/shou-shu-shen-qing/ShouShuShenQing.vue

@@ -77,7 +77,7 @@ import {
   xinZengShouShuShenQing
 } from '@/api/zhu-yuan-yi-sheng/shou-shu-shen-qing'
 import {
-  huanZheXinXi,
+  huanZheXinXi, jsQueryYzData,
   operationApplication,
   youWuXuanZheHuanZhe, yzHeaderSize, yzSize
 } from '@/views/hospitalization/zhu-yuan-yi-sheng/public-js/zhu-yuan-yi-sheng'
@@ -192,6 +192,8 @@ const clickSave = async () => {
     } else {
       tabs.value = 0
       operationApplication.value = []
+      // 查询医嘱
+      jsQueryYzData()
     }
   })