From f0bb5c3c5b95ec825e4e444b7688c595d5ebebc7 Mon Sep 17 00:00:00 2001
From: D:/workspace/chenjingjing/git/gx_tieta/gx_tieta/.gitignore <chenjingjing@LAPTOP-E51P2139>
Date: 星期六, 29 十二月 2018 14:24:54 +0800
Subject: [PATCH] 修改。

---
 gx_tieta/WebRoot/mobil/batt-approved1.html |   47 ++++++++++++++++++++++++++++++++++++-----------
 1 files changed, 36 insertions(+), 11 deletions(-)

diff --git a/gx_tieta/WebRoot/mobil/batt-approved1.html b/gx_tieta/WebRoot/mobil/batt-approved1.html
index 1de45c5..294304e 100644
--- a/gx_tieta/WebRoot/mobil/batt-approved1.html
+++ b/gx_tieta/WebRoot/mobil/batt-approved1.html
@@ -27,17 +27,17 @@
 			white-space: nowrap;
 		}
 		.uncheck{
-		    background-color: #dddddde0!important;
+		    background-color: #ddd!important;
             color: #000!important;
 		}
 		.ui-btn-icon-right {
             padding-right: 8.5em;
         }
         .hbg{
-            background-color:#ddd9;
+            background-color:#ddd;
         }
         #battdata {
-            background-color:#dddddd54
+            background-color:#eee;
         }
         .ui-select .ui-btn select{
             width:77%;
@@ -145,7 +145,7 @@
 												<input type="hidden" id="DisCurrMax" class="unable" data-mini="true" />
 
 										<tr>
-											<td>鍩虹珯鐢佃瘽鍙风爜</td>
+											<td>*鍩虹珯鐢佃瘽鍙风爜</td>
 											<td>
 												<input type="text" id="station_phone" class="unable" data-mini="true" />
 											</td>
@@ -264,15 +264,18 @@
 	
 	function battnumber(){
        var selected=''
-       for(var i=1;i<=temp.length;i++){
-       		selected+= '<option '+'value='+i+'>'+"鐢垫睜缁�"+i+'</option>';	
+       console.info(temp);
+       if(temp.length>0){
+	       for(var i=0;i<temp.length;i++){
+	       		selected+= '<option '+'value='+temp[i].binf.BattGroupName+'>'+temp[i].binf.BattGroupName+'</option>';	
+	       }
+	       return $('#newbattnum').html(selected); 
        }
-       return $('#newbattnum').html(selected); 
   	}	
 		
    function creatBattView(index){
          var count=index+1
-            ,battTitle='<div>'+'<h1 class="hbg">'+'鐢垫睜缁�'+count+'</h1>'+
+            ,battTitle='<div>'+'<h1 class="hbg">'+temp[index].binf.BattGroupName+'</h1>'+
              '<table class="layout-set">'+'<tbody>'/*+'<tr>'+'<td>'+'鐢垫睜鍝佺墝'+'</td>'+'<td>'+'<fieldset data-role="controlgroup" data-type="horizontal" >'+'<select '+'id='+'battproducer'+index+' class="unable" '+'>'
             ,battBrand=selectedIndex(index)+'</select>'+'</fieldset>'+'</td>'+'</tr>'*/
             ,battBrand='<tr>'+'<td>'+'鐢垫睜鍝佺墝'+'</td>'+'<td>'+'<input type="text" '+' class="unable" '+'id='+'battproducer'+index+' data-mini="true"'+'value='+'鐢垫睜鍝佺墝'+count+' />'+'</td>'+'</tr>' 
@@ -376,7 +379,10 @@
 		//setTimes($("#startTestrecord"),'2000-01-01');
 		//setTimes($("#endTestrecord"),new Date().format('yyyy-MM-dd'));
 		
-		installstartdata(temp);
+		timeer = window.setTimeout(function() {
+							installstartdata(temp);
+						}, 4000);	
+		//4绉掑埛鏂颁竴娆¢〉闈�
 	});
     
     function applyendyanshou(arr){   //鐢宠楠屾敹
@@ -397,7 +403,7 @@
 			});
 		
 		}
-  	  // 璁剧疆娴厖鐢靛帇闃�鍊�/璁剧疆绂荤嚎鐢靛帇闃�鍊�   //
+  	// 璁剧疆娴厖鐢靛帇闃�鍊�/璁剧疆绂荤嚎鐢靛帇闃�鍊�   //
   	function setFloatAndoutLine(index) {
   		var monvolstd = "#MonVolStd"+index;
   		var MonCount = "#MonCount" +index;
@@ -477,7 +483,7 @@
 	}
 	
 	 function getCookienumber(id){//杈撳叆ID锛岃繑鍥為�氳璁℃暟銆傛暟鎹粠缂撳瓨鑾峰彇銆�
-	 	//var a = getnumber();
+	 	var a = getnumber();
 	 	//console.info(a);
 	 	if(getCookie("numberget")){
 		 	var number = getCookie("numberget");
@@ -493,6 +499,25 @@
 	 	}
 	 	return 0;
 	 }
+	 function getnumber(){ 	//鍚戣幏鍙栨墍鏈夐�氳璁℃暟骞跺瓨鍏ョ紦瀛�
+		$.ajax({
+ 			type: 'post',
+			async: true,
+			url: 'Battinf_applyAction!devCommNum',
+			data: null,
+			dataType: 'json',
+			success:function(data) {
+				data = JSON.parse(data.result);
+				if(data.code==1){
+					console.info(data.data);
+					var json =JSON.stringify(data.data);
+					setCookie("numberget",json);
+					//return data.data;	
+				}
+			}
+		});
+	 }
+	 
 	 function getCookiediubao(id){   //涓㈠寘鐜�
 	 	if(getCookie("numberget")){
 		 	var number = getCookie("numberget");

--
Gitblit v1.9.1