|
|
|
@ -2,151 +2,81 @@ |
|
|
|
<div> |
|
|
|
<div> |
|
|
|
<div class="listBtn"> |
|
|
|
<el-button type="primary" class="commonbutton" @click="btnQuery" |
|
|
|
>查询</el-button |
|
|
|
> |
|
|
|
<el-button type="primary" class="commonbutton" @click="btnQuery">查询</el-button> |
|
|
|
</div> |
|
|
|
<div class="listBtn"> |
|
|
|
<el-button |
|
|
|
type="primary" |
|
|
|
class="commonbutton" |
|
|
|
@click="btnImportResult('pacs')" |
|
|
|
>导入检查结果</el-button |
|
|
|
> |
|
|
|
<el-button type="primary" class="commonbutton" @click="btnImportResult('pacs')">导入检查结果</el-button> |
|
|
|
</div> |
|
|
|
<div class="listBtn"> |
|
|
|
<el-button |
|
|
|
type="primary" |
|
|
|
class="commonbutton" |
|
|
|
@click="btnImportResult('lis')" |
|
|
|
>导入检验结果</el-button |
|
|
|
> |
|
|
|
<el-button type="primary" class="commonbutton" @click="btnImportResult('lis')">导入检验结果</el-button> |
|
|
|
</div> |
|
|
|
<div class="listBtn"> |
|
|
|
<el-button type="primary" class="commonbutton" @click="btnReport(true)" |
|
|
|
>预览报告</el-button |
|
|
|
> |
|
|
|
<el-button type="primary" class="commonbutton" @click="btnReport(true)">预览报告</el-button> |
|
|
|
</div> |
|
|
|
<div class="listBtn"> |
|
|
|
<el-button type="primary" class="commonbutton" @click="btnReport(false)" |
|
|
|
>打印报告</el-button |
|
|
|
> |
|
|
|
<el-button type="primary" class="commonbutton" @click="btnReport(false)">打印报告</el-button> |
|
|
|
</div> |
|
|
|
<div class="listBtn"> |
|
|
|
<el-button |
|
|
|
type="primary" |
|
|
|
class="commonbutton" |
|
|
|
@click="btnReportExport(false)" |
|
|
|
>导出 pdf 报告</el-button |
|
|
|
> |
|
|
|
<el-button type="primary" class="commonbutton" @click="btnReportExport(false)">导出 pdf 报告</el-button> |
|
|
|
</div> |
|
|
|
<div class="listBtn"> |
|
|
|
<el-button |
|
|
|
type="primary" |
|
|
|
class="commonbutton" |
|
|
|
@click="btnGetReport('Y')" |
|
|
|
>领取报告</el-button |
|
|
|
> |
|
|
|
<el-button type="primary" class="commonbutton" @click="btnGetReport('Y')">领取报告</el-button> |
|
|
|
</div> |
|
|
|
<div class="listBtn"> |
|
|
|
<el-button type="primary" class="commonbutton" @click="btnUpReport" |
|
|
|
>上传Web</el-button |
|
|
|
> |
|
|
|
<el-button type="primary" class="commonbutton" @click="btnUpReport">上传Web</el-button> |
|
|
|
</div> |
|
|
|
<div class="listBtn"> |
|
|
|
<el-button type="primary" class="commonbutton" @click="btnCheckHistory" |
|
|
|
>历次结果</el-button |
|
|
|
> |
|
|
|
<el-button type="primary" class="commonbutton" @click="btnCheckHistory">历次结果</el-button> |
|
|
|
</div> |
|
|
|
<div class="listBtn"> |
|
|
|
<!-- <download-excel :fields="jsonFields" :fetch="btnExport" type="xls" :name="xlsName"> |
|
|
|
<el-button type="" class="commonbutton" style="width:100%">人员信息导出</el-button> |
|
|
|
</download-excel> --> |
|
|
|
<el-button type="" class="commonbutton" @click="btnExport" |
|
|
|
>人员信息导出</el-button |
|
|
|
> |
|
|
|
<el-button type="" class="commonbutton" @click="btnExport">人员信息导出</el-button> |
|
|
|
</div> |
|
|
|
<div class="listBtn"> |
|
|
|
<el-button type="primary" class="commonbutton" @click="exportZip" |
|
|
|
>导出Zip</el-button |
|
|
|
> |
|
|
|
<el-button type="primary" class="commonbutton" @click="exportZip">导出Zip</el-button> |
|
|
|
</div> |
|
|
|
<div class="listBtn"> |
|
|
|
<el-button type="primary" class="commonbutton" @click="exportJpg" |
|
|
|
>导出Jpg</el-button |
|
|
|
> |
|
|
|
<el-button type="primary" class="commonbutton" @click="exportJpg">导出Jpg</el-button> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div> |
|
|
|
<!-- 通用进度条 --> |
|
|
|
<el-dialog |
|
|
|
title="数据处理中……" |
|
|
|
:visible.sync="elProgress.display" |
|
|
|
width="640px" |
|
|
|
:show-close="false" |
|
|
|
:close-on-click-modal="false" |
|
|
|
:append-to-body="true" |
|
|
|
> |
|
|
|
<el-dialog title="数据处理中……" :visible.sync="elProgress.display" width="640px" :show-close="false" |
|
|
|
: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" |
|
|
|
> |
|
|
|
<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; margin: 0 0 30px 10px"> |
|
|
|
<span class="spanClass">领取人</span> |
|
|
|
<el-input |
|
|
|
placeholder="领取人" |
|
|
|
v-model="receiveReport.reportReceiveName" |
|
|
|
size="small" |
|
|
|
clearable |
|
|
|
style="width: 120px" |
|
|
|
/> |
|
|
|
<el-input placeholder="领取人" v-model="receiveReport.reportReceiveName" size="small" clearable |
|
|
|
style="width: 120px" /> |
|
|
|
</div> |
|
|
|
<div style="display: flex; justify-content: space-between"> |
|
|
|
<div></div> |
|
|
|
<div style="display: flex"> |
|
|
|
<div> |
|
|
|
<el-button |
|
|
|
type="primary" |
|
|
|
class="commonbutton" |
|
|
|
@click="btnGetReportOk" |
|
|
|
>确定</el-button |
|
|
|
> |
|
|
|
<el-button type="primary" class="commonbutton" @click="btnGetReportOk">确定</el-button> |
|
|
|
</div> |
|
|
|
<div style="margin-left: 10px"> |
|
|
|
<el-button |
|
|
|
type="primary" |
|
|
|
class="commonbutton" |
|
|
|
@click="dialogGetReport = false" |
|
|
|
>取消</el-button |
|
|
|
> |
|
|
|
<el-button type="primary" class="commonbutton" @click="dialogGetReport = false">取消</el-button> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</el-dialog> |
|
|
|
|
|
|
|
<el-dialog |
|
|
|
title="历次结果" |
|
|
|
:visible.sync="dialogVisibleCheckHistory" |
|
|
|
:close-on-click-modal="false" |
|
|
|
width="900px" |
|
|
|
> |
|
|
|
<el-dialog title="历次结果" :visible.sync="dialogVisibleCheckHistory" :close-on-click-modal="false" width="900px"> |
|
|
|
<div> |
|
|
|
<el-tabs v-model="tabChoosed"> |
|
|
|
<!----> |
|
|
|
<el-tab-pane label="明细结果" name="2"> |
|
|
|
<CheckDetails |
|
|
|
:patientRegisterId="dataTransOpts.tableS.patient_register.id" |
|
|
|
:refParams="{ place: 'doctor' }" |
|
|
|
/> |
|
|
|
<CheckDetails :patientRegisterId="dataTransOpts.tableS.patient_register.id" |
|
|
|
:refParams="{ place: 'doctor' }" /> |
|
|
|
</el-tab-pane> |
|
|
|
<el-tab-pane label="本次图文报告" name="4"> |
|
|
|
<ImageTextReport :refParams="{ place: 'doctor' }" /> |
|
|
|
@ -155,16 +85,10 @@ |
|
|
|
<SumItemsType :patientId="doctorCheck.prBase.patientId" /> |
|
|
|
</el-tab-pane> --> |
|
|
|
<el-tab-pane label="横向对比" name="5"> |
|
|
|
<SumItems |
|
|
|
:patientId="dataTransOpts.tableS.patient_register.id" |
|
|
|
:refParams="{ place: 'doctor' }" |
|
|
|
/> |
|
|
|
<SumItems :patientId="dataTransOpts.tableS.patient_register.id" :refParams="{ place: 'doctor' }" /> |
|
|
|
</el-tab-pane> |
|
|
|
<el-tab-pane label="历次综述" name="6"> |
|
|
|
<SumHistory |
|
|
|
:patientId="dataTransOpts.tableS.patient_register.id" |
|
|
|
:refParams="{ place: 'doctor' }" |
|
|
|
/> |
|
|
|
<SumHistory :patientId="dataTransOpts.tableS.patient_register.id" :refParams="{ place: 'doctor' }" /> |
|
|
|
</el-tab-pane> |
|
|
|
</el-tabs> |
|
|
|
</div> |
|
|
|
@ -200,7 +124,7 @@ export default { |
|
|
|
}, |
|
|
|
data() { |
|
|
|
return { |
|
|
|
medical_report_print_after_summary_check_is_audit:'N', // Y-审核后才可以打印报告,N-没审核未总检亦可以打印 |
|
|
|
medical_report_print_after_summary_check_is_audit: 'N', // Y-审核后才可以打印报告,N-没审核未总检亦可以打印 |
|
|
|
dialogGetReport: false, |
|
|
|
dialogVisibleCheckHistory: false, |
|
|
|
tabChoosed: "2", |
|
|
|
@ -384,9 +308,9 @@ export default { |
|
|
|
created() { |
|
|
|
// 获取 是否审核才能打印报告 |
|
|
|
postapi("/api/app/SysParmValue/GetSysParmValueBySysParmId", |
|
|
|
{ sysParmId:"medical_report_print_after_summary_check_is_audit" } |
|
|
|
{ sysParmId: "medical_report_print_after_summary_check_is_audit" } |
|
|
|
).then(res => { |
|
|
|
if(res.code > -1){ |
|
|
|
if (res.code > -1) { |
|
|
|
this.medical_report_print_after_summary_check_is_audit = res.data.toUpperCase() || 'N' |
|
|
|
} |
|
|
|
}); |
|
|
|
@ -800,7 +724,7 @@ export default { |
|
|
|
let user = window.sessionStorage.getItem("user"); |
|
|
|
let toOutShell = { |
|
|
|
ReportCode, |
|
|
|
Templatecode:undefined, |
|
|
|
Templatecode: undefined, // 新加打印模版 |
|
|
|
token, |
|
|
|
isBuildImage: "N", |
|
|
|
IsUploadPdf: "N", |
|
|
|
@ -829,17 +753,26 @@ export default { |
|
|
|
], |
|
|
|
}; |
|
|
|
|
|
|
|
// 总检审核后才能打印(预览用) |
|
|
|
if(this.medical_report_print_after_summary_check_is_audit == 'Y'){ |
|
|
|
//if (rds[0].completeFlag != "3") toOutShell.preViewCanPrint = "N"; |
|
|
|
if (rds[0].isAudit == "N") toOutShell.preViewCanPrint = "N"; |
|
|
|
} |
|
|
|
|
|
|
|
// let res = await postapi(`/api/app/printreport/getpeisreport?PatientRegisterId=${this.patientRegister.patientRegisterId}`) |
|
|
|
// toOutShell.ReportTable = res.data |
|
|
|
let JSONtoOutShell = JSON.stringify(toOutShell); |
|
|
|
let JSONtoOutShell = '' |
|
|
|
if (isPreview) { |
|
|
|
console.log("$peisAPI.printPre", toOutShell,JSONtoOutShell); |
|
|
|
toOutShell.ReportCode = |
|
|
|
rds[0].isPatientOccupationalDisease == "Y" ? "0006" : "0005"; |
|
|
|
|
|
|
|
toOutShell.BusinessCode = rds[0].patientRegisterId; |
|
|
|
|
|
|
|
// 选择报告打印模版 |
|
|
|
if (toOutShell.ReportCode == "0005" && rd.reportFormatTemplateId) toOutShell.Templatecode = rds[0].reportFormatTemplateId |
|
|
|
|
|
|
|
|
|
|
|
// 审核了才可以打印 |
|
|
|
if (this.medical_report_print_after_summary_check_is_audit == 'Y') { |
|
|
|
//if (rd.completeFlag != "3") toOutShell.preViewCanPrint = "N"; |
|
|
|
if (rds[0].isAudit == "N") toOutShell.preViewCanPrint = "N"; |
|
|
|
} |
|
|
|
|
|
|
|
JSONtoOutShell = JSON.stringify(toOutShell); |
|
|
|
console.log("$peisAPI.printPre", toOutShell, JSONtoOutShell); |
|
|
|
this.$peisAPI |
|
|
|
.printPre(JSONtoOutShell) |
|
|
|
.then((res) => { |
|
|
|
@ -864,13 +797,13 @@ export default { |
|
|
|
toOutShell.BusinessCode = rd.patientRegisterId; |
|
|
|
|
|
|
|
// 选择报告打印模版 |
|
|
|
if(toOutShell.ReportCode == "0005" && rd.reportFormatTemplateId) toOutShell.Templatecode = rd.reportFormatTemplateId |
|
|
|
if (toOutShell.ReportCode == "0005" && rd.reportFormatTemplateId) toOutShell.Templatecode = rd.reportFormatTemplateId |
|
|
|
|
|
|
|
|
|
|
|
// 审核了才可以打印 |
|
|
|
if(this.medical_report_print_after_summary_check_is_audit == 'Y'){ |
|
|
|
if (this.medical_report_print_after_summary_check_is_audit == 'Y') { |
|
|
|
//if (rd.completeFlag != "3") toOutShell.preViewCanPrint = "N"; |
|
|
|
if(rd.isAudit == "N") toOutShell.preViewCanPrint = "N"; |
|
|
|
if (rd.isAudit == "N") toOutShell.preViewCanPrint = "N"; |
|
|
|
} |
|
|
|
|
|
|
|
if (toOutShell.preViewCanPrint == "N") { |
|
|
|
@ -884,7 +817,7 @@ export default { |
|
|
|
try { |
|
|
|
JSONtoOutShell = JSON.stringify(toOutShell); |
|
|
|
// 防止打印太多数据 只输出 第一条 |
|
|
|
if(i == 0) console.log('this.$peisAPI.print',toOutShell,JSONtoOutShell) |
|
|
|
if (i == 0) console.log('this.$peisAPI.print', toOutShell, JSONtoOutShell) |
|
|
|
|
|
|
|
let lres = await this.$peisAPI.print(JSONtoOutShell); |
|
|
|
if (JSON.parse(lres).code < 0) { |
|
|
|
@ -1006,17 +939,17 @@ export default { |
|
|
|
try { |
|
|
|
// 石家庄长城 手动导出没有总检也可以导出 |
|
|
|
//if (e.completeFlag == "3") { |
|
|
|
toOutShell.BusinessCode = e.patientRegisterId; |
|
|
|
toOutShell.ExportDirectory = `${path}\\${e.patientName}_${e.patientRegisterNo}.pdf`; |
|
|
|
toOutShell.customerOrgName = e.customerOrgName || ""; // 增加单位名称参数 |
|
|
|
toOutShell.departmentName = e.departmentName || ""; |
|
|
|
|
|
|
|
let jsonToOutShell = JSON.stringify(toOutShell); |
|
|
|
console.log("toOutShell", jsonToOutShell); |
|
|
|
let res = await this.$peisAPI.exportToPdfPre(jsonToOutShell); |
|
|
|
if (JSON.parse(res).code < 0) { |
|
|
|
console.log("this.$peisAPI.exportToPdfPre err", res); |
|
|
|
} |
|
|
|
toOutShell.BusinessCode = e.patientRegisterId; |
|
|
|
toOutShell.ExportDirectory = `${path}\\${e.patientName}_${e.patientRegisterNo}.pdf`; |
|
|
|
toOutShell.customerOrgName = e.customerOrgName || ""; // 增加单位名称参数 |
|
|
|
toOutShell.departmentName = e.departmentName || ""; |
|
|
|
|
|
|
|
let jsonToOutShell = JSON.stringify(toOutShell); |
|
|
|
console.log("toOutShell", jsonToOutShell); |
|
|
|
let res = await this.$peisAPI.exportToPdfPre(jsonToOutShell); |
|
|
|
if (JSON.parse(res).code < 0) { |
|
|
|
console.log("this.$peisAPI.exportToPdfPre err", res); |
|
|
|
} |
|
|
|
//} |
|
|
|
} catch (error) { |
|
|
|
console.log("error", error); |
|
|
|
@ -1088,13 +1021,13 @@ export default { |
|
|
|
newRow.isAudit == "Y" |
|
|
|
? "已审核" |
|
|
|
: dddw( |
|
|
|
this.dict.completeFlag, |
|
|
|
"id", |
|
|
|
newRow.completeFlag, |
|
|
|
"displayName" |
|
|
|
); |
|
|
|
this.dict.completeFlag, |
|
|
|
"id", |
|
|
|
newRow.completeFlag, |
|
|
|
"displayName" |
|
|
|
); |
|
|
|
newRow.isReportPrint = newRow.isReportPrint == "Y" ? "√" : ""; |
|
|
|
if (newRow.idNo) newRow.idNo = "\u200C"+newRow.idNo; |
|
|
|
if (newRow.idNo) newRow.idNo = "\u200C" + newRow.idNo; |
|
|
|
if (newRow.patientRegisterNo) |
|
|
|
newRow.patientRegisterNo = "\u200C" + newRow.patientRegisterNo; |
|
|
|
if (newRow.patientNo) newRow.patientNo = "\u200C" + newRow.patientNo; |
|
|
|
|