|
|
|
@ -3,48 +3,48 @@ |
|
|
|
<div :style="'display: flex;width:' + (window.pageWidth - 110 - 10) + 'px;'"> |
|
|
|
<div |
|
|
|
:style="'padding: 15px;background-color: #fff;border-radius: 8px;width:' + Math.floor((window.pageWidth - 110 - 50) / 2) + 'px;'"> |
|
|
|
<el-table :data="dataList" :height="window.pageHeight < 600 ? 350 : window.pageHeight - 245" row-key="id" |
|
|
|
size="small" highlight-current-row ref="dataList" @row-click="rowClick"> |
|
|
|
<el-table-column type="index" width="50" label="序号" /> |
|
|
|
<el-table-column prop="completeFlag" label="体检进度"> |
|
|
|
<u-table :data="tableData" :height="window.pageHeight < 600 ? 350 : window.pageHeight - 245" row-key="id" |
|
|
|
size="small" highlight-current-row ref="tableData" @row-click="rowClick" @table-body-scroll="scrollFull" use-virtual :row-height="25"> |
|
|
|
<u-table-column type="index" width="50" label="序号" /> |
|
|
|
<u-table-column prop="completeFlag" label="体检进度"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<div :style="`color: ${setPrStatusColor(scope.row.isAudit, scope.row.completeFlag)}`"> |
|
|
|
{{ dddw(dict.completeFlag,"id",scope.row.completeFlag,"displayName")}} |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="isLock" label="锁住" width="50"> |
|
|
|
</u-table-column> |
|
|
|
<u-table-column prop="isLock" label="锁住" width="50"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<div>{{ scope.row.isLock == "Y" ? "是" : "否" }}</div> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="customerOrgParentName" label="单位" width="180"> |
|
|
|
</u-table-column> |
|
|
|
<u-table-column prop="customerOrgParentName" label="单位" width="180"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<div> |
|
|
|
{{ scope.row.customerOrgParentName ? scope.row.customerOrgParentName : scope.row.customerOrgName }} |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="customerOrgName" label="部门" width="180"> |
|
|
|
</u-table-column> |
|
|
|
<u-table-column prop="customerOrgName" label="部门" width="180"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<div> |
|
|
|
{{ scope.row.customerOrgParentName ? scope.row.customerOrgName : "" }} |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="patientName" label="姓名" /> |
|
|
|
<el-table-column prop="sexId" label="性别"> |
|
|
|
</u-table-column> |
|
|
|
<u-table-column prop="patientName" label="姓名" /> |
|
|
|
<u-table-column prop="sexId" label="性别"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<div> |
|
|
|
{{ dddw(dict.sex, "id", scope.row.sexId, "displayName") }} |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="age" label="年龄" /> |
|
|
|
<el-table-column prop="patientRegisterNo" label="条码号" width="150" /> |
|
|
|
<el-table-column prop="patientNo" label="档案号" /> |
|
|
|
<el-table-column prop="medicalTimes" label="体检次数"></el-table-column> |
|
|
|
<el-table-column label="分组/套餐" width="150"> |
|
|
|
</u-table-column> |
|
|
|
<u-table-column prop="age" label="年龄" /> |
|
|
|
<u-table-column prop="patientRegisterNo" label="条码号" width="150" /> |
|
|
|
<u-table-column prop="patientNo" label="档案号" /> |
|
|
|
<u-table-column prop="medicalTimes" label="体检次数"></u-table-column> |
|
|
|
<u-table-column label="分组/套餐" width="150"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<div v-if="scope.row.medicalPackageId !== dict.personOrgId && |
|
|
|
scope.row.customerOrgId === dict.personOrgId |
|
|
|
@ -57,69 +57,69 @@ |
|
|
|
{{ dddw( dict.customerOrgGroupAll, "id", scope.row.customerOrgGroupId, "displayName" ) }} |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="nationId" label="民族"> |
|
|
|
</u-table-column> |
|
|
|
<u-table-column prop="nationId" label="民族"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<div> |
|
|
|
{{ dddw(dict.nation, "id", scope.row.nationId, "displayName") }} |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="idNo" label="身份证" width="150" /> |
|
|
|
<el-table-column prop="birthDate" label="出生日期" width="100"> |
|
|
|
</u-table-column> |
|
|
|
<u-table-column prop="idNo" label="身份证" width="150" /> |
|
|
|
<u-table-column prop="birthDate" label="出生日期" width="100"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<div v-if="scope.row.birthDate"> |
|
|
|
{{ lmoment(scope.row.birthDate, "yyyy-MM-DD") }} |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="email" label="邮箱" width="100" /> |
|
|
|
<el-table-column prop="mobileTelephone" label="手机" width="100" /> |
|
|
|
<el-table-column prop="telephone" label="电话" width="100" /> |
|
|
|
<el-table-column prop="address" label="地址" width="300" /> |
|
|
|
<el-table-column prop="medicalCardNo" label="体检卡号" /> |
|
|
|
<el-table-column prop="jobCardNo" label="工卡号" /> |
|
|
|
<el-table-column prop="maritalStatusId" label="婚姻状况"> |
|
|
|
</u-table-column> |
|
|
|
<u-table-column prop="email" label="邮箱" width="100" /> |
|
|
|
<u-table-column prop="mobileTelephone" label="手机" width="100" /> |
|
|
|
<u-table-column prop="telephone" label="电话" width="100" /> |
|
|
|
<u-table-column prop="address" label="地址" width="300" /> |
|
|
|
<u-table-column prop="medicalCardNo" label="体检卡号" /> |
|
|
|
<u-table-column prop="jobCardNo" label="工卡号" /> |
|
|
|
<u-table-column prop="maritalStatusId" label="婚姻状况"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<div> |
|
|
|
{{ dddw( dict.maritalStatus, "id", scope.row.maritalStatusId, "displayName" ) }} |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="medicalTypeId" label="体检类别"> |
|
|
|
</u-table-column> |
|
|
|
<u-table-column prop="medicalTypeId" label="体检类别"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<div v-if="scope.row.medicalTypeId !== dict.personOrgId"> |
|
|
|
{{ dddw( dict.medicalType, "id", scope.row.medicalTypeId, "displayName" ) }} |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="personnelTypeId" label="人员类别"> |
|
|
|
</u-table-column> |
|
|
|
<u-table-column prop="personnelTypeId" label="人员类别"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<div v-if="scope.row.personnelTypeId !== dict.personOrgId"> |
|
|
|
{{ dddw( dict.personnelType, "id", scope.row.personnelTypeId, "displayName" ) }} |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="jobPost" label="职务" /> |
|
|
|
<el-table-column prop="jobTitle" label="职称" /> |
|
|
|
<el-table-column prop="salesman" label="介绍人" /> |
|
|
|
<el-table-column prop="isVip" label="是否VIP"> |
|
|
|
</u-table-column> |
|
|
|
<u-table-column prop="jobPost" label="职务" /> |
|
|
|
<u-table-column prop="jobTitle" label="职称" /> |
|
|
|
<u-table-column prop="salesman" label="介绍人" /> |
|
|
|
<u-table-column prop="isVip" label="是否VIP"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<div>{{ scope.row.isVip == "Y" ? "是" : "否" }}</div> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="creatorName" label="登记人" /> |
|
|
|
<el-table-column prop="creationTime" label="登记日期" width="100"> |
|
|
|
</u-table-column> |
|
|
|
<u-table-column prop="creatorName" label="登记人" /> |
|
|
|
<u-table-column prop="creationTime" label="登记日期" width="100"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<div>{{ lmoment(scope.row.creationTime, "yyyy-MM-DD") }}</div> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="isUpload" label="是否上传"> |
|
|
|
</u-table-column> |
|
|
|
<u-table-column prop="isUpload" label="是否上传"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<div>{{ scope.row.isUpload == "Y" ? "是" : "否" }}</div> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table> |
|
|
|
</u-table-column> |
|
|
|
</u-table> |
|
|
|
</div> |
|
|
|
<div :style="'margin-left: 15px;width:' + Math.floor((window.pageWidth) / 2) + 'px;'"> |
|
|
|
<div style="display: flex; flex-wrap: wrap; height: 40px; width: 100%;background-color: #fff; |
|
|
|
@ -140,19 +140,19 @@ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div style="padding: 15px;background-color: #fff;border-radius: 8px;"> |
|
|
|
<el-table :data="doctorCheck.RegisterCheckList" |
|
|
|
<u-table :data="doctorCheck.RegisterCheckList" |
|
|
|
:height="window.pageHeight < 600 ? 310 : window.pageHeight - 291" highlight-current-row size="small" |
|
|
|
@selection-change="handleSelectionChange"> |
|
|
|
<el-table-column type="selection" width="40" align="center" /> |
|
|
|
<el-table-column prop="asbitemName" label="组合项目" width="180" /> |
|
|
|
<el-table-column label="状态" width="80" align="center"> |
|
|
|
<u-table-column type="selection" width="40" align="center" /> |
|
|
|
<u-table-column prop="asbitemName" label="组合项目" width="180" /> |
|
|
|
<u-table-column label="状态" width="80" align="center"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<div :style="`color: ${setCheckStatusColor(scope.row.completeFlag)};`">{{ dddw(dict.checkCompleteFlag, |
|
|
|
'id', scope.row.completeFlag, 'displayName') }}</div> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="lastModifierName" label="操作员" width="100" align="center" /> |
|
|
|
<el-table-column prop="lastModificationTime" label="操作时间" width="140" align="center"> |
|
|
|
</u-table-column> |
|
|
|
<u-table-column prop="lastModifierName" label="操作员" width="100" align="center" /> |
|
|
|
<u-table-column prop="lastModificationTime" label="操作时间" width="140" align="center"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<div> |
|
|
|
{{ |
|
|
|
@ -160,8 +160,8 @@ |
|
|
|
}} |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table> |
|
|
|
</u-table-column> |
|
|
|
</u-table> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
@ -183,15 +183,16 @@ import { dddw, objCopy, arrayReduce, setCheckStatusColor, setPrStatusColor} from |
|
|
|
|
|
|
|
import PatientRegisterEdit from "../../components/patientRegister/PatientRegisterEdit.vue"; |
|
|
|
import Camera from "../../components/patientRegister/Camera.vue"; |
|
|
|
|
|
|
|
import { UTable, UTableColumn } from "umy-ui"; |
|
|
|
export default { |
|
|
|
components: { |
|
|
|
PatientRegisterEdit, |
|
|
|
Camera, |
|
|
|
Camera,UTable, UTableColumn |
|
|
|
}, |
|
|
|
props: ["refQueryCondition"], |
|
|
|
data() { |
|
|
|
return { |
|
|
|
dataList: [], //列表数据 |
|
|
|
tableData: [], //列表数据 |
|
|
|
multipleSelection: [], //选中的数据列表 |
|
|
|
quick: { |
|
|
|
id: "", |
|
|
|
@ -199,14 +200,74 @@ export default { |
|
|
|
patientNo: "", |
|
|
|
patientName: "", |
|
|
|
}, |
|
|
|
|
|
|
|
patient_register_query_idno: 'Y', // 身份证排他 |
|
|
|
patient_register_query_name: 'N', // 姓名排他 |
|
|
|
patient_register_read_idno_upPhoto: 'N', // 读身份证查询 是否更新照片 |
|
|
|
|
|
|
|
LocalConfig: { |
|
|
|
normal: { |
|
|
|
maxResultCount: 100, //分页时单页记录数 |
|
|
|
}, |
|
|
|
}, |
|
|
|
loadOpts: { |
|
|
|
totalCount: 0, |
|
|
|
skipCount: 0, |
|
|
|
maxResultCount: 100, |
|
|
|
}, |
|
|
|
loadOptsInit: {}, |
|
|
|
}; |
|
|
|
}, |
|
|
|
|
|
|
|
created() { }, |
|
|
|
created() { |
|
|
|
try { |
|
|
|
let LocalConfig = JSON.parse(window.localStorage.getItem("LocalConfig") || null) |
|
|
|
if (LocalConfig?.normal?.maxResultCount){ |
|
|
|
this.LocalConfig.normal.maxResultCount = LocalConfig.normal.maxResultCount |
|
|
|
} |
|
|
|
|
|
|
|
} catch (error) { |
|
|
|
console.log('window.localStorage.getItem("LocalConfig")', error); |
|
|
|
} |
|
|
|
|
|
|
|
// console.log('this.LocalConfig',this.LocalConfig) |
|
|
|
this.loadOpts.maxResultCount = Number( |
|
|
|
this.LocalConfig.normal.maxResultCount || 100 |
|
|
|
); |
|
|
|
|
|
|
|
this.loadOptsInit = Object.assign({}, this.loadOpts); |
|
|
|
|
|
|
|
// 获取系统参数 -- 身份证排他 |
|
|
|
postapi("/api/app/SysParmValue/GetSysParmValueBySysParmId", |
|
|
|
{ sysParmId: "patient_register_query_idno" } |
|
|
|
).then((res) => { |
|
|
|
if (res.code > -1) { |
|
|
|
this.patient_register_query_idno = res.data || "Y"; |
|
|
|
} |
|
|
|
}); |
|
|
|
|
|
|
|
// 获取系统参数 -- 姓名排他 |
|
|
|
postapi("/api/app/SysParmValue/GetSysParmValueBySysParmId", |
|
|
|
{ sysParmId: "patient_register_query_name" } |
|
|
|
).then((res) => { |
|
|
|
if (res.code > -1) { |
|
|
|
this.patient_register_query_name = res.data || "N"; |
|
|
|
} |
|
|
|
}); |
|
|
|
|
|
|
|
// 获取系统参数 -- 读身份证 是否更新照片 |
|
|
|
postapi("/api/app/SysParmValue/GetSysParmValueBySysParmId", |
|
|
|
{ sysParmId: "patient_register_read_idno_upPhoto" } |
|
|
|
).then((res) => { |
|
|
|
if (res.code > -1) { |
|
|
|
this.patient_register_read_idno_upPhoto = res.data || "N"; |
|
|
|
} |
|
|
|
}); |
|
|
|
}, |
|
|
|
|
|
|
|
//挂载完成 |
|
|
|
mounted() { |
|
|
|
this.dataList = [] |
|
|
|
this.tableData = [] |
|
|
|
this.doctorCheck.RegisterCheckList = [] |
|
|
|
}, |
|
|
|
computed: { |
|
|
|
@ -394,75 +455,280 @@ export default { |
|
|
|
}, |
|
|
|
|
|
|
|
//查询 |
|
|
|
query() { |
|
|
|
let body = {}; |
|
|
|
|
|
|
|
console.log(`this.patientRegister.query`, this.patientRegister.query); |
|
|
|
if (this.patientRegister.query.customerOrgFlag) { |
|
|
|
if (this.patientRegister.query.CustomerOrgParentId) { |
|
|
|
body.customerOrgId = this.patientRegister.query.CustomerOrgParentId; |
|
|
|
} else { |
|
|
|
if (this.patientRegister.query.customerOrgId) |
|
|
|
body.customerOrgId = this.patientRegister.query.customerOrgId[0]; |
|
|
|
} |
|
|
|
async Query() { |
|
|
|
// 查询时,清掉明细数据 (滚动时不清) |
|
|
|
this.tableDataCurrentRow = {}; // 清除选择 |
|
|
|
if ( |
|
|
|
!( |
|
|
|
this.patientRegister.query.isSeries == "Y" && |
|
|
|
this.patientRegister.query.patientRegisterNo |
|
|
|
) |
|
|
|
) { |
|
|
|
this.tableData = []; |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (this.patientRegister.query.sex) |
|
|
|
body.sexId = this.patientRegister.query.sex; |
|
|
|
this.loadOpts = Object.assign(this.loadOpts, this.loadOptsInit); |
|
|
|
await this.getPrList(); |
|
|
|
}, |
|
|
|
|
|
|
|
if (this.patientRegister.query.patientName) |
|
|
|
body.patientName = this.patientRegister.query.patientName; |
|
|
|
//数据量多时,滚动加载 |
|
|
|
async load() { |
|
|
|
this.loadOpts.skipCount++; |
|
|
|
await this.getPrList(); |
|
|
|
this.lazyLoading = false |
|
|
|
}, |
|
|
|
|
|
|
|
// 查询获取人员列表数据 |
|
|
|
async getPrList() { |
|
|
|
if ( |
|
|
|
this.loadOpts.skipCount != 0 && |
|
|
|
this.loadOpts.skipCount * this.loadOpts.maxResultCount >= |
|
|
|
this.loadOpts.totalCount |
|
|
|
) |
|
|
|
return; |
|
|
|
// console.log('getPrList', this.loadOpts) |
|
|
|
|
|
|
|
let body = Object.assign({}, this.loadOpts) |
|
|
|
let queryType = this.refQueryCondition.queryType |
|
|
|
|
|
|
|
console.log('getPrList.this.refQueryCondition', this.refQueryCondition) |
|
|
|
// 非排他查询条件 ===================== Start ========================== |
|
|
|
if (!queryType) { |
|
|
|
|
|
|
|
// 查询条件--日期 |
|
|
|
if (this.refQueryCondition.startDate && this.refQueryCondition.endDate) { |
|
|
|
body.dateType = this.refQueryCondition.dateType; |
|
|
|
body.startDate = this.refQueryCondition.startDate |
|
|
|
body.endDate = this.refQueryCondition.endDate |
|
|
|
if (body.startDate > body.endDate) { |
|
|
|
this.$message.warning({ |
|
|
|
showClose: true, |
|
|
|
message: "起始日期不能大于截止日期,数据校验不通过!", |
|
|
|
}); |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
if (this.patientRegister.query.completeFlag) |
|
|
|
body.completeFlag = this.patientRegister.query.completeFlag; |
|
|
|
// 查询条件--单位、次数、分组 |
|
|
|
if (this.refQueryCondition.customerOrgFlag) { |
|
|
|
if (this.refQueryCondition.customerOrgId) body.customerOrgId = this.refQueryCondition.customerOrgId |
|
|
|
// 获取单位体检次数与分组 |
|
|
|
try { |
|
|
|
if ( |
|
|
|
this.refQueryCondition.customerOrgId && |
|
|
|
this.refQueryCondition.customerOrgId != this.dict.personOrgId && |
|
|
|
this.refQueryCondition.customerOrgRegister.id |
|
|
|
) { |
|
|
|
body.customerOrgRegisterId = this.refQueryCondition.customerOrgRegister.id; |
|
|
|
if (this.refQueryCondition.customerOrgGroupIds) body.customerOrgGroupIds = this.refQueryCondition.customerOrgGroupIds |
|
|
|
} |
|
|
|
} catch (error) { |
|
|
|
console.error(error); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
//StartDate EndDate |
|
|
|
if ( |
|
|
|
this.patientRegister.query.startDate && |
|
|
|
this.patientRegister.query.endDate |
|
|
|
) { |
|
|
|
body.startDate = moment(this.patientRegister.query.startDate).format( |
|
|
|
"yyyy-MM-DD" |
|
|
|
); |
|
|
|
body.endDate = moment(this.patientRegister.query.endDate).format( |
|
|
|
"yyyy-MM-DD" |
|
|
|
); |
|
|
|
if (body.startDate > body.endDate) { |
|
|
|
this.$message.warning({ showClose: true, message: "起始日期不能大于截止日期,数据校验不通过!" }); |
|
|
|
return; |
|
|
|
// 电话 |
|
|
|
if (this.refQueryCondition.phone) body.phone = this.refQueryCondition.phone |
|
|
|
// 性别 |
|
|
|
if (this.refQueryCondition.sexId) body.sexId = this.refQueryCondition.sexId |
|
|
|
// 体检类别 |
|
|
|
if (this.refQueryCondition.medicalTypeIds) body.medicalTypeIds = this.refQueryCondition.medicalTypeIds |
|
|
|
// 人员状态 |
|
|
|
if (this.refQueryCondition.completeFlags) body.completeFlags = this.refQueryCondition.completeFlags |
|
|
|
// 人员类别 |
|
|
|
if (this.refQueryCondition.personnelTypeIds) body.personnelTypeIds = this.refQueryCondition.personnelTypeIds |
|
|
|
// 表格回收状态 |
|
|
|
if (this.refQueryCondition.isRecoverGuide) body.isRecoverGuide = this.refQueryCondition.isRecoverGuide |
|
|
|
|
|
|
|
// 排他条件有值时 |
|
|
|
if (this.refQueryCondition.patientRegisterNo) { |
|
|
|
queryType = "patientRegisterNo" |
|
|
|
} else if (this.refQueryCondition.pacsNo) { |
|
|
|
queryType = "pacsNo" |
|
|
|
} else if (this.refQueryCondition.lisNo) { |
|
|
|
queryType = "lisNo" |
|
|
|
} else if (this.refQueryCondition.patientNo) { |
|
|
|
queryType = "patientNo" |
|
|
|
} else if (this.refQueryCondition.idCardNo) { |
|
|
|
queryType = "idCardNo" |
|
|
|
} else if (this.refQueryCondition.patientName) { |
|
|
|
queryType = "patientName" |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
// 非排他查询条件 ===================== End ========================== |
|
|
|
|
|
|
|
// 排他查询条件 |
|
|
|
let photo = '' |
|
|
|
switch (queryType) { |
|
|
|
case 'patientName': // 姓名排他判断 |
|
|
|
if (this.refQueryCondition.patientName) { |
|
|
|
body.patientName = this.refQueryCondition.patientName; |
|
|
|
if (this.patient_register_query_name == 'Y') { |
|
|
|
body = { |
|
|
|
patientName: this.refQueryCondition.patientName, |
|
|
|
skipCount: this.loadOpts.skipCount, |
|
|
|
maxResultCount: this.loadOpts.maxResultCount, |
|
|
|
}; |
|
|
|
} |
|
|
|
} |
|
|
|
break; |
|
|
|
case 'idCardNo': // 身份证排他判断 |
|
|
|
if (this.refQueryCondition.idCardNo) { |
|
|
|
body.idNo = this.refQueryCondition.idCardNo; |
|
|
|
if (this.patient_register_query_idno == 'Y') { |
|
|
|
body = { |
|
|
|
idNo: this.refQueryCondition.idCardNo, |
|
|
|
skipCount: this.loadOpts.skipCount, |
|
|
|
maxResultCount: this.loadOpts.maxResultCount, |
|
|
|
}; |
|
|
|
} |
|
|
|
} |
|
|
|
if (this.refQueryCondition.photo) photo = this.refQueryCondition.photo; |
|
|
|
break; |
|
|
|
case 'patientNo': // 档案号排他判断 |
|
|
|
if (this.refQueryCondition.patientNo) |
|
|
|
body = { |
|
|
|
patientNo: this.refQueryCondition.patientNo, |
|
|
|
skipCount: this.loadOpts.skipCount, |
|
|
|
maxResultCount: this.loadOpts.maxResultCount, |
|
|
|
}; |
|
|
|
break; |
|
|
|
case 'patientRegisterNo': // 条码号排他判断 |
|
|
|
if (this.refQueryCondition.patientRegisterNo) |
|
|
|
body = { |
|
|
|
patientRegisterNo: this.refQueryCondition.patientRegisterNo, |
|
|
|
skipCount: this.loadOpts.skipCount, |
|
|
|
maxResultCount: this.loadOpts.maxResultCount, |
|
|
|
}; |
|
|
|
break; |
|
|
|
case 'pacsNo': // 检查条码排他判断 |
|
|
|
if (this.refQueryCondition.pacsNo) |
|
|
|
body = { |
|
|
|
pacsNo: this.refQueryCondition.pacsNo, |
|
|
|
skipCount: this.loadOpts.skipCount, |
|
|
|
maxResultCount: this.loadOpts.maxResultCount, |
|
|
|
}; |
|
|
|
break; |
|
|
|
case 'lisNo': // 检验条码排他判断 |
|
|
|
if (this.refQueryCondition.lisNo) |
|
|
|
body = { |
|
|
|
lisNo: this.refQueryCondition.lisNo, |
|
|
|
skipCount: this.loadOpts.skipCount, |
|
|
|
maxResultCount: this.loadOpts.maxResultCount, |
|
|
|
}; |
|
|
|
break; |
|
|
|
default: // |
|
|
|
break; |
|
|
|
} |
|
|
|
|
|
|
|
if (this.patientRegister.query.idCardNo) |
|
|
|
body = { idNo: this.patientRegister.query.idCardNo }; |
|
|
|
// 带费且合计 /api/app/PatientRegister/GetPatientRegisterWithCharge |
|
|
|
// 不带费且合计 /api/app/patientregister/getlistinfilter |
|
|
|
postapi( |
|
|
|
"/api/app/patientregister/getlistinfilter", |
|
|
|
body |
|
|
|
).then(async (res) => { |
|
|
|
if (res.code > -1) { |
|
|
|
// 刷新最大记录数 |
|
|
|
this.loadOpts.totalCount = res.data.totalCount; |
|
|
|
let curLoad = res.data.items; |
|
|
|
|
|
|
|
// let oldCount = 0 |
|
|
|
// 处理: |
|
|
|
// 1、分组/套餐 排序混乱的问题 |
|
|
|
// 2、扫身份证查询时,无照片自动更新照片(参数控制) |
|
|
|
curLoad.forEach((e) => { |
|
|
|
// 1、分组/套餐 排序混乱的问题 |
|
|
|
if (e.customerOrgId == this.dict.personOrgId) { |
|
|
|
e.groupPack = e.medicalPackageId; |
|
|
|
} else { |
|
|
|
e.groupPack = e.customerOrgGroupId; |
|
|
|
} |
|
|
|
|
|
|
|
// 2、扫身份证查询时,无照片自动更新照片(参数控制) |
|
|
|
if (this.patient_register_read_idno_upPhoto == "Y" && photo) { |
|
|
|
if (!e.photo) { |
|
|
|
savePeoplePhoto(e.id, photo); |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
|
|
|
|
// 不是连续扫码时,需要判断是否分页查询(连续扫码不清原来的数据) |
|
|
|
// console.log("this.refQueryCondition", this.refQueryCondition.isSeries, this.refQueryCondition.patientRegisterNo); |
|
|
|
if (this.refQueryCondition.isSeries == "Y" && this.refQueryCondition.patientRegisterNo) { |
|
|
|
// 如果已经存在列表中,则不在添加 |
|
|
|
for (let index = curLoad.length - 1; index > -1; index--) { |
|
|
|
const e = curLoad[index]; |
|
|
|
if (arrayExistObj(this.tableData, 'id', e.id) > -1) curLoad.splice(index, 1) |
|
|
|
} |
|
|
|
} else { |
|
|
|
if (body.skipCount == 0) { |
|
|
|
//查询 |
|
|
|
this.tableData = []; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
this.tableData = this.tableData.concat(curLoad); |
|
|
|
// else { |
|
|
|
// // 懒加载 ,原数据集不用清空 |
|
|
|
// oldCount = this.tableData.length |
|
|
|
// } |
|
|
|
// curLoad.forEach((e, index) => { |
|
|
|
// this.tableData.push(Object.assign({ index: Number(oldCount) + Number(index), choosed: false }, e)) |
|
|
|
// }) |
|
|
|
} |
|
|
|
}); |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
if (this.patientRegister.query.patientNo) |
|
|
|
body = { patientNo: this.patientRegister.query.patientNo }; |
|
|
|
//滚动加载数据 |
|
|
|
async scrollFull(scroll, event) { |
|
|
|
if (!scroll.judgeFlse) return; |
|
|
|
|
|
|
|
if (this.patientRegister.query.patientRegisterNo) |
|
|
|
body = { |
|
|
|
patientRegisterNo: this.patientRegister.query.patientRegisterNo, |
|
|
|
}; |
|
|
|
// 正在加载时阻止重复触发 |
|
|
|
if (this.lazyLoading) return; |
|
|
|
if ( |
|
|
|
(Number(this.loadOpts.skipCount) + 1) * |
|
|
|
Number(this.loadOpts.maxResultCount) >= |
|
|
|
Number(this.loadOpts.totalCount) |
|
|
|
) { |
|
|
|
return; |
|
|
|
} |
|
|
|
|
|
|
|
console.log("/api/app/patientregister/getlistinfilter", body); |
|
|
|
this.dataList = [] |
|
|
|
this.doctorCheck.RegisterCheckList = [] |
|
|
|
postapi("/api/app/patientregister/getlistinfilter", body) |
|
|
|
.then((res) => { |
|
|
|
if (res.code > -1) { |
|
|
|
this.dataList = res.data.items; |
|
|
|
} |
|
|
|
}) |
|
|
|
this.lazyLoading = true; |
|
|
|
try { |
|
|
|
await this.load(); |
|
|
|
} catch (e) { |
|
|
|
console.error('scrollFull load error', e); |
|
|
|
} |
|
|
|
// this.dom = this.$refs['tableData'].bodyWrapper |
|
|
|
// console.log('obj', this.dom) |
|
|
|
|
|
|
|
// this.dom.addEventListener('scroll', async () => { |
|
|
|
// // console.log('scrollTop',this.dom.scrollTop,'clientHeight',this.dom.clientHeight,'scrollHeight',this.dom.scrollHeight); |
|
|
|
// if (this.dom.scrollTop + this.dom.clientHeight + 20 > this.dom.scrollHeight && !this.lazyLoading) { |
|
|
|
// // 获取到的不是全部数据 当滚动到底部 |
|
|
|
// //console.log('scrollTop', obj.scrollTop, 'clientHeight', obj.clientHeight, 'scrollHeight', obj.scrollHeight); |
|
|
|
// if (Number(this.loadOpts.skipCount) * Number(this.loadOpts.maxResultCount) >= Number(this.loadOpts.totalCount)) { |
|
|
|
// this.lazyLoading = false |
|
|
|
// } else { |
|
|
|
// this.lazyLoading = true |
|
|
|
// this.load() |
|
|
|
// // this.dom.scrollTop = this.dom.scrollTop - 100 |
|
|
|
// } |
|
|
|
// } |
|
|
|
// }) |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
//监听事件 |
|
|
|
watch: { |
|
|
|
//触发查询事件 |
|
|
|
"patientRegister.query.times"(newVal, oldVal) { |
|
|
|
"refQueryCondition.queryConditionTimes"(newVal, oldVal) { |
|
|
|
if (newVal != oldVal) { |
|
|
|
//alert('触发查询事件') |
|
|
|
this.query(); |
|
|
|
console.log('弃检--触发查询 refQueryCondition.queryConditionTimes', oldVal, newVal) |
|
|
|
this.Query(); |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
|