|
|
|
@ -168,9 +168,6 @@ |
|
|
|
<div class="listBtn"> |
|
|
|
<el-button type="primary" class="btnClass" @click="guidePrint">打指引单</el-button> |
|
|
|
</div> |
|
|
|
<div class="listBtn"> |
|
|
|
<el-button id="btntyfghkjhjhgfyudhfsojkafa" type="primary" data-parms="{'title':'electron'}" class="btnClass">electron</el-button> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
<!-- 体检人员登记 --> |
|
|
|
@ -230,19 +227,37 @@ export default { |
|
|
|
...mapState(["window", "dict", "patientRegister", "customerOrg"]), |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
...mapActions(["getCustomerOrgGroup", "getPatientRegisterAbs"]), |
|
|
|
|
|
|
|
...mapActions(["getCustomerOrgGroup", "getPatientRegisterAbs"]), |
|
|
|
|
|
|
|
// 打印指引单 |
|
|
|
async guidePrint(){ |
|
|
|
console.log('点击指引单按钮') |
|
|
|
this.dialogGuide = true; |
|
|
|
try{ |
|
|
|
console.log('window.electronApI',window.electronApI) |
|
|
|
this.guideMsg = await window.electronApI.printPre("print parameters"); |
|
|
|
}catch(err){ |
|
|
|
console.log('点击指引单按钮错误:',err) |
|
|
|
} |
|
|
|
}, |
|
|
|
let token = localStorage.getItem('token'); |
|
|
|
let user = localStorage.getItem('user'); |
|
|
|
let toOutShell = ''; |
|
|
|
let msg =''; |
|
|
|
|
|
|
|
//http://140.143.162.39:9529/api/app/print-report/patient-register-guide-report/3a0c7f6e-3ff1-fef6-c568-6f541aabe87a |
|
|
|
getapi(`/api/app/print-report/patient-register-guide-report/${msg}`) |
|
|
|
.then((res) => { |
|
|
|
if (res.code != -1) { |
|
|
|
res.data; |
|
|
|
|
|
|
|
return this.$electronAPI.printPre('web 传入参数'); |
|
|
|
} |
|
|
|
}) |
|
|
|
.then(res => { |
|
|
|
msg = res; |
|
|
|
}); |
|
|
|
|
|
|
|
console.log(msg); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
handleSelectionChange(val) { |
|
|
|
this.multipleSelection = val; |
|
|
|
//console.log('this.multipleSelection',this.multipleSelection) |
|
|
|
|