|
|
|
@ -107,6 +107,11 @@ |
|
|
|
<div class="listBtn"> |
|
|
|
<el-button type="primary" class="commonbutton" @click="btnScanRecover">扫码回收</el-button> |
|
|
|
</div> |
|
|
|
<div class="listBtn"> |
|
|
|
<download-excel :fields="jsonFields" :fetch="btnExport" type="xls" :name="tableName"> |
|
|
|
<el-button type="" style="width:100%">导出excel</el-button> |
|
|
|
</download-excel> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<el-dialog title="扫/输入条码回收体检表(指引单)" :visible.sync="dialogVisible" width="400" :append-to-body="true" |
|
|
|
:close-on-click-modal="false"> |
|
|
|
@ -125,12 +130,11 @@ |
|
|
|
import moment from "moment"; |
|
|
|
import { mapState, mapActions } from "vuex"; |
|
|
|
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"; |
|
|
|
|
|
|
|
import PatientRegisterEdit from "../../components/patientRegister/PatientRegisterEdit.vue"; |
|
|
|
import Camera from "../../components/patientRegister/Camera.vue"; |
|
|
|
|
|
|
|
export default { |
|
|
|
components: { |
|
|
|
PatientRegisterEdit, |
|
|
|
@ -158,6 +162,40 @@ export default { |
|
|
|
loadOptsInit: {}, |
|
|
|
lazyLoading:false, |
|
|
|
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:"" |
|
|
|
}; |
|
|
|
}, |
|
|
|
|
|
|
|
@ -521,6 +559,22 @@ export default { |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
btnExport(elId) { |
|
|
|
let tableDatas = deepCopy(this.tableData) |
|
|
|
tableDatas.forEach((e, index) => { |
|
|
|
if(e.completeFlag) e.completeFlag = this.ldddw(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; |
|
|
|
}, |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|