1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477 |
- function ribao_init() {
- //lingyun
- $('#btnRB').on('click', function () {
- window.location.href = "/yeweihui/home.html";
- });
- $("#js_input_gzzd").select({
- title: "选择工作驻地",
- items: [
- {
- title: "武汉市",
- value: "1",
- },
- {
- title: "宜昌市",
- value: "2",
- },
- {
- title: "当阳市",
- value: "3",
- },
- {
- title: "其它地点",
- value: "4",
- }]
- });
- $("#js_input_jrszd").select({
- title: "选择今日所在地",
- items: [
- {
- title: "武汉市",
- value: "1",
- }, {
- title: "宜昌市",
- value: "2",
- },
- {
- title: "当阳市",
- value: "3",
- },
- {
- title: "其它地点",
- value: "4",
- }]
- });
- $("#js_input_sf").select({
- title: "",
- items: [
- {
- title: "否",
- value: "0",
- },
- {
- title: "是",
- value: "1",
- }]
- });
- $("#js_input_cfd").select({
- title: "选择出发地",
- items: [
- {
- title: "武汉市",
- value: "1",
- }, {
- title: "宜昌市",
- value: "2",
- },
- {
- title: "当阳市",
- value: "3",
- },
- {
- title: "其它地点",
- value: "4",
- }]
- });
- $("#js_input_mdd").select({
- title: "选择目的地",
- items: [
- {
- title: "武汉市",
- value: "1",
- }, {
- title: "宜昌市",
- value: "2",
- },
- {
- title: "当阳市",
- value: "3",
- },
- {
- title: "其它地点",
- value: "4",
- }]
- });
- $("#js_input_cxfs").select({
- title: "选择出行方式",
- items: [
- {
- title: "长途汽车",
- value: "1",
- },
- {
- title: "火车",
- value: "2",
- },
- {
- title: "飞机",
- value: "3",
- },
- {
- title: "自驾",
- value: "4",
- }]
- });
- // $("#js_input_user_sex").val(getGreder(2)); //设置初始值
- $('#btnRB').on('click', function () {
- window.location.href = "/yeweihui/home.html";
- });
- $("#js_input_user_sex").select({
- title: "选择性别",
- items: [
- {
- title: "男",
- value: "1",
- },
- {
- title: "女",
- value: "2",
- }]
- });
- $("#js_input_user_status").select({
- title: "选择基本状况",
- items: [
- {
- title: "无病史",
- value: "0",
- }, {
- title: "心脑血管疾病(服用ARB)",
- value: "1",
- },
- {
- title: "心脑血管疾病(未服ARB)",
- value: "2",
- },
- {
- title: "呼吸系统病史",
- value: "3",
- },
- {
- title: "肿瘤病史",
- value: "4",
- },
- {
- title: "糖尿病史",
- value: "5",
- },
- {
- title: "服用过激素药物",
- value: "6",
- },
- {
- title: "妊娠期",
- value: "7",
- }]
- });
- $("#js_input_user_kesou").select({
- title: "选择咳嗽情况",
- items: [
- {
- title: "无咳嗽",
- value: "0",
- },
- {
- title: "偶有短暂咳嗽",
- value: "1",
- },
- {
- title: "咳嗽轻度影响生活",
- value: "2",
- },
- {
- title: "咳嗽严重影响生活",
- value: "3",
- }]
- });
- $("#js_input_user_jirou").select({
- title: "选择肌肉情况",
- items: [
- {
- title: "无",
- value: "0",
- },
- {
- title: "按压有",
- value: "1",
- },
- {
- title: "偶尔",
- value: "2",
- },
- {
- title: "持续有",
- value: "3",
- }]
- });
- $("#js_input_user_huxi").select({
- title: "选择呼吸情况",
- items: [
- {
- title: "无",
- value: "0",
- },
- {
- title: "急走或上坡气短",
- value: "1",
- },
- {
- title: "气短而走路变慢",
- value: "2",
- },
- {
- title: "走路数分钟后气短",
- value: "3",
- },
- {
- title: "气短无法离开房间",
- value: "4",
- }]
- });
- $("#js_input_user_fali").select({
- title: "选择乏力情况",
- items: [
- {
- title: "无",
- value: "0",
- },
- {
- title: "体力劳动后不能恢复",
- value: "1",
- },
- {
- title: "轻体力活非常累",
- value: "2",
- },
- {
- title: "不能正常生活",
- value: "3",
- }]
- });
- $("#js_input_user_fuxie").select({
- title: "选择腹泻情况",
- items: [
- {
- title: "无",
- value: "0",
- },
- {
- title: "轻度腹泻(少于3次)",
- value: "1",
- },
- {
- title: "中度腹泻(4-6次)",
- value: "2",
- },
- {
- title: "重度腹泻(超过6次)",
- value: "3",
- }]
- });
- $("#switchQuezhen").select({
- title: "选择是否确诊",
- items: [
- {
- title: "否",
- value: "0",
- },
- {
- title: "是",
- value: "1",
- }]
- });
- $("#switchDanjiangeli").select({
- title: "选择是否单间隔离",
- items: [
- {
- title: "否",
- value: "0",
- },
- {
- title: "是",
- value: "1",
- }]
- });
- //
- // updateSuspected({
- // userName : 'www',
- // grender : 2,
- // age : 34,
- // familyStatus : 1,
- // statusDesp : "",
- // medical:0,
- // singleRoom:1,
- // temperature:0,
- // cough:2,
- // muscle:1,
- // dyspnea:1,
- // fatigue:1,
- // diarrhea:2,
- // others:""
- // })
- //
- // var grender = $("#js_input_user_sex").attr("data-values") == undefined ? 0 : $("#js_input_user_sex").attr("data-values");
- // console.log("grender:" + grender)
- }
- function selectinput1(obj){
- var grender = $("#js_input_gzzd").attr("data-values") == undefined ? 0 : $("#js_input_gzzd").attr("data-values");
- if(grender != 4){//js_input_qtdd
- // $('#js_input_qtdd')[0].disabled == 'disabled'
- $('#js_input_qtdd').attr("disabled","disabled");
- $("#js_input_qtdd").val("");
- }else{
- $('#js_input_qtdd').removeAttr("disabled")
- }
- }
- function selectinput2(obj){
- var grender = $("#js_input_jrszd").attr("data-values") == undefined ? 0 : $("#js_input_jrszd").attr("data-values");
- if(grender != 4){//js_input_qtdd
- // $('#js_input_qtdd')[0].disabled == 'disabled' js_input_jrszq
- $('#js_input_jrszq').attr("disabled","disabled");
- $("#js_input_jrszq").val("");
- }else{
- $('#js_input_jrszq').removeAttr("disabled")
- }
- }
- function selectinput3(obj){
- var grender = $("#js_input_cfd").attr("data-values") == undefined ? 0 : $("#js_input_cfd").attr("data-values");
- if(grender != 4 ){
- $('#js_input_cfdq').attr("disabled","disabled");
- $("#js_input_cfdq").val("");
- }else{
- $('#js_input_cfdq').removeAttr("disabled")
- }
- }
- function selectinput4(obj){
- var grender = $("#js_input_mdd").attr("data-values") == undefined ? 0 : $("#js_input_mdd").attr("data-values");
- if(grender != 4){
- $('#js_input_mddq').attr("disabled","disabled");
- $("#js_input_mddq").val("");
- }else{
- $('#js_input_mddq').removeAttr("disabled")
- }
- }
- function selectinput5(obj){
- var grender = $("#js_input_cxfs").attr("data-values") == undefined ? 0 : $("#js_input_cxfs").attr("data-values");
- if(grender == 4){
- // $('#js_input_cxfsq').attr("disabled","disabled")
- }else{
- $('#js_input_cxfsq').removeAttr("disabled")
- }
- }
- var listcx = [];
- function selectinput6(obj){
- var grender = $("#js_input_sf").attr("data-values") == undefined ? 3 : $("#js_input_sf").attr("data-values");
- if(grender == 0){
- $('#none')[0].style.display = 'none';
- $("#js_input_cxfs").val("");
- $("#js_input_cfd").val("");
- $("#js_input_mdd").val("");
- $('#js_input_cxfsq').val("");
- $('#js_input_cfdq').val("");
- $('#js_input_mddq').val("");
- listcx.splice(0,listcx.length);
- $('#tabtr').empty();
- }else if(grender == 1){
- $('#none')[0].style.display = '';
- }
- }
- //添加出行详情
- function insertlingyun(){
- var sf = $("#js_input_sf").attr("data-values") == undefined ? 3 : $("#js_input_sf").attr("data-values");
- if(sf == 0 || sf == 3){
- $.alert("请选择是否出行");
- return;
- }
- var person=new Object();
- var cxfs = $("#js_input_cxfs").attr("data-values") == undefined ? 0 : $("#js_input_cxfs").attr("data-values");
- var cfd = $("#js_input_cfd").attr("data-values") == undefined ? 0 : $("#js_input_cfd").attr("data-values");
- var mdd = $("#js_input_mdd").attr("data-values") == undefined ? 0 : $("#js_input_mdd").attr("data-values");
- if(cxfs != 4 && cxfs !=0){
- var val = $('#js_input_cxfsq').val();
- if( val == ""){
- $.alert("请填写车次/航班/车牌");
- return;
- }
- person.tripTypeDesp = $('#js_input_cxfsq').val();
- if(cxfs == 1){
- person.tripType = 1;
- person.tripTypeStr = "长途汽车"
- }else if(cxfs == 2){
- person.tripType = 2;
- person.tripTypeStr = "火车";
- }else if(cxfs == 3){
- person.tripType = 3;
- person.tripTypeStr = "飞机";
- }
- }else if(cxfs == 0){
- $.alert("请选择出行方式");
- return;
- }else if(cxfs == 4){
- var val6 = $('#js_input_cxfsq').val();
- if( val6 == ""){
- $.alert("请填写车次/航班/车牌");
- return;
- }
- person.tripTypeStr = "自驾";
- person.tripType = 4;
- person.tripTypeDesp =$('#js_input_cxfsq').val();
- }
- if(cfd == 4 && cfd !=0){
- var val2 = $('#js_input_cfdq').val();
- if(val2 ==""){
- $.alert("请填写出发地");
- return;
- }
- person.startLocalOther = $('#js_input_cfdq').val();
- person.startLocalStr = $('#js_input_cfdq').val();
- }else if(cfd != 4 && cfd !=0){
- if(cfd ==1){
- person.startLocal = 1;
- person.startLocalStr = "武汉市";
- person.startLocalOther = $('#js_input_cfdq').val() == undefined ? "" : $('#js_input_cfdq').val();
- }else if(cfd == 2){
- person.startLocal = 2;
- person.startLocalStr = "宜昌市";
- person.startLocalOther = $('#js_input_cfdq').val() == undefined ? "" : $('#js_input_cfdq').val();
- }else if(cfd == 3){
- person.startLocal = 3;
- person.startLocalStr = "当阳市";
- person.startLocalOther = $('#js_input_cfdq').val() == undefined ? "" : $('#js_input_cfdq').val();
- }
- }else if(cfd ==0){
- $.alert("请选择出发地");
- return;
- }
- if(mdd ==4 && mdd!=0){
- var val3 = $('#js_input_mddq').val();
- if(val3 == ""){
- $.alert("请填写目的地");
- return;
- }
- person.endLocalOther = $('#js_input_mddq').val();
- person.endlocalStr = $('#js_input_mddq').val();
- }else if(mdd != 4 && mdd !=0){
- if(mdd ==1){
- person.endLocal = 1;
- person.endlocalStr = "武汉市";
- person.endLocalOther = $('#js_input_mddq').val() == undefined ? "" : $('#js_input_mddq').val();
- }else if(mdd == 2){
- person.endLocal = 2;
- person.endlocalStr = "宜昌市";
- person.endLocalOther = $('#js_input_mddq').val() == undefined ? "" : $('#js_input_mddq').val();
- }else if(mdd == 3){
- person.endLocal = 3;
- person.endlocalStr = "当阳市";
- person.endLocalOther = $('#js_input_mddq').val() == undefined ? "" : $('#js_input_mddq').val();
- }
- }else if(mdd == 0){
- $.alert("请选择目的地");
- return;
- }
- listcx.push(person);
- // $.alert("添加成功");
- tab()
- }
- function tab(){
- var xxIds = [];
- var xxName = [
- "序号",
- "出发地",
- "目的地",
- "出行方式",
- "车次/航班/车牌",
- "操作"
- ];
- for (var i = 0; i < xxName.length; i++) {
- xxIds.push({
- name: xxName[i]
- });
- }
- $('#tabtr').empty();
- var html = "<tr style='background-color: #f8f8f8;'>";
- for (var i = 0; i < xxIds.length; i++) {
- // alert(xxIds[i].name);
- html += "<th>" + xxIds[i].name + "</th>";
- }
- html +="</tr>"
- for (var i = 0; i < listcx.length; i++) {//后端传过来的集合遍历
- if (i % 2 != 0) {
- html += "<tr style='background-color: #f8f8f8;'>";
- }
- else {
- html += "<tr>";
- }
- html += "<td style='text-align: center;'>" + (i + 1) + "</td>";
- // var isValue = false; //记录是否赋值
- html += "<td style='text-align: center;' >" + listcx[i].startLocalStr + " </td>";
- html += "<td style='text-align: center;' >" + listcx[i].endlocalStr + " </td>";
- html += "<td style='text-align: center;' >" + listcx[i].tripTypeStr + " </td>";
- html += "<td style='text-align: center;' >" + listcx[i].tripTypeDesp + " </td>";
- html += "<td style='text-align: center;' ><button value=" + i + " style='height:3vh;background-color: red;text-align: center;' class='weui-btn weui-btn_mini weui-btn_primary' onclick='splice(this.value)'>" + "删除" + " </button></td>";
- html += "</tr>";
- $("#tabtr").html(html);
- }
- }
- function splice(obj){
- listcx.splice(obj,1);
- tab()
- }
- //近日报告
- function ribaoInitialization(reportId) {
- if (reportId == null)
- return;
- $.ajax({
- url: '/home/home/queryRibaoRefresh',
- data: {
- reportId: reportId
- },
- type: 'GET',
- success: function (data) {
- console.log(data);
- if (data.data.length > 0) {
- hasData = true;
- data.data.forEach(function (v) {
- ribao_cell(v);
- });
- }
- },
- error: function () {
- }
- });
- }
- //刷新今日日报
- function ribao_refrash() {
- var userId = $("#userId").val();
- $.ajax({
- url: '/home/home/queryRibao',
- data: {
- userCreate: userId
- },
- type: 'GET',
- success: function (data) {
- console.log(data);
- if (data.data == undefined) {
- $('#rb_family').empty();
- }
- else {
- $('#rb_family').empty();
- if (data.data.length > 0) {
- hasData = true;
- data.data.forEach(function (v) {
- ribao_cell(v);
- });
- } else {
- }
- }
- },
- error: function () {
- }
- });
- }
- function ribao_cell(v) {
- var userName = v.userName + ":";
- var grender = getGreder(v.grender);
- var age = v.age;
- var familyStatus = "";
- if (v.familyStatus != 0)
- familyStatus = "基本状况:" + getFamilyStatus(v.familyStatus) + ";";
- var medical = "";
- if (v.medical != 0)
- medical = "是否确诊:" + getMedical(v.medical) + ";";
- var singleRoom = "";
- if (v.singleRoom != 0)
- singleRoom = "单间隔离:" + getSingleRoom(v.singleRoom) + ";";
- if (v.singleRoom == 0 && v.medical != 0)
- singleRoom = "单间隔离:" + getSingleRoom(v.singleRoom) + ";";
- var temperature = "体温:" + v.temperature + ";";
- var cough = "";
- if (v.cough != 0)
- cough = "咳嗽现象:" + getCough(v.cough) + ";";
- var muscle = "";
- if (v.muscle != 0)
- muscle = "肌肉酸痛:" + getMuscle(v.muscle) + ";";
- var dyspnea = "";
- if (v.dyspnea != 0)
- dyspnea = "呼吸困难:" + getDyspnea(v.dyspnea) + ";";
- var fatigue = "";
- if (v.fatigue != 0)
- fatigue = "乏力现象:" + getFatigue(v.fatigue) + ";";
- var diarrhea = "";
- if (v.diarrhea != 0)
- 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: 15vh">\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 + scoreRezult + '</p>\n' +
- ' </div>\n' +
- ' '));
- }
- function ribao_add() {
- $('#btnAdd').on('click', function () {
- $("#js_input_cxfs").val(getMedical(0));
- // $("#js_input_cxfs").attr("data-values", 0);
- $("#js_input_cfd").val(getMedical(0));
- // $("#js_input_cfd").attr("data-values", 0);
- $("#js_input_mdd").val(getMedical(0));
- // $("#js_input_mdd").attr("data-values", 0);
- $('#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("");
- $("#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");
- if ($('#ribao')[0].style.display == 'none') {
- $('#notOpenRibao').toggle();
- $('#ribao')[0].style.display = '';
- } else {
- $('#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!=undefined) {
- 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);
- }
- 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);
- }
- },
- });
- });
- }
- function ribao_cancel() {
- $('#cancel').on('click', function () {
- if ($('#ribao')[0].style.display == 'none') {
- $('#notOpenRibao').toggle();
- $('#ribao')[0].style.display = '';
- } else {
- $('#notOpenRibao')[0].style.display = '';
- $('#ribao')[0].style.display = 'none';
- }
- clearShow();
- });
- }
- function ribaoCommit() {
- var suspectedId = $("#suspectedId").val();
- // var userId = $("#userId").val();
- var userId = "1";
- var userName = $("#js_input_user_name").val();
- var grender = $("#js_input_user_sex").attr("data-values") == undefined ? 0 : $("#js_input_user_sex").attr("data-values");
- var age = $("#js_input_user_age").val();
- //不能同时选择服用和未服用
- if ($("input[name='checkbox1']:checked").val() == "on" && $("input[name='checkbox2']:checked").val() == "on") {
- $.alert("心脑血管不能同时选择服用和未服用");
- return;
- }
- //男性不能选择妊娠期
- if ($("#js_input_user_sex").attr("data-values") == 1 && $("input[name='checkbox7']:checked").val() == "on") {
- $.alert("男性不能选择妊娠期");
- return;
- }
- //家庭状态
- var familyStatus = "";
- if ($("input[name='checkbox1']:checked").val() == "on")
- familyStatus += "1";
- else
- familyStatus += "0";
- if ($("input[name='checkbox2']:checked").val() == "on")
- familyStatus += ",1";
- else
- familyStatus += ",0";
- if ($("input[name='checkbox3']:checked").val() == "on")
- familyStatus += ",1";
- else
- familyStatus += ",0";
- if ($("input[name='checkbox4']:checked").val() == "on")
- familyStatus += ",1";
- else
- familyStatus += ",0";
- if ($("input[name='checkbox5']:checked").val() == "on")
- familyStatus += ",1";
- else
- familyStatus += ",0";
- if ($("input[name='checkbox6']:checked").val() == "on")
- familyStatus += ",1";
- else
- familyStatus += ",0";
- if ($("input[name='checkbox7']:checked").val() == "on")
- familyStatus += ",1";
- else
- familyStatus += ",0";
- //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();
- var statusDesp = "";
- var medical = $("#switchQuezhen").attr("data-values") == undefined ? 0 : $("#switchQuezhen").attr("data-values");
- var singleRoom = $("#switchDanjiangeli").attr("data-values") == undefined ? 0 : $("#switchDanjiangeli").attr("data-values");
- 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");
- 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("请填写姓名");
- return;
- }
- if (grender == 0) {
- $.alert("请填写性别");
- return;
- }
- if (age == undefined || age == '') {
- $.alert("请填写年龄");
- return;
- }
- if (age > 150 || age < 0) {
- $.alert("请填写正确的年龄");
- return;
- }
- if (temperature <= 0) {
- $.alert("请填写体温");
- return;
- }
- if (temperature > 50 || temperature < 30) {
- $.alert("请填写正确的体温");
- return;
- }
- //lingyun
- var gzzd = $("#js_input_gzzd").attr("data-values") == undefined ? 0 : $("#js_input_gzzd").attr("data-values");
- var qtdd = $("#js_input_qtdd").val();
- var workLocal="";
- var workLocalOther = "";
- if(gzzd == 0){
- $.alert("请选择工作驻地");
- return;
- }else if(gzzd == 4 && qtdd == ""){
- $.alert("请填写工作驻地");
- return;
- }else if(gzzd != 0 && gzzd !=4){
- if(gzzd ==1){
- workLocal = 1;
- }else if(gzzd == 2){
- workLocal = 2;
- }else if(gzzd == 3){
- workLocal = 3;
- }
- }else if(gzzd == 4 && qtdd != ""){
- workLocal = 4;
- workLocalOther = qtdd;
- }
- //var listcx = [];
- //var person=new Object();
- var jrszd = $("#js_input_jrszd").attr("data-values") == undefined ? 0 : $("#js_input_jrszd").attr("data-values");
- var jrszq = $("#js_input_jrszq").val();
- var todyLocal ="";
- var todyLocalOther = "";
- if(jrszd == 0){
- $.alert("请选择今日所在地");
- return;
- }else if(jrszd == 4 && jrszq == ""){
- $.alert("请填写今日所在地");
- return;
- }else if(jrszd != 0 && jrszd !=4){
- if(jrszd ==1){
- todyLocal = 1;
- }else if(jrszd == 2){
- todyLocal = 2;
- }else if(jrszd == 3){
- todyLocal = 3;
- }
- }else if(jrszd == 4 && jrszq != ""){
- todyLocal = 4;
- todyLocalOther = jrszq;
- }
- var sf = $("#js_input_sf").attr("data-values") == undefined ? 3 : $("#js_input_sf").attr("data-values");
- var isTrip= "";
- if(sf == 3){
- $.alert("请选择是否出行");
- return;
- }else{
- isTrip = sf;
- }
- var data = {
- "suspectedId": suspectedId,
- "userCreate": userId,
- "userName": userName,
- "grender": grender,
- "age": age,
- "familyStatus": familyStatus,
- "statusDesp": statusDesp,
- "medical": medical,
- "singleRoom": singleRoom,
- "temperature": temperature,
- "cough": cough,
- "muscle": muscle,
- "dyspnea": dyspnea,
- "fatigue": fatigue,
- "diarrhea": diarrhea,
- "others": others,
- "scoreRezult": scoreRezult,
- "temperatureScore": temperatureScore,
- "scoreHistroy": scoreHistroy,
- "score": score,
- "workLocal": workLocal,
- "workLocalOther": workLocalOther,
- "todayLocal": todyLocal,
- "todayLocalOther": todyLocalOther,
- "isTrip": isTrip,
- "tripDet": listcx,
- };
- $.ajax({
- url: '/home/addRibaoTrip',
- contentType: "application/json; charset=utf-8",
- type: "post",
- data: JSON.stringify(data),
- success: function (data) {
- if (data.msgReport == "2") {
- $.toast("家人姓名不能重复,如果重复,可以带上称呼");
- return;
- }
- if ($('#ribao')[0].style.display == 'none') {
- $('#notOpenRibao').toggle();
- $('#ribao')[0].style.display = '';
- } else {
- $('#notOpenRibao')[0].style.display = '';
- $('#ribao')[0].style.display = 'none';
- }
- $('#ribao_jinrijujian').empty();
- $('#ribao_jinrijujian').append(data.safetyNum);
- ribao_refrash();
- clearShow();
- document.getElementById("btn_shangbao").style['background-color'] = "#0bb20c";
- },
- });
- }
- function deleteSuspected(suspectedId) {
- $.ajax({
- url: '/home/deleteSuspected',
- type: "post",
- data: {
- "suspectedId": suspectedId
- },
- success: function (data) {
- $('#ribao_jinrijujian').empty();
- $('#ribao_jinrijujian').append(data.safetyNum);
- ribao_refrash();
- },
- });
- }
- function updateSuspected(suspectedId) {
- $("#suspectedId").val("");
- if ($('#ribao')[0].style.display == 'none') {
- $('#notOpenRibao').toggle();
- $('#ribao')[0].style.display = '';
- } else {
- $('#notOpenRibao')[0].style.display = '';
- $('#ribao')[0].style.display = 'none';
- }
- $.ajax({
- url: '/home/selectSuspected',
- get: "get",
- data: {
- "suspectedId": suspectedId
- },
- success: function (data) {
- // console.log(data);
- if (data) {
- var suspected = data;
- $("#suspectedId").val(suspected.suspectedId);
- $("#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");
- }
- // $("#js_input_user_status").val(getFamilyStatus(suspected.familyStatus));
- // $("#js_input_user_status").attr("data-values", suspected.familyStatus);
- // $("#jibenmiaoshu").val(suspected.statusDesp);
- $("#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);
- }
- },
- });
- }
- function addReport() {
- var userId = $("#userId").val();
- $.ajax({
- url: '/home/addReport',
- type: "post",
- data: {
- "userCreate": userId,
- },
- success: function (data) {
- $.toast(data.msg);
- if (data.msg == "操作成功")
- document.getElementById("btn_shangbao").style['background-color'] = "#D9D9D9";
- },
- });
- }
- $("#my-input-ribao").calendar({
- dateFormat: 'yyyy-mm-dd',
- inputReadOnly: false,
- onChange: function (p, values, displayValues) {
- var reportDate = values.toString();
- var userId = $("#userId").val();
- $.ajax({
- url: '/home/home/queryRibaoReportDate',
- data: {
- "userCreate": userId,
- "reportDate": reportDate,
- },
- type: 'GET',
- success: function (data) {
- if (data.data == undefined) {
- $('#ribao_famliy').empty();
- }
- else {
- if (data.data.length > 0) {
- $('#ribao_famliy').empty();
- data.data.forEach(function (v) {
- helpValue1(v);
- });
- } else {
- }
- }
- },
- error: function () {
- }
- });
- }
- });
- function helpValue1(v) {
- var userName = v.userName + ":";
- var grender = getGreder(v.grender);
- var age = v.age;
- var familyStatus = "";
- if (v.familyStatus != 0)
- familyStatus = "基本状况:" + getFamilyStatus(v.familyStatus) + ";";
- var medical = "";
- if (v.medical != 0)
- medical = "是否确诊:" + getMedical(v.medical) + ";";
- var singleRoom = "";
- if (v.singleRoom != 0)
- singleRoom = "单间隔离:" + getSingleRoom(v.singleRoom) + ";";
- if (v.singleRoom == 0 && v.medical != 0)
- singleRoom = "单间隔离:" + getSingleRoom(v.singleRoom) + ";";
- var temperature = "体温:" + v.temperature + ";";
- var cough = "";
- if (v.cough != 0)
- cough = "咳嗽现象:" + getCough(v.cough) + ";";
- var muscle = "";
- if (v.muscle != 0)
- muscle = "肌肉酸痛:" + getMuscle(v.muscle) + ";";
- var dyspnea = "";
- if (v.dyspnea != 0)
- dyspnea = "呼吸困难:" + getDyspnea(v.dyspnea) + ";";
- var fatigue = "";
- if (v.fatigue != 0)
- fatigue = "乏力现象:" + getFatigue(v.fatigue) + ";";
- var diarrhea = "";
- if (v.diarrhea != 0)
- 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: 15vh">\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 + scoreRezult + '</p>\n' +
- ' </div>\n' +
- ' '));
- }
- function getGreder(greder) {
- if (greder == 1)
- return "男";
- else if (greder == 2)
- return "女";
- return "";
- }
- function getFamilyStatus(familyStatus) {
- var familyStatusList = familyStatus.split(",");
- var familyStatusString = "";
- if (familyStatus == '0,0,0,0,0,0,0')
- familyStatusString += "无病史,";
- else {
- if (familyStatusList[0] == 1)
- familyStatusString += "心脑血管疾病(服用ARB),";
- if (familyStatusList[1] == 1)
- familyStatusString += "心脑血管疾病(未服ARB),";
- if (familyStatusList[2] == 1)
- familyStatusString += "呼吸系统病史,";
- if (familyStatusList[3] == 1)
- familyStatusString += "肿瘤病史,";
- if (familyStatusList[4] == 1)
- familyStatusString += "糖尿病史,";
- if (familyStatusList[5] == 1)
- familyStatusString += "服用过激素药物,";
- if (familyStatusList[6] == 1)
- familyStatusString += "妊娠期,";
- }
- return familyStatusString.substring(0, familyStatusString.length - 1);
- }
- function getCough(cough) {
- if (cough == 0)
- return "无咳嗽";
- else if (cough == 1)
- return "偶尔短暂咳嗽";
- else if (cough == 2)
- return "咳嗽轻度影响生活";
- else if (cough == 3)
- return "咳嗽严重影响生活";
- return "";
- }
- function getMuscle(muscle) {
- if (muscle == 0)
- return "无";
- else if (muscle == 1)
- return "按压有";
- else if (muscle == 2)
- return "偶尔";
- else if (muscle == 3)
- return "持续有";
- return "";
- }
- function getDyspnea(dyspnea) {
- if (dyspnea == 0)
- return "无";
- else if (dyspnea == 1)
- return "急走或上坡气短";
- else if (dyspnea == 2)
- return "气短而走路变慢";
- else if (dyspnea == 3)
- return "走路数分钟后气短";
- else if (dyspnea == 4)
- return "气短无法离开房间";
- return "";
- }
- function getFatigue(fatigue) {
- if (fatigue == 0)
- return "无";
- else if (fatigue == 1)
- return "体力劳动后不能恢复";
- else if (fatigue == 2)
- return "轻体力活非常累";
- else if (fatigue == 3)
- return "不能正常生活";
- return "";
- }
- function getMedical(medical) {
- if (medical == 0)
- return "否";
- else if (medical == 1)
- return "是";
- return "";
- }
- function getSingleRoom(singleRoom) {
- if (singleRoom == 0)
- return "否";
- else if (singleRoom == 1)
- return "是";
- return "";
- }
- function getDiarrhea(diarrhea) {
- if (diarrhea == 0)
- return "无";
- else if (diarrhea == 1)
- return "轻度腹泻(少于3次)";
- else if (diarrhea == 2)
- return "中度腹泻(4-6次)";
- else if (diarrhea == 3)
- return "重度腹泻(超过6次)";
- return "";
- }
- function clearShow() {
- console.log("qingkong")
- $("#suspectedId").val("");
- $("#js_input_user_sex").val("");
- $("#js_input_user_sex").attr("data-values", "");
- $("#js_input_user_name").val("");
- $("#js_input_user_age").val("");
- $("#js_input_user_status").val("");
- $("#js_input_user_status").attr("data-values", "");
- $("#jibenmiaoshu").val("");
- $("#switchQuezhen").val("");
- $("#switchQuezhen").attr("data-values", "");
- $("#switchDanjiangeli").val("");
- $("#switchDanjiangeli").attr("data-values", "");
- $("#js_input_user_tiwen").val("");
- $("#js_input_user_kesou").val("");
- $("#js_input_user_kesou").attr("data-values", "");
- $("#js_input_user_jirou").val("");
- $("#js_input_user_jirou").attr("data-values", "");
- $("#js_input_user_huxi").val("");
- $("#js_input_user_huxi").attr("data-values", "");
- $("#js_input_user_fali").val("");
- $("#js_input_user_fali").attr("data-values", "");
- $("#js_input_user_fuxie").val("");
- $("#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 medical = $("#switchQuezhen").attr("data-values") == undefined ? 0 : $("#switchQuezhen").attr("data-values");
- 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,
- "medical": medical,
- "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 "";
- }
|