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

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

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

Loading…
Cancel
Save