|
@@ -3,7 +3,7 @@
|
|
|
* 初始化购房补贴详情对话框
|
|
|
*/
|
|
|
var HousepurchaseInfoDlg = {
|
|
|
- housepurchaseInfoData : {},
|
|
|
+ housepurchaseInfoData: {},
|
|
|
validateFields: {
|
|
|
enterpriseId: {validators: {notEmpty: {message: '所属企业不能为空'}}},
|
|
|
name: {validators: {notEmpty: {message: '姓名不能为空'}}},
|
|
@@ -89,7 +89,7 @@ var HousepurchaseInfoDlg = {
|
|
|
/**
|
|
|
* 清除数据
|
|
|
*/
|
|
|
-HousepurchaseInfoDlg.clearData = function() {
|
|
|
+HousepurchaseInfoDlg.clearData = function () {
|
|
|
this.housepurchaseInfoData = {};
|
|
|
}
|
|
|
|
|
@@ -98,7 +98,7 @@ HousepurchaseInfoDlg.clearData = function() {
|
|
|
* @param key 数据的名称
|
|
|
* @param val 数据的具体值
|
|
|
*/
|
|
|
-HousepurchaseInfoDlg.set = function(key, val) {
|
|
|
+HousepurchaseInfoDlg.set = function (key, val) {
|
|
|
this.housepurchaseInfoData[key] = (typeof val == "undefined") ? $("#" + key).val() : val;
|
|
|
return this;
|
|
|
}
|
|
@@ -108,70 +108,70 @@ HousepurchaseInfoDlg.set = function(key, val) {
|
|
|
* @param key 数据的名称
|
|
|
* @param val 数据的具体值
|
|
|
*/
|
|
|
-HousepurchaseInfoDlg.get = function(key) {
|
|
|
+HousepurchaseInfoDlg.get = function (key) {
|
|
|
return $("#" + key).val();
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 关闭此对话框
|
|
|
*/
|
|
|
-HousepurchaseInfoDlg.close = function() {
|
|
|
+HousepurchaseInfoDlg.close = function () {
|
|
|
parent.layer.close(window.parent.Housepurchase.layerIndex);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 收集数据
|
|
|
*/
|
|
|
-HousepurchaseInfoDlg.collectData = function() {
|
|
|
+HousepurchaseInfoDlg.collectData = function () {
|
|
|
this
|
|
|
- .set('id')
|
|
|
- .set('talentId')
|
|
|
- .set('type')
|
|
|
- .set('declareType')
|
|
|
- .set('declareObject')
|
|
|
- .set('year')
|
|
|
- .set('name')
|
|
|
- .set('cardType')
|
|
|
- .set('idCard')
|
|
|
- .set('provinceCode')
|
|
|
- .set('cityCode')
|
|
|
- .set('countyCode')
|
|
|
- .set('street')
|
|
|
- .set('talentType')
|
|
|
- .set('talentArrange')
|
|
|
- .set('certificateStartTime')
|
|
|
- .set('certificateEndTime')
|
|
|
- .set('identifyCondition')
|
|
|
- .set('idenfityConditionName')
|
|
|
- .set('identifyGetTime')
|
|
|
- .set('phone')
|
|
|
- .set('marryStatus')
|
|
|
- .set('spouseName')
|
|
|
- .set('spouseCardType')
|
|
|
- .set('spouseIdcard')
|
|
|
- .set('childName')
|
|
|
- .set('childCardType')
|
|
|
- .set('childIdCard')
|
|
|
- .set('number')
|
|
|
- .set('houseAddress')
|
|
|
- .set('houseArea')
|
|
|
- .set('recordTime')
|
|
|
- .set('houseMoney')
|
|
|
- .set('realEstateNo')
|
|
|
- .set('recordNo')
|
|
|
- .set('isEnjoyOther')
|
|
|
- .set('bank')
|
|
|
- .set('bankNetwork')
|
|
|
- .set('bankAccount')
|
|
|
- .set('bankNumber')
|
|
|
- .set('spouseIsLibrary');
|
|
|
- if($("#provinceCode").val()!=null && $("#provinceCode").val()!=''){
|
|
|
+ .set('id')
|
|
|
+ .set('talentId')
|
|
|
+ .set('type')
|
|
|
+ .set('declareType')
|
|
|
+ .set('declareObject')
|
|
|
+ .set('year')
|
|
|
+ .set('name')
|
|
|
+ .set('cardType')
|
|
|
+ .set('idCard')
|
|
|
+ .set('provinceCode')
|
|
|
+ .set('cityCode')
|
|
|
+ .set('countyCode')
|
|
|
+ .set('street')
|
|
|
+ .set('talentType')
|
|
|
+ .set('talentArrange')
|
|
|
+ .set('certificateStartTime')
|
|
|
+ .set('certificateEndTime')
|
|
|
+ .set('identifyCondition')
|
|
|
+ .set('idenfityConditionName')
|
|
|
+ .set('identifyGetTime')
|
|
|
+ .set('phone')
|
|
|
+ .set('marryStatus')
|
|
|
+ .set('spouseName')
|
|
|
+ .set('spouseCardType')
|
|
|
+ .set('spouseIdcard')
|
|
|
+ .set('childName')
|
|
|
+ .set('childCardType')
|
|
|
+ .set('childIdCard')
|
|
|
+ .set('number')
|
|
|
+ .set('houseAddress')
|
|
|
+ .set('houseArea')
|
|
|
+ .set('recordTime')
|
|
|
+ .set('houseMoney')
|
|
|
+ .set('realEstateNo')
|
|
|
+ .set('recordNo')
|
|
|
+ .set('isEnjoyOther')
|
|
|
+ .set('bank')
|
|
|
+ .set('bankNetwork')
|
|
|
+ .set('bankAccount')
|
|
|
+ .set('bankNumber')
|
|
|
+ .set('spouseIsLibrary');
|
|
|
+ if ($("#provinceCode").val() != null && $("#provinceCode").val() != '') {
|
|
|
this.housepurchaseInfoData["provinceName"] = $("#provinceCode").find("option:selected").text();
|
|
|
}
|
|
|
- if($("#cityCode").val()!=null && $("#cityCode").val()!=''){
|
|
|
+ if ($("#cityCode").val() != null && $("#cityCode").val() != '') {
|
|
|
this.housepurchaseInfoData["cityName"] = $("#cityCode").find("option:selected").text();
|
|
|
}
|
|
|
- if($("#countyCode").val()!=null && $("#countyCode").val()!=''){
|
|
|
+ if ($("#countyCode").val() != null && $("#countyCode").val() != '') {
|
|
|
this.housepurchaseInfoData["countyName"] = $("#countyCode").find("option:selected").text();
|
|
|
}
|
|
|
}
|
|
@@ -185,21 +185,23 @@ HousepurchaseInfoDlg.validate = function () {
|
|
|
return $("#houseInfoForm").data('bootstrapValidator').isValid();
|
|
|
}
|
|
|
|
|
|
-HousepurchaseInfoDlg.nameChange = function(){
|
|
|
- var talentId = $("#talentId").val();
|
|
|
+HousepurchaseInfoDlg.nameChange = function () {
|
|
|
+ var talentId = $("#name").val();
|
|
|
var declareType = $("#declareType").val();
|
|
|
- if(Feng.isEmptyStr(declareType)){
|
|
|
+ if (Feng.isEmptyStr(declareType)) {
|
|
|
Feng.info("请先选择申报类型");
|
|
|
- $("#talentId").val("").trigger('chosen:updated');;
|
|
|
+ $("#name").val("").trigger('chosen:updated');
|
|
|
+ ;
|
|
|
return;
|
|
|
}
|
|
|
- if(Feng.isNotEmptyStr(talentId)){
|
|
|
- var ajax = new $ax(Feng.ctxPath + "/api/housepurchase/init/"+talentId, function(data){
|
|
|
- if(data.code == 200){
|
|
|
+ if (Feng.isNotEmptyStr(talentId)) {
|
|
|
+ var ajax = new $ax(Feng.ctxPath + "/enterprise/house/getTalentInfo/id/" + talentId, function (data) {
|
|
|
+ if (data.code == 200) {
|
|
|
var talentInfo = data.obj.talentInfo;
|
|
|
var houseInfo = data.obj.houseInfo;
|
|
|
- if(houseInfo.count>=5){
|
|
|
- Feng.info("当前申报人所关联房产已享受5次补贴,无法再次申报");return;
|
|
|
+ if (houseInfo.count >= 5) {
|
|
|
+ Feng.info("当前申报人所关联房产已享受5次补贴,无法再次申报");
|
|
|
+ return;
|
|
|
}
|
|
|
$("#name").val(talentInfo.name);
|
|
|
$("#cardType").val(talentInfo.cardType);
|
|
@@ -219,14 +221,14 @@ HousepurchaseInfoDlg.nameChange = function(){
|
|
|
$("#identifyCondition").val(talentInfo.identifyCondition);
|
|
|
$("#idenfityConditionName").val(talentInfo.identifyConditionName);
|
|
|
$("#identifyGetTime").val(talentInfo.identifyGetTime);
|
|
|
- if(Feng.isNotEmptyStr(houseInfo)){
|
|
|
- $("#realEstateNo").val(houseInfo.realEstateNo).attr("style","pointer-events: none;background-color: #eee;");
|
|
|
- $("#recordNo").val(houseInfo.recordNo).attr("style","pointer-events: none;background-color: #eee;");
|
|
|
- $("#houseAddress").val(houseInfo.houseAddress).attr("style","pointer-events: none;background-color: #eee;");
|
|
|
- $("#houseArea").val(houseInfo.houseArea).attr("style","pointer-events: none;background-color: #eee;");
|
|
|
- $("#recordTime").val(houseInfo.recordTime).attr("style","pointer-events: none;background-color: #eee;");
|
|
|
- $("#houseMoney").val(houseInfo.houseMoney).attr("style","pointer-events: none;background-color: #eee;");
|
|
|
- }else{
|
|
|
+ if (Feng.isNotEmptyStr(houseInfo)) {
|
|
|
+ $("#realEstateNo").val(houseInfo.realEstateNo).attr("style", "pointer-events: none;background-color: #eee;");
|
|
|
+ $("#recordNo").val(houseInfo.recordNo).attr("style", "pointer-events: none;background-color: #eee;");
|
|
|
+ $("#houseAddress").val(houseInfo.houseAddress).attr("style", "pointer-events: none;background-color: #eee;");
|
|
|
+ $("#houseArea").val(houseInfo.houseArea).attr("style", "pointer-events: none;background-color: #eee;");
|
|
|
+ $("#recordTime").val(houseInfo.recordTime).attr("style", "pointer-events: none;background-color: #eee;");
|
|
|
+ $("#houseMoney").val(houseInfo.houseMoney).attr("style", "pointer-events: none;background-color: #eee;");
|
|
|
+ } else {
|
|
|
$("#realEstateNo").val("").removeAttr("style");
|
|
|
$("#recordNo").val("").attr("style");
|
|
|
$("#houseAddress").val("").attr("style");
|
|
@@ -234,15 +236,15 @@ HousepurchaseInfoDlg.nameChange = function(){
|
|
|
$("#recordTime").val("").attr("style");
|
|
|
$("#houseMoney").val("").attr("style");
|
|
|
}
|
|
|
- }else{
|
|
|
+ } else {
|
|
|
$("#talentId,#cardType,#idCard,#provinceCode,#cityCode,#countyCode,#street,#phone,#bank,#bankNumber,#bankNetwork,#bankAccount,#talentArrange,#identifyCondition,#identifyConditionName,#identifyGetTime").val("");
|
|
|
Feng.info(data.msg);
|
|
|
}
|
|
|
- },function(data){
|
|
|
+ }, function (data) {
|
|
|
Feng.error("查询失败!" + data.responseJSON.message + "!");
|
|
|
});
|
|
|
- ajax.set("year",$("#year").val())
|
|
|
- ajax.set("declareType",declareType)
|
|
|
+ ajax.set("year", $("#year").val())
|
|
|
+ ajax.set("declareType", declareType)
|
|
|
ajax.start();
|
|
|
}
|
|
|
}
|
|
@@ -250,49 +252,50 @@ HousepurchaseInfoDlg.nameChange = function(){
|
|
|
/**
|
|
|
* 添加未成年子女
|
|
|
*/
|
|
|
-HousepurchaseInfoDlg.addChild = function(){
|
|
|
+HousepurchaseInfoDlg.addChild = function () {
|
|
|
var options = $("#cardType").html();
|
|
|
$("#childData").append(
|
|
|
- '<div class="col-sm-12">\n' +
|
|
|
+ '<div class="col-sm-12">\n' +
|
|
|
'<input type="hidden" name="id"/>\n' +
|
|
|
- '<input type="hidden" name="pId"/>'+
|
|
|
+ '<input type="hidden" name="pId"/>' +
|
|
|
'<div class="rowGroup col-sm-3">\n' +
|
|
|
- '<input type="text" class="form-control" name="childName" placeholder="未成年子女姓名"/>\n' +
|
|
|
+ '<input type="text" class="form-control" name="childName" placeholder="未成年子女姓名"/>\n' +
|
|
|
'</div>\n' +
|
|
|
'<div class="rowGroup col-sm-3">\n' +
|
|
|
- '<select class="form-control" name="childCardType" placeholder="未成年子女证件类型">\n' +
|
|
|
- options+
|
|
|
- '</select>\n' +
|
|
|
+ '<select class="form-control" name="childCardType" placeholder="未成年子女证件类型">\n' +
|
|
|
+ options +
|
|
|
+ '</select>\n' +
|
|
|
'</div>\n' +
|
|
|
'<div class="rowGroup col-sm-3">\n' +
|
|
|
- '<input type="text" class="form-control" name="childIdCard" placeholder="未成年子女证件号码"/>\n' +
|
|
|
+ '<input type="text" class="form-control" name="childIdCard" placeholder="未成年子女证件号码"/>\n' +
|
|
|
'</div>\n' +
|
|
|
'<div class="add-btn" onclick="HousepurchaseInfoDlg.addChild()"></div>\n' +
|
|
|
- '<div class="reduce" onclick="HousepurchaseInfoDlg.reduceChild(this)"></div>'+
|
|
|
- '</div>');
|
|
|
+ '<div class="reduce" onclick="HousepurchaseInfoDlg.reduceChild(this)"></div>' +
|
|
|
+ '</div>');
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 删除子女信息
|
|
|
*/
|
|
|
-HousepurchaseInfoDlg.reduceChild = function(context){
|
|
|
+HousepurchaseInfoDlg.reduceChild = function (context) {
|
|
|
var id = $(context).parent().find("input[name='id']").val();
|
|
|
- if(Feng.isEmptyStr(id)){
|
|
|
+ if (Feng.isEmptyStr(id)) {
|
|
|
$(context).parent().remove();
|
|
|
- }else{
|
|
|
- if(!validateIsEdit())return;
|
|
|
+ } else {
|
|
|
+ if (!validateIsEdit())
|
|
|
+ return;
|
|
|
var operation = function () {
|
|
|
- var ajax = new $ax(Feng.ctxPath + "/api/housepurchase/deleteChildren", function(data){
|
|
|
- if(data.code == 200){
|
|
|
+ var ajax = new $ax(Feng.ctxPath + "/api/housepurchase/deleteChildren", function (data) {
|
|
|
+ if (data.code == 200) {
|
|
|
$(context).parent().remove();
|
|
|
Feng.success(data.msg);
|
|
|
- }else{
|
|
|
+ } else {
|
|
|
Feng.info(data.msg);
|
|
|
}
|
|
|
- },function(data){
|
|
|
+ }, function (data) {
|
|
|
Feng.error("删除失败!" + data.responseJSON.message + "!");
|
|
|
});
|
|
|
- ajax.set("id",id);
|
|
|
+ ajax.set("id", id);
|
|
|
ajax.start();
|
|
|
}
|
|
|
Feng.confirm("删除后无法恢复,确认删除吗?", operation);
|
|
@@ -302,54 +305,54 @@ HousepurchaseInfoDlg.reduceChild = function(context){
|
|
|
/**
|
|
|
* 提交添加
|
|
|
*/
|
|
|
-HousepurchaseInfoDlg.addSubmit = function() {
|
|
|
+HousepurchaseInfoDlg.addSubmit = function () {
|
|
|
var id = $("#id").val();
|
|
|
- if(Feng.isNotEmptyStr(id)){
|
|
|
+ if (Feng.isNotEmptyStr(id)) {
|
|
|
HousepurchaseInfoDlg.editSubmit(1);
|
|
|
return;
|
|
|
}
|
|
|
this.clearData();
|
|
|
this.collectData();
|
|
|
- if(!HousepurchaseInfoDlg.validate()){
|
|
|
- return ;
|
|
|
+ if (!HousepurchaseInfoDlg.validate()) {
|
|
|
+ return;
|
|
|
}
|
|
|
- if(Feng.isNotEmptyStr(this.housepurchaseInfoData.houseMoney) && !/^([1-9][0-9]*)+(\.[0-9]{0,10})?$/.test(this.housepurchaseInfoData.houseMoney)){
|
|
|
+ if (Feng.isNotEmptyStr(this.housepurchaseInfoData.houseMoney) && !/^([1-9][0-9]*)+(\.[0-9]{0,10})?$/.test(this.housepurchaseInfoData.houseMoney)) {
|
|
|
Feng.info("房屋成交金额格式不正确!");
|
|
|
- return ;
|
|
|
+ return;
|
|
|
}
|
|
|
- if(Feng.isNotEmptyStr(this.housepurchaseInfoData.houseArea) && !/^([1-9][0-9]*)+(\.[0-9]{0,10})?$/.test(this.housepurchaseInfoData.houseArea)){
|
|
|
+ if (Feng.isNotEmptyStr(this.housepurchaseInfoData.houseArea) && !/^([1-9][0-9]*)+(\.[0-9]{0,10})?$/.test(this.housepurchaseInfoData.houseArea)) {
|
|
|
Feng.info("房屋建筑面积格式不正确!");
|
|
|
- return ;
|
|
|
+ return;
|
|
|
}
|
|
|
- if(this.housepurchaseInfoData.declareObject == 2 || this.housepurchaseInfoData.declareObject == 3){
|
|
|
+ if (this.housepurchaseInfoData.declareObject == 2 || this.housepurchaseInfoData.declareObject == 3) {
|
|
|
Feng.info("此种申报对象请通过线下申报,系统不支持旧政策申报流程!");
|
|
|
- return ;
|
|
|
+ return;
|
|
|
}
|
|
|
//提交信息
|
|
|
var child = new Array();
|
|
|
var error = "";
|
|
|
$("#childData .col-sm-12").each(function (index) {
|
|
|
- var id = $(this).find("input[name='id']").val();
|
|
|
+ var id = $(this).find("input[name='id']").val();
|
|
|
var pId = $(this).find("input[name='pId']").val();
|
|
|
var childName = $(this).find("input[name='childName']").val();
|
|
|
var childCardType = $(this).find("select[name='childCardType']").val();
|
|
|
var childIdCard = $(this).find("input[name='childIdCard']").val();
|
|
|
- if (Feng.isNotEmptyStr(id) || Feng.isNotEmptyStr(pId) || Feng.isNotEmptyStr(childName) || Feng.isNotEmptyStr(childCardType) || Feng.isNotEmptyStr(childIdCard)){
|
|
|
- if(Feng.isEmptyStr(childName)){
|
|
|
- error = error + "第"+ (index + 1) + "行未成年子女姓名为空;\n";
|
|
|
+ if (Feng.isNotEmptyStr(id) || Feng.isNotEmptyStr(pId) || Feng.isNotEmptyStr(childName) || Feng.isNotEmptyStr(childCardType) || Feng.isNotEmptyStr(childIdCard)) {
|
|
|
+ if (Feng.isEmptyStr(childName)) {
|
|
|
+ error = error + "第" + (index + 1) + "行未成年子女姓名为空;\n";
|
|
|
}
|
|
|
- if(Feng.isEmptyStr(childCardType)){
|
|
|
- error = error + "第"+ (index + 1) + "行未成年子女证件类型为空;\n";
|
|
|
+ if (Feng.isEmptyStr(childCardType)) {
|
|
|
+ error = error + "第" + (index + 1) + "行未成年子女证件类型为空;\n";
|
|
|
}
|
|
|
- if(Feng.isEmptyStr(childIdCard)){
|
|
|
- error = error + "第"+ (index + 1) + "行未成年子女证件号码为空;\n";
|
|
|
+ if (Feng.isEmptyStr(childIdCard)) {
|
|
|
+ error = error + "第" + (index + 1) + "行未成年子女证件号码为空;\n";
|
|
|
}
|
|
|
- child.push({"id":id,"pId":pId,"name":childName,"cardType":childCardType,"idCard":childIdCard});
|
|
|
+ child.push({"id": id, "pId": pId, "name": childName, "cardType": childCardType, "idCard": childIdCard});
|
|
|
}
|
|
|
});
|
|
|
this.housepurchaseInfoData['childList'] = child;
|
|
|
- var ajax = new $ax(Feng.ctxPath + "/api/housepurchase/add", function(data){
|
|
|
- if(data.code == 200){
|
|
|
+ var ajax = new $ax(Feng.ctxPath + "/api/housepurchase/add", function (data) {
|
|
|
+ if (data.code == 200) {
|
|
|
var obj = data.obj;
|
|
|
var childList = obj.childList;
|
|
|
Feng.success(data.msg);
|
|
@@ -357,12 +360,12 @@ HousepurchaseInfoDlg.addSubmit = function() {
|
|
|
$("#type").val(obj.type);
|
|
|
$("#fileLi").removeAttr("style");
|
|
|
$("#checkState").val(obj.checkState);
|
|
|
- $("#talentId").prop("disabled",true).trigger("chosen:updated");
|
|
|
+ $("#talentId").prop("disabled", true).trigger("chosen:updated");
|
|
|
HousepurchaseInfoDlg.initChildData(childList);
|
|
|
- }else{
|
|
|
+ } else {
|
|
|
Feng.info(data.msg);
|
|
|
}
|
|
|
- },function(data){
|
|
|
+ }, function (data) {
|
|
|
Feng.error("添加失败!" + data.responseJSON.message + "!");
|
|
|
});
|
|
|
ajax.setcontentType("application/json;charset=utf-8");
|
|
@@ -373,54 +376,55 @@ HousepurchaseInfoDlg.addSubmit = function() {
|
|
|
/**
|
|
|
* 提交修改
|
|
|
*/
|
|
|
-HousepurchaseInfoDlg.editSubmit = function(type) {
|
|
|
+HousepurchaseInfoDlg.editSubmit = function (type) {
|
|
|
this.clearData();
|
|
|
this.collectData();
|
|
|
- if(!validateIsEdit())return;
|
|
|
- if(!HousepurchaseInfoDlg.validate()){ //校验
|
|
|
- return ;
|
|
|
+ if (!validateIsEdit())
|
|
|
+ return;
|
|
|
+ if (!HousepurchaseInfoDlg.validate()) { //校验
|
|
|
+ return;
|
|
|
}
|
|
|
- if(this.housepurchaseInfoData.declareObject == 2 || this.housepurchaseInfoData.declareObject == 3){
|
|
|
+ if (this.housepurchaseInfoData.declareObject == 2 || this.housepurchaseInfoData.declareObject == 3) {
|
|
|
Feng.info("此种申报对象请通过线下申报,系统不支持旧政策申报流程!");
|
|
|
- return ;
|
|
|
+ return;
|
|
|
}
|
|
|
//提交信息
|
|
|
var child = new Array();
|
|
|
var error = "";
|
|
|
$("#childData .col-sm-12").each(function (index) {
|
|
|
- var id = $(this).find("input[name='id']").val();
|
|
|
+ var id = $(this).find("input[name='id']").val();
|
|
|
var pId = $(this).find("input[name='pId']").val();
|
|
|
var childName = $(this).find("input[name='childName']").val();
|
|
|
var childCardType = $(this).find("select[name='childCardType']").val();
|
|
|
var childIdCard = $(this).find("input[name='childIdCard']").val();
|
|
|
- if (Feng.isNotEmptyStr(id) || Feng.isNotEmptyStr(pId) || Feng.isNotEmptyStr(childName) || Feng.isNotEmptyStr(childCardType) || Feng.isNotEmptyStr(childIdCard)){
|
|
|
- if(Feng.isEmptyStr(childName)){
|
|
|
- error = error + "第"+ (index + 1) + "行未成年子女姓名为空;\n";
|
|
|
+ if (Feng.isNotEmptyStr(id) || Feng.isNotEmptyStr(pId) || Feng.isNotEmptyStr(childName) || Feng.isNotEmptyStr(childCardType) || Feng.isNotEmptyStr(childIdCard)) {
|
|
|
+ if (Feng.isEmptyStr(childName)) {
|
|
|
+ error = error + "第" + (index + 1) + "行未成年子女姓名为空;\n";
|
|
|
}
|
|
|
- if(Feng.isEmptyStr(childCardType)){
|
|
|
- error = error + "第"+ (index + 1) + "行未成年子女证件类型为空;\n";
|
|
|
+ if (Feng.isEmptyStr(childCardType)) {
|
|
|
+ error = error + "第" + (index + 1) + "行未成年子女证件类型为空;\n";
|
|
|
}
|
|
|
- if(Feng.isEmptyStr(childIdCard)){
|
|
|
- error = error + "第"+ (index + 1) + "行未成年子女证件号码为空;\n";
|
|
|
+ if (Feng.isEmptyStr(childIdCard)) {
|
|
|
+ error = error + "第" + (index + 1) + "行未成年子女证件号码为空;\n";
|
|
|
}
|
|
|
- child.push({"id":id,"pId":pId,"name":childName,"cardType":childCardType,"idCard":childIdCard});
|
|
|
+ child.push({"id": id, "pId": pId, "name": childName, "cardType": childCardType, "idCard": childIdCard});
|
|
|
}
|
|
|
});
|
|
|
this.housepurchaseInfoData['childList'] = child;
|
|
|
//提交信息
|
|
|
- var ajax = new $ax(Feng.ctxPath + "/api/housepurchase/update", function(data){
|
|
|
- if(data.code == 200){
|
|
|
- if(type == 1){
|
|
|
+ var ajax = new $ax(Feng.ctxPath + "/api/housepurchase/update", function (data) {
|
|
|
+ if (data.code == 200) {
|
|
|
+ if (type == 1) {
|
|
|
var childList = data.obj.childList;
|
|
|
Feng.success(data.msg);
|
|
|
HousepurchaseInfoDlg.initChildData(childList);
|
|
|
- }else{
|
|
|
+ } else {
|
|
|
HousepurchaseInfoDlg.submitToCheck();
|
|
|
}
|
|
|
- }else{
|
|
|
+ } else {
|
|
|
Feng.info(data.msg);
|
|
|
}
|
|
|
- },function(data){
|
|
|
+ }, function (data) {
|
|
|
Feng.error("修改失败!" + data.responseJSON.message + "!");
|
|
|
});
|
|
|
ajax.setcontentType("application/json;charset=utf-8");
|
|
@@ -432,53 +436,53 @@ HousepurchaseInfoDlg.editSubmit = function(type) {
|
|
|
* 初始化子女信息
|
|
|
* @param list
|
|
|
*/
|
|
|
-HousepurchaseInfoDlg.initChildData = function(list){
|
|
|
+HousepurchaseInfoDlg.initChildData = function (list) {
|
|
|
var options = $("#cardType").html();
|
|
|
var html = "";
|
|
|
- for(var key in list) {
|
|
|
+ for (var key in list) {
|
|
|
html = html +
|
|
|
- '<div class="col-sm-12">\n' +
|
|
|
- '<input type="hidden" name="id" value="'+list[key].id+'"/>\n' +
|
|
|
- '<input type="hidden" name="pId" value="'+list[key].pId+'"/>' +
|
|
|
- '<div class="rowGroup col-sm-3">\n' +
|
|
|
- '<input type="text" class="form-control" name="childName" value="'+list[key].name+'" placeholder="未成年子女姓名"/>\n' +
|
|
|
- '</div>\n' +
|
|
|
- '<div class="rowGroup col-sm-3">\n' +
|
|
|
- '<select class="form-control" name="childCardType" value="'+list[key].cardType+'" placeholder="未成年子女证件类型">\n' +
|
|
|
- options +
|
|
|
- '</select>\n' +
|
|
|
- '</div>\n' +
|
|
|
- '<div class="rowGroup col-sm-3">\n' +
|
|
|
- '<input type="text" class="form-control" name="childIdCard" value="'+list[key].idCard+'" placeholder="未成年子女证件号码"/>\n' +
|
|
|
- '</div>\n' +
|
|
|
- '<div class="add-btn" onclick="HousepurchaseInfoDlg.addChild()"></div>\n' +
|
|
|
- '<div class="reduce" onclick="HousepurchaseInfoDlg.reduceChild(this)"></div>'+
|
|
|
- '</div>';
|
|
|
+ '<div class="col-sm-12">\n' +
|
|
|
+ '<input type="hidden" name="id" value="' + list[key].id + '"/>\n' +
|
|
|
+ '<input type="hidden" name="pId" value="' + list[key].pId + '"/>' +
|
|
|
+ '<div class="rowGroup col-sm-3">\n' +
|
|
|
+ '<input type="text" class="form-control" name="childName" value="' + list[key].name + '" placeholder="未成年子女姓名"/>\n' +
|
|
|
+ '</div>\n' +
|
|
|
+ '<div class="rowGroup col-sm-3">\n' +
|
|
|
+ '<select class="form-control" name="childCardType" value="' + list[key].cardType + '" placeholder="未成年子女证件类型">\n' +
|
|
|
+ options +
|
|
|
+ '</select>\n' +
|
|
|
+ '</div>\n' +
|
|
|
+ '<div class="rowGroup col-sm-3">\n' +
|
|
|
+ '<input type="text" class="form-control" name="childIdCard" value="' + list[key].idCard + '" placeholder="未成年子女证件号码"/>\n' +
|
|
|
+ '</div>\n' +
|
|
|
+ '<div class="add-btn" onclick="HousepurchaseInfoDlg.addChild()"></div>\n' +
|
|
|
+ '<div class="reduce" onclick="HousepurchaseInfoDlg.reduceChild(this)"></div>' +
|
|
|
+ '</div>';
|
|
|
}
|
|
|
- if(Feng.isEmptyStr(html)){
|
|
|
+ if (Feng.isEmptyStr(html)) {
|
|
|
html = html +
|
|
|
- '<div class="col-sm-12">\n' +
|
|
|
- '<input type="hidden" name="id" />\n' +
|
|
|
- '<input type="hidden" name="pId" />' +
|
|
|
- '<div class="rowGroup col-sm-3">\n' +
|
|
|
- '<input type="text" class="form-control" name="childName" placeholder="未成年子女姓名"/>\n' +
|
|
|
- '</div>\n' +
|
|
|
- '<div class="rowGroup col-sm-3">\n' +
|
|
|
- '<select class="form-control" name="childCardType" placeholder="未成年子女证件类型">\n' +
|
|
|
- options +
|
|
|
- '</select>\n' +
|
|
|
- '</div>\n' +
|
|
|
- '<div class="rowGroup col-sm-3">\n' +
|
|
|
- '<input type="text" class="form-control" name="childIdCard" placeholder="未成年子女证件号码"/>\n' +
|
|
|
- '</div>\n' +
|
|
|
- '<div class="add-btn" onclick="HouseRentingInfoDlg.addChild()"></div>\n' +
|
|
|
- '</div>';
|
|
|
+ '<div class="col-sm-12">\n' +
|
|
|
+ '<input type="hidden" name="id" />\n' +
|
|
|
+ '<input type="hidden" name="pId" />' +
|
|
|
+ '<div class="rowGroup col-sm-3">\n' +
|
|
|
+ '<input type="text" class="form-control" name="childName" placeholder="未成年子女姓名"/>\n' +
|
|
|
+ '</div>\n' +
|
|
|
+ '<div class="rowGroup col-sm-3">\n' +
|
|
|
+ '<select class="form-control" name="childCardType" placeholder="未成年子女证件类型">\n' +
|
|
|
+ options +
|
|
|
+ '</select>\n' +
|
|
|
+ '</div>\n' +
|
|
|
+ '<div class="rowGroup col-sm-3">\n' +
|
|
|
+ '<input type="text" class="form-control" name="childIdCard" placeholder="未成年子女证件号码"/>\n' +
|
|
|
+ '</div>\n' +
|
|
|
+ '<div class="add-btn" onclick="HouseRentingInfoDlg.addChild()"></div>\n' +
|
|
|
+ '</div>';
|
|
|
}
|
|
|
$("#childData").empty().append(html);
|
|
|
$("#childData select").each(function () {
|
|
|
$(this).val($(this).attr("value"))
|
|
|
})
|
|
|
- if(list == null){
|
|
|
+ if (list == null) {
|
|
|
HousepurchaseInfoDlg.addChild();
|
|
|
}
|
|
|
}
|
|
@@ -487,17 +491,18 @@ HousepurchaseInfoDlg.initChildData = function(list){
|
|
|
/**
|
|
|
* 提交审核
|
|
|
*/
|
|
|
-HousepurchaseInfoDlg.submitToCheck = function(){
|
|
|
- if(!validateIsEdit())return;
|
|
|
+HousepurchaseInfoDlg.submitToCheck = function () {
|
|
|
+ if (!validateIsEdit())
|
|
|
+ return;
|
|
|
var ajax = new $ax(Feng.ctxPath + "/api/housepurchase/valiateIsSubmit", function (data) {
|
|
|
- if(data.code == 200){
|
|
|
- var operation = function() {
|
|
|
+ if (data.code == 200) {
|
|
|
+ var operation = function () {
|
|
|
var ajax = new $ax(Feng.ctxPath + "/api/housepurchase/submitToCheck", function (data) {
|
|
|
- if(data.code==200){
|
|
|
+ if (data.code == 200) {
|
|
|
Feng.success(data.msg);
|
|
|
window.parent.Housepurchase.table.refresh();
|
|
|
HousepurchaseInfoDlg.close();
|
|
|
- }else{
|
|
|
+ } else {
|
|
|
Feng.error(data.msg);
|
|
|
}
|
|
|
}, function (data) {
|
|
@@ -507,14 +512,14 @@ HousepurchaseInfoDlg.submitToCheck = function(){
|
|
|
ajax.start();
|
|
|
}
|
|
|
Feng.confirm("请确认基础信息已核对无误,相应附件已上传,一旦提交,无法修改", operation);
|
|
|
- }else{
|
|
|
+ } else {
|
|
|
Feng.error(data.msg);
|
|
|
}
|
|
|
}, function (data) {
|
|
|
Feng.error("查询失败!" + data.responseJSON.message + "!");
|
|
|
});
|
|
|
- ajax.set("type",CONFIG.project_house);
|
|
|
- ajax.set("id",$("#id").val())
|
|
|
+ ajax.set("type", CONFIG.project_house);
|
|
|
+ ajax.set("id", $("#id").val())
|
|
|
ajax.start();
|
|
|
}
|
|
|
|
|
@@ -524,7 +529,7 @@ HousepurchaseInfoDlg.submitToCheck = function(){
|
|
|
/**
|
|
|
* 申报对象级联
|
|
|
*/
|
|
|
-HousepurchaseInfoDlg.declareObjChange = function(){
|
|
|
+HousepurchaseInfoDlg.declareObjChange = function () {
|
|
|
var declareObj = $("#declareObject").val();
|
|
|
switch (declareObj) {
|
|
|
case "":
|
|
@@ -543,25 +548,25 @@ HousepurchaseInfoDlg.declareObjChange = function(){
|
|
|
/**
|
|
|
* 根据申报类型
|
|
|
*/
|
|
|
-HousepurchaseInfoDlg.typeChange = function(){
|
|
|
+HousepurchaseInfoDlg.typeChange = function () {
|
|
|
var type = $("#declareType").val();
|
|
|
- if(type == null){
|
|
|
- $("#realEstateNo,#recordNo,#houseAddress,#houseArea,#recordTime,#houseMoney,#number,#isEnjoyOther").val("").parent().css("display","none");
|
|
|
+ if (type == null) {
|
|
|
+ $("#realEstateNo,#recordNo,#houseAddress,#houseArea,#recordTime,#houseMoney,#number,#isEnjoyOther").val("").parent().css("display", "none");
|
|
|
}
|
|
|
- if(type == 1){
|
|
|
- $("#realEstateNo,#recordNo,#houseAddress,#houseArea,#recordTime,#houseMoney,#number,#isEnjoyOther").parent().css("display","block");
|
|
|
+ if (type == 1) {
|
|
|
+ $("#realEstateNo,#recordNo,#houseAddress,#houseArea,#recordTime,#houseMoney,#number,#isEnjoyOther").parent().css("display", "block");
|
|
|
}
|
|
|
- if(type == 2){
|
|
|
- $("#realEstateNo,#recordNo,#houseAddress,#houseArea,#recordTime,#houseMoney,#number,#isEnjoyOther").val("").parent().css("display","none");
|
|
|
+ if (type == 2) {
|
|
|
+ $("#realEstateNo,#recordNo,#houseAddress,#houseArea,#recordTime,#houseMoney,#number,#isEnjoyOther").val("").parent().css("display", "none");
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 获取认定条件
|
|
|
*/
|
|
|
-HousepurchaseInfoDlg.getIdentifyCondition = function(){
|
|
|
+HousepurchaseInfoDlg.getIdentifyCondition = function () {
|
|
|
var level = $("#talentArrange").val();
|
|
|
- if(level==null||level==''){
|
|
|
+ if (level == null || level == '') {
|
|
|
$("#identifyCondition").empty();
|
|
|
return;
|
|
|
}
|
|
@@ -570,7 +575,7 @@ HousepurchaseInfoDlg.getIdentifyCondition = function(){
|
|
|
"displayCode": "id",
|
|
|
"displayName": "name",
|
|
|
"type": "GET",
|
|
|
- "url": Feng.ctxPath + "/api/common/findIdentifyConditionByLevel?talentLevel="+level
|
|
|
+ "url": Feng.ctxPath + "/api/common/findIdentifyConditionByLevel?talentLevel=" + level
|
|
|
});
|
|
|
}
|
|
|
|
|
@@ -581,41 +586,41 @@ HousepurchaseInfoDlg.getIdentifyCondition = function(){
|
|
|
* @param row
|
|
|
* @returns {string}
|
|
|
*/
|
|
|
-function validUploadButton(type,row,fileId){
|
|
|
+function validUploadButton(type, row, fileId) {
|
|
|
var files = $("#files").val();
|
|
|
var checkState = $("#checkState").val();
|
|
|
- if(Feng.isEmptyStr(checkState)||checkState==1 || (checkState == 10 && files.indexOf(row.id)!=-1)){
|
|
|
- return type == 1?
|
|
|
- "<button type='button' onclick=\"checkFile(this,'"+row.id+"','"+null+"')\" style='margin-right: 10px' class=\"btn btn-xs btn-info\">" +
|
|
|
- "<i class=\"fa fa-upload\"></i>上传" +
|
|
|
- "</button>"
|
|
|
- :
|
|
|
- "<button type=\'button\' onclick=\"checkFile(this,'"+row.id+"','"+fileId+"')\" style=\'margin-right: 10px\' class=\"btn btn-xs btn-info\">" +
|
|
|
- "<i class=\"fa fa-paste\"></i>修改" +
|
|
|
- "</button>" +
|
|
|
- "<button type='button' onclick=\"deleteFile('"+fileId+"','"+CONFIG.project_house+"')\" class=\"btn btn-xs btn-danger\">" +
|
|
|
- "<i class=\"fa fa-times\"></i>删除" +
|
|
|
- "</button>";
|
|
|
- }else{
|
|
|
- return type == 1?"":"" ;
|
|
|
+ if (Feng.isEmptyStr(checkState) || checkState == 1 || (checkState == 10 && files.indexOf(row.id) != -1)) {
|
|
|
+ return type == 1 ?
|
|
|
+ "<button type='button' onclick=\"checkFile(this,'" + row.id + "','" + null + "')\" style='margin-right: 10px' class=\"btn btn-xs btn-info\">" +
|
|
|
+ "<i class=\"fa fa-upload\"></i>上传" +
|
|
|
+ "</button>"
|
|
|
+ :
|
|
|
+ "<button type=\'button\' onclick=\"checkFile(this,'" + row.id + "','" + fileId + "')\" style=\'margin-right: 10px\' class=\"btn btn-xs btn-info\">" +
|
|
|
+ "<i class=\"fa fa-paste\"></i>修改" +
|
|
|
+ "</button>" +
|
|
|
+ "<button type='button' onclick=\"deleteFile('" + fileId + "','" + CONFIG.project_house + "')\" class=\"btn btn-xs btn-danger\">" +
|
|
|
+ "<i class=\"fa fa-times\"></i>删除" +
|
|
|
+ "</button>";
|
|
|
+ } else {
|
|
|
+ return type == 1 ? "" : "";
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-function validateIsEdit(){
|
|
|
+function validateIsEdit() {
|
|
|
var id = $("#id").val();
|
|
|
var checkState = $("#checkState").val();
|
|
|
- if(Feng.isEmptyStr(id)){
|
|
|
+ if (Feng.isEmptyStr(id)) {
|
|
|
Feng.info("请先填写基础信息并上传附件");
|
|
|
return false;
|
|
|
}
|
|
|
- if(checkState != 1 && checkState != 10){
|
|
|
- if(checkState==-1){
|
|
|
+ if (checkState != 1 && checkState != 10) {
|
|
|
+ if (checkState == -1) {
|
|
|
Feng.error("您的申报审核不通过,无法修改");
|
|
|
return false;
|
|
|
- }else if(checkState>=40){
|
|
|
+ } else if (checkState >= 40) {
|
|
|
Feng.error("您的申报已审核通过,无法修改");
|
|
|
return false;
|
|
|
- }else{
|
|
|
+ } else {
|
|
|
Feng.error("您的申报正在审核中,请耐心等待");
|
|
|
return false;
|
|
|
}
|
|
@@ -627,20 +632,21 @@ function validateIsEdit(){
|
|
|
HousepurchaseInfoDlg.setNoChangeField = function () {
|
|
|
var checkState = $("#checkState").val();
|
|
|
var fields = $("#fields").val();
|
|
|
- if(checkState==10){
|
|
|
+ if (checkState == 10) {
|
|
|
$("#basicData input,textarea").each(function () {
|
|
|
- $(this).attr("readonly","readonly");
|
|
|
+ $(this).attr("readonly", "readonly");
|
|
|
});
|
|
|
$("#basicData select").each(function () {
|
|
|
- $(this).attr("disabled","disabled");
|
|
|
+ $(this).attr("disabled", "disabled");
|
|
|
});
|
|
|
- if(fields!=null && fields!=''){
|
|
|
+ if (fields != null && fields != '') {
|
|
|
var arr = fields.split(",");
|
|
|
- for(var key in arr){
|
|
|
+ for (var key in arr) {
|
|
|
var name = $("#" + arr[key]).prop("tagName");
|
|
|
- if(name=='select' || name=='SELECT'){
|
|
|
+ if (name == 'select' || name == 'SELECT') {
|
|
|
$("#" + arr[key]).removeAttr("disabled");
|
|
|
- }if(name=="input" || name=='textarea' || name=="INPUT" || name=='TEXTAREA'){
|
|
|
+ }
|
|
|
+ if (name == "input" || name == 'textarea' || name == "INPUT" || name == 'TEXTAREA') {
|
|
|
$("#" + arr[key]).removeAttr("readonly");
|
|
|
}
|
|
|
}
|
|
@@ -651,26 +657,28 @@ HousepurchaseInfoDlg.setNoChangeField = function () {
|
|
|
/**
|
|
|
* 获取房产信息
|
|
|
*/
|
|
|
-HousepurchaseInfoDlg.getHouseInfo = function(){
|
|
|
+HousepurchaseInfoDlg.getHouseInfo = function () {
|
|
|
var idCard = $("#idCard").val();
|
|
|
var spouseIdcard = $("#spouseIdcard").val();
|
|
|
- if(Feng.isEmptyStr(idCard)){
|
|
|
- Feng.info("请选择申报人");return ;
|
|
|
+ if (Feng.isEmptyStr(idCard)) {
|
|
|
+ Feng.info("请选择申报人");
|
|
|
+ return;
|
|
|
}
|
|
|
- var ajax = new $ax(Feng.ctxPath + "/api/housepurchase/getHouseInfo", function(data){
|
|
|
- if(data.code == 200){
|
|
|
+ var ajax = new $ax(Feng.ctxPath + "/api/housepurchase/getHouseInfo", function (data) {
|
|
|
+ if (data.code == 200) {
|
|
|
var houseInfo = data.obj;
|
|
|
- if(houseInfo.count>=5){
|
|
|
- Feng.info("当前申报人(或配偶)所关联房产已享受5次补贴,无法再次申报");return;
|
|
|
+ if (houseInfo.count >= 5) {
|
|
|
+ Feng.info("当前申报人(或配偶)所关联房产已享受5次补贴,无法再次申报");
|
|
|
+ return;
|
|
|
}
|
|
|
- if(Feng.isNotEmptyStr(houseInfo)){
|
|
|
- $("#realEstateNo").val(houseInfo.realEstateNo).attr("style","pointer-events: none;background-color: #eee;");
|
|
|
- $("#recordNo").val(houseInfo.recordNo).attr("style","pointer-events: none;background-color: #eee;");
|
|
|
- $("#houseAddress").val(houseInfo.houseAddress).attr("style","pointer-events: none;background-color: #eee;");
|
|
|
- $("#houseArea").val(houseInfo.houseArea).attr("style","pointer-events: none;background-color: #eee;");
|
|
|
- $("#recordTime").val(houseInfo.recordTime).attr("style","pointer-events: none;background-color: #eee;");
|
|
|
- $("#houseMoney").val(houseInfo.houseMoney).attr("style","pointer-events: none;background-color: #eee;");
|
|
|
- }else{
|
|
|
+ if (Feng.isNotEmptyStr(houseInfo)) {
|
|
|
+ $("#realEstateNo").val(houseInfo.realEstateNo).attr("style", "pointer-events: none;background-color: #eee;");
|
|
|
+ $("#recordNo").val(houseInfo.recordNo).attr("style", "pointer-events: none;background-color: #eee;");
|
|
|
+ $("#houseAddress").val(houseInfo.houseAddress).attr("style", "pointer-events: none;background-color: #eee;");
|
|
|
+ $("#houseArea").val(houseInfo.houseArea).attr("style", "pointer-events: none;background-color: #eee;");
|
|
|
+ $("#recordTime").val(houseInfo.recordTime).attr("style", "pointer-events: none;background-color: #eee;");
|
|
|
+ $("#houseMoney").val(houseInfo.houseMoney).attr("style", "pointer-events: none;background-color: #eee;");
|
|
|
+ } else {
|
|
|
$("#realEstateNo").val("").removeAttr("style");
|
|
|
$("#recordNo").val("").attr("style");
|
|
|
$("#houseAddress").val("").attr("style");
|
|
@@ -678,59 +686,62 @@ HousepurchaseInfoDlg.getHouseInfo = function(){
|
|
|
$("#recordTime").val("").attr("style");
|
|
|
$("#houseMoney").val("").attr("style");
|
|
|
}
|
|
|
- }else{
|
|
|
+ } else {
|
|
|
$("#talentId,#cardType,#idCard,#provinceCode,#cityCode,#countyCode,#street,#phone,#bank,#bankNumber,#bankNetwork,#bankAccount,#talentArrange,#identifyCondition,#identifyConditionName,#identifyGetTime").val("");
|
|
|
Feng.info(data.msg);
|
|
|
}
|
|
|
- },function(data){
|
|
|
+ }, function (data) {
|
|
|
Feng.error("查询失败!" + data.responseJSON.message + "!");
|
|
|
});
|
|
|
- ajax.set("idCard",idCard);
|
|
|
- ajax.set("spouseIdcard",spouseIdcard);
|
|
|
+ ajax.set("idCard", idCard);
|
|
|
+ ajax.set("spouseIdcard", spouseIdcard);
|
|
|
ajax.start();
|
|
|
}
|
|
|
|
|
|
|
|
|
-$(function() {
|
|
|
+$(function () {
|
|
|
Feng.initValidatorTip("houseInfoForm", HousepurchaseInfoDlg.validateFields);
|
|
|
Feng.addAjaxSelect({
|
|
|
- "id": 'talentId',
|
|
|
+ "id": 'name',
|
|
|
"displayCode": "id",
|
|
|
"displayName": "name",
|
|
|
"type": "GET",
|
|
|
- "url": Feng.ctxPath + "/api/talentInfo/findTalentByEnterpriseInLibrary?type=2&year="+$("#year").val()
|
|
|
+ "url": Feng.ctxPath + "/enterprise/talent/findTalentByEnterpriseInLibrary?type=2&year=" + $("#year").val()
|
|
|
});
|
|
|
//批量加载字典表数据
|
|
|
var arr = [
|
|
|
- {"name":"cardType","code":"un_cardType"},
|
|
|
- {"name":"spouseCardType","code":"un_cardType"},
|
|
|
- {"name":"childCardType","code":"un_cardType"},
|
|
|
- {"name":"marryStatus","code":"un_marryStatus"},
|
|
|
- {"name":"talentArrange","code":"un_talentLevel"},
|
|
|
- {"name":"street","code":"un_street"}];
|
|
|
+ {"name": "cardType", "code": "card_type"},
|
|
|
+ {"name": "spouseCardType", "code": "card_type"},
|
|
|
+ {"name": "childCardType", "code": "card_type"},
|
|
|
+ {"name": "marryStatus", "code": "marry_status"},
|
|
|
+ {"name": "talentArrange", "code": "talent_arrange"},
|
|
|
+ {"name": "street", "code": "street"}];
|
|
|
Feng.findChildDictBatch(JSON.stringify(arr));
|
|
|
$("select[name='childCardType']").append($("#cardType").html());
|
|
|
$(".other_talentArrange").empty().append($("#talentArrange").html());
|
|
|
loadProvince();
|
|
|
//加载时间控件
|
|
|
- $(".date").each(function(){laydate.render({
|
|
|
- elem: this,type: 'date',trigger: 'click'
|
|
|
+ $(".date").each(function () {
|
|
|
+ laydate.render({
|
|
|
+ elem: this, type: 'date', trigger: 'click'
|
|
|
});
|
|
|
});
|
|
|
var id = $("#id").val();
|
|
|
- if(Feng.isNotEmptyStr(id)){
|
|
|
- $("select").each(function () {$(this).val($(this).attr("value")).trigger("change");});
|
|
|
+ if (Feng.isNotEmptyStr(id)) {
|
|
|
+ $("select").each(function () {
|
|
|
+ $(this).val($(this).attr("value")).trigger("change");
|
|
|
+ });
|
|
|
$("#fileLi").removeAttr("style");
|
|
|
- Feng.getCheckLog("logTable",{"type":CONFIG.project_house,"mainId":id,"typeFileId":"","active":1})
|
|
|
- }else{
|
|
|
- $("#fileLi").attr("style","pointer-events: none");
|
|
|
- $("#talentId").on('chosen:ready', function(e, params) {
|
|
|
- $(".chosen-container-single .chosen-single").css("padding","4px 0px 0px 4px");
|
|
|
+ Feng.getCheckLog("logTable", {"type": CONFIG.project_house, "mainId": id, "typeFileId": "", "active": 1})
|
|
|
+ } else {
|
|
|
+ $("#fileLi").attr("style", "pointer-events: none");
|
|
|
+ $("#talentId").on('chosen:ready', function (e, params) {
|
|
|
+ $(".chosen-container-single .chosen-single").css("padding", "4px 0px 0px 4px");
|
|
|
});
|
|
|
$("#talentId").chosen({
|
|
|
- search_contains:true, //关键字模糊搜索。设置为true,只要选项包含搜索词就会显示;设置为false,则要求从选项开头开始匹配
|
|
|
+ search_contains: true, //关键字模糊搜索。设置为true,只要选项包含搜索词就会显示;设置为false,则要求从选项开头开始匹配
|
|
|
disable_search: false,
|
|
|
- width:"100%",
|
|
|
+ width: "100%",
|
|
|
enable_split_word_search: true
|
|
|
});
|
|
|
}
|
|
@@ -748,7 +759,7 @@ $(function() {
|
|
|
"hideEasing": "linear",
|
|
|
"showMethod": "fadeIn",
|
|
|
"hideMethod": "fadeOut",
|
|
|
- "tapToDismiss":true
|
|
|
+ "tapToDismiss": true
|
|
|
};
|
|
|
toastr.success("免租入住仅人才标签为在站博士后的人才申报!!!");
|
|
|
});
|