|
|
|
@ -35,19 +35,20 @@ |
|
|
|
</el-select> |
|
|
|
</div> |
|
|
|
<div class="query"> |
|
|
|
<el-button @click="btnQuery(true)" size="small" class="commonbutton" :disabled="format == 2">预览</el-button> |
|
|
|
<el-button @click="btnQuery(true)" size="small" class="commonbutton" :disabled="format == 2" v-loading.fullscreen.lock="fullscreenLoading">预览</el-button> |
|
|
|
<el-button @click="btnQuery(false)" size="small" class="commonbutton" :disabled="format == 2">打印</el-button> |
|
|
|
</div> |
|
|
|
<div class="query"> |
|
|
|
<el-button size="small" class="commonbutton" :disabled="format != 2" @click="query">查询</el-button> |
|
|
|
</div> |
|
|
|
<div class="query"> |
|
|
|
<el-button size="small" class="commonbutton" :disabled="format != 2" @click="handleExport">导出excel</el-button> |
|
|
|
<el-button size="small" class="commonbutton" :disabled="format != 2" |
|
|
|
@click="handleExport">导出excel</el-button> |
|
|
|
</div> |
|
|
|
<!-- <div class="query"> |
|
|
|
<el-button size="small" class="commonbutton" :disabled="format != 2" @click="onPrint">打印</el-button> |
|
|
|
</div> --> |
|
|
|
|
|
|
|
|
|
|
|
</div> |
|
|
|
<div v-show="format == 2" ref="imageDom2"> |
|
|
|
<div style="background-color: #fff; padding: 15px; border-radius: 8px"> |
|
|
|
@ -57,18 +58,18 @@ |
|
|
|
: window.pageHeight - 185 - 25 |
|
|
|
: '' |
|
|
|
" :data="tableData" id="standardTableData" ref="standardTableData" style="width: 100%"> |
|
|
|
<el-table-column type="index" label="序号" width="40" align="center"/> |
|
|
|
<el-table-column prop="patientRegisterNo" label="人员条码号"/> |
|
|
|
<el-table-column prop="patientName" label="姓名"/> |
|
|
|
<el-table-column prop="jobType" label="工种"/> |
|
|
|
<el-table-column prop="poisonWorkTime" label="接害工龄"/> |
|
|
|
<el-table-column prop="poisonNames" label="毒害因素"/> |
|
|
|
<el-table-column prop="anomalyIndex" label="异常指标"/> |
|
|
|
<el-table-column prop="handlingSuggestions" label="处理意见"/> |
|
|
|
<el-table-column prop="medicalConclusion" label="体检结论"/> |
|
|
|
<el-table-column prop="ocCheckTypeName" label="职业病检查类别"/> |
|
|
|
<el-table-column prop="medicalStartDate" label="体检日期"/> |
|
|
|
<el-table-column prop="summaryDoctorName" label="总检医生"/> |
|
|
|
<el-table-column type="index" label="序号" width="40" align="center" /> |
|
|
|
<el-table-column prop="patientRegisterNo" label="人员条码号" /> |
|
|
|
<el-table-column prop="patientName" label="姓名" /> |
|
|
|
<el-table-column prop="jobType" label="工种" /> |
|
|
|
<el-table-column prop="poisonWorkTime" label="接害工龄" /> |
|
|
|
<el-table-column prop="poisonNames" label="毒害因素" /> |
|
|
|
<el-table-column prop="anomalyIndex" label="异常指标" /> |
|
|
|
<el-table-column prop="handlingSuggestions" label="处理意见" /> |
|
|
|
<el-table-column prop="medicalConclusion" label="体检结论" /> |
|
|
|
<el-table-column prop="ocCheckTypeName" label="职业病检查类别" /> |
|
|
|
<el-table-column prop="medicalStartDate" label="体检日期" /> |
|
|
|
<el-table-column prop="summaryDoctorName" label="总检医生" /> |
|
|
|
</el-table> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
@ -98,7 +99,6 @@ |
|
|
|
<script> |
|
|
|
import moment from "moment"; |
|
|
|
import { mapState, mapActions } from "vuex"; |
|
|
|
import { Loading } from "element-ui"; |
|
|
|
import { getapi, postapi, putapi, deletapi } from "@/api/api"; |
|
|
|
import { |
|
|
|
dddw, |
|
|
|
@ -123,6 +123,7 @@ export default { |
|
|
|
startDate: "", |
|
|
|
endDate: "", |
|
|
|
reportUrl: "", |
|
|
|
fullscreenLoading:false, |
|
|
|
}; |
|
|
|
}, |
|
|
|
created() { |
|
|
|
@ -138,7 +139,7 @@ export default { |
|
|
|
...mapState(["window", "dict", "patientRegister", "report"]), |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
query(){ |
|
|
|
query() { |
|
|
|
let body = {}, |
|
|
|
customerOrgs = []; |
|
|
|
if (this.report.dataCusOrgOCX.length > 0) { |
|
|
|
@ -171,14 +172,14 @@ export default { |
|
|
|
body.customerOrgs = customerOrgs; |
|
|
|
if (this.completeFlag) body.completeFlag = this.completeFlag; |
|
|
|
body.isAudit = this.classification; |
|
|
|
postapi( |
|
|
|
"/api/app/OccupationalDiseaseReport/GetCompanyOccupationalDiseaseDataExcel", |
|
|
|
body |
|
|
|
).then((res) => { |
|
|
|
if (res.code != -1) { |
|
|
|
this.tableData = res.data; |
|
|
|
} |
|
|
|
}); |
|
|
|
postapi( |
|
|
|
"/api/app/OccupationalDiseaseReport/GetCompanyOccupationalDiseaseDataExcel", |
|
|
|
body |
|
|
|
).then((res) => { |
|
|
|
if (res.code != -1) { |
|
|
|
this.tableData = res.data; |
|
|
|
} |
|
|
|
}); |
|
|
|
}, |
|
|
|
btnQuery(isPreview) { |
|
|
|
let customerOrgs = []; |
|
|
|
@ -222,7 +223,7 @@ export default { |
|
|
|
//暂时未区分格式 |
|
|
|
// if (this.format == 0) |
|
|
|
|
|
|
|
let ReportCode = this.format == 0 ? '0009':'0010'; |
|
|
|
let ReportCode = this.format == 0 ? '0009' : '0010'; |
|
|
|
let token = window.sessionStorage.getItem('token'); |
|
|
|
let user = window.sessionStorage.getItem('user'); |
|
|
|
|
|
|
|
@ -241,18 +242,18 @@ export default { |
|
|
|
{ Name: 'picExtTwo', Value: 'pic/orgSignCom.png' }, // 单位公章 |
|
|
|
{ Name: 'resultSign', Value: 'pic/resultSign.png' }, //结果签名 |
|
|
|
], |
|
|
|
BusinessCode:JSON.stringify(customerOrgs) |
|
|
|
BusinessCode: JSON.stringify(customerOrgs) |
|
|
|
}; |
|
|
|
|
|
|
|
console.log('toOutShell', toOutShell) |
|
|
|
let loading = Loading.service({ |
|
|
|
lock: true, |
|
|
|
text: "正在加载中,请稍后", |
|
|
|
spinner: "el-icon-loading", |
|
|
|
background: "rgba(0, 0, 0, 0)", |
|
|
|
customClass: "boxStyle" |
|
|
|
}); |
|
|
|
|
|
|
|
// let loading = Loading.service({ |
|
|
|
// lock: true, |
|
|
|
// text: "正在加载中,请稍后", |
|
|
|
// spinner: "el-icon-loading", |
|
|
|
// background: "rgba(0, 0, 0, 0)", |
|
|
|
// customClass: "boxStyle" |
|
|
|
// }); |
|
|
|
this.fullscreenLoading = true |
|
|
|
if (isPreview) { |
|
|
|
this.$peisAPI.printPre(JSON.stringify(toOutShell)) |
|
|
|
.then(res => { |
|
|
|
@ -265,7 +266,8 @@ export default { |
|
|
|
this.$message.error({ showClose: true, message: err }) |
|
|
|
}) |
|
|
|
.finally(() => { |
|
|
|
loading.close() |
|
|
|
//loading.close() |
|
|
|
this.fullscreenLoading = false |
|
|
|
}); |
|
|
|
} else { |
|
|
|
this.$peisAPI.print(JSON.stringify(toOutShell)) |
|
|
|
|