| | |
| | | function creatBattView(index){
|
| | | var count=index+1
|
| | | ,battTitle='<div>'+'<h1 class="hbg">'+'电池组'+count+'</h1>'+
|
| | | '<table class="layout-set">'+'<tbody>'+'<tr>'+'<td>'+'电池品牌'+'</td>'+'<td>'+'<fieldset data-role="controlgroup" id="battproducer" data-type="horizontal">'+'<select>'
|
| | | '<table class="layout-set">'+'<tbody>'+'<tr>'+'<td>'+'电池品牌'+'</td>'+'<td>'+'<fieldset data-role="controlgroup" data-type="horizontal">'+'<select id="battproducer'+index+'>'
|
| | | ,battBrand=selectedIndex(index)+'</select>'+'</fieldset>'+'</td>'+'</tr>'
|
| | | ,battType='<tr>'+'<td>'+'电池型号'+'</td>'+'<td>'+'<input type="text" '+'id='+'batttype'+index+' data-mini="true"'+'value='+'电池型号'+count+' />'+'</td>'+'</tr>'
|
| | | ,battNum='<tr>'+'<td>'+'电池数量'+'</td>'+'<td>'+'<input type="text" '+'id='+'battnum'+index+' data-mini="true"'+'value='+'电池数量'+count+' />'+'</td>'+'</tr>'
|
| | |
| | |
|
| | | }
|
| | |
|
| | | function selectedIndex(index){
|
| | | function selectedIndex(index){
|
| | | var selected='',
|
| | | i=0;
|
| | | selected+= '<option '+'value='+'理士'+'>'+'理士'+'</option>';
|
| | |
| | | //setTimes($("#startTestrecord"),'2000-01-01');
|
| | | //setTimes($("#endTestrecord"),new Date().format('yyyy-MM-dd'));
|
| | |
|
| | | creatgroupid();//如果检测为NEW ,则执行添加ID,如果为修改,则执行为拿到ID;
|
| | | //creatgroupid();//如果检测为NEW ,则执行添加ID,如果为修改,则执行为拿到ID;
|
| | | installstartdata(temp);
|
| | | });
|
| | |
|
| | |
| | | DisCurrMax : $("#DisCurrMax").val(), //最大核容电流
|
| | | station_phone : $("#station_phone").val(), //基站号码
|
| | |
|
| | | BattProducer : $(battproducer).val(), //电池品牌
|
| | | BattProducer : $(battproducer).find("option:selected").val(), //电池品牌
|
| | | BattModel : $(battModel).val(), //电池型号
|
| | | BattProductDate : $("#startTestrecord").val()+" 00:00:00", //电池生产日期
|
| | | BattInUseDate : $("#endTestrecord").val()+" 00:00:00", //电池使用日期
|