+
@@ -10,14 +16,14 @@
import { mapState } from "vuex";
import moment from "moment";
-
-
+import html2canvas from "html2canvas";
+import printJs from "print-js";
export default {
props: ['refParams'],
data() {
return {
- contentShow:'
CT检查知情同意书
尊敬的客户:
欢迎您来到长城体检中心进行CT检查,在检查之前,您需要知晓以下事宜:辐射有害健康,请远离电离辐射
1、人体受到放射线照射后,可能产生潜在的危害,产生有害的躯体效应和遗传效应,其中最敏感的器官或组织为:甲状腺、性腺、及胚胎组织。
2、孕妇原则上禁止CT检查,如果您是孕妇,在CT检查前,请告知工作人员。
3、如果您正处在备孕阶段,原则上我们不建议进行CT检查,请您提前告知工作人员。
4、CT检查时只允许一名受检者进入机房,无关人员不得在机房内停留。
5、建议受检者佩戴门诊部提供的防护用品,遮盖敏感部位。 家屋到扫描室外等候。
受检人签名:${signMan}
${signDate}
',
+ contentShow:'
CT检查知情同意书
尊敬的客户:
欢迎您来到长城体检中心进行CT检查,在检查之前,您需要知晓以下事宜:辐射有害健康,请远离电离辐射
1、人体受到放射线照射后,可能产生潜在的危害,产生有害的躯体效应和遗传效应,其中最敏感的器官或组织为:甲状腺、性腺、及胚胎组织。
2、孕妇原则上禁止CT检查,如果您是孕妇,在CT检查前,请告知工作人员。
3、如果您正处在备孕阶段,原则上我们不建议进行CT检查,请您提前告知工作人员。
4、CT检查时只允许一名受检者进入机房,无关人员不得在机房内停留。
5、建议受检者佩戴门诊部提供的防护用品,遮盖敏感部位。 家屋到扫描室外等候。
受检人签名:${signMan}
${signDate}
',
};
@@ -56,7 +62,7 @@ export default {
// 查看效果
btnPreview(){
this.acceptTemplateShow = true
- let signMan = '

'
+ let signMan = ''
let signDate = moment(new Date()).format('yyyy 年 MM 月 DD 日')
this.contentShow = this.content.replace('${signMan}', signMan).replace('${signDate}', signDate)
},
@@ -68,7 +74,36 @@ export default {
this.content = this.contentDesign
}
this.designAble = !this.designAble
- }
+ },
+
+ btnPrint() {
+
+ this.$nextTick(() => {
+ let width = 794; // A4纸的宽度
+ let cloneDom = this.$refs['refPreviewCusGrant'].cloneNode(true);
+ let imageDom = this.$refs['refPreviewCusGrant'];
+ cloneDom.style.position = "absolute";
+ cloneDom.style.top = "0px";
+ cloneDom.style.zIndex = "-1";
+ cloneDom.style.width = width;
+ cloneDom.style.padding = "80px 50px";
+ console.log(cloneDom);
+ imageDom.appendChild(cloneDom);
+ html2canvas(cloneDom).then((canvas) => {
+ // 转成图片,生成图片地址
+ const url = canvas.toDataURL("image/png");
+ printJs({
+ printable: url,
+ type: "image",
+ documentTitle: "知情同意书", // 标题
+ style: `@media print { @page {size: auto; margin: 0 0 0 0; } body{margin:0 5px}canvas{page-break-after: always;page-break-inside: avoid;
+page-break-after: avoid;
+page-break-before: avoid;}}`, // 去除页眉页脚
+ });
+ });
+ cloneDom.style.display = "none";
+ });
+ },
},
// 监听
diff --git a/src/components/doctorCheck/CheckPicture.vue b/src/components/doctorCheck/CheckPicture.vue
index 5916eb2..c35969b 100644
--- a/src/components/doctorCheck/CheckPicture.vue
+++ b/src/components/doctorCheck/CheckPicture.vue
@@ -270,6 +270,12 @@ export default {
pictureFileType: '1',
getPicing:false, //是否采图中
fullscreenLoading:false, // 采图交互状态
+ // 医生诊台相关的本地设置
+ LocalConfig: {
+ doctorCheck: {
+ getPicIsPrint:'N', //采图即标打印 -- 该参数仅对鼠标采图起作用(非热键采图时不起作用)
+ },
+ },
};
},
@@ -280,6 +286,9 @@ export default {
this.sysConfig = JSON.parse(window.sessionStorage.getItem('sysConfig'))
// console.log('this.sysConfig checkPictures', this.sysConfig)
+ let LocalConfig = JSON.parse(window.localStorage.getItem("LocalConfig") || null)
+ if (LocalConfig?.doctorCheck?.getPicIsPrint) this.LocalConfig.doctorCheck.getPicIsPrint = LocalConfig.doctorCheck.getPicIsPrint
+
},
//挂载完成
@@ -512,7 +521,7 @@ export default {
fileName,
localPathName: item.FilePath,
pictureBaseStr: baseHead + item.Image,
- isPrint: 'N'
+ isPrint: this.LocalConfig.doctorCheck.getPicIsPrint // 根据不同的客户端,有不同的需求
}],
pictureFileType: '0' //采图暂定图0,上传暂定报告1 this.pictureFileType
}
diff --git a/src/views/doctorCheck/doctorCheck.vue b/src/views/doctorCheck/doctorCheck.vue
index 877e72d..b323f84 100644
--- a/src/views/doctorCheck/doctorCheck.vue
+++ b/src/views/doctorCheck/doctorCheck.vue
@@ -92,6 +92,21 @@
AI诊断
+
+ 放弃明细项目检查
+
+
+ 放弃项目检查
+
+
+ 删除明细项目
+
修改结果
@@ -141,20 +156,30 @@
重置
+
+ 知情同意书
+
更多操作
- 放弃明细项目检查
- 放弃项目检查
- 删除明细项目
- 知情同意书
+ 放弃明细项目检查
+ 放弃项目检查
+ 删除明细项目
+ 知情同意书
@@ -374,6 +399,7 @@ export default {
isQueue: 'N', //启用分诊排队
queueRoom: '', //默认分诊房间
isAutoNext: 'N', // 保存完结果,是否自动下一条记录
+ moreBtns: '放弃明细项目检查,放弃项目检查,删除明细项目,知情同意书', // 更多操作包含的按钮
},
normal: { // 常规参数
displayTab: false// 是否显示标签页