maoyunfeng 5 éve
szülő
commit
f5355a9c7f

+ 9 - 2
whepi-ui/templates/home/home.ftl

@@ -56,10 +56,17 @@
         });
 
         var uptownId = $("#uptownId").val();
-        if (uptownId == '1238790987234')
+        if (uptownId == '1238790987234'){
             $('#ribao_trip')[0].style.display = 'none';
-        else
+            $('#ribao_dnjgl')[0].style.display = 'none';
+            $('#ribao_qz')[0].style.display = 'none';
+            $('#ribao_zz')[0].style.display = '';
+        }else{
             $('#ribao_trip')[0].style.display = '';
+            $('#ribao_dnjgl')[0].style.display = '';
+            $('#ribao_qz')[0].style.display = '';
+            $('#ribao_zz')[0].style.display = 'none';
+        }
         ribao_init();
         qiuzhu_init();
         family_init();

+ 23 - 10
whepi-ui/templates/home/ribao.ftl

@@ -128,18 +128,31 @@
                 <#--style="border: 1px solid rgba(0,0,0,.2);box-sizing:border-box; border-radius: 5px; margin-top: 1vh;"></textarea>-->
                     <input id="suspectedId" type="text" hidden="hidden" value=""/>
                     <div style="height: 5vh; line-height: 5vh;margin-left: 2vw;">病情描述</div>
-                    <div style="display:flex; flex-direction: row; justify-content: space-between; margin-top: 1vh;">
-                        <div style="color: gray;height: 5vh; line-height: 5vh; width: 55%;">确诊新冠肺炎</div>
-                        <input id="switchQuezhen" class="weui-input" autofocus="" type="text" placeholder="请选择"
-                               maxlength="20"
-                               style="border: 1px solid rgba(0,0,0,.2);box-sizing:border-box; border-radius: 5px; height: 5vh;"/>
+                    <div id="ribao_qz">
+                        <div style="display:flex; flex-direction: row; justify-content: space-between; margin-top: 1vh;">
+                            <div style="color: gray;height: 5vh; line-height: 5vh; width: 55%;">确诊新冠肺炎</div>
+                            <input id="switchQuezhen" class="weui-input" autofocus="" type="text" placeholder="请选择"
+                                   maxlength="20"
+                                   style="border: 1px solid rgba(0,0,0,.2);box-sizing:border-box; border-radius: 5px; height: 5vh;"/>
+                        </div>
                     </div>
-                    <div style="display:flex; flex-direction: row; justify-content: space-between; margin-top: 1vh;">
-                        <div style="color: gray;height: 5vh; line-height: 5vh; width: 55%;">单间隔离</div>
-                        <input id="switchDanjiangeli" class="weui-input" autofocus="" type="text" placeholder="请选择"
-                               maxlength="20"
-                               style="border: 1px solid rgba(0,0,0,.2);box-sizing:border-box; border-radius: 5px; height: 5vh;"/>
+                    <div id="ribao_zz">
+                        <div style="display:flex; flex-direction: row; justify-content: space-between; margin-top: 1vh;">
+                            <div style="color: gray;height: 5vh; line-height: 5vh; width: 55%;">今日症状</div>
+                            <input id="switchQuezhen_zz" class="weui-input" autofocus="" type="text" placeholder="请选择"
+                                   maxlength="20"
+                                   style="border: 1px solid rgba(0,0,0,.2);box-sizing:border-box; border-radius: 5px; height: 5vh;"/>
+                        </div>
                     </div>
+                    <div id="ribao_dnjgl">
+                        <div style="display:flex; flex-direction: row; justify-content: space-between; margin-top: 1vh;">
+                            <div style="color: gray;height: 5vh; line-height: 5vh; width: 55%;">单间隔离</div>
+                            <input id="switchDanjiangeli" class="weui-input" autofocus="" type="text" placeholder="请选择"
+                                   maxlength="20"
+                                   style="border: 1px solid rgba(0,0,0,.2);box-sizing:border-box; border-radius: 5px; height: 5vh;"/>
+                        </div>
+                    </div>
+
 
                     <div style="display:flex; flex-direction: row; justify-content: space-between; margin-top: 1vh;">
                         <div style="color: gray;height: 5vh; line-height: 5vh; width: 55%;">体温</div>

+ 30 - 0
whepi-ui/templates/home/ribao.js

@@ -298,6 +298,31 @@ function ribao_init() {
       }]
   });
 
+  $("#switchQuezhen_zz").select({
+    title: "选择症状",
+    items: [
+        {
+            title: "无",
+            value: "0",
+        },
+      {
+        title: "新冠确诊",
+        value: "1",
+      },
+      {
+        title: "新冠疑似",
+        value: "2",
+      },
+      {
+        title: "密切接触者",
+        value: "3",
+      },
+      {
+        title: "解除观察",
+        value: "4",
+      }]
+  });
+
   $("#switchDanjiangeli").select({
     title: "选择是否单间隔离",
     items: [
@@ -936,6 +961,7 @@ function ribaoCommit() {
   //var statusDesp = $("#jibenmiaoshu").val() == undefined ? "" : $("#jibenmiaoshu").val();
   var statusDesp = "";
   var medical = $("#switchQuezhen").attr("data-values") == undefined ? 0 : $("#switchQuezhen").attr("data-values");
+  var medicalzz = $("#switchQuezhen_zz").attr("data-values") == undefined ? 0 : $("#switchQuezhen_zz").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");
@@ -1568,6 +1594,9 @@ function clearShow() {
   $("#switchQuezhen").val("");
   $("#switchQuezhen").attr("data-values", "");
 
+  $("#switchQuezhen_zz").val("");
+  $("#switchQuezhen_zz").attr("data-values", "");
+
   $("#switchDanjiangeli").val("");
   $("#switchDanjiangeli").attr("data-values", "");
 
@@ -1602,6 +1631,7 @@ $('#ribao_score').on('click', function () {
   var userId = $("#userId").val();
   var userName = $("#js_input_user_name").val();
   var medical = $("#switchQuezhen").attr("data-values") == undefined ? 0 : $("#switchQuezhen").attr("data-values");
+  var medicalzz = $("#switchQuezhen_zz").attr("data-values") == undefined ? 0 : $("#switchQuezhen_zz").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");