|
@@ -130,11 +130,11 @@ function ribao_init() {
|
|
|
value: "0",
|
|
|
},
|
|
|
{
|
|
|
- title: "可体力劳动但觉得累",
|
|
|
+ title: "体力劳动后不能恢复",
|
|
|
value: "1",
|
|
|
},
|
|
|
{
|
|
|
- title: "轻体力劳动后长时间不能恢复",
|
|
|
+ title: "轻体力活非常累",
|
|
|
value: "2",
|
|
|
},
|
|
|
{
|
|
@@ -231,6 +231,29 @@ function ribaoInitialization(reportId) {
|
|
|
});
|
|
|
} else {
|
|
|
$('#btn_shangbao').text('上报');
|
|
|
+
|
|
|
+ $("#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);
|
|
|
}
|
|
|
},
|
|
|
error: function () {
|
|
@@ -261,6 +284,29 @@ function ribao_refrash() {
|
|
|
});
|
|
|
} else {
|
|
|
|
|
|
+ $("#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);
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
},
|
|
@@ -287,7 +333,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,10 +342,10 @@ 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;
|
|
@@ -339,28 +385,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 +401,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").val() == undefined ? "" : $("#js_input_score_rezult").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,6 +452,10 @@ function ribaoCommit() {
|
|
|
"fatigue": fatigue,
|
|
|
"diarrhea": diarrhea,
|
|
|
"others": others,
|
|
|
+ "scoreRezult": scoreRezult,
|
|
|
+ "temperatureScore": temperatureScore,
|
|
|
+ "scoreHistroy": scoreHistroy,
|
|
|
+ "score": score,
|
|
|
},
|
|
|
success: function (data) {
|
|
|
if ($('#ribao')[0].style.display == 'none') {
|
|
@@ -586,7 +618,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,10 +627,10 @@ 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;
|
|
@@ -680,9 +712,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 "";
|
|
@@ -755,4 +787,72 @@ function clearShow() {
|
|
|
$("#shuruqita").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();
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ var ScoreRezult = getScoreRezult(data.scoreRezult);
|
|
|
+ $("#js_input_score_rezult").val(ScoreRezult);
|
|
|
+ // $("#js_input_temperature_score").val(data.temperatureScore);
|
|
|
+ // $("#js_input_score_histroy").val(data.scoreHistory);
|
|
|
+ // $("#js_input_score").val(data.score);
|
|
|
+ }
|
|
|
+ },
|
|
|
+ });
|
|
|
+});
|
|
|
+
|
|
|
+
|
|
|
+function getScoreRezult(scoreRezult) {
|
|
|
+ if (scoreRezult == 0)
|
|
|
+ return "未评估";
|
|
|
+ else if (scoreRezult == 1)
|
|
|
+ return "安全";
|
|
|
+ else if (scoreRezult == 2)
|
|
|
+ return "注意观察";
|
|
|
+ else if (scoreRezult == 3)
|
|
|
+ return "联系医生";
|
|
|
+ else if (scoreRezult == 4)
|
|
|
+ return "尽快就诊";
|
|
|
+ return "";
|
|
|
+}
|
|
|
+
|
|
|
|