|
|
|
@ -1376,6 +1376,10 @@ export default { |
|
|
|
this.form.customerOrgId = customerOrgId //体检单位 |
|
|
|
this.form.customerOrgParentId = customerOrgParentId //体检父单位 |
|
|
|
this.form.customerOrgName = customerOrgName |
|
|
|
|
|
|
|
// 登记时继承单位的体检类别 |
|
|
|
this.getMedicalTypeByOrg(customerOrgId) |
|
|
|
|
|
|
|
this.completeFlag = '0' |
|
|
|
this.handleFormData().then(() => { |
|
|
|
resolve() |
|
|
|
@ -1398,12 +1402,18 @@ export default { |
|
|
|
}, |
|
|
|
|
|
|
|
// 根据体检单位ID,获取体检类别 |
|
|
|
getMedicalTypeByOrg(orgId){ |
|
|
|
getMedicalTypeByOrg(customerOrgId){ |
|
|
|
return new Promise((resolve, reject) => { |
|
|
|
postapi('/api/app/Customerorg/GetMedicalTypeIdByCustomerOrgId') |
|
|
|
postapi('/api/app/Customerorg/GetMedicalTypeIdByCustomerOrgId',{customerOrgId}) |
|
|
|
.then(res => { |
|
|
|
if(res.code > -1){ |
|
|
|
this.form.medicalTypeId = res.data.medicalTypeId |
|
|
|
} |
|
|
|
}) |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
handleFormData() { |
|
|
|
return new Promise((resolve, reject) => { |
|
|
|
// 判断是否职业健康检查 |
|
|
|
|