|
@@ -130,11 +130,11 @@ function ribao_init() {
|
|
|
value: "0",
|
|
|
},
|
|
|
{
|
|
|
- title: "可体力劳动但觉得累",
|
|
|
+ title: "体力劳动后不能恢复",
|
|
|
value: "1",
|
|
|
},
|
|
|
{
|
|
|
- title: "轻体力劳动后长时间不能恢复",
|
|
|
+ title: "轻体力活非常累",
|
|
|
value: "2",
|
|
|
},
|
|
|
{
|
|
@@ -260,7 +260,6 @@ function ribao_refrash() {
|
|
|
ribao_cell(v);
|
|
|
});
|
|
|
} else {
|
|
|
-
|
|
|
}
|
|
|
}
|
|
|
},
|
|
@@ -287,7 +286,7 @@ function ribao_cell(v) {
|
|
|
var temperature = "体温:" + v.temperature + ";";
|
|
|
var cough = "";
|
|
|
if (v.cough != 0)
|
|
|
- cough = "咳嗽:" + getCough(v.cough) + ";";
|
|
|
+ cough = "咳嗽现象:" + getCough(v.cough) + ";";
|
|
|
var muscle = "";
|
|
|
if (v.muscle != 0)
|
|
|
muscle = "肌肉酸痛:" + getMuscle(v.muscle) + ";";
|
|
@@ -296,17 +295,20 @@ function ribao_cell(v) {
|
|
|
dyspnea = "呼吸困难:" + getDyspnea(v.dyspnea) + ";";
|
|
|
var fatigue = "";
|
|
|
if (v.fatigue != 0)
|
|
|
- fatigue = "乏力:" + getFatigue(v.fatigue) + ";";
|
|
|
+ fatigue = "乏力现象:" + getFatigue(v.fatigue) + ";";
|
|
|
var diarrhea = "";
|
|
|
if (v.diarrhea != 0)
|
|
|
- diarrhea = "腹泻:" + getDiarrhea(v.diarrhea) + ";";
|
|
|
+ diarrhea = "腹泻现象:" + getDiarrhea(v.diarrhea) + ";";
|
|
|
var others = "";
|
|
|
if (v.others != "")
|
|
|
others = "其他:" + v.others;
|
|
|
+ var scoreRezult = "";
|
|
|
+ if (v.scoreRezult != 0)
|
|
|
+ scoreRezult = "评估结果:" + getScoreRezult(v.scoreRezult, v.temperatureScore) + ";";
|
|
|
$('#rb_family').append($('<div class="weui-media-box weui-media-box_text" style="height: 12vh">\n' +
|
|
|
' <h4 class="weui-media-box__title">' + userName + ' ' + grender + ' ' + age + ' <a style="color: #bc4246" onclick=\'deleteSuspected(' + JSON.stringify(v.suspectedId) + ')\'>删除</a>\n' +
|
|
|
' <a style="color: #2a62bc" onclick=\'updateSuspected(' + JSON.stringify(v.suspectedId) + ')\'>修改</a></h4>\n' +
|
|
|
- ' <p class="weui-media-box__desc" style="height: 80%">' + familyStatus + medical + singleRoom + temperature + cough + muscle + dyspnea + fatigue + diarrhea + others + '</p>\n' +
|
|
|
+ ' <p class="weui-media-box__desc" style="height: 80%">' + familyStatus + medical + singleRoom + temperature + cough + muscle + dyspnea + fatigue + diarrhea + others + scoreRezult + '</p>\n' +
|
|
|
' </div>\n' +
|
|
|
' '));
|
|
|
}
|
|
@@ -321,6 +323,33 @@ function ribao_add() {
|
|
|
$('#notOpenRibao')[0].style.display = '';
|
|
|
$('#ribao')[0].style.display = 'none';
|
|
|
}
|
|
|
+
|
|
|
+ $("#js_input_user_status").val(getFamilyStatus(0));
|
|
|
+ $("#js_input_user_status").attr("data-values", 0);
|
|
|
+
|
|
|
+ $("#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);
|
|
|
+
|
|
|
});
|
|
|
}
|
|
|
|
|
@@ -339,28 +368,6 @@ function ribao_cancel() {
|
|
|
}
|
|
|
|
|
|
function ribaoCommit() {
|
|
|
-
|
|
|
- // console.log("sss");
|
|
|
- // console.log(
|
|
|
- // "姓名", $("#js_input_user_name").val(),
|
|
|
- // "性别", $("#js_input_user_sex").val(), "实际值", $("#js_input_user_sex").attr("data-values"),
|
|
|
- // "年龄", $("#js_input_user_age").val(),
|
|
|
- // "基本状况", $("#js_input_user_status").val(),
|
|
|
- // "状况描述", $("#jibenmiaoshu").val(),
|
|
|
- // "是否确诊", $("#switchQuezhen").val(),
|
|
|
- // "体温", $("#js_input_user_tiwen").val(),
|
|
|
- // "咳嗽", $("#js_input_user_kesou").val(),
|
|
|
- // "肌肉酸痛", $("#js_input_user_jirou").val(),
|
|
|
- // "呼吸困难", $("#js_input_user_huxi").val(),
|
|
|
- // "胸闷", $("#js_input_user_xiongmen").val(),
|
|
|
- // "乏力", $("#js_input_user_fali").val(),
|
|
|
- // "腹泻", $("#js_input_user_fuxie").val(),
|
|
|
- // "次数", $("#js_input_user_cishu").val(),
|
|
|
- // "其他", $("#shuruqita").val()
|
|
|
- // );
|
|
|
- // return;
|
|
|
-
|
|
|
-
|
|
|
var suspectedId = $("#suspectedId").val();
|
|
|
var userId = $("#userId").val();
|
|
|
var userName = $("#js_input_user_name").val();
|
|
@@ -377,6 +384,10 @@ function ribaoCommit() {
|
|
|
var fatigue = $("#js_input_user_fali").attr("data-values") == undefined ? 0 : $("#js_input_user_fali").attr("data-values");
|
|
|
var diarrhea = $("#js_input_user_fuxie").attr("data-values") == undefined ? 0 : $("#js_input_user_fuxie").attr("data-values");
|
|
|
var others = $("#shuruqita").val() == undefined ? "" : $("#shuruqita").val();
|
|
|
+ var scoreRezult = $("#js_input_score_rezult_value").val() == undefined ? "" : $("#js_input_score_rezult_value").val();
|
|
|
+ var temperatureScore = $("#js_input_temperature_score").val() == undefined ? "" : $("#js_input_temperature_score").val();
|
|
|
+ var scoreHistroy = $("#js_input_score_histroy").val() == undefined ? "" : $("#js_input_score_histroy").val();
|
|
|
+ var score = $("#js_input_score").val() == undefined ? "" : $("#js_input_score").val();
|
|
|
|
|
|
if (userName == undefined || userName == '') {
|
|
|
$.alert("请填写姓名");
|
|
@@ -424,8 +435,16 @@ function ribaoCommit() {
|
|
|
"fatigue": fatigue,
|
|
|
"diarrhea": diarrhea,
|
|
|
"others": others,
|
|
|
+ "scoreRezult": scoreRezult,
|
|
|
+ "temperatureScore": temperatureScore,
|
|
|
+ "scoreHistroy": scoreHistroy,
|
|
|
+ "score": score,
|
|
|
},
|
|
|
success: function (data) {
|
|
|
+ if (data.msgReport == "2"){
|
|
|
+ $.toast("家人姓名不能重复,如果重复,可以带上称呼");
|
|
|
+ return;
|
|
|
+ }
|
|
|
if ($('#ribao')[0].style.display == 'none') {
|
|
|
$('#notOpenRibao').toggle();
|
|
|
$('#ribao')[0].style.display = '';
|
|
@@ -512,6 +531,11 @@ function updateSuspected(suspectedId) {
|
|
|
$("#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);
|
|
|
}
|
|
|
},
|
|
|
});
|
|
@@ -586,7 +610,7 @@ function helpValue1(v) {
|
|
|
var temperature = "体温:" + v.temperature + ";";
|
|
|
var cough = "";
|
|
|
if (v.cough != 0)
|
|
|
- cough = "咳嗽:" + getCough(v.cough) + ";";
|
|
|
+ cough = "咳嗽现象:" + getCough(v.cough) + ";";
|
|
|
var muscle = "";
|
|
|
if (v.muscle != 0)
|
|
|
muscle = "肌肉酸痛:" + getMuscle(v.muscle) + ";";
|
|
@@ -595,16 +619,19 @@ function helpValue1(v) {
|
|
|
dyspnea = "呼吸困难:" + getDyspnea(v.dyspnea) + ";";
|
|
|
var fatigue = "";
|
|
|
if (v.fatigue != 0)
|
|
|
- fatigue = "乏力:" + getFatigue(v.fatigue) + ";";
|
|
|
+ fatigue = "乏力现象:" + getFatigue(v.fatigue) + ";";
|
|
|
var diarrhea = "";
|
|
|
if (v.diarrhea != 0)
|
|
|
- diarrhea = "腹泻:" + getDiarrhea(v.diarrhea) + ";";
|
|
|
+ diarrhea = "腹泻现象:" + getDiarrhea(v.diarrhea) + ";";
|
|
|
var others = "";
|
|
|
if (v.others != "")
|
|
|
others = "其他:" + v.others;
|
|
|
+ var scoreRezult = "";
|
|
|
+ if (v.scoreRezult != 0)
|
|
|
+ scoreRezult = "评估结果:" + getScoreRezult(v.scoreRezult, v.temperatureScore) + ";";
|
|
|
$('#ribao_famliy').append($('<div class="weui-media-box weui-media-box_text" style="height: 12vh">\n' +
|
|
|
' <h4 class="weui-media-box__title">' + userName + ' ' + grender + ' ' + age + '</h4>\n' +
|
|
|
- ' <p class="weui-media-box__desc" style="height: 80%">' + familyStatus + medical + singleRoom + temperature + cough + muscle + dyspnea + fatigue + diarrhea + others + '</p>\n' +
|
|
|
+ ' <p class="weui-media-box__desc" style="height: 80%">' + familyStatus + medical + singleRoom + temperature + cough + muscle + dyspnea + fatigue + diarrhea + others + scoreRezult + '</p>\n' +
|
|
|
' </div>\n' +
|
|
|
' '));
|
|
|
}
|
|
@@ -680,9 +707,9 @@ function getFatigue(fatigue) {
|
|
|
if (fatigue == 0)
|
|
|
return "无";
|
|
|
else if (fatigue == 1)
|
|
|
- return "可体力劳动但觉得累";
|
|
|
+ return "体力劳动后不能恢复";
|
|
|
else if (fatigue == 2)
|
|
|
- return "轻体力劳动后长时间不能恢复";
|
|
|
+ return "轻体力活非常累";
|
|
|
else if (fatigue == 3)
|
|
|
return "不能正常生活";
|
|
|
return "";
|
|
@@ -753,6 +780,97 @@ function clearShow() {
|
|
|
$("#js_input_user_fuxie").attr("data-values", "");
|
|
|
|
|
|
$("#shuruqita").val("");
|
|
|
+ $("#js_input_score_rezult").val("");
|
|
|
+ $("#js_input_score_rezult_value").val("");
|
|
|
+ $("#js_input_temperature_score").val("");
|
|
|
+ $("#js_input_score_histroy").val("");
|
|
|
+ $("#js_input_score").val("");
|
|
|
+}
|
|
|
+
|
|
|
+//健康评估
|
|
|
+$('#ribao_score').on('click', function () {
|
|
|
+ var suspectedId = $("#suspectedId").val();
|
|
|
+ var userId = $("#userId").val();
|
|
|
+ var userName = $("#js_input_user_name").val();
|
|
|
+ var temperature = $("#js_input_user_tiwen").val() == "" ? 0 : $("#js_input_user_tiwen").val();
|
|
|
+ var cough = $("#js_input_user_kesou").attr("data-values") == undefined ? 0 : $("#js_input_user_kesou").attr("data-values");
|
|
|
+ var muscle = $("#js_input_user_jirou").attr("data-values") == undefined ? 0 : $("#js_input_user_jirou").attr("data-values");
|
|
|
+ var dyspnea = $("#js_input_user_huxi").attr("data-values") == undefined ? 0 : $("#js_input_user_huxi").attr("data-values");
|
|
|
+ var fatigue = $("#js_input_user_fali").attr("data-values") == undefined ? 0 : $("#js_input_user_fali").attr("data-values");
|
|
|
+ var diarrhea = $("#js_input_user_fuxie").attr("data-values") == undefined ? 0 : $("#js_input_user_fuxie").attr("data-values");
|
|
|
+ if (userName == undefined || userName == '') {
|
|
|
+ $.alert("请填写姓名");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ if (temperature <= 0) {
|
|
|
+ $.alert("请填写体温");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ if (temperature > 50 || temperature < 30) {
|
|
|
+ $.alert("请填写正确的体温");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+
|
|
|
+ $.ajax({
|
|
|
+ url: '/home/addScore',
|
|
|
+ type: "post",
|
|
|
+ data: {
|
|
|
+ "userName": userName,
|
|
|
+ "suspectedId": suspectedId,
|
|
|
+ "userCreate": userId,
|
|
|
+ "temperature": temperature,
|
|
|
+ "cough": cough,
|
|
|
+ "muscle": muscle,
|
|
|
+ "dyspnea": dyspnea,
|
|
|
+ "fatigue": fatigue,
|
|
|
+ "diarrhea": diarrhea,
|
|
|
+ },
|
|
|
+ success: function (data) {
|
|
|
+ if (data == undefined) {
|
|
|
+ $('#js_input_score_rezult').empty();
|
|
|
+ $('#js_input_score_rezult_value').empty();
|
|
|
+ $('#js_input_temperature_score').empty();
|
|
|
+ $('#js_input_score_histroy').empty();
|
|
|
+ $('#js_input_score').empty();
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ $('#js_input_score_rezult').empty();
|
|
|
+ $('#js_input_temperature_score').empty();
|
|
|
+ $('#js_input_score_histroy').empty();
|
|
|
+ $('#js_input_score').empty();
|
|
|
+ var ScoreRezult = getScoreRezult(data.scoreRezult, data.temperatureScore);
|
|
|
+ $("#js_input_score_rezult").val(ScoreRezult);
|
|
|
+ $("#js_input_score_rezult_value").val(data.scoreRezult);
|
|
|
+ $("#js_input_temperature_score").val(data.temperatureScore);
|
|
|
+ $("#js_input_score_histroy").val(data.scoreHistory);
|
|
|
+ $("#js_input_score").val(data.score);
|
|
|
+ }
|
|
|
+ },
|
|
|
+ });
|
|
|
+});
|
|
|
+
|
|
|
+
|
|
|
+function getScoreRezult(scoreRezult, temperatureScore) {
|
|
|
+ if (scoreRezult == 0)
|
|
|
+ return "未评估";
|
|
|
+ else if (scoreRezult == 1) {
|
|
|
+ if (temperatureScore > 1)
|
|
|
+ return "正常,间隔时间服用退烧药,多休息,多喝水";
|
|
|
+ else
|
|
|
+ return "正常";
|
|
|
+ }
|
|
|
+ else if (scoreRezult == 2) {
|
|
|
+ if (temperatureScore > 1)
|
|
|
+ return "注意观察,间隔时间服用退烧药,多休息,多喝水";
|
|
|
+ else
|
|
|
+ return "注意观察";
|
|
|
+ }
|
|
|
+ else if (scoreRezult == 3)
|
|
|
+ return "联系社区医生(或者在线问诊)";
|
|
|
+ else if (scoreRezult == 4)
|
|
|
+ return "尽快就诊";
|
|
|
+ return "";
|
|
|
}
|
|
|
|
|
|
|
|
|
+
|