ceb70ed3 by 田浩浩

修改网上申请信息效验逻辑

1 parent 0d845de9
Pipeline #4 for ceb70ed3 failed in 0 seconds
......@@ -13,7 +13,7 @@
margin: 15px 0;
}
.layui-form-item .layui-inline {
width: 48%;
width: 30%;
}
.submitbutton {
text-align: center;
......
......@@ -13,7 +13,7 @@ function SetServicesPath() {
//设置全局參數
var portal =
{
'api_url': "http://192.168.2.59:8000", //属性名用引号括起来,属性间由逗号隔开
'api_url': "http://192.168.2.108:8000", //属性名用引号括起来,属性间由逗号隔开
'name': 'myName'
};
......
var sqrlb;
$(function () {
layui.use('element', function () {
let element = layui.element;
......@@ -31,7 +32,7 @@ $(function () {
successResult()
// seizureResult()
})
SetCheckContent();
})
function successResult() {
layui.use('layer', function () {
......@@ -77,19 +78,21 @@ function seizureResult() {
})
}
// 获取受理流程信息
function _acceptanceProcess(ywid, lclb = 1) {
function _acceptanceProcess(ywid) {
$.ajax({
type: "post", //提交方式
url: portal.api_url + "/portal/ApplyBusinessService/getApplyFlow",//路径
url: portal.api_url + "/portal/ApplyBusinessService/getBusinessFlow",//路径
dataType: "json",
data: {
"ywid": ywid,
"lclb": lclb
"ywid": ywid
},
//数据,这里使用的是Json格式进行传输
success: function (result) {//返回数据根据结果进行相应的处理
if (result.code == 200 && result.data != null) {
sqrlb = result.data.sqrlb;
console.log(result.data)
$('.name_title h2').text(result.data.shortName)
$('.name_title p').text(result.data.businessName)
......@@ -127,3 +130,28 @@ function GetRequest() {
var data = { //数据
'progressList': [],
};
//设置查验内容
function SetCheckContent() {
layui.use(['form', 'upload', 'layer'], function () {
var bdcqzType = $('#bdcqzType');
var form = layui.form;
if (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");
});
}
\ No newline at end of file
......
......@@ -97,14 +97,13 @@ function _businessList(districtId) {
}
// 获取受理流程信息
function _acceptanceProcess(ywid,lclb=1) {
function _acceptanceProcess(ywid) {
$.ajax({
type: "post", //提交方式
url: portal.api_url + "/portal/ApplyBusinessService/getApplyFlow",//路径
url: portal.api_url + "/portal/ApplyBusinessService/getBusinessFlow",//路径
dataType: "json",
data: {
"ywid": ywid,
"lclb": lclb
"ywid": ywid
},
//数据,这里使用的是Json格式进行传输
success: function (result) {//返回数据根据结果进行相应的处理
......
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<style>
</style>
......@@ -38,33 +39,33 @@
<form class="layui-form" action="">
<div class="layui-form-item">
<div class="layui-inline">
<label class="layui-form-label">权利人</label>
<div class="layui-input-block">
<input type="text" name="title" required lay-verify="title" placeholder="请输权利人"
class="layui-input">
<label id="sqrlx">权利人</label>
<label id="sqrxm">张*某</label>
</div>
<div class="layui-inline">
<label>证件种类:</label>
<label id="zjzl">身份证</label>
</div>
<div class="layui-inline">
<label class="layui-form-label">身份证</label>
<div class="layui-input-block">
<input type="text" name="idcard" required lay-verify="identity" placeholder="请输身份证"
class="layui-input">
<label>证件号码:</label>
<label id="zjhm">610100********3411</label>
</div>
</div>
<div class="layui-form-item record_con" style="width: 220px;float: left;">
<div class="layui-input-block record">
<select id="bdcqzType" lay-verify="required" lay-filter="xmFilter">
</select>
</div>
<div class="layui-form-item record_con">
<label class="layui-form-label">合同备案号</label>
<div class="layui-input-block record">
<input type="text" name="record" required lay-verify="record" placeholder="请输合同备案号"
class="layui-input">
<input type="text" name="record" required lay-verify="record" class="layui-input">
</div>
</div>
<div class="layui-form-item submitbutton_con">
<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">
<button type="submit" class="layui-btn layui-btn-normal submit" lay-submit=""
lay-filter="demo1">
</button>
</div>
</div>
......@@ -111,4 +112,5 @@
{{# } }}
{{# }); }}
</script>
</html>
\ No newline at end of file
......