Browse Source

报表

master
罗斌杰 2 years ago
parent
commit
97a4ede43d
  1. 6
      src/router/index.js
  2. 7
      src/views/Home.vue
  3. 573
      src/views/customerReport/combinationDetails.vue
  4. 28
      src/views/customerReport/diseaseStatistics.vue
  5. 49
      src/views/customerReport/personnelPositive.vue
  6. 212
      src/views/customerReport/positiveResultsList.vue
  7. 782
      src/views/workload/deskwork.vue

6
src/router/index.js

@ -383,6 +383,12 @@ const routes = [{
component: () => component: () =>
import ("../views/customerReport/personnelPositive.vue") import ("../views/customerReport/personnelPositive.vue")
}, },
{
path: "/combinationDetails",
name: "组合项目具体结果统计",
component: () =>
import ("../views/customerReport/combinationDetails.vue")
},
//---------------------- 工作量登记 ---------------------- //---------------------- 工作量登记 ----------------------
{ {
path: "/registrar", path: "/registrar",

7
src/views/Home.vue

@ -382,7 +382,7 @@
style="color: rgb(114, 105, 105); font-weight: 700" style="color: rgb(114, 105, 105); font-weight: 700"
> >
<span class="el-dropdown-link"> 客户报表 </span> <span class="el-dropdown-link"> 客户报表 </span>
<el-dropdown-menu slot="dropdown">
<el-dropdown-menu slot="dropdown" style="width: 200px">
<el-dropdown-item <el-dropdown-item
command="diseaseStatistics" command="diseaseStatistics"
class="dropdownmain" class="dropdownmain"
@ -401,6 +401,11 @@
class="dropdownmain" class="dropdownmain"
>人员阳性结果</el-dropdown-item >人员阳性结果</el-dropdown-item
> >
<el-dropdown-item
command="combinationDetails"
class="dropdownmain"
>组合项目具体结果统计</el-dropdown-item
>
</el-dropdown-menu> </el-dropdown-menu>
</el-dropdown> </el-dropdown>
</div> </div>

573
src/views/customerReport/combinationDetails.vue

@ -0,0 +1,573 @@
<template>
<div>
<el-card>
<div slot="header">组合项目检查状态</div>
<div :style="'display: block; width:' + (window.pageWidth - 45) + 'px;'">
<div style="display: flex; flex-wrap: wrap; height: 35px">
<div class="query">
<span>体检单位</span>
<el-input
placeholder="请选择体检单位"
v-model="patientRegister.query.cusOrgOCX"
style="width: 300px"
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">
<span>组合项目</span>
<el-input
placeholder="请选择组合项目"
v-model="patientRegister.query.asbitemOCX"
style="width: 240px"
size="small"
disabled
>
<el-button
slot="append"
icon="el-icon-search"
@click="report.dialogAsbitemOCX = true"
style="font-size: 20px"
></el-button>
</el-input>
</div>
<!-- <div class="query">
<span>检查状态</span>
<el-select
v-model="patientRegister.query.checkCompleteFlag"
placeholder="请选择"
clearable
style="width: 80px"
size="small"
>
<el-option
v-for="item in dict.checkCompleteFlag"
:key="item.id"
:label="item.displayName"
:value="item.id"
>
</el-option>
</el-select>
</div> -->
<div class="query">
<el-button @click="btnQuery" size="small"
>查询</el-button
>
</div>
<div class="query">
<el-button @click="handleExport" size="small">导出excel</el-button>
</div>
<div class="query">
<el-button @click="onPrint" size="small">打印</el-button>
</div>
</div>
<div ref="imageDom">
<el-table
:data="dataList"
border
:height="window.pageHeight < 600 ? 415 : window.pageHeight - 185"
row-key="id"
highlight-current-row
ref="dataList"
:row-class-name="tableRowClassName"
id="table"
>
<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.prop"
:label="item.lable"
align="left"
>
</el-table-column>
</el-table>
</div>
</div>
</el-card>
<!--通用选单位体检次数分组的控件-->
<el-dialog
title="体检单位选择"
:visible.sync="report.dialogCusOrgOCX"
:close-on-click-modal="false"
width="840px"
height="600px"
>
<CusOrgOCX />
</el-dialog>
<!--通用选组合项目的控件-->
<el-dialog
title="组合项目选择"
:visible.sync="report.dialogAsbitemOCX"
:close-on-click-modal="false"
width="700px"
height="600px"
>
<AsbitemOCX />
</el-dialog>
</div>
</template>
<script>
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 CusOrgOCX from "../../components/report/CusOrgOCX.vue";
import AsbitemOCX from "../../components/report/AsbitemOCX.vue";
import { exportToExcel } from "../../utlis/Export2Excel";
import html2canvas from "html2canvas";
import printJs from "print-js";
export default {
components: {
CusOrgOCX,
AsbitemOCX,
},
data() {
return {
dataList: [], //
columnData: [],
flag: true,
};
},
created() {
this.dictInit();
},
//
mounted() {
// this.btnQuery();
},
computed: {
...mapState(["window", "dict", "patientRegister", "report"]),
},
methods: {
moment,
dddw,
//
dictInit() {
//
// getapi("/api/app/sex").then((res) => {
// if (res.code == 1) {
// this.dict.sex = res.data;
// }
// });
//
getapi("/api/app/organization-units/organization-unit-by-is-peis").then(
(res) => {
if (res.code == 1) {
this.dict.organization = res.data;
}
}
);
//
getapi("/api/app/customerorg/getbycodeall").then((res) => {
if (res.code == 1) {
this.patientRegister.customerOrgTreeAll = res.data;
tcdate(this.patientRegister.customerOrgTreeAll);
}
});
// //
getapi("/api/app/medical-type/in-filter").then((res) => {
if (res.code == 1) {
this.dict.medicalType = res.data.items;
}
});
// //
// getapi("/api/app/personnel-type/in-filter").then((res) => {
// if (res.code == 1) {
// this.dict.personnelType = res.data.items;
// }
// });
// //
// getapi("/api/app/marital-statuses").then((res) => {
// if (res.code == 1) {
// this.dict.maritalStatus = res.data.items;
// }
// });
// //
// getapi("/api/app/sex-hormone-term/in-filter").then((res) => {
// if (res.code == 1) {
// this.dict.sexHormoneTerm = res.data.items;
// }
// });
// //
// getapi("/api/app/nation/in-filter").then((res) => {
// if (res.code == 1) {
// this.dict.nation = res.data.items;
// }
// });
// //
// getapi("/api/app/birth-place/in-filter").then((res) => {
// if (res.code == 1) {
// this.dict.birthPlace = res.data.items;
// }
// });
// //
// postapi("/api/app/medicalpackage/getmedicalpackagelist", {}).then(
// (res) => {
// if (res.code == 1) {
// this.dict.medicalPackage = res.data;
// }
// }
// );
// //
// getapi("/api/app/customer-org-group").then((res) => {
// if (res.code == 1) {
// this.dict.customerOrgGroupAll = res.data.items;
// }
// });
// //
// getapi("/api/app/pay-mode").then((res) => {
// if (res.code == 1) {
// this.dict.payMode = res.data;
// }
// });
// //
getapi("/api/app/item-type/by-code-all").then((res) => {
if (res.code == 1) {
this.dict.itemTypeTree = res.data;
tcdate(this.dict.itemTypeTree);
}
});
// postapi("/api/app/asbitem/getasbitemlist", {}).then((res) => {
// if (res.code == 1) {
// this.dict.asbItemAll = res.data;
// }
// });
console.log("dict", this.dict);
},
tableRowClassName({ row, rowIndex }) {
switch (row.completeFlag) {
case "0":
return "danger";
case "2":
return "info";
default:
return "";
}
},
onPrint() {
this.flag = false;
this.$nextTick(() => {
let width = this.$refs.imageDom.style.width;
let cloneDom = this.$refs.imageDom.cloneNode(true);
let imageDom = this.$refs.imageDom;
cloneDom.style.position = "absolute";
cloneDom.style.top = "0px";
cloneDom.style.zIndex = "-1";
cloneDom.style.width = width;
console.log(cloneDom);
imageDom.appendChild(cloneDom);
html2canvas(cloneDom).then((canvas) => {
//
const url = canvas.toDataURL("image/png");
printJs({
printable: url,
type: "image",
documentTitle: "", //
style: "@page{size:auto;margin: 0cm 1cm 0cm 1cm;}", //
});
});
cloneDom.style.display = "none";
this.flag = true;
});
},
handleExport() {
exportToExcel("#table", "组合项目结果明细", false);
},
//
btnQuery() {
let body = {},
customerOrgs = [],
asbitemIds = [];
// {
// "customerOrgs": [
// {
// "customerOrgId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
// "customerOrgRegisterId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
// "customerOrgGroupId": [
// "3fa85f64-5717-4562-b3fc-2c963f66afa6"
// ],
// "dateType": "string",
// "startDate": "string",
// "endDate": "string"
// }
// ],
// "asbitemIds": [
// "3fa85f64-5717-4562-b3fc-2c963f66afa6"
// ],
// "completeFlag": "string"
// }
if (this.report.dataCusOrgOCX.length > 0) {
this.report.dataCusOrgOCX.forEach((e) => {
let rd = {
startDate: moment(e.startDate).format("yyyy-MM-DD"),
endDate: moment(e.endDate).format("yyyy-MM-DD"),
dateType:
e.dateType == "summaryDate"
? "3"
: e.dateType == "medicalStartDate"
? "2"
: "1",
};
if (e.customerOrgId) {
rd.customerOrgId = e.customerOrgId;
if (e.customerOrgId == this.dict.personOrgId) {
rd.customerOrgRegisterId = null;
rd.customerOrgGroupId = [];
} else {
rd.customerOrgRegisterId = e.customerOrgRegister.id;
rd.customerOrgGroupId = e.customerOrgGroupIds;
}
}
customerOrgs.push(rd);
});
}
if (this.report.dataAsbitemOCX.length > 0) {
this.report.dataAsbitemOCX.forEach((e) => {
asbitemIds.push(e.id);
});
}
body.customerOrgs = customerOrgs;
body.asbitemId = asbitemIds;
// if (this.patientRegister.query.checkCompleteFlag)
// body.completeFlag = this.patientRegister.query.checkCompleteFlag;
//console.log('/api/app/peisreport/getpatientregisterreport',body)
postapi("/api/customerreport/getasbitemspecificresultreport", body).then(
(res) => {
if (res.code != -1) {
let bodys= res.data
// let bodys = [
// {
// medicalTimes: 0,
// patientName: "",
// sexName: "string",
// age: 0,
// registerChecks: [
// {
// registerCheckId: "3fa85f64-5717-4562-b3fc-2c963f66afa6",
// checkName: "",
// registerCheckItems: [
// {
// itemName: "",
// result: "O",
// },
// {
// itemName: "ct",
// result: "",
// },
// ],
// registerCheckSummarys: "",
// },
// {
// registerCheckId: "3fa85f64-5717-4562-b3fc-2c963f66afa5",
// checkName: "",
// registerCheckItems: [
// {
// itemName: "",
// result: "A",
// },
// {
// itemName: "",
// result: "B",
// },
// {
// itemName: "ct",
// result: "C",
// },
// ],
// registerCheckSummarys: "",
// },
// ],
// },
// {
// medicalTimes: 0,
// patientName: "",
// sexName: "string",
// age: 0,
// registerChecks: [
// {
// registerCheckId: "3fa85f64-5717-4562-b3fc-2c963f66afa6",
// checkName: "",
// registerCheckItems: [
// {
// itemName: "",
// result: "A",
// },
// {
// itemName: "ct",
// result: "",
// },
// {
// itemName: "",
// result: "",
// },
// ],
// registerCheckSummarys: "",
// },
// {
// registerCheckId: "3fa85f64-5717-4562-b3fc-2c963f66afa5",
// checkName: "",
// registerCheckItems: [
// {
// itemName: "",
// result: "B",
// },
// {
// itemName: "",
// result: "A",
// },
// ],
// registerCheckSummarys: "",
// },
// {
// registerCheckId: "3fa85f64-5717-4562-b3fc-2c963f66afa4",
// checkName: "",
// registerCheckItems: [
// {
// itemName: "a",
// result: "7",
// },
// {
// itemName: "b",
// result: "8",
// },
// ],
// registerCheckSummarys: "",
// },
// ],
// },
// ];
let that = this;
let template = {
prop: "",
lable: "",
};
for (let i = 0; i < bodys.length; i++) {
for (let k = 0; k < bodys[i].registerChecks.length; k++) {
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
);
}
// if(bodys[i].registerChecks[k].registerCheckSummarys!=''&&bodys[i].registerChecks[k].registerCheckSummarys!=null){
let templates = JSON.parse(JSON.stringify(template));
templates.prop =
// bodys[i].registerChecks[k].registerCheckId +
bodys[i].registerChecks[k].checkName +
"小结";
templates.lable = bodys[i].registerChecks[k].checkName+'/' + "小结";
that.columnData.push(templates);
this.$set(
bodys[i],
// bodys[i].registerChecks[k].registerCheckId +
bodys[i].registerChecks[k].checkName +
"小结",
bodys[i].registerChecks[k].registerCheckSummarys
);
// }
}
}
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;
}
}
);
},
},
//
watch: {
//
// "patientRegister.query.times"(newVal, oldVal) {
// if (newVal != oldVal) {
// //alert('')
// this.query();
// }
// },
},
};
</script>
<style scoped>
@import "../../assets/css/global_button.css";
@import "../../assets/css/global_card.css";
@import "../../assets/css/global_input.css";
@import "../../assets/css/global_table.css";
@import "../../assets/css/global.css";
.query {
margin-left: 10px;
}
</style>

28
src/views/customerReport/diseaseStatistics.vue

@ -82,9 +82,11 @@
border border
width="45%" width="45%"
:height=" :height="
flag
?
window.pageHeight < 600 ? 415 : window.pageHeight - 185 - 10: ''
flag
? window.pageHeight < 600
? 415
: window.pageHeight - 185 - 10
: ''
" "
row-key="id" row-key="id"
highlight-current-row highlight-current-row
@ -162,7 +164,7 @@ export default {
seriesData: [], seriesData: [],
yAxisData: [], yAxisData: [],
pieData: [], pieData: [],
flag: true
flag: true,
}; };
}, },
@ -260,7 +262,7 @@ export default {
}); });
}, },
handleExport() { handleExport() {
exportToExcel("#table", "登记员工作量统计", false);
exportToExcel("#table", "疾病人数统计", false);
}, },
// //
btnQuery() { btnQuery() {
@ -310,20 +312,6 @@ export default {
postapi("/api/customerreport/getdiseasecountstatisticsreport", body).then( postapi("/api/customerreport/getdiseasecountstatisticsreport", body).then(
(res) => { (res) => {
if (res.code != -1) { if (res.code != -1) {
res.data=[
{
"diagnosisName": "身高",
"patientNames": "string",
"patientCount": 6,
"percentage": "60"
},
{
"diagnosisName": "体重",
"patientNames": "string",
"patientCount": 4,
"percentage": "40"
}
]
this.dataList = res.data; this.dataList = res.data;
this.yAxisData = []; this.yAxisData = [];
this.seriesData = []; this.seriesData = [];
@ -331,7 +319,7 @@ export default {
name: "", name: "",
value: 0, value: 0,
}; };
for (let i = 0; i < (res.data.length>10?10:res.data.length); i++) {
for (let i = 0; i < (res.data.length > 10 ? 10 : res.data.length);i++ ) {
let pie = JSON.parse(JSON.stringify(pies)); let pie = JSON.parse(JSON.stringify(pies));
this.yAxisData.push(res.data[i].diagnosisName); this.yAxisData.push(res.data[i].diagnosisName);
this.seriesData.push(res.data[i].patientCount); this.seriesData.push(res.data[i].patientCount);

49
src/views/customerReport/personnelPositive.vue

@ -16,9 +16,10 @@
<span>检查状态</span> <span>检查状态</span>
<el-select v-model="completeFlag" placeholder="请选择" clearable style="width: 80px" <el-select v-model="completeFlag" placeholder="请选择" clearable style="width: 80px"
size="small"> size="small">
<el-option label="正式登记" value="正式登记" />
<el-option label="部份已检" value="部份已检" />
<el-option label="已总检" value="已总检" />
<el-option label="预登记" value="0" />
<el-option label="正式登记" value="1" />
<el-option label="部份已检" value="2" />
<el-option label="已总检" value="3" />
</el-select> </el-select>
</div> </div>
<div class="query"> <div class="query">
@ -48,14 +49,16 @@
<el-button @click="onPrint" size="small">打印</el-button> <el-button @click="onPrint" size="small">打印</el-button>
</div> </div>
</div> </div>
<div ref="imageDom">
<div ref="imageDom" style="margin-top:5px;">
<el-table :data="dataList" border width="45%" :height="flag <el-table :data="dataList" border width="45%" :height="flag
?window.pageHeight < 600 ? 415 : window.pageHeight - 185: ''"
?window.pageHeight < 600 ? 415 : window.pageHeight - 185-5: ''"
row-key="id" highlight-current-row ref="dataList" :row-class-name="tableRowClassName" id="table"> row-key="id" highlight-current-row ref="dataList" :row-class-name="tableRowClassName" id="table">
<el-table-column prop="patientNo" label="档案号" />
<el-table-column prop="patientName" label="姓名" />
<el-table-column prop="sexName" label="性别" />
<el-table-column prop="age" 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 prop="diagnosisNames" label="诊断名称" />
</el-table> </el-table>
</div> </div>
@ -183,11 +186,11 @@ export default {
}) })
} }
// if (this.report.dataAsbitemOCX.length > 0) {
// this.report.dataAsbitemOCX.forEach(e => {
// diagnosisIds.push(e.id)
// })
// }
// if (this.report.dataAsbitemOCX.length > 0) {
// this.report.dataAsbitemOCX.forEach(e => {
// diagnosisIds.push(e.id)
// })
// }
body.customerOrgs = customerOrgs body.customerOrgs = customerOrgs
// body.diagnosisIds = diagnosisIds // body.diagnosisIds = diagnosisIds
@ -201,22 +204,6 @@ export default {
postapi('/api/customerreport/getpatientregisterpositivereport', body).then(res => { postapi('/api/customerreport/getpatientregisterpositivereport', body).then(res => {
if (res.code != -1) { if (res.code != -1) {
res.data=[
{
"patientNo": "string",
"patientName": "string",
"sexName": "string",
"age": 0,
"diagnosisNames": "尿素增高,胃炎,肝炎"
},
{
"patientNo": "string",
"patientName": "string",
"sexName": "string",
"age": 0,
"diagnosisNames": "尿素增高,胃炎,肝炎,尿素增高,胃炎,肝炎"
}
]
this.dataList = res.data; this.dataList = res.data;
} }
}) })
@ -248,7 +235,7 @@ export default {
}); });
}, },
handleExport() { handleExport() {
exportToExcel("#table", "登记员工作量统计", false);
exportToExcel("#table", "人员阳性结果清单", false);
} }
}, },

212
src/views/customerReport/positiveResultsList.vue

@ -47,9 +47,10 @@
style="width: 80px" style="width: 80px"
size="small" size="small"
> >
<el-option label="正式登记" value="正式登记" />
<el-option label="部份已检" value="部份已检" />
<el-option label="已总检" value="已总检" />
<el-option label="预登记" value="0" />
<el-option label="正式登记" value="1" />
<el-option label="部份已检" value="2" />
<el-option label="已总检" value="3" />
</el-select> </el-select>
</div> </div>
<div class="query"> <div class="query">
@ -443,210 +444,6 @@ export default {
body body
).then((res) => { ).then((res) => {
if (res.code != -1) { if (res.code != -1) {
res.data = [
{
diagnosisName: "身高",
patientRegisters: [
{
departmentName: "神豚",
patientName: "张三",
sexName: "男",
age: 18,
patientRegisterNo: "20224896555",
patientNo: "520259320",
medicalTimes: 1,
telephone: "15522266",
mobileTelephone: "88825455",
},
{
departmentName: "神豚",
patientName: "李四",
sexName: "男",
age: 18,
patientRegisterNo: "20224896555",
patientNo: "520259320",
medicalTimes: 1,
telephone: "15522266",
mobileTelephone: "88825455",
},
{
departmentName: "神豚",
patientName: "王五",
sexName: "男",
age: 18,
patientRegisterNo: "20224896555",
patientNo: "520259320",
medicalTimes: 1,
telephone: "15522266",
mobileTelephone: "88825455",
},
{
departmentName: "红豚",
patientName: "赵六",
sexName: "男",
age: 18,
patientRegisterNo: "20224896555",
patientNo: "520259320",
medicalTimes: 1,
telephone: "15522266",
mobileTelephone: "88825455",
},
{
departmentName: "红豚",
patientName: "罗七",
sexName: "男",
age: 18,
patientRegisterNo: "20224896555",
patientNo: "520259320",
medicalTimes: 1,
telephone: "15522266",
mobileTelephone: "88825455",
},
{
departmentName: "红豚",
patientName: "赵六",
sexName: "男",
age: 18,
patientRegisterNo: "20224896555",
patientNo: "520259320",
medicalTimes: 1,
telephone: "15522266",
mobileTelephone: "88825455",
},
{
departmentName: "神豚",
patientName: "赵六",
sexName: "男",
age: 18,
patientRegisterNo: "20224896555",
patientNo: "520259320",
medicalTimes: 1,
telephone: "15522266",
mobileTelephone: "88825455",
},
],
},
{
diagnosisName: "体重",
patientRegisters: [
{
departmentName: "神豚",
patientName: "王五",
sexName: "男",
age: 18,
patientRegisterNo: "20224896555",
patientNo: "520259320",
medicalTimes: 1,
telephone: "15522266",
mobileTelephone: "88825455",
},
{
departmentName: "神豚",
patientName: "王五",
sexName: "男",
age: 18,
patientRegisterNo: "20224896555",
patientNo: "520259320",
medicalTimes: 1,
telephone: "15522266",
mobileTelephone: "88825455",
},
{
departmentName: "神豚",
patientName: "王五",
sexName: "男",
age: 18,
patientRegisterNo: "20224896555",
patientNo: "520259320",
medicalTimes: 1,
telephone: "15522266",
mobileTelephone: "88825455",
},
{
departmentName: "神豚",
patientName: "王五",
sexName: "男",
age: 18,
patientRegisterNo: "20224896555",
patientNo: "520259320",
medicalTimes: 1,
telephone: "15522266",
mobileTelephone: "88825455",
},
{
departmentName: "神豚",
patientName: "王五",
sexName: "男",
age: 18,
patientRegisterNo: "20224896555",
patientNo: "520259320",
medicalTimes: 1,
telephone: "15522266",
mobileTelephone: "88825455",
},
{
departmentName: "神豚",
patientName: "王五",
sexName: "男",
age: 18,
patientRegisterNo: "20224896555",
patientNo: "520259320",
medicalTimes: 1,
telephone: "15522266",
mobileTelephone: "88825455",
}
],
},
{
diagnosisName: "血小板增高",
patientRegisters: [
{
departmentName: "神豚",
patientName: "张三",
sexName: "男",
age: 18,
patientRegisterNo: "20224896555",
patientNo: "520259320",
medicalTimes: 1,
telephone: "15522266",
mobileTelephone: "88825455",
},
{
departmentName: "神豚",
patientName: "李四",
sexName: "男",
age: 18,
patientRegisterNo: "20224896555",
patientNo: "520259320",
medicalTimes: 1,
telephone: "15522266",
mobileTelephone: "88825455",
},
{
departmentName: "神豚",
patientName: "李四",
sexName: "男",
age: 18,
patientRegisterNo: "20224896555",
patientNo: "520259320",
medicalTimes: 1,
telephone: "15522266",
mobileTelephone: "88825455",
},
{
departmentName: "神豚",
patientName: "李四",
sexName: "男",
age: 18,
patientRegisterNo: "20224896555",
patientNo: "520259320",
medicalTimes: 1,
telephone: "15522266",
mobileTelephone: "88825455",
}
],
},
];
this.ForwardRanking(res.data) this.ForwardRanking(res.data)
} }
}); });
@ -730,7 +527,6 @@ page-break-before: avoid;}}`, // 去除页眉页脚
index += this.dataList[i].patientRegisters.length + 4; index += this.dataList[i].patientRegisters.length + 4;
list.push(index); list.push(index);
} }
console.log(list)
exportToExcel("#projectTableData", "阳性结果人员清单", true,list); exportToExcel("#projectTableData", "阳性结果人员清单", true,list);
} else if (this.format == 1) { } else if (this.format == 1) {
exportToExcel("#standardTableData", "阳性结果人员清单",false); exportToExcel("#standardTableData", "阳性结果人员清单",false);

782
src/views/workload/deskwork.vue

@ -531,646 +531,6 @@ page-break-before: avoid;}}`, // 去除页眉页脚
} }
).then((res) => { ).then((res) => {
if (res.code != -1) { if (res.code != -1) {
res.data = [
{
customerName: "个人体检",
itemTypeName: "一般检查",
asbitemName: "三围",
doctorName: "张三",
doctorCheckCount: 1,
avgStandardPrice: 1,
avgChargePrice: 2,
sumStandardPrice: 3,
sumChargePrice: 4,
},
{
customerName: "个人体检",
itemTypeName: "内科",
asbitemName: "血压",
doctorName: "李四",
doctorCheckCount: 1,
avgStandardPrice: 1,
avgChargePrice: 2,
sumStandardPrice: 3,
sumChargePrice: 4,
},
{
customerName: "个人体检",
itemTypeName: "检验科",
asbitemName: "肝功能检查",
doctorName: "张三",
doctorCheckCount: 1,
avgStandardPrice: 1,
avgChargePrice: 2,
sumStandardPrice: 3,
sumChargePrice: 4,
},
{
customerName: "个人体检",
itemTypeName: "一般检查",
asbitemName: "三围",
doctorName: "张三",
doctorCheckCount: 1,
avgStandardPrice: 1,
avgChargePrice: 2,
sumStandardPrice: 3,
sumChargePrice: 4,
},
{
customerName: "个人体检",
itemTypeName: "内科",
asbitemName: "血压",
doctorName: "李四",
doctorCheckCount: 1,
avgStandardPrice: 1,
avgChargePrice: 2,
sumStandardPrice: 3,
sumChargePrice: 4,
},
{
customerName: "个人体检",
itemTypeName: "检验科",
asbitemName: "血常规三分类",
doctorName: "王五",
doctorCheckCount: 1,
avgStandardPrice: 1,
avgChargePrice: 2,
sumStandardPrice: 3,
sumChargePrice: 4,
},
{
customerName: "个人体检",
itemTypeName: "检验科",
asbitemName: "肝功能检查",
doctorName: "张三",
doctorCheckCount: 1,
avgStandardPrice: 1,
avgChargePrice: 2,
sumStandardPrice: 3,
sumChargePrice: 4,
},
{
customerName: "个人体检",
itemTypeName: "一般检查",
asbitemName: "三围",
doctorName: "张三",
doctorCheckCount: 1,
avgStandardPrice: 1,
avgChargePrice: 2,
sumStandardPrice: 3,
sumChargePrice: 4,
},
{
customerName: "个人体检",
itemTypeName: "内科",
asbitemName: "血压",
doctorName: "李四",
doctorCheckCount: 1,
avgStandardPrice: 1,
avgChargePrice: 2,
sumStandardPrice: 3,
sumChargePrice: 4,
},
{
customerName: "个人体检",
itemTypeName: "检验科",
asbitemName: "血常规三分类",
doctorName: "王五",
doctorCheckCount: 1,
avgStandardPrice: 1,
avgChargePrice: 2,
sumStandardPrice: 3,
sumChargePrice: 4,
},
{
customerName: "个人体检",
itemTypeName: "检验科",
asbitemName: "肝功能检查",
doctorName: "张三",
doctorCheckCount: 1,
avgStandardPrice: 1,
avgChargePrice: 2,
sumStandardPrice: 3,
sumChargePrice: 4,
},
{
customerName: "个人体检",
itemTypeName: "一般检查",
asbitemName: "三围",
doctorName: "张三",
doctorCheckCount: 1,
avgStandardPrice: 1,
avgChargePrice: 2,
sumStandardPrice: 3,
sumChargePrice: 4,
},
{
customerName: "个人体检",
itemTypeName: "内科",
asbitemName: "血压",
doctorName: "李四",
doctorCheckCount: 1,
avgStandardPrice: 1,
avgChargePrice: 2,
sumStandardPrice: 3,
sumChargePrice: 4,
},
{
customerName: "个人体检",
itemTypeName: "检验科",
asbitemName: "血常规三分类",
doctorName: "王五",
doctorCheckCount: 1,
avgStandardPrice: 1,
avgChargePrice: 2,
sumStandardPrice: 3,
sumChargePrice: 4,
},
{
customerName: "个人体检",
itemTypeName: "检验科",
asbitemName: "肝功能检查",
doctorName: "张三",
doctorCheckCount: 1,
avgStandardPrice: 1,
avgChargePrice: 2,
sumStandardPrice: 3,
sumChargePrice: 4,
},
{
customerName: "个人体检",
itemTypeName: "一般检查",
asbitemName: "三围",
doctorName: "张三",
doctorCheckCount: 1,
avgStandardPrice: 1,
avgChargePrice: 2,
sumStandardPrice: 3,
sumChargePrice: 4,
},
{
customerName: "个人体检",
itemTypeName: "内科",
asbitemName: "血压",
doctorName: "李四",
doctorCheckCount: 1,
avgStandardPrice: 1,
avgChargePrice: 2,
sumStandardPrice: 3,
sumChargePrice: 4,
},
{
customerName: "个人体检",
itemTypeName: "检验科",
asbitemName: "血常规三分类",
doctorName: "王五",
doctorCheckCount: 1,
avgStandardPrice: 1,
avgChargePrice: 2,
sumStandardPrice: 3,
sumChargePrice: 4,
},
{
customerName: "个人体检",
itemTypeName: "检验科",
asbitemName: "肝功能检查",
doctorName: "张三",
doctorCheckCount: 1,
avgStandardPrice: 1,
avgChargePrice: 2,
sumStandardPrice: 3,
sumChargePrice: 4,
},
{
customerName: "个人体检",
itemTypeName: "一般检查",
asbitemName: "三围",
doctorName: "张三",
doctorCheckCount: 1,
avgStandardPrice: 1,
avgChargePrice: 2,
sumStandardPrice: 3,
sumChargePrice: 4,
},
{
customerName: "个人体检",
itemTypeName: "内科",
asbitemName: "血压",
doctorName: "李四",
doctorCheckCount: 1,
avgStandardPrice: 1,
avgChargePrice: 2,
sumStandardPrice: 3,
sumChargePrice: 4,
},
{
customerName: "个人体检",
itemTypeName: "检验科",
asbitemName: "血常规三分类",
doctorName: "王五",
doctorCheckCount: 1,
avgStandardPrice: 1,
avgChargePrice: 2,
sumStandardPrice: 3,
sumChargePrice: 4,
},
{
customerName: "个人体检",
itemTypeName: "检验科",
asbitemName: "肝功能检查",
doctorName: "张三",
doctorCheckCount: 1,
avgStandardPrice: 1,
avgChargePrice: 2,
sumStandardPrice: 3,
sumChargePrice: 4,
},
{
customerName: "个人体检",
itemTypeName: "一般检查",
asbitemName: "三围",
doctorName: "张三",
doctorCheckCount: 1,
avgStandardPrice: 1,
avgChargePrice: 2,
sumStandardPrice: 3,
sumChargePrice: 4,
},
{
customerName: "个人体检",
itemTypeName: "内科",
asbitemName: "血压",
doctorName: "李四",
doctorCheckCount: 1,
avgStandardPrice: 1,
avgChargePrice: 2,
sumStandardPrice: 3,
sumChargePrice: 4,
},
{
customerName: "个人体检",
itemTypeName: "检验科",
asbitemName: "血常规三分类",
doctorName: "王五",
doctorCheckCount: 1,
avgStandardPrice: 1,
avgChargePrice: 2,
sumStandardPrice: 3,
sumChargePrice: 4,
},
{
customerName: "个人体检",
itemTypeName: "检验科",
asbitemName: "肝功能检查",
doctorName: "张三",
doctorCheckCount: 1,
avgStandardPrice: 1,
avgChargePrice: 2,
sumStandardPrice: 3,
sumChargePrice: 4,
},
{
customerName: "湖南向日葵",
itemTypeName: "心电图",
asbitemName: "心电图",
doctorName: "张三",
doctorCheckCount: 1,
avgStandardPrice: 1,
avgChargePrice: 2,
sumStandardPrice: 3,
sumChargePrice: 4,
},
{
customerName: "神4",
itemTypeName: "脂肪代谢",
asbitemName: "脂肪代谢",
doctorName: "李四",
doctorCheckCount: 1,
avgStandardPrice: 1,
avgChargePrice: 2,
sumStandardPrice: 3,
sumChargePrice: 4,
},
{
customerName: "个人体检",
itemTypeName: "一般检查",
asbitemName: "三围",
doctorName: "张三",
doctorCheckCount: 1,
avgStandardPrice: 1,
avgChargePrice: 2,
sumStandardPrice: 3,
sumChargePrice: 4,
},
{
customerName: "个人体检",
itemTypeName: "内科",
asbitemName: "血压",
doctorName: "李四",
doctorCheckCount: 1,
avgStandardPrice: 1,
avgChargePrice: 2,
sumStandardPrice: 3,
sumChargePrice: 4,
},
{
customerName: "个人体检",
itemTypeName: "检验科",
asbitemName: "肝功能检查",
doctorName: "张三",
doctorCheckCount: 1,
avgStandardPrice: 1,
avgChargePrice: 2,
sumStandardPrice: 3,
sumChargePrice: 4,
},
{
customerName: "个人体检",
itemTypeName: "一般检查",
asbitemName: "三围",
doctorName: "张三",
doctorCheckCount: 1,
avgStandardPrice: 1,
avgChargePrice: 2,
sumStandardPrice: 3,
sumChargePrice: 4,
},
{
customerName: "个人体检",
itemTypeName: "内科",
asbitemName: "血压",
doctorName: "李四",
doctorCheckCount: 1,
avgStandardPrice: 1,
avgChargePrice: 2,
sumStandardPrice: 3,
sumChargePrice: 4,
},
{
customerName: "个人体检",
itemTypeName: "检验科",
asbitemName: "血常规三分类",
doctorName: "王五",
doctorCheckCount: 1,
avgStandardPrice: 1,
avgChargePrice: 2,
sumStandardPrice: 3,
sumChargePrice: 4,
},
{
customerName: "个人体检",
itemTypeName: "检验科",
asbitemName: "肝功能检查",
doctorName: "张三",
doctorCheckCount: 1,
avgStandardPrice: 1,
avgChargePrice: 2,
sumStandardPrice: 3,
sumChargePrice: 4,
},
{
customerName: "个人体检",
itemTypeName: "一般检查",
asbitemName: "三围",
doctorName: "张三",
doctorCheckCount: 1,
avgStandardPrice: 1,
avgChargePrice: 2,
sumStandardPrice: 3,
sumChargePrice: 4,
},
{
customerName: "个人体检",
itemTypeName: "内科",
asbitemName: "血压",
doctorName: "李四",
doctorCheckCount: 1,
avgStandardPrice: 1,
avgChargePrice: 2,
sumStandardPrice: 3,
sumChargePrice: 4,
},
{
customerName: "个人体检",
itemTypeName: "检验科",
asbitemName: "血常规三分类",
doctorName: "王五",
doctorCheckCount: 1,
avgStandardPrice: 1,
avgChargePrice: 2,
sumStandardPrice: 3,
sumChargePrice: 4,
},
{
customerName: "个人体检",
itemTypeName: "检验科",
asbitemName: "肝功能检查",
doctorName: "张三",
doctorCheckCount: 1,
avgStandardPrice: 1,
avgChargePrice: 2,
sumStandardPrice: 3,
sumChargePrice: 4,
},
{
customerName: "个人体检",
itemTypeName: "一般检查",
asbitemName: "三围",
doctorName: "张三",
doctorCheckCount: 1,
avgStandardPrice: 1,
avgChargePrice: 2,
sumStandardPrice: 3,
sumChargePrice: 4,
},
{
customerName: "个人体检",
itemTypeName: "内科",
asbitemName: "血压",
doctorName: "李四",
doctorCheckCount: 1,
avgStandardPrice: 1,
avgChargePrice: 2,
sumStandardPrice: 3,
sumChargePrice: 4,
},
{
customerName: "个人体检",
itemTypeName: "检验科",
asbitemName: "血常规三分类",
doctorName: "王五",
doctorCheckCount: 1,
avgStandardPrice: 1,
avgChargePrice: 2,
sumStandardPrice: 3,
sumChargePrice: 4,
},
{
customerName: "个人体检",
itemTypeName: "检验科",
asbitemName: "肝功能检查",
doctorName: "张三",
doctorCheckCount: 1,
avgStandardPrice: 1,
avgChargePrice: 2,
sumStandardPrice: 3,
sumChargePrice: 4,
},
{
customerName: "个人体检",
itemTypeName: "一般检查",
asbitemName: "三围",
doctorName: "张三",
doctorCheckCount: 1,
avgStandardPrice: 1,
avgChargePrice: 2,
sumStandardPrice: 3,
sumChargePrice: 4,
},
{
customerName: "个人体检",
itemTypeName: "内科",
asbitemName: "血压",
doctorName: "李四",
doctorCheckCount: 1,
avgStandardPrice: 1,
avgChargePrice: 2,
sumStandardPrice: 3,
sumChargePrice: 4,
},
{
customerName: "个人体检",
itemTypeName: "检验科",
asbitemName: "血常规三分类",
doctorName: "王五",
doctorCheckCount: 1,
avgStandardPrice: 1,
avgChargePrice: 2,
sumStandardPrice: 3,
sumChargePrice: 4,
},
{
customerName: "个人体检",
itemTypeName: "检验科",
asbitemName: "肝功能检查",
doctorName: "张三",
doctorCheckCount: 1,
avgStandardPrice: 1,
avgChargePrice: 2,
sumStandardPrice: 3,
sumChargePrice: 4,
},
{
customerName: "个人体检",
itemTypeName: "一般检查",
asbitemName: "三围",
doctorName: "张三",
doctorCheckCount: 1,
avgStandardPrice: 1,
avgChargePrice: 2,
sumStandardPrice: 3,
sumChargePrice: 4,
},
{
customerName: "个人体检",
itemTypeName: "内科",
asbitemName: "血压",
doctorName: "李四",
doctorCheckCount: 1,
avgStandardPrice: 1,
avgChargePrice: 2,
sumStandardPrice: 3,
sumChargePrice: 4,
},
{
customerName: "个人体检",
itemTypeName: "检验科",
asbitemName: "血常规三分类",
doctorName: "王五",
doctorCheckCount: 1,
avgStandardPrice: 1,
avgChargePrice: 2,
sumStandardPrice: 3,
sumChargePrice: 4,
},
{
customerName: "个人体检",
itemTypeName: "检验科",
asbitemName: "肝功能检查",
doctorName: "张三",
doctorCheckCount: 1,
avgStandardPrice: 1,
avgChargePrice: 2,
sumStandardPrice: 3,
sumChargePrice: 4,
},
{
customerName: "个人体检",
itemTypeName: "一般检查",
asbitemName: "三围",
doctorName: "张三",
doctorCheckCount: 1,
avgStandardPrice: 1,
avgChargePrice: 2,
sumStandardPrice: 3,
sumChargePrice: 4,
},
{
customerName: "个人体检",
itemTypeName: "内科",
asbitemName: "血压",
doctorName: "李四",
doctorCheckCount: 1,
avgStandardPrice: 1,
avgChargePrice: 2,
sumStandardPrice: 3,
sumChargePrice: 4,
},
{
customerName: "个人体检",
itemTypeName: "检验科",
asbitemName: "血常规三分类",
doctorName: "王五",
doctorCheckCount: 1,
avgStandardPrice: 1,
avgChargePrice: 2,
sumStandardPrice: 3,
sumChargePrice: 4,
},
{
customerName: "个人体检",
itemTypeName: "检验科",
asbitemName: "肝功能检查",
doctorName: "张三",
doctorCheckCount: 1,
avgStandardPrice: 1,
avgChargePrice: 2,
sumStandardPrice: 3,
sumChargePrice: 4,
},
{
customerName: "湖南向日葵",
itemTypeName: "心电图",
asbitemName: "心电图",
doctorName: "张三",
doctorCheckCount: 1,
avgStandardPrice: 1,
avgChargePrice: 2,
sumStandardPrice: 3,
sumChargePrice: 4,
},
{
customerName: "神4",
itemTypeName: "脂肪代谢",
asbitemName: "脂肪代谢",
doctorName: "李四",
doctorCheckCount: 1,
avgStandardPrice: 1,
avgChargePrice: 2,
sumStandardPrice: 3,
sumChargePrice: 4,
}
];
let newTableData = []; let newTableData = [];
let objs = { let objs = {
customerName: "", customerName: "",
@ -1206,148 +566,6 @@ page-break-before: avoid;}}`, // 去除页眉页脚
} }
).then((res) => { ).then((res) => {
if (res.code != -1) { if (res.code != -1) {
res.data = [
{
customerName: "个人体检",
itemTypeName: "一般检查",
asbitemName: "三围",
doctorCheckCount: 1,
avgStandardPrice: 1,
avgChargePrice: 2,
sumStandardPrice: 3,
sumChargePrice: 4,
},
{
customerName: "个人体检",
itemTypeName: "一般检查",
asbitemName: "三围",
doctorCheckCount: 1,
avgStandardPrice: 1,
avgChargePrice: 2,
sumStandardPrice: 3,
sumChargePrice: 4,
},
{
customerName: "个人体检",
itemTypeName: "一般检查",
asbitemName: "三围",
doctorCheckCount: 1,
avgStandardPrice: 1,
avgChargePrice: 2,
sumStandardPrice: 3,
sumChargePrice: 4,
},
{
customerName: "个人体检",
itemTypeName: "内科",
asbitemName: "血压",
doctorCheckCount: 1,
avgStandardPrice: 1,
avgChargePrice: 2,
sumStandardPrice: 3,
sumChargePrice: 4,
},
{
customerName: "个人体检",
itemTypeName: "检验科",
asbitemName: "血常规三分类",
doctorCheckCount: 1,
avgStandardPrice: 1,
avgChargePrice: 2,
sumStandardPrice: 3,
sumChargePrice: 4,
},
{
customerName: "个人体检",
itemTypeName: "检验科",
asbitemName: "血常规三分类",
doctorCheckCount: 1,
avgStandardPrice: 1,
avgChargePrice: 2,
sumStandardPrice: 3,
sumChargePrice: 4,
},
{
customerName: "个人体检",
itemTypeName: "检验科",
asbitemName: "乙肝两对半",
doctorCheckCount: 1,
avgStandardPrice: 1,
avgChargePrice: 2,
sumStandardPrice: 3,
sumChargePrice: 4,
},
{
customerName: "个人体检",
itemTypeName: "检验科",
asbitemName: "肝功能检查",
doctorCheckCount: 1,
avgStandardPrice: 1,
avgChargePrice: 2,
sumStandardPrice: 3,
sumChargePrice: 4,
},
{
customerName: "湖南向日葵",
itemTypeName: "一般检查",
asbitemName: "身高体重",
doctorCheckCount: 1,
avgStandardPrice: 1,
avgChargePrice: 2,
sumStandardPrice: 3,
sumChargePrice: 4,
},
{
customerName: "湖南向日葵",
itemTypeName: "心电图",
asbitemName: "心电图",
doctorCheckCount: 1,
avgStandardPrice: 1,
avgChargePrice: 2,
sumStandardPrice: 3,
sumChargePrice: 4,
},
{
customerName: "湖南向日葵",
itemTypeName: "心电图",
asbitemName: "心电图",
doctorCheckCount: 1,
avgStandardPrice: 1,
avgChargePrice: 2,
sumStandardPrice: 3,
sumChargePrice: 4,
},
{
customerName: "湖南向日葵",
itemTypeName: "心电图",
asbitemName: "心电图",
doctorCheckCount: 1,
avgStandardPrice: 1,
avgChargePrice: 2,
sumStandardPrice: 3,
sumChargePrice: 4,
},
{
customerName: "神4",
itemTypeName: "脂肪代谢",
asbitemName: "脂肪代谢",
doctorCheckCount: 1,
avgStandardPrice: 1,
avgChargePrice: 2,
sumStandardPrice: 3,
sumChargePrice: 4,
},
{
customerName: "神4",
itemTypeName: "脂肪代谢",
asbitemName: "脂肪代谢",
doctorCheckCount: 1,
avgStandardPrice: 1,
avgChargePrice: 2,
sumStandardPrice: 3,
sumChargePrice: 4,
},
];
let newTableData = []; let newTableData = [];
let objs = { let objs = {
customerName: "", customerName: "",

Loading…
Cancel
Save