|
|
@ -7,7 +7,7 @@ |
|
|
</div> |
|
|
</div> |
|
|
<div> |
|
|
<div> |
|
|
<span class="query">档案号</span> |
|
|
<span class="query">档案号</span> |
|
|
<el-input placeholder="档案号" v-model="prBase.patientNo" size="small" style="width: 100px;" clearable /> |
|
|
|
|
|
|
|
|
<el-input placeholder="档案号" v-model="prBase.patientNo" size="small" style="width: 90px;" clearable /> |
|
|
</div> |
|
|
</div> |
|
|
<div> |
|
|
<div> |
|
|
<span class="query">姓名</span> |
|
|
<span class="query">姓名</span> |
|
|
@ -21,6 +21,14 @@ |
|
|
<span class="query">检验条码</span> |
|
|
<span class="query">检验条码</span> |
|
|
<el-input placeholder="检验条码" v-model="prBase.lisNo" size="small" style="width: 120px;" clearable /> |
|
|
<el-input placeholder="检验条码" v-model="prBase.lisNo" size="small" style="width: 120px;" clearable /> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
<div> |
|
|
|
|
|
<span class="query">身份证</span> |
|
|
|
|
|
<el-input placeholder="身份证号" v-model="prBase.idNo" size="small" style="width: 150px;" clearable/> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div> |
|
|
|
|
|
<span class="query">手机</span> |
|
|
|
|
|
<el-input placeholder="手机号" v-model="prBase.mobileTelephone" style="width: 120px;" size="small" clearable/> |
|
|
|
|
|
</div> |
|
|
<div> |
|
|
<div> |
|
|
<span class="query">性别</span> |
|
|
<span class="query">性别</span> |
|
|
<!-- |
|
|
<!-- |
|
|
@ -28,11 +36,7 @@ |
|
|
<el-option v-for="item in dict.sex" :key="item.id" :label="item.displayName" :value="item.id" /> |
|
|
<el-option v-for="item in dict.sex" :key="item.id" :label="item.displayName" :value="item.id" /> |
|
|
</el-select> |
|
|
</el-select> |
|
|
--> |
|
|
--> |
|
|
<el-input v-model="prBase.sexName" size="small" style="width: 80px;" disabled /> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div> |
|
|
|
|
|
<span class="query">身份证</span> |
|
|
|
|
|
<el-input v-model="prBase.idNo" size="small" style="width: 150px;" disabled /> |
|
|
|
|
|
|
|
|
<el-input v-model="prBase.sexName" size="small" style="width: 40px;" disabled /> |
|
|
</div> |
|
|
</div> |
|
|
<div> |
|
|
<div> |
|
|
<span class="query">年龄</span> |
|
|
<span class="query">年龄</span> |
|
|
@ -49,7 +53,7 @@ |
|
|
<el-option v-for="item in dict.maritalStatus" :key="item.id" :label="item.displayName" :value="item.id" /> |
|
|
<el-option v-for="item in dict.maritalStatus" :key="item.id" :label="item.displayName" :value="item.id" /> |
|
|
</el-select> |
|
|
</el-select> |
|
|
--> |
|
|
--> |
|
|
<el-input v-model="prBase.maritalStatusName" size="small" style="width: 80px;" disabled /> |
|
|
|
|
|
|
|
|
<el-input v-model="prBase.maritalStatusName" size="small" style="width: 40px;" disabled /> |
|
|
</div> |
|
|
</div> |
|
|
<div> |
|
|
<div> |
|
|
<span class="query">体检日期</span> |
|
|
<span class="query">体检日期</span> |
|
|
@ -58,11 +62,11 @@ |
|
|
</div> |
|
|
</div> |
|
|
<div> |
|
|
<div> |
|
|
<span class="query">单位</span> |
|
|
<span class="query">单位</span> |
|
|
<el-input :value="prBase.customerOrgParentName" style="width: 120px;" size="small" disabled /> |
|
|
|
|
|
|
|
|
<el-input v-model="prBase.customerOrgParentName" style="width: 150px;" size="small" disabled /> |
|
|
</div> |
|
|
</div> |
|
|
<div> |
|
|
<div> |
|
|
<span class="query">部门</span> |
|
|
<span class="query">部门</span> |
|
|
<el-input :value="prBase.customerOrgName" style="width: 120px;" size="small" disabled /> |
|
|
|
|
|
|
|
|
<el-input v-model="prBase.customerOrgName" style="width: 120px;" size="small" disabled /> |
|
|
</div> |
|
|
</div> |
|
|
<div> |
|
|
<div> |
|
|
<span class="query">体检类别</span> |
|
|
<span class="query">体检类别</span> |
|
|
@ -71,7 +75,7 @@ |
|
|
<el-option v-for="item in dict.medicalType" :key="item.id" :label="item.displayName" :value="item.id" /> |
|
|
<el-option v-for="item in dict.medicalType" :key="item.id" :label="item.displayName" :value="item.id" /> |
|
|
</el-select> |
|
|
</el-select> |
|
|
--> |
|
|
--> |
|
|
<el-input :value="prBase.medicalTypeName" style="width: 100px;" size="small" disabled /> |
|
|
|
|
|
|
|
|
<el-input v-model="prBase.medicalTypeName" style="width: 100px;" size="small" disabled /> |
|
|
</div> |
|
|
</div> |
|
|
<div> |
|
|
<div> |
|
|
<span class="query">人员类别</span> |
|
|
<span class="query">人员类别</span> |
|
|
@ -80,7 +84,7 @@ |
|
|
<el-option v-for="item in dict.personnelType" :key="item.id" :label="item.displayName" :value="item.id" /> |
|
|
<el-option v-for="item in dict.personnelType" :key="item.id" :label="item.displayName" :value="item.id" /> |
|
|
</el-select> |
|
|
</el-select> |
|
|
--> |
|
|
--> |
|
|
<el-input :value="prBase.personnelTypeName" style="width: 100px;" size="small" disabled /> |
|
|
|
|
|
|
|
|
<el-input v-model="prBase.personnelTypeName" style="width: 100px;" size="small" disabled /> |
|
|
</div> |
|
|
</div> |
|
|
<div> |
|
|
<div> |
|
|
<span class="query">民族</span> |
|
|
<span class="query">民族</span> |
|
|
@ -89,11 +93,7 @@ |
|
|
<el-option v-for="item in dict.nation" :key="item.id" :label="item.displayName" :value="item.id" /> |
|
|
<el-option v-for="item in dict.nation" :key="item.id" :label="item.displayName" :value="item.id" /> |
|
|
</el-select> |
|
|
</el-select> |
|
|
--> |
|
|
--> |
|
|
<el-input :value="prBase.nationName" style="width: 100px;" size="small" disabled /> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div> |
|
|
|
|
|
<span class="query">手机</span> |
|
|
|
|
|
<el-input :value="prBase.mobileTelephone" style="width: 120px;" size="small" disabled /> |
|
|
|
|
|
|
|
|
<el-input v-model="prBase.nationName" style="width: 80px;" size="small" disabled /> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
@ -217,7 +217,34 @@ export default { |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
//按条码号查个人数据 |
|
|
|
|
|
|
|
|
//按条码号、档案、身份证 查个人数据 |
|
|
|
|
|
onQueryByOnlyNo(noType){ |
|
|
|
|
|
let noVal = this.prBase[noType] //唯一号的值 |
|
|
|
|
|
if(!noVal) return |
|
|
|
|
|
let body = {} |
|
|
|
|
|
body[noType] = noVal |
|
|
|
|
|
|
|
|
|
|
|
let patientRegister = {id:''} |
|
|
|
|
|
patientRegister[noType] = noVal |
|
|
|
|
|
this.dataTransOpts.tableS.patient_register = deepCopy(patientRegister) |
|
|
|
|
|
|
|
|
|
|
|
postapi('/api/app/patientregister/GetAlreadyRegisterPatientRegisterByNo', body) |
|
|
|
|
|
.then((res) => { |
|
|
|
|
|
if (res.code > -1) { |
|
|
|
|
|
this.dataTransOpts.tableS.patient_register = res.data |
|
|
|
|
|
if (this.dataTransOpts.tableS.patient_register.completeFlag != '3') this.dataTransOpts.tableS.patient_register.summaryDoctorId = this.userId |
|
|
|
|
|
if (this.dataTransOpts.tableS.patient_register.completeFlag == '3' && this.dataTransOpts.tableS.patient_register.isAudit == 'N') { |
|
|
|
|
|
this.dataTransOpts.tableS.patient_register.auditDoctorId = this.userId |
|
|
|
|
|
} |
|
|
|
|
|
// console.log('res.data',res.data) |
|
|
|
|
|
// console.log('this.dataTransOpts.tableS.patient_register',this.dataTransOpts.tableS.patient_register) |
|
|
|
|
|
} |
|
|
|
|
|
this.afterFind(this.dataTransOpts.tableS.patient_register) |
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
/* 合并到 onQueryByOnlyNo |
|
|
onQueryByPatientRegisterNo() { |
|
|
onQueryByPatientRegisterNo() { |
|
|
let patientRegisterNo = this.prBase.patientRegisterNo |
|
|
let patientRegisterNo = this.prBase.patientRegisterNo |
|
|
if (!patientRegisterNo) return |
|
|
if (!patientRegisterNo) return |
|
|
@ -268,8 +295,51 @@ export default { |
|
|
this.afterFind(this.dataTransOpts.tableS.patient_register) |
|
|
this.afterFind(this.dataTransOpts.tableS.patient_register) |
|
|
}); |
|
|
}); |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
*/ |
|
|
//按手机号或姓名查找客户信息 |
|
|
//按手机号或姓名查找客户信息 |
|
|
|
|
|
onQueryByNotOnlyNo(valType){ |
|
|
|
|
|
let noVal = this.prBase[valType] //唯一号的值 |
|
|
|
|
|
if(!noVal) return |
|
|
|
|
|
|
|
|
|
|
|
let body = { |
|
|
|
|
|
isFilterPreRegistration: 'Y' //是否需要过滤预登记数据 Y=过滤预登记数据 N=不过滤 默认为N (备注:只有CompleteFlag参数的值不为0的情况才有效,null值也有效) |
|
|
|
|
|
} |
|
|
|
|
|
let noType = valType |
|
|
|
|
|
if(valType == 'mobileTelephone') noType='phone' |
|
|
|
|
|
body[noType] = noVal |
|
|
|
|
|
|
|
|
|
|
|
let patientRegister = {id:''} |
|
|
|
|
|
patientRegister[valType] = noVal |
|
|
|
|
|
this.dataTransOpts.tableS.patient_register = deepCopy(patientRegister) |
|
|
|
|
|
|
|
|
|
|
|
postapi('/api/app/patientregister/getlistinfilter', body) |
|
|
|
|
|
.then(res => { |
|
|
|
|
|
if (res.code > -1) { |
|
|
|
|
|
if (res.data.items.length == 1) { |
|
|
|
|
|
this.dataTransOpts.tableS.patient_register = res.data.items[0] |
|
|
|
|
|
if (this.dataTransOpts.tableS.patient_register.completeFlag != '3') this.dataTransOpts.tableS.patient_register.summaryDoctorId = this.userId |
|
|
|
|
|
if (this.dataTransOpts.tableS.patient_register.completeFlag == '3' && this.dataTransOpts.tableS.patient_register.isAudit == 'N') { |
|
|
|
|
|
this.dataTransOpts.tableS.patient_register.auditDoctorId = this.userId |
|
|
|
|
|
} |
|
|
|
|
|
this.dataTransOpts.refresh.patient_register.S++ |
|
|
|
|
|
// this.getPatientRegister(res.data.items[0].id) |
|
|
|
|
|
|
|
|
|
|
|
} else if (res.data.items.length > 1) { |
|
|
|
|
|
this.PatientRegisterList = res.data.items |
|
|
|
|
|
this.dialogWin.PatientRegisterForChoose = true // 弹窗 |
|
|
|
|
|
this.dataTransOpts.plus.PatientRegisterForChoose++ |
|
|
|
|
|
} else { |
|
|
|
|
|
this.afterFind(this.dataTransOpts.tableS.patient_register) |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
/* 合并到 onQueryByNotOnlyNo |
|
|
|
|
|
//按姓名查找客户信息 |
|
|
getlistinfilterByName(v) { |
|
|
getlistinfilterByName(v) { |
|
|
let body = { |
|
|
let body = { |
|
|
patientName: v, |
|
|
patientName: v, |
|
|
@ -309,6 +379,7 @@ export default { |
|
|
// this.dataTransOpts.refresh.sum_diagnosis.M++ |
|
|
// this.dataTransOpts.refresh.sum_diagnosis.M++ |
|
|
// }, 20); |
|
|
// }, 20); |
|
|
}, |
|
|
}, |
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
|
//根据patientRegisterNo 获取 人员信息 |
|
|
//根据patientRegisterNo 获取 人员信息 |
|
|
getPatientRegister(patientRegisterNo) { |
|
|
getPatientRegister(patientRegisterNo) { |
|
|
@ -333,6 +404,7 @@ export default { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
lmoment(date, forMat) { |
|
|
lmoment(date, forMat) { |
|
|
return moment(new Date(date)).format(forMat); |
|
|
return moment(new Date(date)).format(forMat); |
|
|
}, |
|
|
}, |
|
|
@ -356,7 +428,15 @@ export default { |
|
|
let placeholder = input.getAttribute('placeholder') |
|
|
let placeholder = input.getAttribute('placeholder') |
|
|
switch (placeholder) { |
|
|
switch (placeholder) { |
|
|
case '条码号': |
|
|
case '条码号': |
|
|
if (input.value) this.onQueryByPatientRegisterNo() |
|
|
|
|
|
|
|
|
if (input.value) this.onQueryByOnlyNo('patientRegisterNo') //this.onQueryByPatientRegisterNo() |
|
|
|
|
|
input.select() |
|
|
|
|
|
break; |
|
|
|
|
|
case '档案号': |
|
|
|
|
|
if (input.value) this.onQueryByOnlyNo('patientNo') //this.onQueryByPatientNo() |
|
|
|
|
|
input.select() |
|
|
|
|
|
break; |
|
|
|
|
|
case '身份证号': |
|
|
|
|
|
if (input.value) this.onQueryByOnlyNo('idNo') //this.onQueryByPatientNo() |
|
|
input.select() |
|
|
input.select() |
|
|
break; |
|
|
break; |
|
|
case '检查条码': |
|
|
case '检查条码': |
|
|
@ -367,12 +447,12 @@ export default { |
|
|
if (input.value) this.onQueryByLisNo(input.value) |
|
|
if (input.value) this.onQueryByLisNo(input.value) |
|
|
input.select() |
|
|
input.select() |
|
|
break; |
|
|
break; |
|
|
case '档案号': |
|
|
|
|
|
if (input.value) this.onQueryByPatientNo() |
|
|
|
|
|
|
|
|
case '姓名': |
|
|
|
|
|
if (input.value) this.onQueryByNotOnlyNo('patientName') //this.getlistinfilterByName(input.value) |
|
|
input.select() |
|
|
input.select() |
|
|
break; |
|
|
break; |
|
|
case '姓名': |
|
|
|
|
|
if (input.value) this.getlistinfilterByName(input.value) |
|
|
|
|
|
|
|
|
case '手机号': |
|
|
|
|
|
if (input.value) this.onQueryByNotOnlyNo('mobileTelephone') //this.getlistinfilterByName(input.value) |
|
|
input.select() |
|
|
input.select() |
|
|
break; |
|
|
break; |
|
|
} |
|
|
} |
|
|
|