2d482f94 by 任超

style:填报信息

1 parent 6c4fd95b
......@@ -182,7 +182,7 @@ function authorityPerson() {
// form 添加
$('.add_form').click(function () {
$('#layui-form').append(
'<div class="layui-form-item">' +
'<div class="layui-form-item sqrList">' +
'<div class="layui-inline">' +
'<label class="layui-form-label">姓名</label>' +
'<div class="layui-input-block">' +
......@@ -192,7 +192,7 @@ function authorityPerson() {
'<div class="layui-inline idCard">' +
'<label class="layui-form-label">身份证类型</label>' +
'<div class="layui-input-block">' +
'<select lay-filter="typeId">' +
'<select lay-filter="typeId" name="sqrzj">' +
'<option value="1">身份证</option>' +
'<option value="2">军官证</option>' +
'</select>' +
......@@ -221,11 +221,11 @@ function authorityPerson() {
console.log(data.value);
});
})
})
// 编辑
$(document).on("click", ".layui-icon-reduce-circle", function (e) {
$(this).parent().remove()
})
})
}
// 图片上传
// 领证方式
......@@ -243,7 +243,7 @@ $('.formRadio').click(function () {
//下一步事件
function skipClick() {
if (_saveSQR()) {
skipNextPage(GetQueryString('bsm_slsq'), GetQueryString('businessno'));
// skipNextPage(GetQueryString('bsm_slsq'), GetQueryString('businessno'));
} else {
layer.msg('保存信息出错!');
}
......@@ -417,13 +417,19 @@ function _uploadSlcl(flieList, bsmCl, fileul, sizeNum) {
function _saveSQR() {
var isSave = false;
// 申请人信息
var d = {}, sqrList = [];
var d = {}, sqrList = [], tobj = {} , tLists = [];
var t = $('.sqrList').serializeArray();
$.each(t, function () {
d[this.name] = this.value;
});
d.userid = getCookie('myCookie').userid;
sqrList.push(d);
t.forEach((item, index) => {
console.log(item)
tobj[item.name] = item.value;
if((index+1)%4==0){
tLists.push(tobj)
tobj = {};
}
});
sqrList = sqrList.concat(tLists)
for (var i = 0; i < sqrList.length; i++) {
sqrList[i].sqrlx = 1;
}
......