|
@@ -748,6 +748,9 @@ function ribao_cell(v) {
|
|
|
var medical = "";
|
|
|
if (v.medical != 0)
|
|
|
medical = "新冠肺炎:" + getMedical(v.medical) + ";";
|
|
|
+ var isContact = "";
|
|
|
+ if (v.isContact != 0)
|
|
|
+ isContact = "家庭成员中有新冠肺炎疫情或有过病例接触史人员:" + getIsContact(v.isContact) + ";";
|
|
|
var singleRoom = "";
|
|
|
var uptownId = $("#uptownId").val();
|
|
|
if (uptownId != xiaoquId && uptownId != ceshixiaoquId) {
|
|
@@ -811,7 +814,7 @@ function ribao_cell(v) {
|
|
|
$('#rb_family').append($('<div class="weui-media-box weui-media-box_text" style="height: auto">\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' +
|
|
|
- ' <div style="height: auto">' + familyStatus + medical + singleRoom + temperature + cough + muscle + dyspnea + fatigue + diarrhea + others + scoreRezult + workLocal + todayLocal + isTrip + tripDet + '</>\n' +
|
|
|
+ ' <div style="height: auto">' + familyStatus + medical +isContact+ singleRoom + temperature + cough + muscle + dyspnea + fatigue + diarrhea + others + scoreRezult + workLocal + todayLocal + isTrip + tripDet + '</>\n' +
|
|
|
' </div>\n' +
|
|
|
' '));
|
|
|
}
|
|
@@ -1127,6 +1130,13 @@ function ribaoCommit() {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
+ var isContact = $("input[name='radio1']:checked").val();
|
|
|
+ if (isContact == undefined) {
|
|
|
+ cantijiao = true;
|
|
|
+ $.alert("请选择家庭成员中有新冠肺炎疫情或有过病例接触史人员");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
//var familyStatus = $("#js_input_user_status").attr("data-values") == undefined ? 0 : $("#js_input_user_status").attr("data-values");
|
|
|
//var statusDesp = $("#jibenmiaoshu").val() == undefined ? "" : $("#jibenmiaoshu").val();
|
|
@@ -1274,6 +1284,7 @@ function ribaoCommit() {
|
|
|
"temperatureScore": temperatureScore,
|
|
|
"scoreHistroy": scoreHistroy,
|
|
|
"score": score,
|
|
|
+ "isContact": isContact,
|
|
|
"workLocal": workLocal,
|
|
|
"workLocalOther": workLocalOther,
|
|
|
"todayLocal": todyLocal,
|
|
@@ -1455,6 +1466,10 @@ function updateSuspected(suspectedId) {
|
|
|
$("input[id='s21']").prop("checked", "checked");
|
|
|
if (suspected.medical == 4)
|
|
|
$("input[id='s22']").prop("checked", "checked");
|
|
|
+ if (suspected.isContact == 0)
|
|
|
+ $("input[id='s28']").prop("checked", "checked");
|
|
|
+ if (suspected.isContact == 1)
|
|
|
+ $("input[id='s29']").prop("checked", "checked");
|
|
|
// $("#switchQuezhen").val(getMedical(suspected.medical));
|
|
|
// $("#switchQuezhen").attr("data-values", suspected.medical);
|
|
|
|
|
@@ -1660,6 +1675,10 @@ function helpValue1(v) {
|
|
|
var medical = "";
|
|
|
if (v.medical != 0)
|
|
|
medical = "新冠肺炎:" + getMedical(v.medical) + ";";
|
|
|
+
|
|
|
+ var isContact = "";
|
|
|
+ if (v.isContact != 0)
|
|
|
+ isContact = "家庭成员中有新冠肺炎疫情或有过病例接触史人员:" + getIsContact(v.isContact) + ";";
|
|
|
var singleRoom = "";
|
|
|
|
|
|
var uptownId = $("#uptownId").val();
|
|
@@ -1724,7 +1743,7 @@ function helpValue1(v) {
|
|
|
|
|
|
$('#ribao_famliy').append($('<div class="weui-media-box weui-media-box_text" style="height: auto">\n' +
|
|
|
' <h4 class="weui-media-box__title">' + userName + ' ' + grender + ' ' + age + '</h4>\n' +
|
|
|
- ' <div style="height: auto">' + familyStatus + medical + singleRoom + temperature + cough + muscle + dyspnea + fatigue + diarrhea + others + scoreRezult + workLocal + todayLocal + isTrip + tripDet + '</div>\n' +
|
|
|
+ ' <div style="height: auto">' + familyStatus + medical +isContact+ singleRoom + temperature + cough + muscle + dyspnea + fatigue + diarrhea + others + scoreRezult + workLocal + todayLocal + isTrip + tripDet + '</div>\n' +
|
|
|
' </div>\n' +
|
|
|
' '));
|
|
|
}
|
|
@@ -1826,6 +1845,13 @@ function getMedical(medical) {
|
|
|
return "";
|
|
|
}
|
|
|
|
|
|
+function getIsContact(isContact) {
|
|
|
+ if (isContact == 0)
|
|
|
+ return "否";
|
|
|
+ else if (isContact == 1)
|
|
|
+ return "是";
|
|
|
+ return "";
|
|
|
+}
|
|
|
|
|
|
function getSingleRoom(singleRoom) {
|
|
|
if (singleRoom == 0)
|
|
@@ -1960,6 +1986,8 @@ function clearShow() {
|
|
|
$("input[id='s20']").removeAttr("checked");
|
|
|
$("input[id='s21']").removeAttr("checked");
|
|
|
$("input[id='s22']").removeAttr("checked");
|
|
|
+ $("input[id='s28']").removeAttr("checked");
|
|
|
+ $("input[id='s29']").removeAttr("checked");
|
|
|
}
|
|
|
|
|
|
//健康评估
|