类似如下格式
<div class="xx">
<input clsss="a1">
<input clsss="a1">
<input clsss="a1">
</div>
<div class="xx">
<input clsss="a1">
<input clsss="a1">
<input clsss="a1">
</div>
<div class="xx">
<input clsss="a1">
<input clsss="a1">
<input clsss="a1">
</div>
for(var i=0;i<$(".wxpart").length;i++){
var basistablename= $(".wxxmbd").eq(i).val();
var measurebasisid=$(".fordel4").eq(i).attr("measurebasisid");
var measurebasisidX = {
measurebasisid: measurebasisid,
basistablename: basistablename,
basistabletype: '维修项目测算依据表单',
basisEneryProjectList: [],
peopleWorkFeeList: [],
customMeasureFeeList: [],
maintainServiceFeeList: [],
propertyServiceFeeList: [],
centralControlFeeList: [],
probasicinforid:probasicinforid,
updateuser: '', //
createuser: '' //
};
if(measurebasisid==null || measurebasisid==undefined || measurebasisid==''){
measurebasisidX.createuser=currentUserID;
}else{
measurebasisidX.updateuser=currentUserID;
}
//console.log($(".wxpart").eq(i).find(".ckpp4").length)
for(var a=0;a<$(".wxpart").eq(i).find(".ckpp4").length;a++){
maintainServiceFeeListX={
maintainservicefeeid: $(".wxpart").eq(i).find(".delBtn4").eq(a).attr("maintainservicefeeid"),
measurebasisid:measurebasisid,
cycle:$(".wxpart").eq(i).find(".ckpp4").eq(a).val() ,
models:$(".wxpart").eq(i).find(".ggxh4").eq(a).val(),
number:$(".wxpart").eq(i).find(".sl4").eq(a).val(),
price:$(".wxpart").eq(i).find(".dj4").eq(a).val(),
projectform:$(".wxpart").eq(i).find(".gznr4").eq(a).val(),
remarks:$(".wxpart").eq(i).find(".bz4").eq(a).val(),
totalcost:$(".wxpart").eq(i).find(".xj4").eq(a).val(),
unit:$(".wxpart").eq(i).find(".dw4").eq(a).val(),
createuser :'',
updateuser:''
}
if(maintainservicefeeid==null || maintainservicefeeid==undefined ||maintainservicefeeid==''){
maintainServiceFeeListX.createuser=currentUserID;
}else{
maintainServiceFeeListX.updateuser=currentUserID;
}
measurebasisidX.maintainServiceFeeList.push(maintainServiceFeeListX)
}
operateManagementServiceVo.push(measurebasisidX)
}