|
|
|
@ -77,7 +77,8 @@ |
|
|
|
<el-col :span="5"> |
|
|
|
<!--autocomplete="off"--> |
|
|
|
<el-form-item label="姓名" prop="patientName"> |
|
|
|
<el-input id="patientName" v-model="form.patientName" @change="changePatientName" data-col="patientName" size="small"></el-input> |
|
|
|
<el-input id="patientName" v-model="form.patientName" @change="changePatientName" |
|
|
|
data-col="patientName" size="small"></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="5"> |
|
|
|
@ -1446,17 +1447,23 @@ export default { |
|
|
|
this.peisid = window.sessionStorage.getItem('peisid'); |
|
|
|
let customerOrgId, customerOrgName, customerOrgParentId |
|
|
|
|
|
|
|
if (this.refQueryCondition.customerOrgId) { |
|
|
|
if (this?.refQueryCondition?.customerOrgId) { |
|
|
|
customerOrgParentId = this.refQueryCondition.CustomerOrgParentId |
|
|
|
customerOrgId = this.refQueryCondition.customerOrgId |
|
|
|
customerOrgName = this.refQueryCondition.customerOrgName |
|
|
|
} else { |
|
|
|
if (Array.isArray(this.form.customerOrgId) && this.form.customerOrgId.length > 0) { |
|
|
|
customerOrgParentId = this.form.customerOrgId[0] |
|
|
|
customerOrgId = this.form.customerOrgId[this.form.customerOrgId.length - 1] |
|
|
|
customerOrgName = this.form.customerOrgName |
|
|
|
} else { |
|
|
|
customerOrgParentId = this.form.customerOrgParentId |
|
|
|
customerOrgId = this.form.customerOrgId |
|
|
|
customerOrgName = this.form.customerOrgName |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
this.preCustomerOrgId = this.refQueryCondition.customerOrgId |
|
|
|
this.preCustomerOrgId = this?.refQueryCondition?.customerOrgId |
|
|
|
if (!patientRegisterId) { //添加 |
|
|
|
this.form = Object.assign({}, this.form, this.formInit) |
|
|
|
this.form.registerCheckAsbitems = [] |
|
|
|
@ -1492,6 +1499,8 @@ export default { |
|
|
|
// 根据体检单位ID,获取体检类别、人员类别,介绍人 |
|
|
|
getMedicalTypeByOrg(customerOrgId) { |
|
|
|
return new Promise((resolve, reject) => { |
|
|
|
console.log('getMedicalTypeByOrg', customerOrgId) |
|
|
|
if (customerOrgId) { |
|
|
|
postapi('/api/app/Customerorg/GetMedicalTypeIdByCustomerOrgId', { customerOrgId }) |
|
|
|
.then(res => { |
|
|
|
if (res.code > -1) { |
|
|
|
@ -1500,6 +1509,12 @@ export default { |
|
|
|
this.form.salesman = res.data.salesPerson |
|
|
|
} |
|
|
|
}) |
|
|
|
.finally(() => { |
|
|
|
resolve() |
|
|
|
}) |
|
|
|
} else { |
|
|
|
resolve() |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
|