人口基本信息-修改地区类型保存Bug
人口基本信息-修改人口信息身份证自动识别性别/生日Bug
This commit is contained in:
parent
6429751eac
commit
f2e4f0cbf2
@ -275,6 +275,7 @@
|
|||||||
mother_phone,
|
mother_phone,
|
||||||
relationship,
|
relationship,
|
||||||
domicile_address,
|
domicile_address,
|
||||||
|
domicile_address_type,
|
||||||
domicile_area_code,
|
domicile_area_code,
|
||||||
domicile_area_name,
|
domicile_area_name,
|
||||||
origin_address,
|
origin_address,
|
||||||
@ -355,6 +356,7 @@
|
|||||||
#{motherPhone},
|
#{motherPhone},
|
||||||
#{relationship},
|
#{relationship},
|
||||||
#{domicileAddress},
|
#{domicileAddress},
|
||||||
|
#{domicileAddressType},
|
||||||
#{domicileAreaCode},
|
#{domicileAreaCode},
|
||||||
#{domicileAreaName},
|
#{domicileAreaName},
|
||||||
#{originAddress},
|
#{originAddress},
|
||||||
|
@ -1149,14 +1149,16 @@
|
|||||||
laytpl(document.getElementById('labelSelectTemplate').innerHTML).render(data, function(html) {
|
laytpl(document.getElementById('labelSelectTemplate').innerHTML).render(data, function(html) {
|
||||||
document.getElementById('labelSelectTemplateBox').innerHTML = html;
|
document.getElementById('labelSelectTemplateBox').innerHTML = html;
|
||||||
});
|
});
|
||||||
form.render('checkbox', 'labelSelectTemplateBox')
|
form.render('checkbox', 'labelSelectTemplateBox');
|
||||||
|
|
||||||
var checkboxValue = selectValues.split(',');
|
if(selectValues) {
|
||||||
var checkboxObj = {};
|
var checkboxValue = selectValues.split(',');
|
||||||
for(var j = 0, checkbox = checkboxValue[j]; checkbox = checkboxValue[j++];) {
|
var checkboxObj = {};
|
||||||
checkboxObj['label['+ checkbox +']'] = true;
|
for(var j = 0, checkbox = checkboxValue[j]; checkbox = checkboxValue[j++];) {
|
||||||
|
checkboxObj['label['+ checkbox +']'] = true;
|
||||||
|
}
|
||||||
|
form.val('dataForm', checkboxObj);
|
||||||
}
|
}
|
||||||
form.val('dataForm', checkboxObj);
|
|
||||||
}, function(code, data) {
|
}, function(code, data) {
|
||||||
top.dialog.msg(data.msg);
|
top.dialog.msg(data.msg);
|
||||||
});
|
});
|
||||||
@ -1469,7 +1471,7 @@
|
|||||||
// 身份证号改变时发生
|
// 身份证号改变时发生
|
||||||
$('#idcard').on("input propertychange", function () {
|
$('#idcard').on("input propertychange", function () {
|
||||||
var idCardNo = $(this).val();
|
var idCardNo = $(this).val();
|
||||||
if (idCardNo.length > 15 && idCardNo.length < 18) {
|
if (idCardNo.length == 15 || idCardNo.length == 18) {
|
||||||
if (idCardNoUtil.checkIdCardNo(idCardNo)) {
|
if (idCardNoUtil.checkIdCardNo(idCardNo)) {
|
||||||
//获取身份证信息
|
//获取身份证信息
|
||||||
var idCardInfo = idCardNoUtil.getIdCardInfo(idCardNo);
|
var idCardInfo = idCardNoUtil.getIdCardInfo(idCardNo);
|
||||||
|
@ -1061,14 +1061,16 @@
|
|||||||
laytpl(document.getElementById('labelSelectTemplate').innerHTML).render(data, function(html) {
|
laytpl(document.getElementById('labelSelectTemplate').innerHTML).render(data, function(html) {
|
||||||
document.getElementById('labelSelectTemplateBox').innerHTML = html;
|
document.getElementById('labelSelectTemplateBox').innerHTML = html;
|
||||||
});
|
});
|
||||||
form.render('checkbox', 'labelSelectTemplateBox')
|
form.render('checkbox', 'labelSelectTemplateBox');
|
||||||
|
|
||||||
var checkboxValue = selectValues.split(',');
|
if(selectValues) {
|
||||||
var checkboxObj = {};
|
var checkboxValue = selectValues.split(',');
|
||||||
for(var j = 0, checkbox = checkboxValue[j]; checkbox = checkboxValue[j++];) {
|
var checkboxObj = {};
|
||||||
checkboxObj['label['+ checkbox +']'] = true;
|
for (var j = 0, checkbox = checkboxValue[j]; checkbox = checkboxValue[j++];) {
|
||||||
|
checkboxObj['label[' + checkbox + ']'] = true;
|
||||||
|
}
|
||||||
|
form.val('dataForm', checkboxObj);
|
||||||
}
|
}
|
||||||
form.val('dataForm', checkboxObj);
|
|
||||||
}, function(code, data) {
|
}, function(code, data) {
|
||||||
top.dialog.msg(data.msg);
|
top.dialog.msg(data.msg);
|
||||||
});
|
});
|
||||||
@ -1381,7 +1383,7 @@
|
|||||||
// 身份证号改变时发生
|
// 身份证号改变时发生
|
||||||
$('#idcard').on("input propertychange", function () {
|
$('#idcard').on("input propertychange", function () {
|
||||||
var idCardNo = $(this).val();
|
var idCardNo = $(this).val();
|
||||||
if (idCardNo.length > 15 && idCardNo.length < 18) {
|
if (idCardNo.length == 15 || idCardNo.length == 18) {
|
||||||
if (idCardNoUtil.checkIdCardNo(idCardNo)) {
|
if (idCardNoUtil.checkIdCardNo(idCardNo)) {
|
||||||
//获取身份证信息
|
//获取身份证信息
|
||||||
var idCardInfo = idCardNoUtil.getIdCardInfo(idCardNo);
|
var idCardInfo = idCardNoUtil.getIdCardInfo(idCardNo);
|
||||||
|
Loading…
Reference in New Issue
Block a user