|
@@ -367,6 +367,7 @@ function renderpushByMayDisease(name, i) {
|
|
let medicinesPush = result.medicines || []
|
|
let medicinesPush = result.medicines || []
|
|
let operationsPush = result.operations || []
|
|
let operationsPush = result.operations || []
|
|
let nursePush = result.nurse || []
|
|
let nursePush = result.nurse || []
|
|
|
|
+ console.log(maydiagnoseType);
|
|
if (symptomPush.length == 0 && vitalPush.length == 0 && lisPush.length == 0 && pacsPush.length == 0 && scalePush.length == 0 && disPush.length == 0 && treatPush.length == 0 && medicinesPush.length == 0 && operationsPush.length == 0 && nursePush.length == 0) {
|
|
if (symptomPush.length == 0 && vitalPush.length == 0 && lisPush.length == 0 && pacsPush.length == 0 && scalePush.length == 0 && disPush.length == 0 && treatPush.length == 0 && medicinesPush.length == 0 && operationsPush.length == 0 && nursePush.length == 0) {
|
|
$.toast('toast1', '', 3000,'.maydiagnose',i);
|
|
$.toast('toast1', '', 3000,'.maydiagnose',i);
|
|
} else if(maydiagnoseType){
|
|
} else if(maydiagnoseType){
|
|
@@ -412,10 +413,11 @@ function renderpushByHasDisease(name, i) {
|
|
let medicinesPush = result.medicines || {}
|
|
let medicinesPush = result.medicines || {}
|
|
let operationsPush = result.operations || {}
|
|
let operationsPush = result.operations || {}
|
|
let nursePush = result.nurse || {}
|
|
let nursePush = result.nurse || {}
|
|
|
|
+ console.log(hasdiagnoseType);
|
|
if (symptomPush.length == 0 && vitalPush.length == 0 && lisPush.length == 0 && pacsPush.length == 0 && scalePush.length == 0 && disPush.length == 0 && treatPush.length == 0 && medicinesPush.length == 0 && operationsPush.length == 0 && nursePush.length == 0) {
|
|
if (symptomPush.length == 0 && vitalPush.length == 0 && lisPush.length == 0 && pacsPush.length == 0 && scalePush.length == 0 && disPush.length == 0 && treatPush.length == 0 && medicinesPush.length == 0 && operationsPush.length == 0 && nursePush.length == 0) {
|
|
$.toast('toast1', '', 3000,'.hasdiagnose',i);
|
|
$.toast('toast1', '', 3000,'.hasdiagnose',i);
|
|
} else if(hasdiagnoseType){
|
|
} else if(hasdiagnoseType){
|
|
- $.toast('toast2', '', 3000,'.maydiagnose',i);
|
|
|
|
|
|
+ $.toast('toast2', '', 3000,'.hasdiagnose',i);
|
|
}else {
|
|
}else {
|
|
renderHasSymptomPush(symptomPush)
|
|
renderHasSymptomPush(symptomPush)
|
|
renderHasVitalPush(vitalPush)
|
|
renderHasVitalPush(vitalPush)
|
|
@@ -1255,7 +1257,7 @@ function renderModuleWrapper(moduleList) {
|
|
let item = moduleList[i].planDetails[j]
|
|
let item = moduleList[i].planDetails[j]
|
|
arr.push(item.status)
|
|
arr.push(item.status)
|
|
}
|
|
}
|
|
- if(arr.indexOf('1') == -1){
|
|
|
|
|
|
+ if(arr.indexOf(1) == -1){
|
|
maydiagnoseType = true
|
|
maydiagnoseType = true
|
|
}
|
|
}
|
|
} else if (moduleList[i].code == 'hasdiagnose') {
|
|
} else if (moduleList[i].code == 'hasdiagnose') {
|
|
@@ -1266,7 +1268,7 @@ function renderModuleWrapper(moduleList) {
|
|
let item = moduleList[i].planDetails[j]
|
|
let item = moduleList[i].planDetails[j]
|
|
arr.push(item.status)
|
|
arr.push(item.status)
|
|
}
|
|
}
|
|
- if(arr.indexOf('1') == -1){
|
|
|
|
|
|
+ if(arr.indexOf(1) == -1){
|
|
hasdiagnoseType = true
|
|
hasdiagnoseType = true
|
|
}
|
|
}
|
|
} else {
|
|
} else {
|