|
|
@ -295,7 +295,7 @@ |
|
|
@close="close_dialogWin_PatientRegisterEdit"> |
|
|
@close="close_dialogWin_PatientRegisterEdit"> |
|
|
<!-- :formInitData="patientRegister.patientRegisterRd" --> |
|
|
<!-- :formInitData="patientRegister.patientRegisterRd" --> |
|
|
<PatientRegisterEdit :isDoctor="'1'" :patientRegisterId="patientRegister.patientRegisterRd.id" |
|
|
<PatientRegisterEdit :isDoctor="'1'" :patientRegisterId="patientRegister.patientRegisterRd.id" |
|
|
:editTimes="editTimes" :refFuncSetData="refFuncSetData" :refQueryCondition="refQueryCondition"/> |
|
|
|
|
|
|
|
|
:editTimes="editTimes" :refFuncSetData="refFuncSetData" :refQueryCondition="refQueryCondition" /> |
|
|
</el-dialog> |
|
|
</el-dialog> |
|
|
|
|
|
|
|
|
<!-- 修改信息 --> |
|
|
<!-- 修改信息 --> |
|
|
@ -1055,7 +1055,7 @@ export default { |
|
|
this.patient_register_read_idno_upPhoto = res.data || "N"; |
|
|
this.patient_register_read_idno_upPhoto = res.data || "N"; |
|
|
} |
|
|
} |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
@ -1552,7 +1552,7 @@ export default { |
|
|
}); |
|
|
}); |
|
|
return; |
|
|
return; |
|
|
} |
|
|
} |
|
|
console.log('btnAdd.this.refQueryCondition',this.refQueryCondition) |
|
|
|
|
|
|
|
|
console.log('btnAdd.this.refQueryCondition', this.refQueryCondition) |
|
|
let customerOrgId = this.refQueryCondition.customerOrgId; |
|
|
let customerOrgId = this.refQueryCondition.customerOrgId; |
|
|
if (!customerOrgId) { |
|
|
if (!customerOrgId) { |
|
|
this.$message.warning({ showClose: true, message: "请选择单位或个人" }); |
|
|
this.$message.warning({ showClose: true, message: "请选择单位或个人" }); |
|
|
@ -1785,7 +1785,7 @@ export default { |
|
|
this.lazyLoading = false; |
|
|
this.lazyLoading = false; |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
// 获取列表数据 |
|
|
|
|
|
|
|
|
// 查询获取人员列表数据 |
|
|
async getPrList() { |
|
|
async getPrList() { |
|
|
if ( |
|
|
if ( |
|
|
this.loadOpts.skipCount != 0 && |
|
|
this.loadOpts.skipCount != 0 && |
|
|
@ -1795,90 +1795,79 @@ export default { |
|
|
return; |
|
|
return; |
|
|
// console.log('getPrList', this.loadOpts) |
|
|
// console.log('getPrList', this.loadOpts) |
|
|
|
|
|
|
|
|
let body = { |
|
|
|
|
|
skipCount: this.loadOpts.skipCount, |
|
|
|
|
|
maxResultCount: this.loadOpts.maxResultCount, |
|
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
// console.log(`this.refQueryCondition`, this.refQueryCondition); |
|
|
|
|
|
if (this.refQueryCondition.customerOrgFlag) { |
|
|
|
|
|
// if (this.refQueryCondition.CustomerOrgParentId) { |
|
|
|
|
|
// body.customerOrgId = this.refQueryCondition.CustomerOrgParentId; |
|
|
|
|
|
// } else { |
|
|
|
|
|
// if (this.refQueryCondition.customerOrgId) |
|
|
|
|
|
// body.customerOrgId = this.refQueryCondition.customerOrgId; |
|
|
|
|
|
// } |
|
|
|
|
|
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; |
|
|
|
|
|
body.customerOrgGroupIds = |
|
|
|
|
|
this.refQueryCondition.customerOrgGroupIds; |
|
|
|
|
|
|
|
|
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; |
|
|
} |
|
|
} |
|
|
} catch (error) { |
|
|
|
|
|
console.error(error); |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (this.refQueryCondition.sex) |
|
|
|
|
|
body.sexId = this.refQueryCondition.sex; |
|
|
|
|
|
|
|
|
|
|
|
if ( |
|
|
|
|
|
this.refQueryCondition.medicalTypeIds && |
|
|
|
|
|
this.refQueryCondition.medicalTypeIds.length > 0 |
|
|
|
|
|
) |
|
|
|
|
|
body.medicalTypeIds = this.refQueryCondition.medicalTypeIds; |
|
|
|
|
|
|
|
|
|
|
|
if ( |
|
|
|
|
|
this.refQueryCondition.completeFlags && |
|
|
|
|
|
this.refQueryCondition.completeFlags.length > 0 |
|
|
|
|
|
) |
|
|
|
|
|
body.completeFlags = this.refQueryCondition.completeFlags; |
|
|
|
|
|
|
|
|
|
|
|
if ( |
|
|
|
|
|
this.refQueryCondition.personnelTypeIds && |
|
|
|
|
|
this.refQueryCondition.personnelTypeIds.length > 0 |
|
|
|
|
|
) |
|
|
|
|
|
body.personnelTypeIds = this.refQueryCondition.personnelTypeIds; |
|
|
|
|
|
|
|
|
|
|
|
if (this.refQueryCondition.isRecoverGuide) |
|
|
|
|
|
body.isRecoverGuide = this.refQueryCondition.isRecoverGuide; |
|
|
|
|
|
|
|
|
// 查询条件--单位、次数、分组 |
|
|
|
|
|
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.refQueryCondition.startDate && |
|
|
|
|
|
this.refQueryCondition.endDate |
|
|
|
|
|
) { |
|
|
|
|
|
body.dateType = this.refQueryCondition.dateType; |
|
|
|
|
|
body.startDate = moment(this.refQueryCondition.startDate).format( |
|
|
|
|
|
"yyyy-MM-DD" |
|
|
|
|
|
); |
|
|
|
|
|
body.endDate = moment(this.refQueryCondition.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" |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (this.refQueryCondition.phone) |
|
|
|
|
|
body.phone = this.refQueryCondition.phone; |
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
// 非排他查询条件 ===================== End ========================== |
|
|
|
|
|
|
|
|
// 排他查询条件 |
|
|
// 排他查询条件 |
|
|
let photo = '' |
|
|
let photo = '' |
|
|
switch (this.refQueryCondition.queryType) { |
|
|
|
|
|
|
|
|
switch (queryType) { |
|
|
case 'patientName': // 姓名排他判断 |
|
|
case 'patientName': // 姓名排他判断 |
|
|
if (this.refQueryCondition.patientName) { |
|
|
if (this.refQueryCondition.patientName) { |
|
|
body.patientName = this.refQueryCondition.patientName; |
|
|
body.patientName = this.refQueryCondition.patientName; |
|
|
@ -1902,7 +1891,7 @@ export default { |
|
|
}; |
|
|
}; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
if(this.refQueryCondition.photo) photo = this.refQueryCondition.photo; |
|
|
|
|
|
|
|
|
if (this.refQueryCondition.photo) photo = this.refQueryCondition.photo; |
|
|
break; |
|
|
break; |
|
|
case 'patientNo': // 档案号排他判断 |
|
|
case 'patientNo': // 档案号排他判断 |
|
|
if (this.refQueryCondition.patientNo) |
|
|
if (this.refQueryCondition.patientNo) |
|
|
@ -1936,10 +1925,10 @@ export default { |
|
|
maxResultCount: this.loadOpts.maxResultCount, |
|
|
maxResultCount: this.loadOpts.maxResultCount, |
|
|
}; |
|
|
}; |
|
|
break; |
|
|
break; |
|
|
default: |
|
|
|
|
|
|
|
|
default: // |
|
|
break; |
|
|
break; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 带费且合计 /api/app/PatientRegister/GetPatientRegisterWithCharge |
|
|
// 带费且合计 /api/app/PatientRegister/GetPatientRegisterWithCharge |
|
|
// 不带费且合计 /api/app/patientregister/getlistinfilter |
|
|
// 不带费且合计 /api/app/patientregister/getlistinfilter |
|
|
postapi( |
|
|
postapi( |
|
|
@ -1972,11 +1961,7 @@ export default { |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
// 不是连续扫码时,需要判断是否分页查询(连续扫码不清原来的数据) |
|
|
// 不是连续扫码时,需要判断是否分页查询(连续扫码不清原来的数据) |
|
|
console.log( |
|
|
|
|
|
"this.refQueryCondition", |
|
|
|
|
|
this.refQueryCondition.isSeries, |
|
|
|
|
|
this.refQueryCondition.patientRegisterNo |
|
|
|
|
|
); |
|
|
|
|
|
|
|
|
// console.log("this.refQueryCondition", this.refQueryCondition.isSeries, this.refQueryCondition.patientRegisterNo); |
|
|
if (this.refQueryCondition.isSeries == "Y" && this.refQueryCondition.patientRegisterNo) { |
|
|
if (this.refQueryCondition.isSeries == "Y" && this.refQueryCondition.patientRegisterNo) { |
|
|
// 如果已经存在列表中,则不在添加 |
|
|
// 如果已经存在列表中,则不在添加 |
|
|
for (let index = curLoad.length - 1; index > -1; index--) { |
|
|
for (let index = curLoad.length - 1; index > -1; index--) { |
|
|
@ -2009,7 +1994,7 @@ export default { |
|
|
|
|
|
|
|
|
//滚动加载数据 |
|
|
//滚动加载数据 |
|
|
async scrollFull(scroll, event) { |
|
|
async scrollFull(scroll, event) { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (!scroll.judgeFlse) return; |
|
|
if (!scroll.judgeFlse) return; |
|
|
|
|
|
|
|
|
// 正在加载时阻止重复触发 |
|
|
// 正在加载时阻止重复触发 |
|
|
|