pengjun 3 days ago
parent
commit
d531fb416c
  1. 2
      src/components/patientRegister/PatientRegisterEdit.vue
  2. 4
      src/components/patientRegister/PatientRegisterRecoverList.vue
  3. 60
      src/components/patientRegister/patientRegisterRecoverListQuery.vue
  4. 3
      src/components/report/deptProgress.vue

2
src/components/patientRegister/PatientRegisterEdit.vue

@ -35,7 +35,7 @@
</div> </div>
</div> </div>
</div> </div>
<div>
<div style="background-color: #e8e8e8;">
<el-form ref="form" :model="form" label-width="80px" :rules="rules" size="medium"> <el-form ref="form" :model="form" label-width="80px" :rules="rules" size="medium">
<el-row> <el-row>
<el-col :span="5"> <el-col :span="5">

4
src/components/patientRegister/PatientRegisterRecoverList.vue

@ -107,11 +107,11 @@
<div class="listBtn"> <div class="listBtn">
<el-button type="primary" class="commonbutton" @click="btnScanRecover">扫码回收</el-button> <el-button type="primary" class="commonbutton" @click="btnScanRecover">扫码回收</el-button>
</div> </div>
<div class="listBtn">
<!-- <div class="listBtn">
<download-excel :fields="jsonFields" :fetch="btnExport" type="xls" :name="tableName"> <download-excel :fields="jsonFields" :fetch="btnExport" type="xls" :name="tableName">
<el-button type="" style="width:100%">导出excel</el-button> <el-button type="" style="width:100%">导出excel</el-button>
</download-excel> </download-excel>
</div>
</div> -->
</div> </div>
<el-dialog title="扫/输入条码回收体检表(指引单)" :visible.sync="dialogVisible" width="400px" :append-to-body="true" <el-dialog title="扫/输入条码回收体检表(指引单)" :visible.sync="dialogVisible" width="400px" :append-to-body="true"
:close-on-click-modal="false"> :close-on-click-modal="false">

60
src/components/patientRegister/patientRegisterRecoverListQuery.vue

@ -132,6 +132,11 @@
<div class="query"> <div class="query">
<el-button class="commonbutton" @click="btnQuery">查询</el-button> <el-button class="commonbutton" @click="btnQuery">查询</el-button>
</div> </div>
<div class="query">
<download-excel :fields="jsonFields" :fetch="btnExport" type="xls" :name="tableName">
<el-button type="" style="width:100%">导出excel</el-button>
</download-excel>
</div>
</div> </div>
<div :style="'margin-top: 10px;width:' + (window.pageWidth - 15) + 'px;'"> <div :style="'margin-top: 10px;width:' + (window.pageWidth - 15) + 'px;'">
<el-table :data="tableData" width="100%" border :height="window.pageHeight < 600 ? 405 : window.pageHeight - 165" <el-table :data="tableData" width="100%" border :height="window.pageHeight < 600 ? 405 : window.pageHeight - 165"
@ -243,8 +248,8 @@
import moment from "moment"; import moment from "moment";
import { mapState, mapActions } from "vuex"; import { mapState, mapActions } from "vuex";
import { getapi, postapi, putapi, deletapi } from "@/api/api"; import { getapi, postapi, putapi, deletapi } from "@/api/api";
import { dddw, objCopy, arrayReduce, arrayExistObj } from "@/utlis/proFunc";
import { dddw, objCopy, arrayReduce, arrayExistObj,deepCopy } from "@/utlis/proFunc";
import { savePeoplePhoto } from "../../utlis/proApi";
export default { export default {
components: { components: {
@ -272,6 +277,40 @@ export default {
loadOptsInit: {}, loadOptsInit: {},
lazyLoading: false, lazyLoading: false,
dom: null, dom: null,
jsonFields: {
回收:"isRecoverGuide",
体检进度: "completeFlag",
锁住: "isLock",
单位: "customerOrgParentName",
部门: "customerOrgName",
姓名: "patientName",
性别: "sexName",
年龄: "age",
条码号: "patientRegisterNo",
档案号: "patientNo",
体检次数: "medicalTimes",
分组套餐: "groupPack",
民族: "nationName",
身份证: "idNo",
出生日期: "birthDate",
邮箱: "email",
手机: "mobileTelephone",
电话: "telephone",
地址: "address",
体检卡号: "medicalCardNo",
工卡号: "jobCardNo",
婚姻状况: "maritalStatusName",
体检类别: "medicalTypeName",
人员类别: "personnelTypeName",
职务: "jobPost",
职称: "jobTitle",
介绍人: "salesman",
VIP: "isVip",
登记人: "creatorName",
登记日期: "creationTime",
上传: "isUpload"
},
tableName:""
}; };
}, },
@ -605,7 +644,22 @@ export default {
} }
}) })
}, },
btnExport(elId) {
let tableDatas = deepCopy(this.tableData)
tableDatas.forEach((e, index) => {
if(e.completeFlag) e.completeFlag = this.dddw(this.dict.completeFlag, "id", e.completeFlag, "displayName")
if (e.sexId) e.sexId = dddw(this.dict.sex, "id", e.sexId, "displayName")
if (e.medicalPackageId !== this.dict.personOrgId && e.customerOrgId === this.dict.personOrgId) {
e.groupPack = e.medicalPackageName // dddw(this.dict.medicalPackage, "id", e.medicalPackageId, "displayName")
} else if (e.medicalPackageId !== this.dict.personOrgId && e.customerOrgId !== this.dict.personOrgId) {
e.groupPack = e.customerOrgGroupName // dddw(this.dict.customerOrgGroupAll, "id", e.customerOrgGroupId, "displayName")
}
if (e.idNo) e.idNo = e.idNo + '&'
if (e.birthDate) e.birthDate = moment(e.birthDate).format("yyyy-MM-DD")
})
this.tableName = '体检表回收' + moment(new Date()).format('yyyyMMDDHHmmss') + '.xls'
return tableDatas;
},
}, },
// //

3
src/components/report/deptProgress.vue

@ -161,7 +161,7 @@ export default {
// //
mounted() { mounted() {
let ldate = new Date(); let ldate = new Date();
this.query.startDate = ldate;
this.query.startDate = this.moment(ldate).format("YYYY-MM-DD");
this.query.endDate = ldate; this.query.endDate = ldate;
@ -177,7 +177,6 @@ export default {
methods: { methods: {
...mapActions(["getCustomerOrgGroup", "getPatientRegisterAbs"]), ...mapActions(["getCustomerOrgGroup", "getPatientRegisterAbs"]),
dddw, moment, dddw, moment,
dictInit() { dictInit() {
// //
// getapi("/api/app/medical-type/in-filter").then((res) => { // getapi("/api/app/medical-type/in-filter").then((res) => {

Loading…
Cancel
Save