|
|
|
@ -705,6 +705,7 @@ export default { |
|
|
|
// this.suggestionCurRow = lfind |
|
|
|
|
|
|
|
let sumSuggestionHeaderId = this.sumDoctorCheck.suggestionList[this.suggestionCurRow].id |
|
|
|
|
|
|
|
v.forEach(e => { |
|
|
|
let ld = arrayExistObj(this.diagnosises, 'id', e) |
|
|
|
if (ld > -1) { |
|
|
|
@ -715,6 +716,7 @@ export default { |
|
|
|
if (!this.sumDoctorCheck.suggestionList[this.suggestionCurRow]['medicalInterpretations']) { |
|
|
|
this.sumDoctorCheck.suggestionList[this.suggestionCurRow]['medicalInterpretations'] = [] |
|
|
|
} |
|
|
|
|
|
|
|
medicalInterpretations.forEach(e2 => { |
|
|
|
let lf = arrayExistObj(this.sumDoctorCheck.suggestionList[this.suggestionCurRow]['medicalInterpretations'], "suggestionContent", e2.suggestionContent) |
|
|
|
if (lf == -1) { |
|
|
|
@ -725,6 +727,13 @@ export default { |
|
|
|
}) |
|
|
|
} |
|
|
|
}); |
|
|
|
// 将空的医学解释删除 |
|
|
|
if(this.sumDoctorCheck.suggestionList[this.suggestionCurRow]['medicalInterpretations'].length > 0){ |
|
|
|
for (let index = this.sumDoctorCheck.suggestionList[this.suggestionCurRow]['medicalInterpretations'].length; index > 0; index--) { |
|
|
|
let element = this.sumDoctorCheck.suggestionList[this.suggestionCurRow]['medicalInterpretations'][index - 1]; |
|
|
|
if(!element?.suggestionContent) this.sumDoctorCheck.suggestionList[this.suggestionCurRow]['medicalInterpretations'].splice(index - 1,1) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
//添加常见原因 |
|
|
|
@ -743,9 +752,16 @@ export default { |
|
|
|
}) |
|
|
|
} |
|
|
|
}); |
|
|
|
// 将空的常见原因删除 |
|
|
|
if(this.sumDoctorCheck.suggestionList[this.suggestionCurRow]['commonReasons'].length > 0){ |
|
|
|
for (let index = this.sumDoctorCheck.suggestionList[this.suggestionCurRow]['commonReasons'].length; index > 0; index--) { |
|
|
|
let element = this.sumDoctorCheck.suggestionList[this.suggestionCurRow]['commonReasons'][index - 1]; |
|
|
|
if(!element?.suggestionContent) this.sumDoctorCheck.suggestionList[this.suggestionCurRow]['commonReasons'].splice(index - 1,1) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
//添加常见原因 |
|
|
|
//添加健康指导 |
|
|
|
let healthGuidances = this.diagnosises[ld]['healthGuidances'] |
|
|
|
if (healthGuidances) { |
|
|
|
if (!this.sumDoctorCheck.suggestionList[this.suggestionCurRow]['healthGuidances']) { |
|
|
|
@ -761,6 +777,13 @@ export default { |
|
|
|
}) |
|
|
|
} |
|
|
|
}); |
|
|
|
// 将空的健康指导删除 |
|
|
|
if(this.sumDoctorCheck.suggestionList[this.suggestionCurRow]['healthGuidances'].length > 0){ |
|
|
|
for (let index = this.sumDoctorCheck.suggestionList[this.suggestionCurRow]['healthGuidances'].length; index > 0; index--) { |
|
|
|
let element = this.sumDoctorCheck.suggestionList[this.suggestionCurRow]['healthGuidances'][index - 1]; |
|
|
|
if(!element?.suggestionContent) this.sumDoctorCheck.suggestionList[this.suggestionCurRow]['healthGuidances'].splice(index - 1,1) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
|