Ver Fonte

凌云日报页面完成

maoyunfeng há 5 anos atrás
pai
commit
79f8ba7134

+ 71 - 0
whepi-ui/templates/home/ribao.ftl

@@ -190,6 +190,77 @@
                         <input id="js_input_score_histroy" type="text" hidden="hidden"/>
                         <input id="js_input_score" type="text" hidden="hidden"/>
                     </div>
+                    <div id="ribao" class="weui-btn-area"><#--style="display: none"-->
+                        <div style="display:flex; flex-direction: row; justify-content: space-between; margin-top: 6vh;">
+                            <div style="height: 5vh; line-height: 5vh; width: 55%;">工作驻地</div>
+                            <input id="js_input_gzzd" class="weui-input" type="text" placeholder="请选择"
+                                   style="border: 1px solid rgba(0,0,0,.2);box-sizing:border-box; border-radius: 5px; height: 5vh;width: 50%" onchange="selectinput1(this)"/>
+                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
+                            <input id="js_input_qtdd" placeholder="其它地点" disabled="disabled" type="text" style="width: 80%;text-align: center;border-top-width: 0px;border-right-width: 0px;border-bottom-width: 1px;border-left-width: 0px;border-color: #75859f;height: 5vh;font-size:inherit;color:inherit;" />
+                        </div>
+                        <div style="display:flex; flex-direction: row; justify-content: space-between; margin-top: 1vh;">
+                            <div style="height: 5vh; line-height: 5vh; width: 55%;">今日所在地</div>
+                            <input id="js_input_jrszd" class="weui-input" type="text" placeholder="请选择"
+                                   style="border: 1px solid rgba(0,0,0,.2);box-sizing:border-box; border-radius: 5px; height: 5vh;width: 50%" onchange="selectinput2(this)"/>
+                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
+                            <input id="js_input_jrszq" placeholder="其它地点" disabled="disabled" type="text" style="width: 80%;text-align: center;border-top-width: 0px;border-right-width: 0px;border-bottom-width: 1px;border-left-width: 0px;border-color: #75859f;height: 5vh;font-size:inherit;color:inherit;" />
+                        </div>
+                        <div style="display:flex; flex-direction: row; justify-content: space-between; margin-top: 1vh;">
+                            <div style="height: 5vh; line-height: 5vh; width: 55%;">是否出行</div>
+                            <input id="js_input_sf" class="weui-input" type="text" placeholder="请选择"
+                                   style="border: 1px solid rgba(0,0,0,.2);box-sizing:border-box; border-radius: 5px; height: 5vh;width: 145%"/>
+                        </div>
+                        <br/>
+                    <#--<div style="text-align: center;height: 1vh;">出行情况上报</div>-->
+                        <div class="weui-loadmore weui-loadmore_line" style="width: 100%;height: 1vh;">
+                            <span class="weui-loadmore__tips">出行情况上报</span>
+                        </div>
+                        <div style="display:flex; flex-direction: row; justify-content: space-between; margin-top: 6vh;">
+                            <div style="height: 5vh; line-height: 5vh; width: 55%;">出发地</div>
+                            <input id="js_input_cfd" class="weui-input" type="text" placeholder="请选择"
+                                   style="border: 1px solid rgba(0,0,0,.2);box-sizing:border-box; border-radius: 5px; height: 5vh;width: 50%" onchange="selectinput3(this)"/>
+                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
+                            <input id="js_input_cfdq" placeholder="其它地点" disabled="disabled" type="text" style="width: 80%;text-align: center;border-top-width: 0px;border-right-width: 0px;border-bottom-width: 1px;border-left-width: 0px;border-color: #75859f;height: 5vh;font-size:inherit;color:inherit;" />
+                        </div>
+                        <div style="display:flex; flex-direction: row; justify-content: space-between; margin-top: 1vh;">
+                            <div style="height: 5vh; line-height: 5vh; width: 55%;">目的地</div>
+                            <input id="js_input_mdd" class="weui-input" type="text" placeholder="请选择"
+                                   style="border: 1px solid rgba(0,0,0,.2);box-sizing:border-box; border-radius: 5px; height: 5vh;width: 50%" onchange="selectinput4(this)"/>
+                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
+                            <input id="js_input_mddq" placeholder="其它地点" disabled="disabled" type="text" style="width: 80%;text-align: center;border-top-width: 0px;border-right-width: 0px;border-bottom-width: 1px;border-left-width: 0px;border-color: #75859f;height: 5vh;font-size:inherit;color:inherit;" />
+                        </div>
+                        <div style="display:flex; flex-direction: row; justify-content: space-between; margin-top: 1vh;">
+                            <div style="height: 5vh; line-height: 5vh; width: 55%;">出行方式</div>
+                            <input id="js_input_cxfs" class="weui-input" type="text" placeholder="请选择出行方式"
+                                   style="border: 1px solid rgba(0,0,0,.2);box-sizing:border-box; border-radius: 5px; height: 5vh;width: 50%" onchange="selectinput5(this)"/>
+                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
+                            <input id="js_input_cxfsq" placeholder="车次/航班/车牌" type="text" style="width: 80%;text-align: center;border-top-width: 0px;border-right-width: 0px;border-bottom-width: 1px;border-left-width: 0px;border-color: #75859f;height: 5vh;font-size:inherit;color:inherit;" />
+
+                        </div>
+                        <div class="weui-cell__ft" style="margin-top: 1vh;">
+                            <button id="btnAdd" href="javascript:" style="height:5vh; margin-right: 0vh;width: 70px;"
+                                    class="weui-btn weui-btn_mini weui-btn_primary" onclick="insertlingyun()">添加
+                            </button>
+                        </div>
+                        <div class="weui-loadmore tt" style="width: 100%;height: 1vh;margin-top: 1vh;">
+                        </div>
+                        <div>
+                            <table cellspacing="0" cellpadding="0" style="width: 100%">
+                                <tbody id="tabtr"><#--border="1" cellspacing="0" cellpadding="0"-->
+                                <tr style="background-color: #f8f8f8;">
+                                <#-- <td style="text-align: center;">序号</td>
+                                <td style="text-align: center;">出发地</td>
+                                <td style="text-align: center;">目的地</td>
+                                <td style="text-align: center;">出行方式</td>
+                                <td style="text-align: center;">车次/航班/车牌</td>-->
+                                </tr>
+                                </tbody>
+                            </table>
+                            <table id="tab5" class="new_tab" align="left" cellpadding="0" cellspacing="0"
+                                   style="width: 100%;">
+                            </table>
+                        </div>
+                    </div>
                     <div style="display: flex; justify-content: center;">
                         <div style="width: 70%;color: red; text-align: center;">
                             自愿填写病情描述(温度为必填项),提交后会根据每天病情描述变化趋势给出更加科学的健康评估建议

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

@@ -1,4 +1,127 @@
+
 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));   //设置初始值
 
@@ -210,6 +333,195 @@ function ribao_init() {
   // 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")
+    }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').attr("disabled","disabled")
+    }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")
+    }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")
+    }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 = [];
+var person=new Object();
+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 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 = "武汉市";
+      }else if(cfd == 2){
+          person.startlocal = 2;
+          person.startlocalStr = "宜昌市";
+      }else if(cfd == 3){
+          person.startlocal = 3;
+          person.startlocalStr = "当阳市";
+      }
+
+    }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 = "武汉市";
+        }else if(mdd == 2){
+            person.endlocal = 2;
+            person.endlocalStr = "宜昌市";
+        }else if(mdd == 3){
+            person.endlocal = 3;
+            person.endlocalStr = "当阳市";
+        }
+    }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) {
@@ -506,6 +818,59 @@ function ribaoCommit() {
       document.getElementById("btn_shangbao").style['background-color'] = "#0bb20c";
     },
   });
+
+  //lingyun
+    var gzzd = $("#js_input_gzzd").attr("data-values") == undefined ? 0 : $("#js_input_gzzd").attr("data-values");
+    var qtdd = $("#js_input_qtdd").val();
+    if(gzzd == 0){
+        $.alert("请选择工作驻地");
+        return;
+    }else if(gzzd == 4 && qtdd == ""){
+        $.alert("请填写工作驻地");
+        return;
+    }else if(gzzd != 0 && gzzd !=4){
+        if(gzzd ==1){
+            person.worklocal = 1;
+        }else if(gzzd == 2){
+            person.worklocal = 2;
+        }else if(gzzd == 3){
+            person.worklocal = 3;
+        }
+    }else if(gzzd == 4 && qtdd != ""){
+        person.worklocal = 4;
+        person.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();
+    if(jrszd == 0){
+        $.alert("请选择今日所在地");
+        return;
+    }else if(jrszd == 4 && jrszq == ""){
+        $.alert("请填写今日所在地");
+        return;
+    }else if(jrszd != 0 && jrszd !=4){
+        if(jrszd ==1){
+            person.todylocal = 1;
+        }else if(jrszd == 2){
+            person.todylocal = 2;
+        }else if(jrszd == 3){
+            person.todylocal = 3;
+        }
+    }else if(jrszd == 4 && jrszq != ""){
+        person.todylocal = 4;
+        person.todylocalOther = jrszq;
+    }
+    var sf = $("#js_input_sf").attr("data-values") == undefined ? 3 : $("#js_input_sf").attr("data-values");
+    if(sf == 3){
+        $.alert("请选择是否出行");
+        return;
+    }else{
+        person.isTrip = sf;
+    }
+    listcx.push(person);
 }
 
 function deleteSuspected(suspectedId) {

+ 65 - 65
whepi-ui/templates/lingyun/ribao.ftl

@@ -13,76 +13,76 @@
             <div id="rb_nav1" class="weui-tab__bd-item ri_bao_weui_tab_bd_item_active">
 
                 <div id="ribao" class="weui-btn-area"><#--style="display: none"-->
-                    <div style="display:flex; flex-direction: row; justify-content: space-between; margin-top: 6vh;">
-                        <div style="height: 5vh; line-height: 5vh; width: 55%;">工作驻地</div>
-                        <input id="js_input_gzzd" class="weui-input" type="text" placeholder="请选择"
-                               style="border: 1px solid rgba(0,0,0,.2);box-sizing:border-box; border-radius: 5px; height: 5vh;width: 50%" onchange="selectinput(this)"/>
-                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
-                        <input placeholder="其它地点" type="text" style="width: 80%;text-align: center;border-top-width: 0px;border-right-width: 0px;border-bottom-width: 1px;border-left-width: 0px;border-color: #75859f;height: 5vh;font-size:inherit;color:inherit;" />
-                    </div>
-                    <div style="display:flex; flex-direction: row; justify-content: space-between; margin-top: 1vh;">
-                        <div style="height: 5vh; line-height: 5vh; width: 55%;">今日所在地</div>
-                        <input id="js_input_jrszd" class="weui-input" type="text" placeholder="请选择"
-                               style="border: 1px solid rgba(0,0,0,.2);box-sizing:border-box; border-radius: 5px; height: 5vh;width: 50%"/>
-                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
-                        <input placeholder="其它地点" type="text" style="width: 80%;text-align: center;border-top-width: 0px;border-right-width: 0px;border-bottom-width: 1px;border-left-width: 0px;border-color: #75859f;height: 5vh;font-size:inherit;color:inherit;" />
-                    </div>
-                    <div style="display:flex; flex-direction: row; justify-content: space-between; margin-top: 1vh;">
-                        <div style="height: 5vh; line-height: 5vh; width: 55%;">是否出行</div>
-                        <input id="js_input_sf" class="weui-input" type="text" placeholder="请选择"
-                               style="border: 1px solid rgba(0,0,0,.2);box-sizing:border-box; border-radius: 5px; height: 5vh;width: 145%"/>
-                      </div>
-                    <br/>
-                    <#--<div style="text-align: center;height: 1vh;">出行情况上报</div>-->
-                    <div class="weui-loadmore weui-loadmore_line" style="width: 100%;height: 1vh;">
-                        <span class="weui-loadmore__tips">出行情况上报</span>
-                    </div>
-                    <div style="display:flex; flex-direction: row; justify-content: space-between; margin-top: 6vh;">
-                        <div style="height: 5vh; line-height: 5vh; width: 55%;">出发地</div>
-                        <input id="js_input_cfd" class="weui-input" type="text" placeholder="请选择"
-                               style="border: 1px solid rgba(0,0,0,.2);box-sizing:border-box; border-radius: 5px; height: 5vh;width: 50%"/>
-                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
-                        <input placeholder="其它地点" type="text" style="width: 80%;text-align: center;border-top-width: 0px;border-right-width: 0px;border-bottom-width: 1px;border-left-width: 0px;border-color: #75859f;height: 5vh;font-size:inherit;color:inherit;" />
-                    </div>
-                    <div style="display:flex; flex-direction: row; justify-content: space-between; margin-top: 1vh;">
-                        <div style="height: 5vh; line-height: 5vh; width: 55%;">目的地</div>
-                        <input id="js_input_mdd" class="weui-input" type="text" placeholder="请选择"
-                               style="border: 1px solid rgba(0,0,0,.2);box-sizing:border-box; border-radius: 5px; height: 5vh;width: 50%"/>
-                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
-                        <input placeholder="其它地点" type="text" style="width: 80%;text-align: center;border-top-width: 0px;border-right-width: 0px;border-bottom-width: 1px;border-left-width: 0px;border-color: #75859f;height: 5vh;font-size:inherit;color:inherit;" />
-                    </div>
-                    <div style="display:flex; flex-direction: row; justify-content: space-between; margin-top: 1vh;">
-                        <div style="height: 5vh; line-height: 5vh; width: 55%;">出行方式</div>
-                        <input id="js_input_cxfs" class="weui-input" type="text" placeholder="请选择出行方式"
-                               style="border: 1px solid rgba(0,0,0,.2);box-sizing:border-box; border-radius: 5px; height: 5vh;width: 50%"/>
-                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
-                        <input placeholder="车次/航班/车牌" type="text" disabled="disabled" style="width: 80%;text-align: center;border-top-width: 0px;border-right-width: 0px;border-bottom-width: 1px;border-left-width: 0px;border-color: #75859f;height: 5vh;font-size:inherit;color:inherit;" />
+                <div style="display:flex; flex-direction: row; justify-content: space-between; margin-top: 6vh;">
+                    <div style="height: 5vh; line-height: 5vh; width: 55%;">工作驻地</div>
+                    <input id="js_input_gzzd" class="weui-input" type="text" placeholder="请选择"
+                           style="border: 1px solid rgba(0,0,0,.2);box-sizing:border-box; border-radius: 5px; height: 5vh;width: 50%" onchange="selectinput(this)"/>
+                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
+                    <input placeholder="其它地点" type="text" style="width: 80%;text-align: center;border-top-width: 0px;border-right-width: 0px;border-bottom-width: 1px;border-left-width: 0px;border-color: #75859f;height: 5vh;font-size:inherit;color:inherit;" />
+                </div>
+                <div style="display:flex; flex-direction: row; justify-content: space-between; margin-top: 1vh;">
+                    <div style="height: 5vh; line-height: 5vh; width: 55%;">今日所在地</div>
+                    <input id="js_input_jrszd" class="weui-input" type="text" placeholder="请选择"
+                           style="border: 1px solid rgba(0,0,0,.2);box-sizing:border-box; border-radius: 5px; height: 5vh;width: 50%"/>
+                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
+                    <input placeholder="其它地点" type="text" style="width: 80%;text-align: center;border-top-width: 0px;border-right-width: 0px;border-bottom-width: 1px;border-left-width: 0px;border-color: #75859f;height: 5vh;font-size:inherit;color:inherit;" />
+                </div>
+                <div style="display:flex; flex-direction: row; justify-content: space-between; margin-top: 1vh;">
+                    <div style="height: 5vh; line-height: 5vh; width: 55%;">是否出行</div>
+                    <input id="js_input_sf" class="weui-input" type="text" placeholder="请选择"
+                           style="border: 1px solid rgba(0,0,0,.2);box-sizing:border-box; border-radius: 5px; height: 5vh;width: 145%"/>
+                </div>
+                <br/>
+            <#--<div style="text-align: center;height: 1vh;">出行情况上报</div>-->
+                <div class="weui-loadmore weui-loadmore_line" style="width: 100%;height: 1vh;">
+                    <span class="weui-loadmore__tips">出行情况上报</span>
+                </div>
+                <div style="display:flex; flex-direction: row; justify-content: space-between; margin-top: 6vh;">
+                    <div style="height: 5vh; line-height: 5vh; width: 55%;">出发地</div>
+                    <input id="js_input_cfd" class="weui-input" type="text" placeholder="请选择"
+                           style="border: 1px solid rgba(0,0,0,.2);box-sizing:border-box; border-radius: 5px; height: 5vh;width: 50%"/>
+                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
+                    <input placeholder="其它地点" type="text" style="width: 80%;text-align: center;border-top-width: 0px;border-right-width: 0px;border-bottom-width: 1px;border-left-width: 0px;border-color: #75859f;height: 5vh;font-size:inherit;color:inherit;" />
+                </div>
+                <div style="display:flex; flex-direction: row; justify-content: space-between; margin-top: 1vh;">
+                    <div style="height: 5vh; line-height: 5vh; width: 55%;">目的地</div>
+                    <input id="js_input_mdd" class="weui-input" type="text" placeholder="请选择"
+                           style="border: 1px solid rgba(0,0,0,.2);box-sizing:border-box; border-radius: 5px; height: 5vh;width: 50%"/>
+                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
+                    <input placeholder="其它地点" type="text" style="width: 80%;text-align: center;border-top-width: 0px;border-right-width: 0px;border-bottom-width: 1px;border-left-width: 0px;border-color: #75859f;height: 5vh;font-size:inherit;color:inherit;" />
+                </div>
+                <div style="display:flex; flex-direction: row; justify-content: space-between; margin-top: 1vh;">
+                    <div style="height: 5vh; line-height: 5vh; width: 55%;">出行方式</div>
+                    <input id="js_input_cxfs" class="weui-input" type="text" placeholder="请选择出行方式"
+                           style="border: 1px solid rgba(0,0,0,.2);box-sizing:border-box; border-radius: 5px; height: 5vh;width: 50%"/>
+                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
+                    <input placeholder="车次/航班/车牌" type="text" disabled="disabled" style="width: 80%;text-align: center;border-top-width: 0px;border-right-width: 0px;border-bottom-width: 1px;border-left-width: 0px;border-color: #75859f;height: 5vh;font-size:inherit;color:inherit;" />
 
-                    </div>
-                    <div class="weui-cell__ft" style="margin-top: 1vh;">
-                        <button id="btnAdd" href="javascript:" style="height:5vh; margin-right: 0vh;width: 70px;"
-                                class="weui-btn weui-btn_mini weui-btn_primary">添加
-                        </button>
-                    </div>
-                    <div class="weui-loadmore tt" style="width: 100%;height: 1vh;margin-top: 1vh;">
-                    </div>
-                    <div>
-                        <table cellspacing="0" cellpadding="0" style="width: 100%">
-                            <tbody id="tabtr"><#--border="1" cellspacing="0" cellpadding="0"-->
-                            <tr style="background-color: #f8f8f8;">
-                               <#-- <td style="text-align: center;">序号</td>
+                </div>
+                <div class="weui-cell__ft" style="margin-top: 1vh;">
+                    <button id="btnAdd" href="javascript:" style="height:5vh; margin-right: 0vh;width: 70px;"
+                            class="weui-btn weui-btn_mini weui-btn_primary">添加
+                    </button>
+                </div>
+                <div class="weui-loadmore tt" style="width: 100%;height: 1vh;margin-top: 1vh;">
+                </div>
+                <div>
+                    <table cellspacing="0" cellpadding="0" style="width: 100%">
+                        <tbody id="tabtr"><#--border="1" cellspacing="0" cellpadding="0"-->
+                        <tr style="background-color: #f8f8f8;">
+                        <#-- <td style="text-align: center;">序号</td>
                                 <td style="text-align: center;">出发地</td>
                                 <td style="text-align: center;">目的地</td>
                                 <td style="text-align: center;">出行方式</td>
                                 <td style="text-align: center;">车次/航班/车牌</td>-->
-                            </tr>
-                            </tbody>
-                        </table>
-                        <table id="tab5" class="new_tab" align="left" cellpadding="0" cellspacing="0"
-                               style="width: 100%;">
-                        </table>
-                    </div>
-                    </div>
+                        </tr>
+                        </tbody>
+                    </table>
+                    <table id="tab5" class="new_tab" align="left" cellpadding="0" cellspacing="0"
+                           style="width: 100%;">
+                    </table>
+                </div>
+            </div>
                 </br>
                 </br>
             </div>

+ 7 - 1
whepi-ui/templates/lingyun/ribao.js

@@ -5,7 +5,8 @@ function ribao_init() {
         "出发地",
         "目的地",
         "出行方式",
-        "车次/航班/车牌"
+        "车次/航班/车牌",
+        "操作"
     ];
     for (var i = 0; i < xxName.length; i++) {
         xxIds.push({
@@ -32,6 +33,7 @@ function ribao_init() {
         html += "<td style='text-align: center;' >" + "mao" + " </td>";
         html += "<td style='text-align: center;' >" + "mao" + " </td>";
         html += "<td style='text-align: center;' >" + "mao" + " </td>";
+        html += "<td style='text-align: center;' ><button style='height:3vh;background-color: red;text-align: center;' class='weui-btn weui-btn_mini weui-btn_primary'>" + "删除" + " </button></td>";
 
         html += "</tr>";
         $("#tabtr").html(html);
@@ -156,6 +158,10 @@ function ribao_init() {
 
 }
 
+function selectinput(obj){
+    alert($("#js_input_gzzd").attr("data-values"))
+}
+
 //近日报告
 function ribaoInitialization(reportId) {
     if (reportId == null)