pengjun 2 weeks ago
parent
commit
ce71db2386
  1. 482
      src/views/customerReport/detailedIitems.vue
  2. 228
      src/views/customerReport/personnelPositive.vue
  3. 2
      src/views/customerReport/positiveResultsList.vue

482
src/views/customerReport/detailedIitems.vue

@ -4,13 +4,22 @@
<div class="middlebox">
<div class="contenttitle">
客户报表 /
<span class="contenttitleBold"
>明细项目具体结果统计</span
>
<span class="contenttitleBold">明细项目具体结果统计</span>
</div>
</div>
<div :style="'display: block;'">
<div style="background-color: #fff; padding: 15px; border-radius: 8px;display: flex;flex-wrap: wrap; margin-bottom: 10px;height:35px;margin-top: 7px;">
<div
style="
background-color: #fff;
padding: 15px;
border-radius: 8px;
display: flex;
flex-wrap: wrap;
margin-bottom: 10px;
height: 35px;
margin-top: 7px;
"
>
<div class="query">
<span>体检单位</span>
<el-input
@ -59,89 +68,171 @@
</el-select>
</div>
<div class="query">
<el-button @click="btnQuery" size="small" class="commonbutton">查询</el-button>
<el-button @click="btnQuery" size="small" class="commonbutton"
>查询</el-button
>
</div>
<div class="query">
<el-button @click="handleExport" size="small" class="commonbutton">导出excel</el-button>
<el-button @click="handleExport" size="small" class="commonbutton"
>导出excel</el-button
>
</div>
<div class="query">
<el-button @click="onPrint" size="small" class="commonbutton">打印</el-button>
<el-button @click="onPrint" size="small" class="commonbutton"
>打印</el-button
>
</div>
</div>
<div v-show="format == 0" style="background-color: #fff; padding: 15px; border-radius: 8px;">
<div
v-show="format == 0"
style="background-color: #fff; padding: 15px; border-radius: 8px"
>
<div ref="imageDom0">
<el-table
:data="dataList"
border
:height="flag?window.pageHeight < 600 ? 415 : window.pageHeight - 185-20:''"
row-key="id"
highlight-current-row
ref="dataList"
id="table"
show-summary
:summary-method="summarizeRegisterCount"
:header-cell-class-name="headerStyle"
style="width:100%;"
>
<el-table-column label="明细项目具体结果统计">
<el-table-column :label="'项目名称:' + columnData">
<el-table-column prop="patientName" label="姓名"></el-table-column>
<el-table-column prop="sexName" label="性别"></el-table-column>
<el-table-column prop="age" label="年龄"></el-table-column>
<el-table-column
prop="medicalTimes"
label="体检次数"
></el-table-column>
<el-table-column
v-for="(item, index) in columnData"
:key="index"
:prop="item"
:label="item"
align="left"
:data="dataList"
border
:height="
flag
? window.pageHeight < 600
? 415
: window.pageHeight - 185 - 20
: ''
"
row-key="id"
highlight-current-row
ref="dataList"
id="table"
show-summary
:summary-method="summarizeRegisterCount"
:header-cell-class-name="headerStyle"
style="width: 100%"
>
</el-table-column>
</el-table-column>
</el-table-column>
</el-table>
<el-table-column label="明细项目具体结果统计">
<el-table-column :label="'项目名称:' + columnData">
<el-table-column
type="index"
label="序号"
></el-table-column>
<el-table-column
prop="customerOrgParentName"
label="单位"
></el-table-column>
<el-table-column
prop="customerOrgName"
label="部门"
></el-table-column>
<el-table-column
prop="patientNo"
label="档案号"
></el-table-column>
<el-table-column
prop="patientRegisterNo"
label="条码号"
></el-table-column>
<el-table-column
prop="patientName"
label="姓名"
></el-table-column>
<el-table-column
prop="sexName"
label="性别"
></el-table-column>
<el-table-column prop="age" label="年龄"></el-table-column>
<el-table-column
prop="medicalTimes"
label="体检次数"
></el-table-column>
<el-table-column
v-for="(item, index) in columnData"
:key="index"
:prop="item"
:label="item"
align="left"
>
</el-table-column>
</el-table-column>
</el-table-column>
</el-table>
</div>
</div>
<div v-show="format == 1" style="background-color: #fff; padding: 15px; border-radius: 8px;">
<div
v-show="format == 1"
style="background-color: #fff; padding: 15px; border-radius: 8px"
>
<div ref="imageDom1">
<el-table
:data="dataLists"
border
:height="flag?window.pageHeight < 600 ? 415 : window.pageHeight - 185-20:''"
row-key="id"
highlight-current-row
ref="dataLists"
id="tables"
show-summary
:summary-method="summarizeRegisterCount"
:header-cell-class-name="headerStyle"
style="width:100%;"
>
<el-table-column label="明细项目具体结果统计">
<el-table-column :label="'项目名称:' + columnData">
<el-table-column prop="patientName" label="姓名"></el-table-column>
<el-table-column prop="sexName" label="性别"></el-table-column>
<el-table-column prop="age" label="年龄"></el-table-column>
<el-table-column
prop="medicalTimes"
label="体检次数"
></el-table-column>
<el-table-column
v-for="(item, index) in columnData"
:key="index"
:prop="item"
:label="item"
align="left"
:data="dataLists"
border
:height="
flag
? window.pageHeight < 600
? 415
: window.pageHeight - 185 - 20
: ''
"
row-key="id"
highlight-current-row
ref="dataLists"
id="tables"
show-summary
:summary-method="summarizeRegisterCount"
:header-cell-class-name="headerStyle"
style="width: 100%"
>
</el-table-column>
<el-table-column prop="diagnosisNames" label="诊断"></el-table-column>
<el-table-column prop="sumSummarys" label="结论"></el-table-column>
</el-table-column>
</el-table-column>
</el-table>
<el-table-column label="明细项目具体结果统计">
<el-table-column :label="'项目名称:' + columnData">
<el-table-column
type="index"
label="序号"
></el-table-column>
<el-table-column
prop="customerOrgParentName"
label="单位"
></el-table-column>
<el-table-column
prop="customerOrgName"
label="部门"
></el-table-column>
<el-table-column
prop="patientNo"
label="档案号"
></el-table-column>
<el-table-column
prop="patientRegisterNo"
label="条码号"
></el-table-column>
<el-table-column
prop="patientName"
label="姓名"
></el-table-column>
<el-table-column
prop="sexName"
label="性别"
></el-table-column>
<el-table-column prop="age" label="年龄"></el-table-column>
<el-table-column
prop="medicalTimes"
label="体检次数"
></el-table-column>
<el-table-column
v-for="(item, index) in columnData"
:key="index"
:prop="item"
:label="item"
align="left"
>
</el-table-column>
<el-table-column
prop="diagnosisNames"
label="诊断"
></el-table-column>
<el-table-column
prop="sumSummarys"
label="结论"
></el-table-column>
</el-table-column>
</el-table-column>
</el-table>
</div>
</div>
</div>
@ -196,7 +287,7 @@ export default {
columnData: [],
flag: true,
category: [],
format: "0"
format: "0",
};
},
@ -320,11 +411,10 @@ export default {
// this.dict.asbItemAll = res.data;
// }
// });
},
onPrint() {
this.flag = false;
this.flag = false;
let index = "";
if (this.format == 0) {
index = "imageDom0";
@ -357,9 +447,9 @@ page-break-before: avoid;}}`, // 去除页眉页脚
});
},
handleExport() {
if(this.format==0){
if (this.format == 0) {
exportToExcel("#table", "明细项目结果统计", false);
}else{
} else {
exportToExcel("#tables", "明细项目结果统计", false);
}
},
@ -368,7 +458,7 @@ page-break-before: avoid;}}`, // 去除页眉页脚
return "left-align";
}
},
summarizeRegisterCount(param) {
summarizeRegisterCount(param) {
const { columns, data } = param;
const sums = [];
columns.forEach((column, index) => {
@ -402,7 +492,7 @@ page-break-before: avoid;}}`, // 去除页眉页脚
let body = {},
customerOrgs = [],
asbitemIds = [];
this.columnData=[]
this.columnData = [];
if (this.project.dataCusOrgOCX.length > 0) {
this.project.dataCusOrgOCX.forEach((e) => {
@ -451,117 +541,127 @@ page-break-before: avoid;}}`, // 去除页眉页脚
body
).then((res) => {
if (res.code != -1) {
for(let i=0;i<res.data.length;i++){
for(let k=0;k<res.data[i].registerCheckItems.length;k++){
this.$set(res.data[i],res.data[i].registerCheckItems[k].itemName,res.data[i].registerCheckItems[k].result)
this.columnData.push(res.data[i].registerCheckItems[k].itemName)
for (let i = 0; i < res.data.length; i++) {
for (let k = 0; k < res.data[i].registerCheckItems.length; k++) {
this.$set(
res.data[i],
res.data[i].registerCheckItems[k].itemName,
res.data[i].registerCheckItems[k].result
);
this.columnData.push(
res.data[i].registerCheckItems[k].itemName
);
}
}
}
this.columnData = Array.from(new Set(this.columnData));
this.dataList=[...res.data]
this.$nextTick(() => {
this.$refs.dataList.doLayout();
});
this.columnData = Array.from(new Set(this.columnData));
this.dataList = [...res.data];
this.$nextTick(() => {
this.$refs.dataList.doLayout();
});
}
});
}else{
postapi(
} else {
postapi(
"/api/customerreport/getitemspecificresultreportordiagnosis",
body
).then((res) => {
if (res.code != -1) {
for(let i=0;i<res.data.length;i++){
for(let k=0;k<res.data[i].registerCheckItems.length;k++){
this.$set(res.data[i],res.data[i].registerCheckItems[k].itemName,res.data[i].registerCheckItems[k].result)
this.columnData.push(res.data[i].registerCheckItems[k].itemName)
for (let i = 0; i < res.data.length; i++) {
for (let k = 0; k < res.data[i].registerCheckItems.length; k++) {
this.$set(
res.data[i],
res.data[i].registerCheckItems[k].itemName,
res.data[i].registerCheckItems[k].result
);
this.columnData.push(
res.data[i].registerCheckItems[k].itemName
);
}
}
}
this.columnData = Array.from(new Set(this.columnData));
this.dataLists=[...res.data]
this.$nextTick(() => {
this.$refs.dataLists.doLayout();
});
this.columnData = Array.from(new Set(this.columnData));
this.dataLists = [...res.data];
this.$nextTick(() => {
this.$refs.dataLists.doLayout();
});
}
});
}
// postapi("/api/customerreport/getasbitemspecificresultreport", body).then(
// (res) => {
// if (res.code != -1) {
// let bodys = res.data;
// let that = this;
// let template = {
// prop: "",
// lable: "",
// };
// that.columnData = [];
// that.category = [];
// for (let i = 0; i < bodys.length; i++) {
// for (let k = 0; k < bodys[i].registerChecks.length; k++) {
// that.category.push(bodys[i].registerChecks[k].checkName);
// }
// }
// that.category = Array.from(new Set(that.category));
// for (let m = 0; m < that.category.length; m++) {
// for (let i = 0; i < bodys.length; i++) {
// for (let k = 0; k < bodys[i].registerChecks.length; k++) {
// this.$set(
// bodys[i],
// // bodys[i].registerChecks[k].registerCheckId +
// bodys[i].registerChecks[k].checkName +
// "",
// bodys[i].registerChecks[k].registerCheckSummarys
// );
// if (bodys[i].registerChecks[k].checkName == that.category[m]) {
// for (let j = 0;j < bodys[i].registerChecks[k].registerCheckItems.length;j++) {
// let templatess = JSON.parse(JSON.stringify(template));
// templatess.prop =
// // bodys[i].registerChecks[k].registerCheckId +
// bodys[i].registerChecks[k].checkName +
// bodys[i].registerChecks[k].registerCheckItems[j]
// .itemName;
// templatess.lable =
// // bodys[i].registerChecks[k].checkName +
// // "/" +
// bodys[i].registerChecks[k].registerCheckItems[j]
// .itemName;
// that.columnData.push(templatess);
// this.$set(
// bodys[i],
// // bodys[i].registerChecks[k].registerCheckId +
// bodys[i].registerChecks[k].checkName +
// bodys[i].registerChecks[k].registerCheckItems[j]
// .itemName,
// bodys[i].registerChecks[k].registerCheckItems[j].result
// )
// }
// }
// }
// }
// let templates = JSON.parse(JSON.stringify(template));
// templates.prop =that.category[m] +"";
// templates.lable = that.category[m] + "";
// that.columnData.push(templates);
// }
// this.$nextTick(() => {
// this.$refs.dataList.doLayout();
// });
// let map = new Map();
// let qc = this.columnData.filter(
// (key) => !map.has(key.prop) && map.set(key.prop, 1)
// );
// // qc.sort(function (a, b) {
// // return a.lable < b.lable ? -1 : 1; //
// // })
// this.columnData = qc;
// this.dataList = bodys;
// }
// }
// );
// postapi("/api/customerreport/getasbitemspecificresultreport", body).then(
// (res) => {
// if (res.code != -1) {
// let bodys = res.data;
// let that = this;
// let template = {
// prop: "",
// lable: "",
// };
// that.columnData = [];
// that.category = [];
// for (let i = 0; i < bodys.length; i++) {
// for (let k = 0; k < bodys[i].registerChecks.length; k++) {
// that.category.push(bodys[i].registerChecks[k].checkName);
// }
// }
// that.category = Array.from(new Set(that.category));
// for (let m = 0; m < that.category.length; m++) {
// for (let i = 0; i < bodys.length; i++) {
// for (let k = 0; k < bodys[i].registerChecks.length; k++) {
// this.$set(
// bodys[i],
// // bodys[i].registerChecks[k].registerCheckId +
// bodys[i].registerChecks[k].checkName +
// "",
// bodys[i].registerChecks[k].registerCheckSummarys
// );
// if (bodys[i].registerChecks[k].checkName == that.category[m]) {
// for (let j = 0;j < bodys[i].registerChecks[k].registerCheckItems.length;j++) {
// let templatess = JSON.parse(JSON.stringify(template));
// templatess.prop =
// // bodys[i].registerChecks[k].registerCheckId +
// bodys[i].registerChecks[k].checkName +
// bodys[i].registerChecks[k].registerCheckItems[j]
// .itemName;
// templatess.lable =
// // bodys[i].registerChecks[k].checkName +
// // "/" +
// bodys[i].registerChecks[k].registerCheckItems[j]
// .itemName;
// that.columnData.push(templatess);
// this.$set(
// bodys[i],
// // bodys[i].registerChecks[k].registerCheckId +
// bodys[i].registerChecks[k].checkName +
// bodys[i].registerChecks[k].registerCheckItems[j]
// .itemName,
// bodys[i].registerChecks[k].registerCheckItems[j].result
// )
// }
// }
// }
// }
// let templates = JSON.parse(JSON.stringify(template));
// templates.prop =that.category[m] +"";
// templates.lable = that.category[m] + "";
// that.columnData.push(templates);
// }
// this.$nextTick(() => {
// this.$refs.dataList.doLayout();
// });
// let map = new Map();
// let qc = this.columnData.filter(
// (key) => !map.has(key.prop) && map.set(key.prop, 1)
// );
// // qc.sort(function (a, b) {
// // return a.lable < b.lable ? -1 : 1; //
// // })
// this.columnData = qc;
// this.dataList = bodys;
// }
// }
// );
},
},
@ -583,22 +683,22 @@ page-break-before: avoid;}}`, // 去除页眉页脚
@import "../../assets/css/global_input.css";
@import "../../assets/css/global_table.css";
@import "../../assets/css/global.css";
.query{
margin-right: 10px;
display: flex;
justify-content: center;
align-items: center;
font-size: 14px;
color: #232748;
font-size: 400;
font-family: "NotoSansSC-Regular";
.query {
margin-right: 10px;
display: flex;
justify-content: center;
align-items: center;
font-size: 14px;
color: #232748;
font-size: 400;
font-family: "NotoSansSC-Regular";
}
.box {
display: flex;
flex-direction: column;
}
::v-deep .el-table__header-wrapper th.backcolor {
background-color: #F5F7FA;
background-color: #f5f7fa;
}
:deep .left-align .cell {
text-align: left !important;
@ -620,9 +720,9 @@ page-break-before: avoid;}}`, // 去除页眉页脚
}
::v-deep .el-icon-search:before {
color: #00F;
color: #00f;
}
.query:last-child{
.query:last-child {
margin-right: 0;
}
</style>

228
src/views/customerReport/personnelPositive.vue

@ -9,13 +9,32 @@
</div>
<div :style="'display: block;'">
<div
style="background-color: #fff; padding: 15px; border-radius: 8px;display: flex;flex-wrap: wrap; margin-bottom: 10px;height:35px;margin-top: 7px;">
style="
background-color: #fff;
padding: 15px;
border-radius: 8px;
display: flex;
flex-wrap: wrap;
margin-bottom: 10px;
height: 35px;
margin-top: 7px;
"
>
<div class="query">
<span>体检单位</span>
<el-input placeholder="请选择体检单位" v-model="patientRegister.query.cusOrgOCX" style="width:240px;" size="small"
disabled>
<el-button slot="append" icon="el-icon-search" @click="report.dialogCusOrgOCX = true"
style="font-size: 20px;"></el-button>
<el-input
placeholder="请选择体检单位"
v-model="patientRegister.query.cusOrgOCX"
style="width: 240px"
size="small"
disabled
>
<el-button
slot="append"
icon="el-icon-search"
@click="report.dialogCusOrgOCX = true"
style="font-size: 20px"
></el-button>
</el-input>
</div>
<!-- <div class="query">
@ -46,39 +65,86 @@
<span>分类统计</span>
</div> -->
<div class="query">
<el-button @click="btnQuery" size="small" class="commonbutton">查询</el-button>
<el-button @click="btnQuery" size="small" class="commonbutton"
>查询</el-button
>
</div>
<div class="query">
<el-button @click="handleExport" size="small" class="commonbutton">导出excel</el-button>
<el-button @click="handleExport" size="small" class="commonbutton"
>导出excel</el-button
>
</div>
<div class="query">
<el-button @click="onPrint" size="small" class="commonbutton">打印</el-button>
<el-button @click="onPrint" size="small" class="commonbutton"
>打印</el-button
>
</div>
</div>
<div ref="imageDom" style="background-color: #fff; padding: 15px; border-radius: 8px;">
<el-table :data="dataList" border width="45%" :height="flag
? window.pageHeight < 600 ? 415 : window.pageHeight - 185 - 20 : ''" row-key="id" highlight-current-row
ref="dataList" :row-class-name="tableRowClassName" id="table" show-summary :summary-method="getSummaries">
<el-table-column
:label="`开始时间: ${summary.startDate || ''} 结束时间:${summary.endDate || ''} 男性: ${summary.maleCount} 女性: ${summary.femaleCount}`" align="left">
<el-table-column type="index" label="序号" width="60" align="center" />
<el-table-column prop="customerOrgParentName" label="单位" />
<el-table-column prop="customerOrgName" label="部门" />
<el-table-column prop="patientNo" label="档案号" width="120" />
<el-table-column prop="patientName" label="姓名" width="120" />
<el-table-column prop="sexName" label="性别" width="50" />
<el-table-column prop="age" label="年龄" width="80" />
<el-table-column prop="medicalTimes" label="次数" width="50" />
<el-table-column prop="mobileTelephone" label="手机号码" width="120" />
<el-table-column prop="diagnosisNames" label="检查结果" />
<div
ref="imageDom"
style="background-color: #fff; padding: 15px; border-radius: 8px"
>
<el-table
:data="dataList"
border
width="45%"
:height="
flag
? window.pageHeight < 600
? 415
: window.pageHeight - 185 - 20
: ''
"
row-key="id"
highlight-current-row
ref="dataList"
:row-class-name="tableRowClassName"
id="table"
show-summary
:summary-method="getSummaries"
>
<el-table-column :label="summary.customerOrgName">
<el-table-column
:label="`开始时间: ${summary.startDate || ''} 结束时间:${
summary.endDate || ''
} 体检人员共计 ${
summary.maleCount + summary.femaleCount
} 男性 ${summary.maleCount} 女性 ${summary.femaleCount}`"
align="left"
>
<el-table-column
type="index"
label="序号"
width="60"
align="center"
/>
<el-table-column prop="customerOrgParentName" label="单位" />
<el-table-column prop="customerOrgName" label="部门" />
<el-table-column prop="patientNo" label="档案号" width="120" />
<el-table-column prop="patientName" label="姓名" width="120" />
<el-table-column prop="sexName" label="性别" width="50" />
<el-table-column prop="age" label="年龄" width="80" />
<el-table-column prop="medicalTimes" label="次数" width="50" />
<el-table-column
prop="mobileTelephone"
label="手机号码"
width="120"
/>
<el-table-column prop="diagnosisNames" label="检查结果" />
</el-table-column>
</el-table-column>
</el-table>
</div>
</div>
</div>
<!--通用选单位体检次数分组的控件-->
<el-dialog title="体检单位选择" :visible.sync="report.dialogCusOrgOCX" :close-on-click-modal="false" width="880px"
height="600px">
<el-dialog
title="体检单位选择"
:visible.sync="report.dialogCusOrgOCX"
:close-on-click-modal="false"
width="880px"
height="600px"
>
<CusOrgOCX :initDateType="'creationTime'" :useCustomerOrg="true" />
</el-dialog>
</div>
@ -87,7 +153,13 @@
import moment from "moment";
import { mapState, mapActions } from "vuex";
import { getapi, postapi, putapi, deletapi } from "@/api/api";
import { dddw, objCopy, arrayReduce, arrayExistObj, tcdate } from "@/utlis/proFunc";
import {
dddw,
objCopy,
arrayReduce,
arrayExistObj,
tcdate,
} from "@/utlis/proFunc";
import CusOrgOCX from "../../components/report/CusOrgOCX.vue";
import { exportToExcel } from "../../utlis/Export2Excel";
import html2canvas from "html2canvas";
@ -95,20 +167,21 @@ import printJs from "print-js";
export default {
components: {
CusOrgOCX
CusOrgOCX,
},
data() {
return {
dataList: [], //
dataList: [], //
completeFlag: "",
classification: "Y",
flag: true,
summary:{
startDate:"",
endDate:"",
femaleCount:"",
maleCount:""
}
summary: {
startDate: "",
endDate: "",
femaleCount: "",
maleCount: "",
customerOrgName:""
},
};
},
@ -126,7 +199,8 @@ export default {
},
methods: {
moment, dddw,
moment,
dddw,
//
dictInit() {
//
@ -172,10 +246,10 @@ export default {
tableRowClassName({ row, rowIndex }) {
switch (row.isCharge) {
case 'N':
return 'danger';
case "N":
return "danger";
default:
return '';
return "";
}
},
getSummaries(param) {
@ -195,44 +269,46 @@ export default {
},
//
btnQuery() {
let body = {}, customerOrgs = [], diagnosisIds = [];
let body = {},
customerOrgs = [],
diagnosisIds = [];
if (this.report.dataCusOrgOCX.length > 0) {
this.report.dataCusOrgOCX.forEach(e => {
let dateType = '1'
this.report.dataCusOrgOCX.forEach((e) => {
let dateType = "1";
switch (e.dateType) {
case 'medicalStartDate':
dateType = '2'
case "medicalStartDate":
dateType = "2";
break;
case 'checkDate':
dateType = '4'
case "checkDate":
dateType = "4";
break;
case 'summaryDate':
dateType = '3'
case "summaryDate":
dateType = "3";
break;
case 'sumCheckDate':
dateType = '5'
case "sumCheckDate":
dateType = "5";
break;
default:
break;
}
let rd = {
startDate: moment(e.startDate).format('yyyy-MM-DD'),
endDate: moment(e.endDate).format('yyyy-MM-DD'),
dateType
}
startDate: moment(e.startDate).format("yyyy-MM-DD"),
endDate: moment(e.endDate).format("yyyy-MM-DD"),
dateType,
};
console.log(e);
if (e.customerOrgId) {
rd.customerOrgId = e.customerOrgId
rd.customerOrgId = e.customerOrgId;
if (e.customerOrgId == this.dict.personOrgId) {
rd.customerOrgRegisterId = null
rd.customerOrgGroupId = []
rd.customerOrgRegisterId = null;
rd.customerOrgGroupId = [];
} else {
rd.customerOrgRegisterId = e.customerOrgRegister.id
rd.customerOrgGroupId = e.customerOrgGroupIds
rd.customerOrgRegisterId = e.customerOrgRegister.id;
rd.customerOrgGroupId = e.customerOrgGroupIds;
}
}
customerOrgs.push(rd)
})
customerOrgs.push(rd);
});
}
// if (this.report.dataAsbitemOCX.length > 0) {
@ -241,28 +317,35 @@ export default {
// })
// }
body.customerOrgs = customerOrgs
body.customerOrgs = customerOrgs;
// body.diagnosisIds = diagnosisIds
// if(this.completeFlag) body.completeFlag = this.completeFlag
// body.isAudit=this.classification
// if (this.patientRegister.query.isCharge) body.isCharge = this.patientRegister.query.isCharge
//console.log('/api/app/peisreport/getregisterasbitemchargestatus',body)
postapi('/api/customerreport/getpatientregisterpositivereport', body).then(res => {
postapi(
"/api/customerreport/getpatientregisterpositivereport",
body
).then((res) => {
if (res.code != -1) {
this.dataList = res.data.details;
this.summary.startDate=res.data.startDate;
this.summary.endDate=res.data.endDate;
this.summary.femaleCount=res.data.femaleCount;
this.summary.maleCount=res.data.maleCount;
this.summary.startDate = res.data.startDate;
this.summary.endDate = res.data.endDate;
this.summary.femaleCount = res.data.femaleCount;
this.summary.maleCount = res.data.maleCount;
if(this.report.dataCusOrgOCX.length>1){
this.summary.customerOrgName=""
}else{
this.summary.customerOrgName=this.report.dataCusOrgOCX[0].customerOrgName
}
this.$nextTick(() => {
this.$refs.dataList.doLayout();
});
}
})
});
},
onPrint() {
this.flag = false;
@ -292,7 +375,7 @@ export default {
},
handleExport() {
exportToExcel("#table", "人员阳性结果清单", false);
}
},
},
//
@ -304,7 +387,6 @@ export default {
// this.query();
// }
// },
},
};
</script>
@ -349,7 +431,7 @@ export default {
}
::v-deep .el-icon-search:before {
color: #00F;
color: #00f;
}
.query:last-child {

2
src/views/customerReport/positiveResultsList.vue

@ -179,7 +179,7 @@
:summary-method="getSummaris"
>
<el-table-column label="阳性结果人员清单">
<el-table-column :label="`开始时间: ${summary.startDate || ''} 结束时间:${summary.endDate || ''} 男性: ${summary.maleCount} 女性: ${summary.femaleCount}`" align="left">
<el-table-column :label="`开始时间: ${summary.startDate || ''} 结束时间:${summary.endDate || ''}体检人员共计: ${(summary.maleCount+summary.femaleCount)} 男性: ${summary.maleCount} 女性: ${summary.femaleCount}`" align="left">
<el-table-column
prop="diagnosisName"
label="诊断名称"

Loading…
Cancel
Save