|
@@ -219,7 +219,13 @@ function getTreatment(item, dispatch, state,url,params, isChronic) {
|
|
|
for (let j = 0; j < adverseReactions.length; j++) { //判断不良反应是否有相同的不良反应,如果有,替换
|
|
|
for(let z = 0; z < allAdversReactionList[i].adversReactionList.length; z++) {
|
|
|
if(adverseReactions[j].id == allAdversReactionList[i].adversReactionList[z].id) {
|
|
|
- adverseReactions[j] = allAdversReactionList[i].adversReactionList[z]
|
|
|
+ for(let x = 0; x < allAdversReactionList[i].adversReactionList[z].details.length; x++) {
|
|
|
+ for(let y = 0; y < adverseReactions[j].details.length; y++) {//判断每一项是否选择过
|
|
|
+ if(allAdversReactionList[i].adversReactionList[z].details[x].name == adverseReactions[j].details[y].name && allAdversReactionList[i].adversReactionList[z].details[x].select) {
|
|
|
+ adverseReactions[j].details[y].select = allAdversReactionList[i].adversReactionList[z].details[x].select
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|