2d482f94 by 任超

style:填报信息

1 parent 6c4fd95b
...@@ -182,7 +182,7 @@ function authorityPerson() { ...@@ -182,7 +182,7 @@ function authorityPerson() {
182 // form 添加 182 // form 添加
183 $('.add_form').click(function () { 183 $('.add_form').click(function () {
184 $('#layui-form').append( 184 $('#layui-form').append(
185 '<div class="layui-form-item">' + 185 '<div class="layui-form-item sqrList">' +
186 '<div class="layui-inline">' + 186 '<div class="layui-inline">' +
187 '<label class="layui-form-label">姓名</label>' + 187 '<label class="layui-form-label">姓名</label>' +
188 '<div class="layui-input-block">' + 188 '<div class="layui-input-block">' +
...@@ -192,7 +192,7 @@ function authorityPerson() { ...@@ -192,7 +192,7 @@ function authorityPerson() {
192 '<div class="layui-inline idCard">' + 192 '<div class="layui-inline idCard">' +
193 '<label class="layui-form-label">身份证类型</label>' + 193 '<label class="layui-form-label">身份证类型</label>' +
194 '<div class="layui-input-block">' + 194 '<div class="layui-input-block">' +
195 '<select lay-filter="typeId">' + 195 '<select lay-filter="typeId" name="sqrzj">' +
196 '<option value="1">身份证</option>' + 196 '<option value="1">身份证</option>' +
197 '<option value="2">军官证</option>' + 197 '<option value="2">军官证</option>' +
198 '</select>' + 198 '</select>' +
...@@ -221,10 +221,10 @@ function authorityPerson() { ...@@ -221,10 +221,10 @@ function authorityPerson() {
221 console.log(data.value); 221 console.log(data.value);
222 }); 222 });
223 }) 223 })
224 // 编辑 224 })
225 $(document).on("click", ".layui-icon-reduce-circle", function (e) { 225 // 编辑
226 $(this).parent().remove() 226 $(document).on("click", ".layui-icon-reduce-circle", function (e) {
227 }) 227 $(this).parent().remove()
228 }) 228 })
229 } 229 }
230 // 图片上传 230 // 图片上传
...@@ -243,7 +243,7 @@ $('.formRadio').click(function () { ...@@ -243,7 +243,7 @@ $('.formRadio').click(function () {
243 //下一步事件 243 //下一步事件
244 function skipClick() { 244 function skipClick() {
245 if (_saveSQR()) { 245 if (_saveSQR()) {
246 skipNextPage(GetQueryString('bsm_slsq'), GetQueryString('businessno')); 246 // skipNextPage(GetQueryString('bsm_slsq'), GetQueryString('businessno'));
247 } else { 247 } else {
248 layer.msg('保存信息出错!'); 248 layer.msg('保存信息出错!');
249 } 249 }
...@@ -417,13 +417,19 @@ function _uploadSlcl(flieList, bsmCl, fileul, sizeNum) { ...@@ -417,13 +417,19 @@ function _uploadSlcl(flieList, bsmCl, fileul, sizeNum) {
417 function _saveSQR() { 417 function _saveSQR() {
418 var isSave = false; 418 var isSave = false;
419 // 申请人信息 419 // 申请人信息
420 var d = {}, sqrList = []; 420 var d = {}, sqrList = [], tobj = {} , tLists = [];
421 var t = $('.sqrList').serializeArray(); 421 var t = $('.sqrList').serializeArray();
422 $.each(t, function () {
423 d[this.name] = this.value;
424 });
425 d.userid = getCookie('myCookie').userid; 422 d.userid = getCookie('myCookie').userid;
426 sqrList.push(d); 423 sqrList.push(d);
424 t.forEach((item, index) => {
425 console.log(item)
426 tobj[item.name] = item.value;
427 if((index+1)%4==0){
428 tLists.push(tobj)
429 tobj = {};
430 }
431 });
432 sqrList = sqrList.concat(tLists)
427 for (var i = 0; i < sqrList.length; i++) { 433 for (var i = 0; i < sqrList.length; i++) {
428 sqrList[i].sqrlx = 1; 434 sqrList[i].sqrlx = 1;
429 } 435 }
......