|
|
|
@ -184,6 +184,7 @@ export default { |
|
|
|
err = '请填写 工种' |
|
|
|
return err |
|
|
|
} |
|
|
|
|
|
|
|
if(!disease.riskFactors){ |
|
|
|
err = '请填写 基本信息-接害因素' |
|
|
|
return err |
|
|
|
@ -216,6 +217,18 @@ export default { |
|
|
|
if (!e.occupationalAbnormalId) e.occupationalAbnormalId = null |
|
|
|
}); |
|
|
|
|
|
|
|
// 日期为空串的,换成 null |
|
|
|
this.dataTransOpts.tableM.patient_past_medical_history.forEach(e => { |
|
|
|
if(!e.diagnosisDate) e.diagnosisDate = null |
|
|
|
}); |
|
|
|
this.dataTransOpts.tableM.patient_occupational_disease.forEach(e => { |
|
|
|
if(!e.diagnosisDate) e.diagnosisDate = null |
|
|
|
}); |
|
|
|
this.dataTransOpts.tableM.patient_occupational_history.forEach(e => { |
|
|
|
if(!e.beginDate) e.beginDate = null |
|
|
|
if(!e.endDate) e.endDate = null |
|
|
|
}); |
|
|
|
|
|
|
|
return err |
|
|
|
}, |
|
|
|
// 点击确定 |
|
|
|
|