ceb70ed3 by 田浩浩

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

1 parent 0d845de9
Pipeline #4 for ceb70ed3 failed in 0 seconds
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
13 margin: 15px 0; 13 margin: 15px 0;
14 } 14 }
15 .layui-form-item .layui-inline { 15 .layui-form-item .layui-inline {
16 width: 48%; 16 width: 30%;
17 } 17 }
18 .submitbutton { 18 .submitbutton {
19 text-align: center; 19 text-align: center;
......
...@@ -13,7 +13,7 @@ function SetServicesPath() { ...@@ -13,7 +13,7 @@ function SetServicesPath() {
13 //设置全局參數 13 //设置全局參數
14 var portal = 14 var portal =
15 { 15 {
16 'api_url': "http://192.168.2.59:8000", //属性名用引号括起来,属性间由逗号隔开 16 'api_url': "http://192.168.2.108:8000", //属性名用引号括起来,属性间由逗号隔开
17 'name': 'myName' 17 'name': 'myName'
18 }; 18 };
19 19
......
1 var sqrlb;
1 $(function () { 2 $(function () {
2 layui.use('element', function () { 3 layui.use('element', function () {
3 let element = layui.element; 4 let element = layui.element;
...@@ -31,7 +32,7 @@ $(function () { ...@@ -31,7 +32,7 @@ $(function () {
31 successResult() 32 successResult()
32 // seizureResult() 33 // seizureResult()
33 }) 34 })
34 35 SetCheckContent();
35 }) 36 })
36 function successResult() { 37 function successResult() {
37 layui.use('layer', function () { 38 layui.use('layer', function () {
...@@ -77,19 +78,21 @@ function seizureResult() { ...@@ -77,19 +78,21 @@ function seizureResult() {
77 }) 78 })
78 } 79 }
79 80
81
82
80 // 获取受理流程信息 83 // 获取受理流程信息
81 function _acceptanceProcess(ywid, lclb = 1) { 84 function _acceptanceProcess(ywid) {
82 $.ajax({ 85 $.ajax({
83 type: "post", //提交方式 86 type: "post", //提交方式
84 url: portal.api_url + "/portal/ApplyBusinessService/getApplyFlow",//路径 87 url: portal.api_url + "/portal/ApplyBusinessService/getBusinessFlow",//路径
85 dataType: "json", 88 dataType: "json",
86 data: { 89 data: {
87 "ywid": ywid, 90 "ywid": ywid
88 "lclb": lclb
89 }, 91 },
90 //数据,这里使用的是Json格式进行传输 92 //数据,这里使用的是Json格式进行传输
91 success: function (result) {//返回数据根据结果进行相应的处理 93 success: function (result) {//返回数据根据结果进行相应的处理
92 if (result.code == 200 && result.data != null) { 94 if (result.code == 200 && result.data != null) {
95 sqrlb = result.data.sqrlb;
93 console.log(result.data) 96 console.log(result.data)
94 $('.name_title h2').text(result.data.shortName) 97 $('.name_title h2').text(result.data.shortName)
95 $('.name_title p').text(result.data.businessName) 98 $('.name_title p').text(result.data.businessName)
...@@ -102,7 +105,7 @@ function _acceptanceProcess(ywid, lclb = 1) { ...@@ -102,7 +105,7 @@ function _acceptanceProcess(ywid, lclb = 1) {
102 laytpl(getTpl).render(data, function (html) { 105 laytpl(getTpl).render(data, function (html) {
103 view.innerHTML = html; 106 view.innerHTML = html;
104 }); 107 });
105 108
106 layui.use(['element'], function () { 109 layui.use(['element'], function () {
107 var element = layui.element; 110 var element = layui.element;
108 //初始化动态元素,一些动态生成的元素如果不设置初始化,将不会有默认的动态效果 111 //初始化动态元素,一些动态生成的元素如果不设置初始化,将不会有默认的动态效果
...@@ -126,4 +129,29 @@ function GetRequest() { ...@@ -126,4 +129,29 @@ function GetRequest() {
126 } 129 }
127 var data = { //数据 130 var data = { //数据
128 'progressList': [], 131 'progressList': [],
129 };
...\ No newline at end of file ...\ No newline at end of file
132 };
133
134
135 //设置查验内容
136 function SetCheckContent() {
137 layui.use(['form', 'upload', 'layer'], function () {
138 var bdcqzType = $('#bdcqzType');
139 var form = layui.form;
140 if (sqrlb == "1") {
141 $("#sqrlx").text("权利人名称:");
142 // bdcqzType.append(new Option("不动产权证书号", "bdcqzh"));// 下拉菜单里添加元素
143 // bdcqzType.append(new Option("不动产权证明号", "bdcqzh"));// 下拉菜单里添加元素
144 bdcqzType.append(new Option("合同号", "hth"));// 下拉菜单里添加元素
145 // bdcqzType.append(new Option("房产证号", "hth"));// 下拉菜单里添加元素
146 // bdcqzType.append(new Option("土地证号", "hth"));// 下拉菜单里添加元素
147 } else {
148 $("#sqrlx").text("义务人名称:");
149 bdcqzType.append(new Option("不动产权证书号", "bdcqzh"));// 下拉菜单里添加元素
150 // bdcqzType.append(new Option("不动产权证明号", "bdcqzh"));// 下拉菜单里添加元素
151 bdcqzType.append(new Option("合同号", "hth"));// 下拉菜单里添加元素
152 // bdcqzType.append(new Option("房产证号", "hth"));// 下拉菜单里添加元素
153 // bdcqzType.append(new Option("土地证号", "hth"));// 下拉菜单里添加元素
154 }
155 layui.form.render("select");
156 });
157 }
...\ No newline at end of file ...\ No newline at end of file
......
...@@ -97,14 +97,13 @@ function _businessList(districtId) { ...@@ -97,14 +97,13 @@ function _businessList(districtId) {
97 } 97 }
98 98
99 // 获取受理流程信息 99 // 获取受理流程信息
100 function _acceptanceProcess(ywid,lclb=1) { 100 function _acceptanceProcess(ywid) {
101 $.ajax({ 101 $.ajax({
102 type: "post", //提交方式 102 type: "post", //提交方式
103 url: portal.api_url + "/portal/ApplyBusinessService/getApplyFlow",//路径 103 url: portal.api_url + "/portal/ApplyBusinessService/getBusinessFlow",//路径
104 dataType: "json", 104 dataType: "json",
105 data: { 105 data: {
106 "ywid": ywid, 106 "ywid": ywid
107 "lclb": lclb
108 }, 107 },
109 //数据,这里使用的是Json格式进行传输 108 //数据,这里使用的是Json格式进行传输
110 success: function (result) {//返回数据根据结果进行相应的处理 109 success: function (result) {//返回数据根据结果进行相应的处理
......
1 <!DOCTYPE html 1 <!DOCTYPE html
2 PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 2 PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml"> 3 <html xmlns="http://www.w3.org/1999/xhtml">
4
4 <head> 5 <head>
5 <style> 6 <style>
6 </style> 7 </style>
...@@ -38,33 +39,33 @@ ...@@ -38,33 +39,33 @@
38 <form class="layui-form" action=""> 39 <form class="layui-form" action="">
39 <div class="layui-form-item"> 40 <div class="layui-form-item">
40 <div class="layui-inline"> 41 <div class="layui-inline">
41 <label class="layui-form-label">权利人</label> 42 <label id="sqrlx">权利人</label>
42 <div class="layui-input-block"> 43 <label id="sqrxm">张*某</label>
43 <input type="text" name="title" required lay-verify="title" placeholder="请输权利人" 44 </div>
44 class="layui-input"> 45 <div class="layui-inline">
45 </div> 46 <label>证件种类:</label>
47 <label id="zjzl">身份证</label>
46 </div> 48 </div>
47 <div class="layui-inline"> 49 <div class="layui-inline">
48 <label class="layui-form-label">身份证</label> 50 <label>证件号码:</label>
49 <div class="layui-input-block"> 51 <label id="zjhm">610100********3411</label>
50 <input type="text" name="idcard" required lay-verify="identity" placeholder="请输身份证"
51 class="layui-input">
52 </div>
53 </div> 52 </div>
54 </div> 53 </div>
55 54 <div class="layui-form-item record_con" style="width: 220px;float: left;">
56 <div class="layui-form-item record_con">
57 <label class="layui-form-label">合同备案号</label>
58 <div class="layui-input-block record"> 55 <div class="layui-input-block record">
59 <input type="text" name="record" required lay-verify="record" placeholder="请输合同备案号" 56 <select id="bdcqzType" lay-verify="required" lay-filter="xmFilter">
60 class="layui-input"> 57 </select>
58 </div>
59 <div class="layui-input-block record">
60 <input type="text" name="record" required lay-verify="record" class="layui-input">
61 </div> 61 </div>
62 </div> 62 </div>
63 63
64 <div class="layui-form-item submitbutton_con"> 64 <div class="layui-form-item submitbutton_con">
65 <div class="layui-input-block submitbutton"> 65 <div class="layui-input-block submitbutton">
66 <button type="reset" class="layui-btn layui-btn-primary reset">重 置</button> 66 <button type="reset" class="layui-btn layui-btn-primary reset">重 置</button>
67 <button type="submit" class="layui-btn layui-btn-normal submit" lay-submit="" lay-filter="demo1"> 67 <button type="submit" class="layui-btn layui-btn-normal submit" lay-submit=""
68 lay-filter="demo1">
68 </button> 69 </button>
69 </div> 70 </div>
70 </div> 71 </div>
...@@ -111,4 +112,5 @@ ...@@ -111,4 +112,5 @@
111 {{# } }} 112 {{# } }}
112 {{# }); }} 113 {{# }); }}
113 </script> 114 </script>
115
114 </html> 116 </html>
...\ No newline at end of file ...\ No newline at end of file
......