|
|
|
@ -3,7 +3,9 @@ |
|
|
|
<div @contextmenu.prevent="onContextmenu"> |
|
|
|
<u-table :data="patientRegister.prList" border ref="info" id="info" |
|
|
|
:height="(window.pageHeight < 600) ? 230 : (window.pageHeight - 370)" highlight-current-row |
|
|
|
@row-click="rowClick" size="small" row-key="patientRegisterId" @selection-change="handleSelectionChange" @row-contextmenu="rowContextmenu" @table-body-scroll="scrollFull" use-virtual :row-height="35" big-data-checkbox :data-changes-scroll-top="false"> |
|
|
|
@row-click="rowClick" size="small" row-key="patientRegisterId" @selection-change="handleSelectionChange" |
|
|
|
@row-contextmenu="rowContextmenu" @table-body-scroll="scrollFull" use-virtual :row-height="35" big-data-checkbox |
|
|
|
:data-changes-scroll-top="false"> |
|
|
|
<u-table-column :type="dragCol[0].type" width="40" align="center" /> |
|
|
|
<!--列可拖拽 key值很关键 --> |
|
|
|
<u-table-column v-for="(item, index) in dragCol" v-if="index != 0" :key="`${item.label + index}`" |
|
|
|
@ -79,7 +81,8 @@ export default { |
|
|
|
props: ['fromType'], |
|
|
|
data() { |
|
|
|
return { |
|
|
|
|
|
|
|
patient_register_query_idno: 'Y', //身份证排他 |
|
|
|
patient_register_query_name: 'N', //姓名排他 |
|
|
|
dialogVisible: false, |
|
|
|
dialogCamera: false, |
|
|
|
dialogGuide: false, |
|
|
|
@ -182,6 +185,24 @@ export default { |
|
|
|
} |
|
|
|
}) |
|
|
|
|
|
|
|
// 获取系统参数 -- 身份证排他 |
|
|
|
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"; |
|
|
|
} |
|
|
|
}); |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
//挂载完成 |
|
|
|
@ -508,11 +529,8 @@ export default { |
|
|
|
}) |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
body.customerOrgs = customerOrgs |
|
|
|
if (this.patientRegister.query.patientRegisterNo) body.patientRegisterNo = this.patientRegister.query.patientRegisterNo |
|
|
|
if (this.patientRegister.query.patientNo) body.patientNo = this.patientRegister.query.patientNo |
|
|
|
if (this.patientRegister.query.patientName) body.patientName = this.patientRegister.query.patientName |
|
|
|
if (this.patientRegister.query.idCardNo) body.idNo = this.patientRegister.query.idCardNo |
|
|
|
if (this.patientRegister.query.phone) body.phone = this.patientRegister.query.phone |
|
|
|
if (this.patientRegister.query.completeFlag) body.completeFlag = this.patientRegister.query.completeFlag |
|
|
|
if (this.patientRegister.query.isAudit) body.isAudit = this.patientRegister.query.isAudit |
|
|
|
@ -522,6 +540,46 @@ export default { |
|
|
|
if (this.patientRegister.query.personnelTypeId) body.personnelTypeId = this.patientRegister.query.personnelTypeId |
|
|
|
if (this.patientRegister.query.medicalConclusionId && this.patientRegister.query.medicalConclusionId.length > 0) body.medicalConclusionIds = this.patientRegister.query.medicalConclusionId |
|
|
|
|
|
|
|
// 判断姓名是否排他 |
|
|
|
if (this.patientRegister.query.patientName) { |
|
|
|
body.patientName = this.patientRegister.query.patientName |
|
|
|
if (this.patient_register_query_name == 'Y') { |
|
|
|
body = { |
|
|
|
patientName: this.patientRegister.query.patientName, |
|
|
|
skipCount: this.loadOpts.skipCount, |
|
|
|
maxResultCount: this.loadOpts.maxResultCount |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
// 判断身份证是否排他 |
|
|
|
if (this.patientRegister.query.idCardNo) { |
|
|
|
body.idNo = this.patientRegister.query.idCardNo |
|
|
|
if (this.patient_register_query_idno == 'Y') { |
|
|
|
body = { |
|
|
|
idNo: this.patientRegister.query.idCardNo, |
|
|
|
skipCount: this.loadOpts.skipCount, |
|
|
|
maxResultCount: this.loadOpts.maxResultCount |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
// 档案号排他 |
|
|
|
if (this.patientRegister.query.patientNo) { |
|
|
|
body = { |
|
|
|
patientNo: this.patientRegister.query.patientNo, |
|
|
|
skipCount: this.loadOpts.skipCount, |
|
|
|
maxResultCount: this.loadOpts.maxResultCount |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
// 条码号排他 |
|
|
|
if (this.patientRegister.query.patientRegisterNo) { |
|
|
|
body = { |
|
|
|
patientRegisterNo: this.patientRegister.query.patientRegisterNo, |
|
|
|
skipCount: this.loadOpts.skipCount, |
|
|
|
maxResultCount: this.loadOpts.maxResultCount |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
//console.log('/api/app/peisreport/getpatientregisterreport',body) |
|
|
|
// 带收费信息 /api/app/PeisReport/GetPatientRegisterReportWithCharge |
|
|
|
// 不带收费信息 /api/app/patientregister/getlistinfilter |
|
|
|
@ -609,6 +667,7 @@ export default { |
|
|
|
</script> |
|
|
|
<style scoped> |
|
|
|
@import "../../assets/css/global_table.css"; |
|
|
|
|
|
|
|
.box { |
|
|
|
display: flex; |
|
|
|
} |
|
|
|
|