|
|
|
@ -166,7 +166,10 @@ |
|
|
|
<el-button type="primary" class="btnClass">调整项目</el-button> |
|
|
|
</div> |
|
|
|
<div class="listBtn"> |
|
|
|
<el-button id="btn" type="primary" class="btnClass">打指引单</el-button> |
|
|
|
<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> |
|
|
|
|
|
|
|
@ -181,6 +184,12 @@ |
|
|
|
:append-to-body="true" :close-on-click-modal="false"> |
|
|
|
<Camera :id="patientRegister.patientRegisterId" /> |
|
|
|
</el-dialog> |
|
|
|
|
|
|
|
<!-- 指引单 --> |
|
|
|
<el-dialog title="指引单" :visible.sync="dialogGuide" width="400" height="800" |
|
|
|
:append-to-body="true" :close-on-click-modal="false"> |
|
|
|
<div>{{ guideMsg }}</div> |
|
|
|
</el-dialog> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
<script> |
|
|
|
@ -205,6 +214,8 @@ export default { |
|
|
|
multipleSelection: [], //选中的数据列表 |
|
|
|
dialogVisible: false, |
|
|
|
dialogCamera: false, |
|
|
|
dialogGuide:false, |
|
|
|
guideMsg:'guideMsg', |
|
|
|
tabChoosed: "1", |
|
|
|
formInitData: {}, //体检登记初始表单数据 |
|
|
|
editTimes: 0, |
|
|
|
@ -220,6 +231,17 @@ export default { |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
...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) |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
handleSelectionChange(val) { |
|
|
|
this.multipleSelection = val; |
|
|
|
|