|
@@ -32,7 +32,7 @@ function ribao_init() {
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
- wx.error(function(res){
|
|
|
+ wx.error(function (res) {
|
|
|
alert("接口调取失败")
|
|
|
});
|
|
|
});
|
|
@@ -42,8 +42,6 @@ function ribao_init() {
|
|
|
//lingyun
|
|
|
|
|
|
|
|
|
-
|
|
|
-
|
|
|
$('#btnRB').on('click', function () {
|
|
|
window.location.href = "/yeweihui/home.html";
|
|
|
});
|
|
@@ -814,7 +812,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 +isContact+ 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' +
|
|
|
' '));
|
|
|
}
|
|
@@ -1068,6 +1066,12 @@ function ribaoCommit() {
|
|
|
return
|
|
|
}
|
|
|
cantijiao = false
|
|
|
+ //判断是否获取到定位
|
|
|
+ if (autoLocal == '') {
|
|
|
+ cantijiao = true;
|
|
|
+ $.alert("请先设置微信获取当前位置");
|
|
|
+ return;
|
|
|
+ }
|
|
|
var sf = $("#js_input_sf").attr("data-values") == undefined ? 3 : $("#js_input_sf").attr("data-values");
|
|
|
if (listcx.length == 0 && sf == 1) {
|
|
|
cantijiao = true;
|
|
@@ -1226,11 +1230,13 @@ function ribaoCommit() {
|
|
|
var todyLocalOther = "";
|
|
|
if (jrszd == 0) {
|
|
|
cantijiao = true;
|
|
|
- $.alert("请选择今晚住地");
|
|
|
+ $.alert("请先设置微信获取当前位置");
|
|
|
+ //$.alert("请选择今晚住地");
|
|
|
return;
|
|
|
} else if (jrszd == 4 && jrszq == "") {
|
|
|
cantijiao = true;
|
|
|
- $.alert("请填写今晚住地");
|
|
|
+ $.alert("请先设置微信获取当前位置");
|
|
|
+ //$.alert("请填写今晚住地");
|
|
|
return;
|
|
|
} else if (jrszd != 0 && jrszd != 4) {
|
|
|
if (jrszd == 1) {
|
|
@@ -1254,8 +1260,7 @@ function ribaoCommit() {
|
|
|
isTrip = sf;
|
|
|
}
|
|
|
|
|
|
- } else
|
|
|
- {
|
|
|
+ } else {
|
|
|
workLocal = 0;
|
|
|
workLocalOther = "";
|
|
|
todyLocal = 0;
|
|
@@ -1302,14 +1307,14 @@ function ribaoCommit() {
|
|
|
data: JSON.stringify(pdata),
|
|
|
success: function (data) {
|
|
|
|
|
|
- console.log('data:',data.msgReport);
|
|
|
+ console.log('data:', data.msgReport);
|
|
|
if (data == {} || data == '' || data == null || data == undefined) {
|
|
|
- $.toast("数据提交失败,请重新提交!",'forbidden');
|
|
|
+ $.toast("数据提交失败,请重新提交!", 'forbidden');
|
|
|
cantijiao = true;
|
|
|
return;
|
|
|
}
|
|
|
if (data.reportId == null || data.reportId == undefined || data.reportId <= 0) {
|
|
|
- $.toast("数据提交失败,请重新提交!",'forbidden');
|
|
|
+ $.toast("数据提交失败,请重新提交!", 'forbidden');
|
|
|
cantijiao = true;
|
|
|
return;
|
|
|
}
|
|
@@ -1523,16 +1528,16 @@ function updateSuspected(suspectedId) {
|
|
|
}
|
|
|
$("#js_input_qtdd").val(suspected.workLocalOther);
|
|
|
//今晚驻地
|
|
|
- $("#js_input_jrszd").val(getLocal(suspected.todayLocal));
|
|
|
- $("#js_input_jrszd").attr("data-values", suspected.todayLocal);
|
|
|
- if (suspected.todayLocal != 4) {
|
|
|
- $('#js_input_jrszq').attr("disabled", "disabled");
|
|
|
- $("#js_input_jrszq").val("");
|
|
|
- }
|
|
|
+ // $("#js_input_jrszd").val(getLocal(suspected.todayLocal));
|
|
|
+ // $("#js_input_jrszd").attr("data-values", suspected.todayLocal);
|
|
|
+ // if (suspected.todayLocal != 4) {
|
|
|
+ // $('#js_input_jrszq').attr("disabled", "disabled");
|
|
|
+ // $("#js_input_jrszq").val("");
|
|
|
+ // }
|
|
|
// else {
|
|
|
// $('#js_input_jrszq').removeAttr("disabled")
|
|
|
// }
|
|
|
- $("#js_input_jrszq").val(suspected.todayLocalOther);
|
|
|
+ //$("#js_input_jrszq").val(suspected.todayLocalOther);
|
|
|
//是否出行
|
|
|
$("#js_input_sf").val(getIsTrip(suspected.isTrip));
|
|
|
$("#js_input_sf").attr("data-values", suspected.isTrip);
|
|
@@ -1758,7 +1763,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 +isContact+ 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' +
|
|
|
' '));
|
|
|
}
|