|
|
|
@ -5,7 +5,7 @@ |
|
|
|
<OccDiseaseBase /> |
|
|
|
</el-tab-pane> |
|
|
|
<el-tab-pane label="既往病史" name="1"> |
|
|
|
<OccDiseasePrevious/> |
|
|
|
<OccDiseasePrevious /> |
|
|
|
</el-tab-pane> |
|
|
|
<el-tab-pane label="接害因素检查结论" name="2"> |
|
|
|
<OccDiseasePoison /> |
|
|
|
@ -21,7 +21,7 @@ |
|
|
|
<CheckDetails /> |
|
|
|
</el-tab-pane> |
|
|
|
<el-tab-pane label="图文报告" name="6"> |
|
|
|
<ImageTextReport/> |
|
|
|
<ImageTextReport /> |
|
|
|
</el-tab-pane> |
|
|
|
<el-tab-pane label="职业健康检查结论" name="7"> |
|
|
|
<OccDiseaseConclusion /> |
|
|
|
@ -74,8 +74,8 @@ export default { |
|
|
|
}, |
|
|
|
|
|
|
|
//挂载完成 |
|
|
|
mounted() { |
|
|
|
this.dictInit(); |
|
|
|
async mounted() { |
|
|
|
await this.dictInit(); |
|
|
|
|
|
|
|
this.initOccDiseaseData() |
|
|
|
|
|
|
|
@ -93,25 +93,31 @@ export default { |
|
|
|
methods: { |
|
|
|
|
|
|
|
//数据初始化 |
|
|
|
dictInit() { |
|
|
|
|
|
|
|
//职业病检查类别 |
|
|
|
postapi("/api/app/Poison/GetPoisonWithTypeList").then((res) => { |
|
|
|
if (res.code > -1) { |
|
|
|
this.dict.postion = res.data; |
|
|
|
this.dict.postionList = [] |
|
|
|
this.dict.postion.forEach(e => { |
|
|
|
e.poisonDtos.forEach(e2 => { |
|
|
|
this.dict.postionList.push({ |
|
|
|
poisonTypeName: e.poisonTypeName, |
|
|
|
id: e2.id, |
|
|
|
displayName: e2.displayName, |
|
|
|
simpleCode: e2.simpleCode |
|
|
|
}) |
|
|
|
}); |
|
|
|
async dictInit() { |
|
|
|
|
|
|
|
//职业病 接害因素 |
|
|
|
let res = await postapi("/api/app/Poison/GetPoisonWithTypeList") |
|
|
|
if (res.code > -1) { |
|
|
|
this.dict.postion = res.data; |
|
|
|
this.dict.postionList = [] |
|
|
|
this.dict.postion.forEach(e => { |
|
|
|
e.poisonDtos.forEach(e2 => { |
|
|
|
this.dict.postionList.push({ |
|
|
|
poisonTypeName: e.poisonTypeName, |
|
|
|
id: e2.id, |
|
|
|
displayName: e2.displayName, |
|
|
|
simpleCode: e2.simpleCode |
|
|
|
}) |
|
|
|
}); |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|
// 职业病--症状列表 |
|
|
|
let res2 = await postapi("/api/app/Symptom/GetList") |
|
|
|
if (res2.code > -1) { |
|
|
|
this.dict.symptom = res2.data; |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
@ -125,9 +131,16 @@ export default { |
|
|
|
this.dataTransOpts.tableM.patient_occupational_medical_history = deepCopy(res.data['patientOccupationalMedicalHistoryDtos']) |
|
|
|
this.dataTransOpts.tableM.patient_poison = deepCopy(res.data['patientPoisonDtos']) |
|
|
|
this.dataTransOpts.tableM.patient_occupational_history = deepCopy(res.data['patientOccupationalHistoryDtos']) |
|
|
|
this.dataTransOpts.tableM.patient_symptom = deepCopy(res.data['patientSymptomDtos']) |
|
|
|
if (Array.isArray(res.data['patientSymptomDtos']) && res.data['patientSymptomDtos'].length > 0) { |
|
|
|
this.dataTransOpts.tableM.patient_symptom = deepCopy(res.data['patientSymptomDtos']) |
|
|
|
} else { |
|
|
|
this.dataTransOpts.tableM.patient_symptom = [] |
|
|
|
this.dict.symptom.forEach(e => { |
|
|
|
this.dataTransOpts.tableM.patient_symptom.push({ symptomId: e.id, degree: '-' }) |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
btnTest() { |
|
|
|
@ -156,12 +169,21 @@ export default { |
|
|
|
}, |
|
|
|
|
|
|
|
// 点击确定 |
|
|
|
btnOk() { |
|
|
|
btnOk() { |
|
|
|
let message = '' |
|
|
|
this.dataTransOpts.tableM.patient_poison.forEach((e, i) => { |
|
|
|
if (!e.occupationalAbnormalId) message = `接害因素检查结论,第 ${i + 1} 行未下结论` |
|
|
|
}); |
|
|
|
if (message) { |
|
|
|
this.$message.warning({ showClose: true, message }) |
|
|
|
return |
|
|
|
} |
|
|
|
|
|
|
|
let body = { |
|
|
|
patientRegisterId: this.dataTransOpts.tableS.patient_register.id, |
|
|
|
patientOccupationalDisease: this.dataTransOpts.tableS.patient_occupational_disease, |
|
|
|
patientPastMedicalHistorys: this.dataTransOpts.tableM.patient_past_medical_history, |
|
|
|
patientOccupationalMedicalHistorys:this.dataTransOpts.tableM.patient_occupational_medical_history, |
|
|
|
patientOccupationalMedicalHistorys: this.dataTransOpts.tableM.patient_occupational_medical_history, |
|
|
|
patientPoisons: this.dataTransOpts.tableM.patient_poison, |
|
|
|
patientOccupationalHistorys: this.dataTransOpts.tableM.patient_occupational_history, |
|
|
|
patientSymptoms: this.dataTransOpts.tableM.patient_symptom |
|
|
|
@ -177,7 +199,7 @@ export default { |
|
|
|
this.$message.warning({ showClose: true, message: res.message }) |
|
|
|
} |
|
|
|
}).then(res => { |
|
|
|
if(res && res.code > -1){ |
|
|
|
if (res && res.code > -1) { |
|
|
|
this.dataTransOpts.plus.OccDisease++ |
|
|
|
} |
|
|
|
}) |
|
|
|
|