|
|
|
@ -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++) { |
|
|
|
@ -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++) { |
|
|
|
@ -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) |
|
|
|
@ -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; |
|
|
|
|
|
|
|
@ -487,8 +523,8 @@ 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) |
|
|
|
|