Commit 4c438cf9 authored by 小费同学阿's avatar 小费同学阿 💬

Merge remote-tracking branch 'origin/master'

parents 6c7fd099 8309ba82
...@@ -92,6 +92,23 @@ ...@@ -92,6 +92,23 @@
style="margin: 0 80px 0 0" style="margin: 0 80px 0 0"
@pagination="getContract" @pagination="getContract"
/> />
<!-- 合同文件查看 -->
<el-dialog
title="合同文件"
:visible.sync="openContractDocument"
:before-close="closeContractDocument"
width="50%"
append-to-body
:close-on-click-modal="false"
:close-on-press-escape="false"
>
<iframe
:src="contractDocumentUrl"
frameborder="no"
style="width: 100%; height: 60vh"
scrolling="auto"
/>
</el-dialog>
</div> </div>
</template> </template>
...@@ -104,6 +121,10 @@ export default { ...@@ -104,6 +121,10 @@ export default {
name: 'EntryContract', name: 'EntryContract',
data() { data() {
return { return {
// 控制合同文件对话框
openContractDocument: false,
// 合同文件路径
contractDocumentUrl: null,
// 图片根据不同环境显示路径 // 图片根据不同环境显示路径
baseUrl: process.env.VUE_APP_TEST_API, baseUrl: process.env.VUE_APP_TEST_API,
// 授权合同 // 授权合同
...@@ -130,6 +151,11 @@ export default { ...@@ -130,6 +151,11 @@ export default {
}, 500) }, 500)
}, },
methods: { methods: {
// 合同文件查看对话框关闭
closeContractDocument() {
this.openContractDocument = false
this.contractDocumentUrl = null
},
getEntryContract() { getEntryContract() {
this.queryParams.hospitalId = this.currentHospitalId this.queryParams.hospitalId = this.currentHospitalId
listNoPageHistory(this.queryParams).then(res => { listNoPageHistory(this.queryParams).then(res => {
...@@ -165,9 +191,8 @@ export default { ...@@ -165,9 +191,8 @@ export default {
}) })
}, },
check(row) { check(row) {
console.log('pdf', row.contract) this.openContractDocument = true
console.log('pdf2', this.baseUrl) this.contractDocumentUrl = this.baseUrl + row.contract
window.open(this.baseUrl + row.contract)
}, },
downloadPdf(row) { downloadPdf(row) {
this.$download.resource(row.contract) this.$download.resource(row.contract)
......
...@@ -279,6 +279,7 @@ ...@@ -279,6 +279,7 @@
append-to-body append-to-body
:close-on-press-escape="false" :close-on-press-escape="false"
:close-on-click-modal="false" :close-on-click-modal="false"
@close="closeSubscribe"
> >
<el-form ref="form" :model="form" :rules="rules" label-width="60px"> <el-form ref="form" :model="form" :rules="rules" label-width="60px">
<el-row> <el-row>
...@@ -547,6 +548,13 @@ export default { ...@@ -547,6 +548,13 @@ export default {
this.currentUser.userType = this.$store.state.user.userType this.currentUser.userType = this.$store.state.user.userType
this.currentUser.name = this.$store.state.user.name this.currentUser.name = this.$store.state.user.name
}, },
// 立即预约对话框关闭回调函数
closeSubscribe() {
this.form = {
equipmentIdList: [],
checkDate: null
}
},
/** 获取当前医院信息 */ /** 获取当前医院信息 */
getHospitalMessage() { getHospitalMessage() {
signHospitalMessage().then(response => { signHospitalMessage().then(response => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment