diff --git a/src/components/occDisease/OccDiseaseHistory.vue b/src/components/occDisease/OccDiseaseHistory.vue index f644b4f..8682e18 100644 --- a/src/components/occDisease/OccDiseaseHistory.vue +++ b/src/components/occDisease/OccDiseaseHistory.vue @@ -87,8 +87,8 @@ - +
@@ -212,7 +212,14 @@ export default { btnAdd() { this.postion = deepCopy(this.dict.postion) this.dataTransOpts.tableM.patient_occupational_history.push({ - patientRegisterId: this.patientRegisterId + patientRegisterId: this.patientRegisterId, + beginDate: '', + endDate: '', + org: '', + workShop: '', + workType: '', + poison: '', + protectiveMeasures: '' }); }, @@ -220,14 +227,14 @@ export default { btnDispPoison(index) { this.currRow = index this.poisonList = deepCopy(this.dict.poisonList) - + this.poison = this.madeSelectGroup(this.poisonList) - if(this.dataTransOpts.tableM.patient_occupational_history[index]['poison']){ + if (this.dataTransOpts.tableM.patient_occupational_history[index]['poison']) { this.choosedPoison = this.dataTransOpts.tableM.patient_occupational_history[index]['poison'].split(",") - }else{ + } else { this.choosedPoison = [] } - + this.dialogPoison = true }, diff --git a/src/components/occDisease/OccDiseasePrevious.vue b/src/components/occDisease/OccDiseasePrevious.vue index 54f5614..80be933 100644 --- a/src/components/occDisease/OccDiseasePrevious.vue +++ b/src/components/occDisease/OccDiseasePrevious.vue @@ -43,7 +43,7 @@ @@ -91,7 +91,7 @@ @@ -201,16 +201,23 @@ export default { if (tableType == 'past') { this.dataTransOpts.tableM.patient_past_medical_history.push({ patientRegisterId: this.patientRegisterId, - poisonId: '' + occupationalDisease: '', + diagnosisDate: '', + diagnosisHospital: '', + isRecovery: 'N', + treatmentMethods: '' }); } else { this.dataTransOpts.tableM.patient_occupational_medical_history.push({ patientRegisterId: this.patientRegisterId, - poisonId: '' + occupationalDisease: '', + diagnosisDate: '', + diagnosisHospital: '', + isRecovery: 'N', + treatmentMethods: '' }); } }, - }, watch: {