Browse Source

APP端不显示打印按钮

whszxyjhyy
lzp 4 weeks ago
parent
commit
3e89c4655f
  1. 28
      web_client/src/views/history/components/scaleInfor.vue
  2. 26
      web_client/src/views/history/components/scaleInforCopy.vue

28
web_client/src/views/history/components/scaleInfor.vue

@ -27,6 +27,7 @@
<i class="el-icon-upload2"></i>导出医生版
</div>
<div
v-if="!isAPP"
style="width: 130px; margin-right: 10px"
class="div-print cardRig-but"
@click="handlePrinting('医生版', true)"
@ -41,6 +42,7 @@
<i class="el-icon-upload2"></i>导出阳性版
</div>
<div
v-if="!isAPP"
style="width: 130px; margin-right: 10px"
class="div-print cardRig-but"
@click="handlePrinting('阳性版')"
@ -55,6 +57,7 @@
<i class="el-icon-upload2"></i>导出个人版
</div>
<div
v-if="!isAPP"
class="div-print cardRig-but"
@click="handlePrinting('个人版')"
style="width: 130px"
@ -359,6 +362,7 @@ export default {
signData: {},
reportPath: "",
icdList: [],
isAPP: JSON.parse(localStorage.getItem("isAndroid")),
};
},
watch: {
@ -502,18 +506,18 @@ export default {
//
handleInvoke(_path) {
try {
if (JSON.parse(localStorage.getItem("isAndroid"))) {
this.$message({
message: "请在wps中预览并打印",
type: "success",
center: true,
duration: 6000,
});
// window.open(_path);
//
this.$download(_path);
return;
}
// if (JSON.parse(localStorage.getItem("isAndroid"))) {
// this.$message({
// message: "wps",
// type: "success",
// center: true,
// duration: 6000,
// });
// // window.open(_path);
// //
// this.$download(_path);
// return;
// }
this.reportPath = _path;
var iframe = document.getElementById(
"reportPartIframe" + this.timestamp,

26
web_client/src/views/history/components/scaleInforCopy.vue

@ -26,6 +26,7 @@
<i class="el-icon-upload2"></i>导出医生版
</div>
<div
v-if="!isAPP"
style="width: 130px; margin-right: 10px"
class="div-print cardRig-but"
@click="handlePrinting('医生版', true)"
@ -40,6 +41,7 @@
<i class="el-icon-upload2"></i>导出阳性版
</div>
<div
v-if="!isAPP"
style="width: 130px; margin-right: 10px"
class="div-print cardRig-but"
@click="handlePrinting('阳性版')"
@ -54,6 +56,7 @@
<i class="el-icon-upload2"></i>导出个人版
</div>
<div
v-if="!isAPP"
class="div-print cardRig-but"
@click="handlePrinting('个人版')"
style="width: 130px"
@ -359,6 +362,7 @@ export default {
signData: {},
reportPath: "",
icdList: [],
isAPP: JSON.parse(localStorage.getItem("isAndroid")),
};
},
watch: {
@ -505,17 +509,17 @@ export default {
//
handleInvoke(_path) {
try {
if (JSON.parse(localStorage.getItem("isAndroid"))) {
this.$message({
message: "请在wps中预览并打印",
type: "success",
center: true,
duration: 6000,
});
// window.open(_path);
this.$download(_path);
return;
}
// if (JSON.parse(localStorage.getItem("isAndroid"))) {
// this.$message({
// message: "wps",
// type: "success",
// center: true,
// duration: 6000,
// });
// // window.open(_path);
// this.$download(_path);
// return;
// }
this.reportPath = _path;
var iframe = document.getElementById(
"reportPartIframe" + this.timestamp,

Loading…
Cancel
Save