056327d7 by 田浩浩

添加信息效验功能填写

1 parent fe6b48d8
......@@ -20,86 +20,167 @@ $(function () {
});
//监听提交
form.on('submit(submit)', function (data) {
layer.alert(JSON.stringify(data.field), {
title: '最终的提交信息'
})
form.on('submit(check)', function (data) {
bdcqlVerify(data.field);
// layer.alert(JSON.stringify(data.field), {
// title: '最终的提交信息'
// })
return false;
});
})
// 结果弹框
$('.reset').click(function () {
successResult()
// seizureResult()
})
SetCheckContent();
})
function successResult() {
//设置查询条件内容
function SetCheckContent() {
layui.use(['form', 'upload', 'layer'], function () {
var bdcqzType = $('#bdcqzType');
var form = layui.form;
if (business.sqrlb == "1") {
$("#sqrlx").text("权利人名称:");
// bdcqzType.append(new Option("不动产权证书号", "bdcqzh"));// 下拉菜单里添加元素
// bdcqzType.append(new Option("不动产权证明号", "bdcqzh"));// 下拉菜单里添加元素
bdcqzType.append(new Option("合同号", "hth"));// 下拉菜单里添加元素
// bdcqzType.append(new Option("房产证号", "hth"));// 下拉菜单里添加元素
// bdcqzType.append(new Option("土地证号", "hth"));// 下拉菜单里添加元素
} else {
$("#sqrlx").text("义务人名称:");
bdcqzType.append(new Option("不动产权证书号", "bdcqzh"));// 下拉菜单里添加元素
// bdcqzType.append(new Option("不动产权证明号", "bdcqzh"));// 下拉菜单里添加元素
bdcqzType.append(new Option("合同号", "hth"));// 下拉菜单里添加元素
// bdcqzType.append(new Option("房产证号", "hth"));// 下拉菜单里添加元素
// bdcqzType.append(new Option("土地证号", "hth"));// 下拉菜单里添加元素
}
layui.form.render("select");
});
}
//提交信息核验
function bdcqlVerify(formdata) {
$.ajax({
type: "post", //提交方式
url: portal.api_url + "/portal/EstateInfoVerifyService/bdcqzhVerify",//路径
dataType: "json",
async: false,
data: {
"bdcqzh": formdata.record,
"name": formdata.record,
"IDCard": formdata.record
},
//数据,这里使用的是Json格式进行传输
success: function (result) {//返回数据根据结果进行相应的处理
if (result.code == 200) {
var resultData = {
"bdcdyid": "35a97100331704f9cbf93a92227c6f0c",
"bdcdyh": "610104123456GB00005F00010023",
"bsm_ql": "89f3ea0265f40b52e6da54e62e2991b4",
"bdcqzh": "青(2016)大柴旦行政委员会不动产权第0000047号",
}
getFDCQ2(resultData.bsm_ql);
}
else {
failResult();
}
}
});
}
//获取房屋信息
function getFDCQ2(bsm_ql) {
$.ajax({
type: "post", //提交方式
url: portal.api_url + "/portal/bdcqlReadService/getFDCQ2",//路径
dataType: "json",
async: false,
data: {
"bsm_ql": bsm_ql,
},
//数据,这里使用的是Json格式进行传输
success: function (result) {//返回数据根据结果进行相应的处理
if (result.code == 200 && result.data != null) {
successResult(result.data);
}
}
});
}
//核验成功内容
function successResult(json) {
json["bdcdyid"] = "35a97100331704f9cbf93a92227c6f0c";
json["bsm_ql"] = "89f3ea0265f40b52e6da54e62e2991b4";
layui.use('layer', function () {
layer.open({
title: '<p class="system_prompt successInfo">房屋状态:正常</p>',
area: ['370px', '335px'],
area: ['500px', '350px'],
scrollbar: false,
btn: ['下一步'],
yes: function () {
skipNextPage();
addCreatSLSQ(json);
},
content: '<ul class="dialog_con">'
+ '<li><span>姓名:</span>任超</li>'
+ '<li><span>身份证号:</span>610124193335522</li>'
+ '<li><span>联系电话:</span>18740677386</li>'
+ '<li><span>产权证号:</span>89897987987987</li>'
+ '<li><span>坐落:</span>西安市雁塔区南二环西段</li>'
+ '<li><span>面积:</span>2000</li>'
+ '<li><span>合同备案号:</span>9798798798798</li>'
+ '<li><span>所有权人:</span>' + json.tdsyqr + '</li>'
+ '<li><span>身份证号:</span>' + json.tdsyqr + '</li>'
+ '<li><span>联系电话:</span>' + json.tdsyqr + '</li>'
+ '<li><span>产权证号:</span>' + json.bdcqzh + '</li>'
+ '<li><span>坐落:</span>' + json.fdzl + '</li>'
+ '<li><span>建筑面积:</span>' + json.jzmj + '</li>'
+ '<li><span>合同备案号:</span>' + json.ywh + '</li>'
+ '</ul>'
});
})
}
function seizureResult() {
//核验失败内容
function failResult() {
layui.use('layer', function () {
layer.open({
title: '<p class="system_prompt seizureInfo">房屋状态:正常</p>',
title: '<p class="system_prompt seizureInfo">房屋状态:失败</p>',
area: ['370px', '335px'],
scrollbar: false,
btn: ['下一步'],
content: '<ul class="dialog_con">'
+ '<li><span>姓名:</span>任超</li>'
+ '<li><span>身份证号:</span>610124193335522</li>'
+ '<li><span>联系电话:</span>18740677386</li>'
+ '<li><span>产权证号:</span>89897987987987</li>'
+ '<li><span>坐落:</span>西安市雁塔区南二环西段</li>'
+ '<li><span>面积:</span>2000</li>'
+ '<li><span>合同备案号:</span>9798798798798</li>'
+ '</ul>'
btn: ['确定'],
yes: function () {
//addCreatSLSQ();
},
content: '<div">'
+ '该房屋已被查封!'
+ '</div>'
});
})
}
}
//设置查验内容
function SetCheckContent() {
layui.use(['form', 'upload', 'layer'], function () {
var bdcqzType = $('#bdcqzType');
var form = layui.form;
if (business.sqrlb == "1") {
$("#sqrlx").text("权利人名称:");
// bdcqzType.append(new Option("不动产权证书号", "bdcqzh"));// 下拉菜单里添加元素
// bdcqzType.append(new Option("不动产权证明号", "bdcqzh"));// 下拉菜单里添加元素
bdcqzType.append(new Option("合同号", "hth"));// 下拉菜单里添加元素
// bdcqzType.append(new Option("房产证号", "hth"));// 下拉菜单里添加元素
// bdcqzType.append(new Option("土地证号", "hth"));// 下拉菜单里添加元素
} else {
$("#sqrlx").text("义务人名称:");
bdcqzType.append(new Option("不动产权证书号", "bdcqzh"));// 下拉菜单里添加元素
// bdcqzType.append(new Option("不动产权证明号", "bdcqzh"));// 下拉菜单里添加元素
bdcqzType.append(new Option("合同号", "hth"));// 下拉菜单里添加元素
// bdcqzType.append(new Option("房产证号", "hth"));// 下拉菜单里添加元素
// bdcqzType.append(new Option("土地证号", "hth"));// 下拉菜单里添加元素
//添加受理信息
function addCreatSLSQ(jsondata) {
var data={
"bdcdyh": jsondata.bdcdyh,
"bdcdyid": jsondata.bdcdyid,
"bdcqzh": jsondata.bdcqzh,
"bsmQl": jsondata.bsm_ql,
"ywid": business.ywid,
"businessno": business.businessno,
"userid": "0026609ddc6d2afabaa3c9b0ea3b0ec3"
};
$.ajax({
type: "post", //提交方式
headers:{'Content-Type':'application/json;charset=utf8'},
url: portal.api_url + "/portal/FillInformation/allInformation",//路径
dataType: "json",
async: false,
data: JSON.stringify(data),
//数据,这里使用的是Json格式进行传输
success: function (result) {//返回数据根据结果进行相应的处理
if (result.code == 200) {
skipNextPage();
}
else{
alert(result.message);
}
}
layui.form.render("select");
});
}
\ No newline at end of file
......
var business;
//获取创建的流程业务
function getCreateFlow(ywid) {
function getCreateFlow(ywid, businessno) {
$.ajax({
type: "post", //提交方式
url: portal.api_url + "/portal/ApplyBusinessService/getBusinessFlow",//路径
......@@ -61,14 +61,14 @@ function setArticleSteps() {
}
//获取业务发起流程方法
function getInitiateFLow(ywid) {
getCreateFlow(ywid);
window.open(portal.rootPath + business.stepList[0].pageurl + "?ywid=" + ywid, "_self")
function getInitiateFLow(ywid, businessno) {
getCreateFlow(ywid, businessno);
window.open(portal.rootPath + business.stepList[0].pageurl + "?ywid=" + ywid + "&businessno=" + businessno, "_self")
}
//工作箱调取流程方法
function getWorkBoxFLow(ywid, lclb) {
getAcceptFlow(ywid, lclb);
function getWorkBoxFLow(bsm_slsq, businessno) {
getAcceptFlow(bsm_slsq, businessno);
var pageurl;
$.each(business.stepList, function (index, item) {
if (item.stepState == 1) {
......@@ -102,6 +102,6 @@ function skipNextPage() {
return;
}
});
window.location.href = portal.rootPath + business.stepList[nextStepIndex].pageurl + "?ywid=" + business.ywid + "&lclb=" + business.lclb;
window.location.href = portal.rootPath + business.stepList[nextStepIndex].pageurl + "?ywid=" + business.ywid + "&businessno=" + business.businessno;
}
......
......@@ -33,7 +33,7 @@ $(function () {
_initData()
// 网上申请
$(document).on("click", ".handleBus", function (e) {
getInitiateFLow($(this).attr("ywid"));
getInitiateFLow($(this).attr("ywid"),$(this).attr("businessNo"));
})
})
......
......@@ -65,7 +65,7 @@
<div class="layui-input-block submitbutton">
<button type="reset" class="layui-btn layui-btn-primary reset">重 置</button>
<button type="submit" class="layui-btn layui-btn-normal submit" lay-submit=""
lay-filter="demo1">
lay-filter="check">
</button>
</div>
</div>
......
......@@ -104,7 +104,7 @@
<li>
<p>{{item.classifyList[i].shortName}}</p>
<div class="button">
<button type="button" ywid="{{item.classifyList[i].ywid}}" class="layui-btn handleBus layui-btn-normal layui-btn-sm">立即办理</button>
<button type="button" ywid="{{item.classifyList[i].ywid}}" businessno="{{item.classifyList[i].businessNo}}" class="layui-btn handleBus layui-btn-normal layui-btn-sm" >立即办理</button>
{{# if(item.classifyList[i].bsmBszn){ }}
<button type="button" class="layui-btn layui-btn-primary layui-btn-sm">办事指南</button>
{{# } }}
......@@ -130,7 +130,7 @@
<li>
<p>{{item.classifyList[i].shortName}}</p>
<div class="button">
<button type="button" ywid="{{item.classifyList[i].ywid}}" class="layui-btn handleBus layui-btn-normal layui-btn-sm">立即办理</button>
<button type="button" ywid="{{item.classifyList[i].ywid}}" businessno="{{item.classifyList[i].businessNo}}" class="layui-btn handleBus layui-btn-normal layui-btn-sm">立即办理</button>
{{# if(item.classifyList[i].bsmBszn){ }}
<button type="button" class="layui-btn layui-btn-primary layui-btn-sm">办事指南</button>
{{# } }}
......