|
@@ -591,10 +591,12 @@ function splice(obj) {
|
|
|
function ribaoInitialization(reportId) {
|
|
|
if (reportId == null)
|
|
|
return;
|
|
|
+ var userId = $("#userId").val();
|
|
|
$.ajax({
|
|
|
url: '/home/home/queryRibaoRefresh',
|
|
|
data: {
|
|
|
- reportId: reportId
|
|
|
+ reportId: reportId,
|
|
|
+ userCreate: userId
|
|
|
},
|
|
|
type: 'GET',
|
|
|
success: function (data) {
|
|
@@ -722,151 +724,206 @@ function ribao_add() {
|
|
|
$('#notOpenRibao')[0].style.display = '';
|
|
|
$('#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");
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- $("#switchQuezhen").val(getMedical(suspected.medical));
|
|
|
- $("#switchQuezhen").attr("data-values", suspected.medical);
|
|
|
-
|
|
|
- $("#switchDanjiangeli").val(getSingleRoom(suspected.singleRoom));
|
|
|
- $("#switchDanjiangeli").attr("data-values", suspected.singleRoom);
|
|
|
-
|
|
|
- $("#js_input_user_tiwen").val(suspected.temperature);
|
|
|
-
|
|
|
- $("#js_input_user_kesou").val(getCough(suspected.cough));
|
|
|
- $("#js_input_user_kesou").attr("data-values", suspected.cough);
|
|
|
-
|
|
|
- $("#js_input_user_jirou").val(getMuscle(suspected.muscle));
|
|
|
- $("#js_input_user_jirou").attr("data-values", suspected.muscle);
|
|
|
-
|
|
|
- $("#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);
|
|
|
-
|
|
|
- $("#js_input_sf").val(getIsTrip(0));
|
|
|
- $("#js_input_sf").attr("data-values", 0);
|
|
|
- $('#none')[0].style.display = 'none';
|
|
|
- }
|
|
|
- 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");
|
|
|
-
|
|
|
- $("#switchQuezhen").val(getMedical(0));
|
|
|
- $("#switchQuezhen").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);
|
|
|
-
|
|
|
-
|
|
|
- // $("#js_input_cxfs").empty();
|
|
|
- // $("#js_input_cfd").empty();
|
|
|
- // $("#js_input_mdd").empty();
|
|
|
- // $('#js_input_cxfsq').val("");
|
|
|
- // $('#js_input_cfdq').val("");
|
|
|
- // $('#js_input_mddq').val("");
|
|
|
- // listcx.splice(0,listcx.length);
|
|
|
- // $('#tabtr').empty();
|
|
|
- // $("#js_input_qtdd").val("");
|
|
|
- // $("#js_input_jrszq").val("");
|
|
|
- // $("#js_input_sf").val("");
|
|
|
- $("#js_input_sf").val(getIsTrip(0));
|
|
|
- $("#js_input_sf").attr("data-values", 0);
|
|
|
- $('#none')[0].style.display = 'none';
|
|
|
- $('#tabtr').empty();
|
|
|
- // $("#suspectedId").val("");
|
|
|
- // $("#js_input_gzzd").val("");
|
|
|
- // $("#js_input_jrszd").val("");
|
|
|
- // $('#js_input_mddq').attr("disabled","disabled");
|
|
|
- // $('#js_input_jrszq').attr("disabled","disabled");
|
|
|
- // $('#js_input_qtdd').attr("disabled","disabled");
|
|
|
- // $('#js_input_cfdq').attr("disabled","disabled");
|
|
|
-
|
|
|
- }
|
|
|
- },
|
|
|
- });
|
|
|
+ //基本情况
|
|
|
+ $("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);
|
|
|
+
|
|
|
+ $("#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);
|
|
|
+
|
|
|
+
|
|
|
+ // $("#js_input_cxfs").empty();
|
|
|
+ // $("#js_input_cfd").empty();
|
|
|
+ // $("#js_input_mdd").empty();
|
|
|
+ // $('#js_input_cxfsq').val("");
|
|
|
+ // $('#js_input_cfdq').val("");
|
|
|
+ // $('#js_input_mddq').val("");
|
|
|
+ // listcx.splice(0,listcx.length);
|
|
|
+ // $('#tabtr').empty();
|
|
|
+ // $("#js_input_qtdd").val("");
|
|
|
+ // $("#js_input_jrszq").val("");
|
|
|
+ // $("#js_input_sf").val("");
|
|
|
+ $("#js_input_sf").val(getIsTrip(0));
|
|
|
+ $("#js_input_sf").attr("data-values", 0);
|
|
|
+ $('#none')[0].style.display = 'none';
|
|
|
+ $('#tabtr').empty();
|
|
|
+ // $("#suspectedId").val("");
|
|
|
+ // $("#js_input_gzzd").val("");
|
|
|
+ // $("#js_input_jrszd").val("");
|
|
|
+ // $('#js_input_mddq').attr("disabled","disabled");
|
|
|
+ // $('#js_input_jrszq').attr("disabled","disabled");
|
|
|
+ // $('#js_input_qtdd').attr("disabled","disabled");
|
|
|
+ // $('#js_input_cfdq').attr("disabled","disabled");
|
|
|
+
|
|
|
+ // 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");
|
|
|
+ //
|
|
|
+ // }
|
|
|
+ //
|
|
|
+ // $("#switchQuezhen").val(getMedical(suspected.medical));
|
|
|
+ // $("#switchQuezhen").attr("data-values", suspected.medical);
|
|
|
+ //
|
|
|
+ // $("#switchDanjiangeli").val(getSingleRoom(suspected.singleRoom));
|
|
|
+ // $("#switchDanjiangeli").attr("data-values", suspected.singleRoom);
|
|
|
+ //
|
|
|
+ // $("#js_input_user_tiwen").val(suspected.temperature);
|
|
|
+ //
|
|
|
+ // $("#js_input_user_kesou").val(getCough(suspected.cough));
|
|
|
+ // $("#js_input_user_kesou").attr("data-values", suspected.cough);
|
|
|
+ //
|
|
|
+ // $("#js_input_user_jirou").val(getMuscle(suspected.muscle));
|
|
|
+ // $("#js_input_user_jirou").attr("data-values", suspected.muscle);
|
|
|
+ //
|
|
|
+ // $("#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);
|
|
|
+ //
|
|
|
+ // $("#js_input_sf").val(getIsTrip(0));
|
|
|
+ // $("#js_input_sf").attr("data-values", 0);
|
|
|
+ // $('#none')[0].style.display = 'none';
|
|
|
+ // }
|
|
|
+ // 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");
|
|
|
+ //
|
|
|
+ // $("#switchQuezhen").val(getMedical(0));
|
|
|
+ // $("#switchQuezhen").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);
|
|
|
+ //
|
|
|
+ //
|
|
|
+ // // $("#js_input_cxfs").empty();
|
|
|
+ // // $("#js_input_cfd").empty();
|
|
|
+ // // $("#js_input_mdd").empty();
|
|
|
+ // // $('#js_input_cxfsq').val("");
|
|
|
+ // // $('#js_input_cfdq').val("");
|
|
|
+ // // $('#js_input_mddq').val("");
|
|
|
+ // // listcx.splice(0,listcx.length);
|
|
|
+ // // $('#tabtr').empty();
|
|
|
+ // // $("#js_input_qtdd").val("");
|
|
|
+ // // $("#js_input_jrszq").val("");
|
|
|
+ // // $("#js_input_sf").val("");
|
|
|
+ // $("#js_input_sf").val(getIsTrip(0));
|
|
|
+ // $("#js_input_sf").attr("data-values", 0);
|
|
|
+ // $('#none')[0].style.display = 'none';
|
|
|
+ // $('#tabtr').empty();
|
|
|
+ // // $("#suspectedId").val("");
|
|
|
+ // // $("#js_input_gzzd").val("");
|
|
|
+ // // $("#js_input_jrszd").val("");
|
|
|
+ // // $('#js_input_mddq').attr("disabled","disabled");
|
|
|
+ // // $('#js_input_jrszq').attr("disabled","disabled");
|
|
|
+ // // $('#js_input_qtdd').attr("disabled","disabled");
|
|
|
+ // // $('#js_input_cfdq').attr("disabled","disabled");
|
|
|
+ //
|
|
|
+ // }
|
|
|
+ // },
|
|
|
+ // });
|
|
|
|
|
|
});
|
|
|
}
|