|
|
|
@ -20,11 +20,14 @@ |
|
|
|
<el-button type="primary" class="commonbutton" @click="btnReportExport(false)">导出 pdf 报告</el-button> |
|
|
|
</div> |
|
|
|
<div class="listBtn"> |
|
|
|
<el-button type="primary" class="commonbutton" @click="btnGetReport">领用报告</el-button> |
|
|
|
<el-button type="primary" class="commonbutton" @click="btnGetReport">领取报告</el-button> |
|
|
|
</div> |
|
|
|
<div class="listBtn"> |
|
|
|
<el-button type="primary" class="commonbutton" @click="btnUpReport">上传Web</el-button> |
|
|
|
</div> |
|
|
|
<div class="listBtn"> |
|
|
|
<el-button type="primary" class="commonbutton" @click="btnExport">导出人员</el-button> |
|
|
|
</div> |
|
|
|
<div class="listBtn"> |
|
|
|
<el-button type="primary" class="commonbutton" @click="exportZip">导出Zip</el-button> |
|
|
|
</div> |
|
|
|
@ -38,6 +41,28 @@ |
|
|
|
:close-on-click-modal="false" :append-to-body="true"> |
|
|
|
<ElProgressOCX /> |
|
|
|
</el-dialog> |
|
|
|
|
|
|
|
<el-dialog title="报告领取" :visible.sync="dialogGetReport" width="350px" :show-close="false" |
|
|
|
:close-on-click-modal="false" :append-to-body="true"> |
|
|
|
<div> |
|
|
|
|
|
|
|
<div class="query" style="display: flex;"> |
|
|
|
<span class="spanClass">领取人</span> |
|
|
|
<el-input placeholder="领取人" v-model="getMan" size="small" clearable style="width: 120px" /> |
|
|
|
</div> |
|
|
|
<div style="display: flex;justify-content: space-between;"> |
|
|
|
<div></div> |
|
|
|
<div style="display: flex;"> |
|
|
|
<div class="listBtn"> |
|
|
|
<el-button type="primary" class="commonbutton" @click="btnGetReportOk">确定</el-button> |
|
|
|
</div> |
|
|
|
<div class="listBtn"> |
|
|
|
<el-button type="primary" class="commonbutton" @click="dialogGetReport = false">取消</el-button> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</el-dialog> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
@ -55,8 +80,8 @@ export default { |
|
|
|
}, |
|
|
|
data() { |
|
|
|
return { |
|
|
|
|
|
|
|
|
|
|
|
dialogGetReport:false, |
|
|
|
getMan: '', // 报告领取人 |
|
|
|
}; |
|
|
|
}, |
|
|
|
|
|
|
|
@ -76,7 +101,7 @@ export default { |
|
|
|
btnQuery() { |
|
|
|
this.patientRegister.query.times++ |
|
|
|
}, |
|
|
|
exportJpg(){ |
|
|
|
exportJpg() { |
|
|
|
if (!this.$peisAPI) { |
|
|
|
this.$message.info({ showClose: true, message: "此功能,需要在壳客户端才可运行!" }) |
|
|
|
return |
|
|
|
@ -98,15 +123,15 @@ export default { |
|
|
|
this.$message.error(err) |
|
|
|
}) |
|
|
|
}, |
|
|
|
async report2Jpg(path){ |
|
|
|
async report2Jpg(path) { |
|
|
|
this.elProgress.display = true; |
|
|
|
this.elProgress.percentage = 0; |
|
|
|
|
|
|
|
let token = window.sessionStorage.getItem('token'); |
|
|
|
let toOutShell = { |
|
|
|
localPath:path, |
|
|
|
localPath: path, |
|
|
|
token, |
|
|
|
patientRegisterId:"" |
|
|
|
patientRegisterId: "" |
|
|
|
}; |
|
|
|
|
|
|
|
for (let i = 0; i < this.dataTransOpts.tableM.patient_register.length; i++) { |
|
|
|
@ -116,13 +141,13 @@ export default { |
|
|
|
|
|
|
|
// 导出pdf |
|
|
|
try { |
|
|
|
toOutShell.patientRegisterId = e.patientRegisterId |
|
|
|
let jsonToOutShell = JSON.stringify(toOutShell) |
|
|
|
console.log('toOutShell', jsonToOutShell) |
|
|
|
let res = await this.$peisAPI.exportDcmjpg(jsonToOutShell) |
|
|
|
if (JSON.parse(res).code < 0) { |
|
|
|
console.log('this.$peisAPI.exportDcmjpg err', res) |
|
|
|
} |
|
|
|
toOutShell.patientRegisterId = e.patientRegisterId |
|
|
|
let jsonToOutShell = JSON.stringify(toOutShell) |
|
|
|
console.log('toOutShell', jsonToOutShell) |
|
|
|
let res = await this.$peisAPI.exportDcmjpg(jsonToOutShell) |
|
|
|
if (JSON.parse(res).code < 0) { |
|
|
|
console.log('this.$peisAPI.exportDcmjpg err', res) |
|
|
|
} |
|
|
|
} catch (error) { |
|
|
|
console.log('error', error) |
|
|
|
this.$message.warning({ showClose: true, message: error }); |
|
|
|
@ -130,7 +155,13 @@ export default { |
|
|
|
} |
|
|
|
this.elProgress.display = false; |
|
|
|
}, |
|
|
|
exportZip(){ |
|
|
|
|
|
|
|
// 人员信息列表导出 |
|
|
|
btnExport() { |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
exportZip() { |
|
|
|
if (!this.$peisAPI) { |
|
|
|
this.$message.info({ showClose: true, message: "此功能,需要在壳客户端才可运行!" }) |
|
|
|
return |
|
|
|
@ -152,15 +183,15 @@ export default { |
|
|
|
this.$message.error(err) |
|
|
|
}) |
|
|
|
}, |
|
|
|
async report2Zip(path){ |
|
|
|
async report2Zip(path) { |
|
|
|
this.elProgress.display = true; |
|
|
|
this.elProgress.percentage = 0; |
|
|
|
|
|
|
|
let token = window.sessionStorage.getItem('token'); |
|
|
|
let toOutShell = { |
|
|
|
localPath:path, |
|
|
|
localPath: path, |
|
|
|
token, |
|
|
|
patientRegisterId:"" |
|
|
|
patientRegisterId: "" |
|
|
|
}; |
|
|
|
|
|
|
|
for (let i = 0; i < this.dataTransOpts.tableM.patient_register.length; i++) { |
|
|
|
@ -170,13 +201,13 @@ export default { |
|
|
|
|
|
|
|
// 导出pdf |
|
|
|
try { |
|
|
|
toOutShell.patientRegisterId = e.patientRegisterId |
|
|
|
let jsonToOutShell = JSON.stringify(toOutShell) |
|
|
|
console.log('toOutShell', jsonToOutShell) |
|
|
|
let res = await this.$peisAPI.exportDcmZip(jsonToOutShell) |
|
|
|
if (JSON.parse(res).code < 0) { |
|
|
|
console.log('this.$peisAPI.exportDcmZip err', res) |
|
|
|
} |
|
|
|
toOutShell.patientRegisterId = e.patientRegisterId |
|
|
|
let jsonToOutShell = JSON.stringify(toOutShell) |
|
|
|
console.log('toOutShell', jsonToOutShell) |
|
|
|
let res = await this.$peisAPI.exportDcmZip(jsonToOutShell) |
|
|
|
if (JSON.parse(res).code < 0) { |
|
|
|
console.log('this.$peisAPI.exportDcmZip err', res) |
|
|
|
} |
|
|
|
} catch (error) { |
|
|
|
console.log('error', error) |
|
|
|
this.$message.warning({ showClose: true, message: error }); |
|
|
|
@ -220,13 +251,18 @@ export default { |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
//领用体检报告 |
|
|
|
btnGetReportOk(){ |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
//领取体检报告 |
|
|
|
btnGetReport() { |
|
|
|
if (!this.dataTransOpts.tableS.patient_register.id) { |
|
|
|
this.$message.warning({ showClose: true, message: "请先选择记录!" }) |
|
|
|
return |
|
|
|
} |
|
|
|
this.dataTransOpts.tableS.patient_register.completeFlag = '2' |
|
|
|
this.dialogGetReport = true |
|
|
|
}, |
|
|
|
|
|
|
|
//上传报告 |
|
|
|
@ -274,8 +310,8 @@ export default { |
|
|
|
try { |
|
|
|
if (e.completeFlag == '3') { |
|
|
|
toOutShell.BusinessCode = e.patientRegisterId |
|
|
|
toOutShell.customerOrgName = e.customerOrgName||'' // 增加单位名称参数 |
|
|
|
toOutShell.departmentName = e.departmentName||'' |
|
|
|
toOutShell.customerOrgName = e.customerOrgName || '' // 增加单位名称参数 |
|
|
|
toOutShell.departmentName = e.departmentName || '' |
|
|
|
let jsonToOutShell = JSON.stringify(toOutShell) |
|
|
|
console.log('toOutShell', jsonToOutShell) |
|
|
|
let res = await this.$peisAPI.upLoadReportPdf(jsonToOutShell) |
|
|
|
@ -354,7 +390,7 @@ export default { |
|
|
|
{ Name: "firstPage", Value: "pic/peisReportFirstPage.jpg" }, //报告首页主图 |
|
|
|
{ Name: "pageHeader", Value: "pic/peisReportPageHeader.jpg" }, //报告页眉图片 |
|
|
|
{ Name: "pageFooter", Value: "pic/peisReportPageFooter.jpg" }, //报告页脚图片 |
|
|
|
{ Name: "orgSign", Value: rds[0].isPatientOccupationalDisease == 'Y' ? "pic/orgSignOcc.png" : "pic/orgSign.png" }, // 体检章 |
|
|
|
{ Name: "orgSign", Value: rds[0].isPatientOccupationalDisease == 'Y' ? "pic/orgSignOcc.png" : "pic/orgSign.png" }, // 体检章 |
|
|
|
{ Name: 'picExtOne', Value: 'pic/hisLog.jpg' }, // 院徽 |
|
|
|
{ Name: 'picExtTwo', Value: 'pic/orgSignCom.png' }, // 单位公章 |
|
|
|
{ Name: 'resultSign', Value: 'pic/resultSign.png' }, // 结果章,如:职业病(本次体检未发现职业性异常) |
|
|
|
@ -446,7 +482,7 @@ export default { |
|
|
|
}, |
|
|
|
|
|
|
|
async report2pdf(path) { |
|
|
|
if(this.dataTransOpts.tableM.patient_register.length < 1) return |
|
|
|
if (this.dataTransOpts.tableM.patient_register.length < 1) return |
|
|
|
this.elProgress.display = true; |
|
|
|
this.elProgress.percentage = 0; |
|
|
|
|
|
|
|
@ -466,7 +502,7 @@ export default { |
|
|
|
{ Name: "firstPage", Value: "pic/peisReportFirstPage.jpg" }, //报告首页主图 |
|
|
|
{ Name: "pageHeader", Value: "pic/peisReportPageHeader.jpg" }, //报告页眉图片 |
|
|
|
{ Name: "pageFooter", Value: "pic/peisReportPageFooter.jpg" }, //报告页脚图片 |
|
|
|
{ Name: "orgSign", Value: this.dataTransOpts.tableM.patient_register[0].isPatientOccupationalDisease == 'Y' ? "pic/orgSignOcc.png" : "pic/orgSign.png" }, // 体检章 |
|
|
|
{ Name: "orgSign", Value: this.dataTransOpts.tableM.patient_register[0].isPatientOccupationalDisease == 'Y' ? "pic/orgSignOcc.png" : "pic/orgSign.png" }, // 体检章 |
|
|
|
{ Name: 'picExtOne', Value: 'pic/hisLog.jpg' }, // 院徽 |
|
|
|
{ Name: 'picExtTwo', Value: 'pic/orgSignCom.png' }, // 单位公章 |
|
|
|
{ Name: 'resultSign', Value: 'pic/resultSign.png' }, // 结果章,如:职业病(本次体检未发现职业性异常) |
|
|
|
@ -476,7 +512,7 @@ export default { |
|
|
|
], |
|
|
|
IsHealthReport: 'Y' |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
for (let i = 0; i < this.dataTransOpts.tableM.patient_register.length; i++) { |
|
|
|
|
|
|
|
let e = this.dataTransOpts.tableM.patient_register[i]; |
|
|
|
@ -487,9 +523,9 @@ export default { |
|
|
|
if (e.completeFlag == '3') { |
|
|
|
toOutShell.BusinessCode = e.patientRegisterId |
|
|
|
toOutShell.ExportDirectory = `${path}\\${e.patientRegisterNo}_${e.patientName}.pdf` |
|
|
|
toOutShell.customerOrgName = e.customerOrgName||'' // 增加单位名称参数 |
|
|
|
toOutShell.departmentName = e.departmentName||'' |
|
|
|
|
|
|
|
toOutShell.customerOrgName = e.customerOrgName || '' // 增加单位名称参数 |
|
|
|
toOutShell.departmentName = e.departmentName || '' |
|
|
|
|
|
|
|
let jsonToOutShell = JSON.stringify(toOutShell) |
|
|
|
console.log('toOutShell', jsonToOutShell) |
|
|
|
let res = await this.$peisAPI.exportToPdfPre(jsonToOutShell) |
|
|
|
|