瀏覽代碼

门诊电子病历打印

lihong 7 月之前
父節點
當前提交
cae902f62d
共有 1 個文件被更改,包括 7 次插入5 次删除
  1. 7 5
      src/views/mz-emr/MzEmr.vue

+ 7 - 5
src/views/mz-emr/MzEmr.vue

@@ -187,10 +187,11 @@ const appContext = () => {
   };
 };
 
-const handlePrint = () => {
+const handlePrint = (val:any) => {
   editor.editor.execute("print", {
     value: {
-      showPreview: false,
+      showPreview: true,
+      mode: val == 'server' ? 'backend' : ''
     },
   });
 };
@@ -328,9 +329,10 @@ const modelFlag = ref<boolean>(false);
         <div>
           <div style="width: 100%; text-align: right">
             <el-button type="success" @click="saveData">保存</el-button>
-            <el-button icon="Printer" type="success" @click="handlePrint">
-              打印</el-button
-            >
+            <el-button icon="Printer" type="success" @click="handlePrint('')">
+              页面打印</el-button>
+            <el-button icon="Printer" type="success" @click="handlePrint('server')">
+              服务打印</el-button>
           </div>
           <div>
             <el-button-group class="ml-4">