From 00ee1e49cac2ec8a8a1f476b48dd7e60166bccbe Mon Sep 17 00:00:00 2001 From: chenjingjing <chenjingjing@LAPTOP-E51P2139> Date: 星期五, 28 十二月 2018 11:24:41 +0800 Subject: [PATCH] 未审批详情添加删除,修改界面 --- gx_tieta/WebRoot/mobil/batt-infor-unapproved-edit2.html | 73 +++++++++++++++++++++++++++++------- 1 files changed, 58 insertions(+), 15 deletions(-) diff --git a/gx_tieta/WebRoot/mobil/batt-infor-unapproved-edit2.html b/gx_tieta/WebRoot/mobil/batt-infor-unapproved-edit2.html index 8b3132a..bbf408b 100644 --- a/gx_tieta/WebRoot/mobil/batt-infor-unapproved-edit2.html +++ b/gx_tieta/WebRoot/mobil/batt-infor-unapproved-edit2.html @@ -2,7 +2,7 @@ <html lang="en"> <head> <meta charset="UTF-8"> - <title>淇敼鐢垫睜缁勪俊鎭厤缃�</title> + <title>鏈鎵归�氳繃鏈烘埧璇︽儏</title> <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1.0,user-scalable=0"> <meta name="apple-mobile-web-app-capable" content="yes"> <meta name="apple-mobile-web-app-status-bar-style" content="black"> @@ -26,8 +26,8 @@ white-space: nowrap; } .uncheck{ - background-color: #dddddd38!important; - color: #bdbdbdc4!important; + background-color: #dddddde0!important; + color: #000!important; } .ui-btn-icon-right { padding-right: 8.5em; @@ -56,7 +56,7 @@ <!-- 澶撮儴鍐呭 --> <div data-role="header" data-position="fixed"> <a href="batt-unapproved-index.html" target="_top" class="ui-btn ui-corner-all ui-shadow ui-icon-back ui-btn-icon-left" style="padding-top: 0.7em; padding-bottom: 0.7em;">杩斿洖</a> - <h1>鏈鎵归�氳繃鐢垫睜缁勮鎯�</h1> + <h1>鏈鎵归�氳繃鏈烘埧璇︽儏</h1> <fieldset data-role="controlgroup" class="ptr0" > </fieldset> </div> @@ -68,6 +68,9 @@ <input type="hidden" id="StationId" class="unable" data-mini="true" onfocus="this.blur()"/> <input type="hidden" readonly unselectable="on" value="123"class="unable" id="BattGroupId" class="uncheck" data-mini="true" onfocus="this.blur()" /> + <input type="hidden" id="FBSDeviceId" class="unable" data-mini="true" onfocus="this.blur()"/> + <input type="hidden" id="FbsDeviceIp" class="unable" data-mini="true" onfocus="this.blur()"/> + <tr> <td>鐪�</td> <td> @@ -100,8 +103,11 @@ <input type="hidden" id="FbsDeviceIp_WG" class="unable" data-mini="true" value="456"/> <input type="hidden" id="FBSDeviceName" data-mini="true" /> <input type="hidden" readonly unselectable="on" value="123" id="BattGroupNum" class="unable" class="uncheck" data-mini="true" /> - <input type="hidden" id="FloatVolLevel" data-mini="true" /> - <input type="hidden" id="OfflineVolLevel" class="unable" data-mini="true" /> + <input type="hidden" id="FloatVolLevel0" data-mini="true" /> + <input type="hidden" id="OfflineVolLevel0" class="unable" data-mini="true" /> + <input type="hidden" id="FloatVolLevel1" data-mini="true" /> + <input type="hidden" id="OfflineVolLevel1" class="unable" data-mini="true" /> + <input type="hidden" id="BattFloatCurrent" class="unable" data-mini="true" /> <input type="hidden" id="MonResStd" data-mini="true" /> <input type="hidden" id="MonSerStd" data-mini="true" /> @@ -172,7 +178,7 @@ <div data-role="navbar"> <ul> <li><a href="batt-approve-index.html" target="_top" class="ui-btn ui-btn-inline ui-corner-all operat-but ui-btn-icon-check" data-position-to="window" data-icon="check" data-role="button">宸插鏍�</a></li> - <li><a href="batt-unapproved-index.html" class="ui-btn ui-btn-inline ui-corner-all operat-but ui-btn-icon-delete" data-position-to="window" data-icon="delete" data-role="button">鍙栨秷</a></li> + <li><a href="#myPopup" data-rel="popup" id="deletemyPopup" class="ui-btn ui-btn-inline ui-corner-all operat-but ui-btn-icon-delete" data-position-to="window" data-icon="delete" data-role="button">鍒犻櫎</a></li> </ul> </div> </div> @@ -180,7 +186,13 @@ <a href="#" data-rel="back" class="ui-btn ui-corner-all ui-shadow ui-btn ui-icon-delete ui-btn-icon-notext ui-btn-right">鍏抽棴</a> <a href="" data-rel="back" id="sure" class="ui-btn ui-corner-all ui-shadow ui-btn-icon-left ui-icon-check" >鎻愪氦</a> <a href="" data-rel="back" class="ui-btn ui-corner-all ui-shadow ui-btn-icon-left ui-icon-delete" >鏀惧純</a> - </div> + </div> + <div data-role="popup" id="myPopup" class="ui-content" data-overlay-theme="b"> + <a href="#" data-rel="back" class="ui-btn ui-corner-all ui-shadow ui-btn ui-icon-delete ui-btn-icon-notext ui-btn-right">鍏抽棴</a> + <a href="" id="delete" value="" class="ui-btn ui-corner-all ui-shadow ui-btn-icon-left ui-icon-check" >纭畾鍒犻櫎</a> + <a href="" id="" class="ui-btn ui-corner-all ui-shadow ui-btn-icon-left ui-icon-forbidden" data-icon="delete">鍙栨秷鍒犻櫎</a> + </div> + </div> </body> @@ -196,7 +208,38 @@ return $("#battdata").html(allString); } - + $("#delete").click(function(delindex){ //鍒犻櫎鐢垫睜缁� + var delindex = $("#delete").val(); + //console.info($("#delete").val()); + //console.info(delindex); + battDeleteparm(); + }); + + function battDeleteparm(){ + var parm = getUpdateArr(); + console.info(parm); + delBatt(parm); + } + function delBatt(parm){ + $.ajax({ + type: "post", + url: "Battinf_applyAction!del", + async:true, + dataType:'json', + data:"json="+JSON.stringify(parm), + success: function(data){ + console.info(data); + data = JSON.parse(data.result); + if(data.code==1){ + alert("鍒犻櫎鎴愬姛"); + window.location.href="batt-unapproved-index.html"; + }else{ + alert("鍒犻櫎澶辫触"); + window.location.href="batt-unapproved-index.html"; + } + } + }); + } function creatBattView(index){ var count=index+1 ,battTitle='<div>'+'<h1 class="hbg">'+'鐢垫睜缁�'+count+'</h1>'+ @@ -339,8 +382,8 @@ document.getElementById("homeName").value = data.StationName3; //鏈烘埧鍚嶇О document.getElementById("StationName4").value = data.StationName4; //璁惧鍚嶇О document.getElementById("StationIp").value = data.StationIp; //璁惧IP - //document.getElementById("FBSDeviceId").value = data.FBSDeviceId; - // document.getElementById("FbsDeviceIp").value = data.FbsDeviceIp; + document.getElementById("FBSDeviceId").value = data.FBSDeviceId; + document.getElementById("FbsDeviceIp").value = data.FbsDeviceIp; document.getElementById("FbsDeviceIp_YM").value = data.FbsDeviceIp_YM; document.getElementById("FbsDeviceIp_WG").value = data.FbsDeviceIp_WG; document.getElementById("FBSDeviceName").value = data.FBSDeviceName; @@ -348,8 +391,8 @@ document.getElementById("BattGroupId").value = data.BattGroupId; document.getElementById("BattGroupNum").value = data.BattGroupNum; //document.getElementById("BattGroupName").value = temp[15]; - document.getElementById("FloatVolLevel").value = data.FloatVolLevel; - document.getElementById("OfflineVolLevel").value = data.OfflineVolLevel; + //document.getElementById("FloatVolLevel").value = data.FloatVolLevel; + //document.getElementById("OfflineVolLevel").value = data.OfflineVolLevel; document.getElementById("BattFloatCurrent").value = data.BattFloatCurrent; //document.getElementById("MonCount").value = data.MonCount; //document.getElementById("MonCapStd").value = data.MonCapStd; @@ -405,7 +448,7 @@ var index = String(i); console.info(battString); var obj = { - apply_date : new Date().format("yyyy-MM-dd hh:mm:ss"), + //apply_date : new Date().format("yyyy-MM-dd hh:mm:ss"), num : temp[i].num, binf:{ StationId : $("#StationId").val(), // 鏈烘埧缂栧彿 @@ -439,7 +482,7 @@ DisCurrMax : $("#DisCurrMax").val(), //鏈�澶ф牳瀹圭數娴� station_phone : $("#station_phone").val(), //鍩虹珯鍙风爜 - BattProducer : $("#battproducer"+i).find("option:selected").val(), //鐢垫睜鍝佺墝 + BattProducer : $("#battproducer"+i).val(), //鐢垫睜鍝佺墝 BattModel : $(battModel).val(), //鐢垫睜鍨嬪彿 BattProductDate : $("#startTestrecord").val(), //鐢垫睜鐢熶骇鏃ユ湡 BattInUseDate : $("#endTestrecord").val(), //鐢垫睜浣跨敤鏃ユ湡 -- Gitblit v1.9.1