|
@@ -321,38 +321,122 @@ function ribao_add() {
|
|
$('#ribao')[0].style.display = 'none';
|
|
$('#ribao')[0].style.display = 'none';
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ var userId = $("#userId").val();
|
|
|
|
+ //获取用户家人
|
|
|
|
+ $.ajax({
|
|
|
|
+ url: '/home/selectAddSuspected',
|
|
|
|
+ get: "get",
|
|
|
|
+ data: {
|
|
|
|
+ "userCreate": userId
|
|
|
|
+ },
|
|
|
|
+ success: function (data) {
|
|
|
|
+ if (data != null || data!='') {
|
|
|
|
+ //存在
|
|
|
|
+ var suspected = data;
|
|
|
|
+ $("#js_input_user_sex").val(getGreder(suspected.grender));
|
|
|
|
+ $("#js_input_user_sex").attr("data-values", suspected.grender);
|
|
|
|
+ $("#js_input_user_name").val(suspected.userName);
|
|
|
|
+ $("#js_input_user_age").val(suspected.age);
|
|
|
|
+ //基本情况
|
|
|
|
+ if (suspected.familyStatus != "") {
|
|
|
|
+ var familyStatusList = suspected.familyStatus.split(",");
|
|
|
|
+ if (familyStatusList[0] == 1)
|
|
|
|
+ $("input[name='checkbox1']").prop("checked", "checked");
|
|
|
|
+ else
|
|
|
|
+ $("input[name='checkbox1']").removeAttr("checked");
|
|
|
|
+ if (familyStatusList[1] == 1)
|
|
|
|
+ $("input[name='checkbox2']").prop("checked", "checked");
|
|
|
|
+ else
|
|
|
|
+ $("input[name='checkbox2']").removeAttr("checked");
|
|
|
|
+ if (familyStatusList[2] == 1)
|
|
|
|
+ $("input[name='checkbox3']").prop("checked", "checked");
|
|
|
|
+ else
|
|
|
|
+ $("input[name='checkbox3']").removeAttr("checked");
|
|
|
|
+ if (familyStatusList[3] == 1)
|
|
|
|
+ $("input[name='checkbox4']").prop("checked", "checked");
|
|
|
|
+ else
|
|
|
|
+ $("input[name='checkbox4']").removeAttr("checked");
|
|
|
|
+ if (familyStatusList[4] == 1)
|
|
|
|
+ $("input[name='checkbox5']").prop("checked", "checked");
|
|
|
|
+ else
|
|
|
|
+ $("input[name='checkbox5']").removeAttr("checked");
|
|
|
|
+ if (familyStatusList[5] == 1)
|
|
|
|
+ $("input[name='checkbox6']").prop("checked", "checked");
|
|
|
|
+ else
|
|
|
|
+ $("input[name='checkbox6']").removeAttr("checked");
|
|
|
|
+ if (familyStatusList[6] == 1)
|
|
|
|
+ $("input[name='checkbox7']").prop("checked", "checked");
|
|
|
|
+ else
|
|
|
|
+ $("input[name='checkbox7']").removeAttr("checked");
|
|
|
|
|
|
- //基本情况
|
|
|
|
- $("input[name='checkbox1']").removeAttr("checked");
|
|
|
|
- $("input[name='checkbox2']").removeAttr("checked");
|
|
|
|
- $("input[name='checkbox3']").removeAttr("checked");
|
|
|
|
- $("input[name='checkbox4']").removeAttr("checked");
|
|
|
|
- $("input[name='checkbox5']").removeAttr("checked");
|
|
|
|
- $("input[name='checkbox6']").removeAttr("checked");
|
|
|
|
- $("input[name='checkbox7']").removeAttr("checked");
|
|
|
|
|
|
+ }
|
|
|
|
|
|
- $("#switchQuezhen").val(getMedical(0));
|
|
|
|
- $("#switchQuezhen").attr("data-values", 0);
|
|
|
|
|
|
+ $("#switchQuezhen").val(getMedical(suspected.medical));
|
|
|
|
+ $("#switchQuezhen").attr("data-values", suspected.medical);
|
|
|
|
|
|
- $("#switchDanjiangeli").val(getSingleRoom(0));
|
|
|
|
- $("#switchDanjiangeli").attr("data-values", 0);
|
|
|
|
|
|
+ $("#switchDanjiangeli").val(getSingleRoom(suspected.singleRoom));
|
|
|
|
+ $("#switchDanjiangeli").attr("data-values", suspected.singleRoom);
|
|
|
|
|
|
- $("#js_input_user_tiwen").val(0);
|
|
|
|
|
|
+ $("#js_input_user_tiwen").val(suspected.temperature);
|
|
|
|
|
|
- $("#js_input_user_kesou").val(getCough(0));
|
|
|
|
- $("#js_input_user_kesou").attr("data-values", 0);
|
|
|
|
|
|
+ $("#js_input_user_kesou").val(getCough(suspected.cough));
|
|
|
|
+ $("#js_input_user_kesou").attr("data-values", suspected.cough);
|
|
|
|
|
|
- $("#js_input_user_jirou").val(getMuscle(0));
|
|
|
|
- $("#js_input_user_jirou").attr("data-values", 0);
|
|
|
|
|
|
+ $("#js_input_user_jirou").val(getMuscle(suspected.muscle));
|
|
|
|
+ $("#js_input_user_jirou").attr("data-values", suspected.muscle);
|
|
|
|
|
|
- $("#js_input_user_huxi").val(getDyspnea(0));
|
|
|
|
- $("#js_input_user_huxi").attr("data-values", 0);
|
|
|
|
|
|
+ $("#js_input_user_huxi").val(getDyspnea(suspected.dyspnea));
|
|
|
|
+ $("#js_input_user_huxi").attr("data-values", suspected.dyspnea);
|
|
|
|
+
|
|
|
|
+ $("#js_input_user_fali").val(getFatigue(suspected.fatigue));
|
|
|
|
+ $("#js_input_user_fali").attr("data-values", suspected.fatigue);
|
|
|
|
+
|
|
|
|
+ $("#js_input_user_fuxie").val(getDiarrhea(suspected.diarrhea));
|
|
|
|
+ $("#js_input_user_fuxie").attr("data-values", suspected.diarrhea);
|
|
|
|
+
|
|
|
|
+ $("#shuruqita").val(suspected.others);
|
|
|
|
+ $("#js_input_score_rezult").val(getScoreRezult(suspected.scoreRezult, suspected.temperatureScore));
|
|
|
|
+ $("#js_input_score_rezult_value").val(suspected.scoreRezult);
|
|
|
|
+ $("#js_input_temperature_score").val(suspected.temperatureScore);
|
|
|
|
+ $("#js_input_score_histroy").val(suspected.scoreHistroy);
|
|
|
|
+ $("#js_input_score").val(suspected.score);
|
|
|
|
+ }
|
|
|
|
+ else {
|
|
|
|
+ //基本情况
|
|
|
|
+ $("input[name='checkbox1']").removeAttr("checked");
|
|
|
|
+ $("input[name='checkbox2']").removeAttr("checked");
|
|
|
|
+ $("input[name='checkbox3']").removeAttr("checked");
|
|
|
|
+ $("input[name='checkbox4']").removeAttr("checked");
|
|
|
|
+ $("input[name='checkbox5']").removeAttr("checked");
|
|
|
|
+ $("input[name='checkbox6']").removeAttr("checked");
|
|
|
|
+ $("input[name='checkbox7']").removeAttr("checked");
|
|
|
|
|
|
- $("#js_input_user_fali").val(getFatigue(0));
|
|
|
|
- $("#js_input_user_fali").attr("data-values", 0);
|
|
|
|
|
|
+ $("#switchQuezhen").val(getMedical(0));
|
|
|
|
+ $("#switchQuezhen").attr("data-values", 0);
|
|
|
|
|
|
- $("#js_input_user_fuxie").val(getDiarrhea(0));
|
|
|
|
- $("#js_input_user_fuxie").attr("data-values", 0);
|
|
|
|
|
|
+ $("#switchDanjiangeli").val(getSingleRoom(0));
|
|
|
|
+ $("#switchDanjiangeli").attr("data-values", 0);
|
|
|
|
+
|
|
|
|
+ $("#js_input_user_tiwen").val(0);
|
|
|
|
+
|
|
|
|
+ $("#js_input_user_kesou").val(getCough(0));
|
|
|
|
+ $("#js_input_user_kesou").attr("data-values", 0);
|
|
|
|
+
|
|
|
|
+ $("#js_input_user_jirou").val(getMuscle(0));
|
|
|
|
+ $("#js_input_user_jirou").attr("data-values", 0);
|
|
|
|
+
|
|
|
|
+ $("#js_input_user_huxi").val(getDyspnea(0));
|
|
|
|
+ $("#js_input_user_huxi").attr("data-values", 0);
|
|
|
|
+
|
|
|
|
+ $("#js_input_user_fali").val(getFatigue(0));
|
|
|
|
+ $("#js_input_user_fali").attr("data-values", 0);
|
|
|
|
+
|
|
|
|
+ $("#js_input_user_fuxie").val(getDiarrhea(0));
|
|
|
|
+ $("#js_input_user_fuxie").attr("data-values", 0);
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ });
|
|
|
|
|
|
});
|
|
});
|
|
}
|
|
}
|