style:我的业务
Showing
5 changed files
with
148 additions
and
67 deletions
... | @@ -20,86 +20,167 @@ $(function () { | ... | @@ -20,86 +20,167 @@ $(function () { |
20 | }); | 20 | }); |
21 | 21 | ||
22 | //监听提交 | 22 | //监听提交 |
23 | form.on('submit(submit)', function (data) { | 23 | form.on('submit(check)', function (data) { |
24 | layer.alert(JSON.stringify(data.field), { | 24 | bdcqlVerify(data.field); |
25 | title: '最终的提交信息' | 25 | // layer.alert(JSON.stringify(data.field), { |
26 | }) | 26 | // title: '最终的提交信息' |
27 | // }) | ||
27 | return false; | 28 | return false; |
28 | }); | 29 | }); |
29 | }) | 30 | }) |
30 | // 结果弹框 | 31 | // 结果弹框 |
31 | $('.reset').click(function () { | 32 | $('.reset').click(function () { |
32 | successResult() | 33 | |
33 | // seizureResult() | 34 | // seizureResult() |
34 | }) | 35 | }) |
35 | SetCheckContent(); | 36 | SetCheckContent(); |
36 | }) | 37 | }) |
37 | function successResult() { | 38 | |
39 | //设置查询条件内容 | ||
40 | function SetCheckContent() { | ||
41 | layui.use(['form', 'upload', 'layer'], function () { | ||
42 | var bdcqzType = $('#bdcqzType'); | ||
43 | var form = layui.form; | ||
44 | if (business.sqrlb == "1") { | ||
45 | $("#sqrlx").text("权利人名称:"); | ||
46 | // bdcqzType.append(new Option("不动产权证书号", "bdcqzh"));// 下拉菜单里添加元素 | ||
47 | // bdcqzType.append(new Option("不动产权证明号", "bdcqzh"));// 下拉菜单里添加元素 | ||
48 | bdcqzType.append(new Option("合同号", "hth"));// 下拉菜单里添加元素 | ||
49 | // bdcqzType.append(new Option("房产证号", "hth"));// 下拉菜单里添加元素 | ||
50 | // bdcqzType.append(new Option("土地证号", "hth"));// 下拉菜单里添加元素 | ||
51 | } else { | ||
52 | $("#sqrlx").text("义务人名称:"); | ||
53 | bdcqzType.append(new Option("不动产权证书号", "bdcqzh"));// 下拉菜单里添加元素 | ||
54 | // bdcqzType.append(new Option("不动产权证明号", "bdcqzh"));// 下拉菜单里添加元素 | ||
55 | bdcqzType.append(new Option("合同号", "hth"));// 下拉菜单里添加元素 | ||
56 | // bdcqzType.append(new Option("房产证号", "hth"));// 下拉菜单里添加元素 | ||
57 | // bdcqzType.append(new Option("土地证号", "hth"));// 下拉菜单里添加元素 | ||
58 | } | ||
59 | layui.form.render("select"); | ||
60 | }); | ||
61 | } | ||
62 | |||
63 | //提交信息核验 | ||
64 | function bdcqlVerify(formdata) { | ||
65 | $.ajax({ | ||
66 | type: "post", //提交方式 | ||
67 | url: portal.api_url + "/portal/EstateInfoVerifyService/bdcqzhVerify",//路径 | ||
68 | dataType: "json", | ||
69 | async: false, | ||
70 | data: { | ||
71 | "bdcqzh": formdata.record, | ||
72 | "name": formdata.record, | ||
73 | "IDCard": formdata.record | ||
74 | }, | ||
75 | //数据,这里使用的是Json格式进行传输 | ||
76 | success: function (result) {//返回数据根据结果进行相应的处理 | ||
77 | if (result.code == 200) { | ||
78 | var resultData = { | ||
79 | "bdcdyid": "35a97100331704f9cbf93a92227c6f0c", | ||
80 | "bdcdyh": "610104123456GB00005F00010023", | ||
81 | "bsm_ql": "89f3ea0265f40b52e6da54e62e2991b4", | ||
82 | "bdcqzh": "青(2016)大柴旦行政委员会不动产权第0000047号", | ||
83 | } | ||
84 | getFDCQ2(resultData.bsm_ql); | ||
85 | } | ||
86 | else { | ||
87 | failResult(); | ||
88 | } | ||
89 | } | ||
90 | }); | ||
91 | } | ||
92 | |||
93 | //获取房屋信息 | ||
94 | function getFDCQ2(bsm_ql) { | ||
95 | $.ajax({ | ||
96 | type: "post", //提交方式 | ||
97 | url: portal.api_url + "/portal/bdcqlReadService/getFDCQ2",//路径 | ||
98 | dataType: "json", | ||
99 | async: false, | ||
100 | data: { | ||
101 | "bsm_ql": bsm_ql, | ||
102 | }, | ||
103 | //数据,这里使用的是Json格式进行传输 | ||
104 | success: function (result) {//返回数据根据结果进行相应的处理 | ||
105 | if (result.code == 200 && result.data != null) { | ||
106 | successResult(result.data); | ||
107 | } | ||
108 | } | ||
109 | }); | ||
110 | } | ||
111 | |||
112 | |||
113 | //核验成功内容 | ||
114 | function successResult(json) { | ||
115 | json["bdcdyid"] = "35a97100331704f9cbf93a92227c6f0c"; | ||
116 | json["bsm_ql"] = "89f3ea0265f40b52e6da54e62e2991b4"; | ||
38 | layui.use('layer', function () { | 117 | layui.use('layer', function () { |
39 | layer.open({ | 118 | layer.open({ |
40 | title: '<p class="system_prompt successInfo">房屋状态:正常</p>', | 119 | title: '<p class="system_prompt successInfo">房屋状态:正常</p>', |
41 | area: ['370px', '335px'], | 120 | area: ['500px', '350px'], |
42 | scrollbar: false, | 121 | scrollbar: false, |
43 | btn: ['下一步'], | 122 | btn: ['下一步'], |
44 | yes: function () { | 123 | yes: function () { |
45 | skipNextPage(); | 124 | addCreatSLSQ(json); |
46 | }, | 125 | }, |
47 | content: '<ul class="dialog_con">' | 126 | content: '<ul class="dialog_con">' |
48 | + '<li><span>姓名:</span>任超</li>' | 127 | + '<li><span>所有权人:</span>' + json.tdsyqr + '</li>' |
49 | + '<li><span>身份证号:</span>610124193335522</li>' | 128 | + '<li><span>身份证号:</span>' + json.tdsyqr + '</li>' |
50 | + '<li><span>联系电话:</span>18740677386</li>' | 129 | + '<li><span>联系电话:</span>' + json.tdsyqr + '</li>' |
51 | + '<li><span>产权证号:</span>89897987987987</li>' | 130 | + '<li><span>产权证号:</span>' + json.bdcqzh + '</li>' |
52 | + '<li><span>坐落:</span>西安市雁塔区南二环西段</li>' | 131 | + '<li><span>坐落:</span>' + json.fdzl + '</li>' |
53 | + '<li><span>面积:</span>2000</li>' | 132 | + '<li><span>建筑面积:</span>' + json.jzmj + '</li>' |
54 | + '<li><span>合同备案号:</span>9798798798798</li>' | 133 | + '<li><span>合同备案号:</span>' + json.ywh + '</li>' |
55 | + '</ul>' | 134 | + '</ul>' |
56 | }); | 135 | }); |
57 | }) | 136 | }) |
58 | |||
59 | } | 137 | } |
60 | 138 | ||
61 | function seizureResult() { | 139 | //核验失败内容 |
140 | function failResult() { | ||
62 | layui.use('layer', function () { | 141 | layui.use('layer', function () { |
63 | layer.open({ | 142 | layer.open({ |
64 | title: '<p class="system_prompt seizureInfo">房屋状态:正常</p>', | 143 | title: '<p class="system_prompt seizureInfo">房屋状态:失败</p>', |
65 | area: ['370px', '335px'], | 144 | area: ['370px', '335px'], |
66 | scrollbar: false, | 145 | scrollbar: false, |
67 | btn: ['下一步'], | 146 | btn: ['确定'], |
68 | content: '<ul class="dialog_con">' | 147 | yes: function () { |
69 | + '<li><span>姓名:</span>任超</li>' | 148 | //addCreatSLSQ(); |
70 | + '<li><span>身份证号:</span>610124193335522</li>' | 149 | }, |
71 | + '<li><span>联系电话:</span>18740677386</li>' | 150 | content: '<div">' |
72 | + '<li><span>产权证号:</span>89897987987987</li>' | 151 | + '该房屋已被查封!' |
73 | + '<li><span>坐落:</span>西安市雁塔区南二环西段</li>' | 152 | + '</div>' |
74 | + '<li><span>面积:</span>2000</li>' | ||
75 | + '<li><span>合同备案号:</span>9798798798798</li>' | ||
76 | + '</ul>' | ||
77 | }); | 153 | }); |
78 | }) | 154 | }) |
79 | } | ||
80 | |||
81 | 155 | ||
156 | } | ||
82 | 157 | ||
83 | //设置查验内容 | 158 | //添加受理信息 |
84 | function SetCheckContent() { | 159 | function addCreatSLSQ(jsondata) { |
85 | layui.use(['form', 'upload', 'layer'], function () { | 160 | var data={ |
86 | var bdcqzType = $('#bdcqzType'); | 161 | "bdcdyh": jsondata.bdcdyh, |
87 | var form = layui.form; | 162 | "bdcdyid": jsondata.bdcdyid, |
88 | if (business.sqrlb == "1") { | 163 | "bdcqzh": jsondata.bdcqzh, |
89 | $("#sqrlx").text("权利人名称:"); | 164 | "bsmQl": jsondata.bsm_ql, |
90 | // bdcqzType.append(new Option("不动产权证书号", "bdcqzh"));// 下拉菜单里添加元素 | 165 | "ywid": business.ywid, |
91 | // bdcqzType.append(new Option("不动产权证明号", "bdcqzh"));// 下拉菜单里添加元素 | 166 | "businessno": business.businessno, |
92 | bdcqzType.append(new Option("合同号", "hth"));// 下拉菜单里添加元素 | 167 | "userid": "0026609ddc6d2afabaa3c9b0ea3b0ec3" |
93 | // bdcqzType.append(new Option("房产证号", "hth"));// 下拉菜单里添加元素 | 168 | }; |
94 | // bdcqzType.append(new Option("土地证号", "hth"));// 下拉菜单里添加元素 | 169 | $.ajax({ |
95 | } else { | 170 | type: "post", //提交方式 |
96 | $("#sqrlx").text("义务人名称:"); | 171 | headers:{'Content-Type':'application/json;charset=utf8'}, |
97 | bdcqzType.append(new Option("不动产权证书号", "bdcqzh"));// 下拉菜单里添加元素 | 172 | url: portal.api_url + "/portal/FillInformation/allInformation",//路径 |
98 | // bdcqzType.append(new Option("不动产权证明号", "bdcqzh"));// 下拉菜单里添加元素 | 173 | dataType: "json", |
99 | bdcqzType.append(new Option("合同号", "hth"));// 下拉菜单里添加元素 | 174 | async: false, |
100 | // bdcqzType.append(new Option("房产证号", "hth"));// 下拉菜单里添加元素 | 175 | data: JSON.stringify(data), |
101 | // bdcqzType.append(new Option("土地证号", "hth"));// 下拉菜单里添加元素 | 176 | //数据,这里使用的是Json格式进行传输 |
177 | success: function (result) {//返回数据根据结果进行相应的处理 | ||
178 | if (result.code == 200) { | ||
179 | skipNextPage(); | ||
180 | } | ||
181 | else{ | ||
182 | alert(result.message); | ||
183 | } | ||
102 | } | 184 | } |
103 | layui.form.render("select"); | ||
104 | }); | 185 | }); |
105 | } | 186 | } |
... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
1 | var business; | 1 | var business; |
2 | //获取创建的流程业务 | 2 | //获取创建的流程业务 |
3 | function getCreateFlow(ywid) { | 3 | function getCreateFlow(ywid, businessno) { |
4 | $.ajax({ | 4 | $.ajax({ |
5 | type: "post", //提交方式 | 5 | type: "post", //提交方式 |
6 | url: portal.api_url + "/portal/ApplyBusinessService/getBusinessFlow",//路径 | 6 | url: portal.api_url + "/portal/ApplyBusinessService/getBusinessFlow",//路径 |
... | @@ -19,15 +19,15 @@ function getCreateFlow(ywid) { | ... | @@ -19,15 +19,15 @@ function getCreateFlow(ywid) { |
19 | } | 19 | } |
20 | 20 | ||
21 | //获取正在办理的流程业务 | 21 | //获取正在办理的流程业务 |
22 | function getAcceptFlow(ywid, lclb) { | 22 | function getAcceptFlow(bsm_slsq, businessno) { |
23 | $.ajax({ | 23 | $.ajax({ |
24 | type: "post", //提交方式 | 24 | type: "post", //提交方式 |
25 | url: portal.api_url + "/portal/ApplyBusinessService/getApplyFlow",//路径 | 25 | url: portal.api_url + "/portal/ApplyBusinessService/getApplyFlow",//路径 |
26 | dataType: "json", | 26 | dataType: "json", |
27 | async: false, | 27 | async: false, |
28 | data: { | 28 | data: { |
29 | "ywid": ywid, | 29 | "bsm_slsq": bsm_slsq, |
30 | "lclb": lclb | 30 | "businessno": businessno |
31 | }, | 31 | }, |
32 | //数据,这里使用的是Json格式进行传输 | 32 | //数据,这里使用的是Json格式进行传输 |
33 | success: function (result) {//返回数据根据结果进行相应的处理 | 33 | success: function (result) {//返回数据根据结果进行相应的处理 |
... | @@ -61,14 +61,14 @@ function setArticleSteps() { | ... | @@ -61,14 +61,14 @@ function setArticleSteps() { |
61 | } | 61 | } |
62 | 62 | ||
63 | //获取业务发起流程方法 | 63 | //获取业务发起流程方法 |
64 | function getInitiateFLow(ywid) { | 64 | function getInitiateFLow(ywid, businessno) { |
65 | getCreateFlow(ywid); | 65 | getCreateFlow(ywid, businessno); |
66 | window.open(portal.rootPath + business.stepList[0].pageurl + "?ywid=" + ywid, "_self") | 66 | window.open(portal.rootPath + business.stepList[0].pageurl + "?ywid=" + ywid + "&businessno=" + businessno, "_self") |
67 | } | 67 | } |
68 | 68 | ||
69 | //工作箱调取流程方法-点击我的业务列表时触发 | 69 | //工作箱调取流程方法 |
70 | function getWorkBoxFLow(ywid, lclb) { | 70 | function getWorkBoxFLow(bsm_slsq, businessno) { |
71 | getAcceptFlow(ywid, lclb); | 71 | getAcceptFlow(bsm_slsq, businessno); |
72 | var pageurl; | 72 | var pageurl; |
73 | $.each(business.stepList, function (index, item) { | 73 | $.each(business.stepList, function (index, item) { |
74 | if (item.stepState == 1) { | 74 | if (item.stepState == 1) { |
... | @@ -87,8 +87,8 @@ function setFristStepPageFLow(ywid) { | ... | @@ -87,8 +87,8 @@ function setFristStepPageFLow(ywid) { |
87 | } | 87 | } |
88 | 88 | ||
89 | //设置正在办理页面相关内容 | 89 | //设置正在办理页面相关内容 |
90 | function setAcceptFlow(ywid, lclb) { | 90 | function setAcceptFlow(bsmSlsq, businessNo) { |
91 | getAcceptFlow(ywid, lclb); | 91 | getAcceptFlow(bsmSlsq, businessNo); |
92 | setArticleSteps(); | 92 | setArticleSteps(); |
93 | } | 93 | } |
94 | 94 | ||
... | @@ -102,6 +102,6 @@ function skipNextPage() { | ... | @@ -102,6 +102,6 @@ function skipNextPage() { |
102 | return; | 102 | return; |
103 | } | 103 | } |
104 | }); | 104 | }); |
105 | window.location.href = portal.rootPath + business.stepList[nextStepIndex].pageurl + "?ywid=" + business.ywid + "&lclb=" + business.lclb; | 105 | window.location.href = portal.rootPath + business.stepList[nextStepIndex].pageurl + "?ywid=" + business.ywid + "&businessno=" + business.businessno; |
106 | } | 106 | } |
107 | 107 | ... | ... |
... | @@ -33,7 +33,7 @@ $(function () { | ... | @@ -33,7 +33,7 @@ $(function () { |
33 | _initData() | 33 | _initData() |
34 | // 网上申请 | 34 | // 网上申请 |
35 | $(document).on("click", ".handleBus", function (e) { | 35 | $(document).on("click", ".handleBus", function (e) { |
36 | getInitiateFLow($(this).attr("ywid")); | 36 | getInitiateFLow($(this).attr("ywid"),$(this).attr("businessNo")); |
37 | }) | 37 | }) |
38 | }) | 38 | }) |
39 | 39 | ... | ... |
... | @@ -65,7 +65,7 @@ | ... | @@ -65,7 +65,7 @@ |
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="" | 67 | <button type="submit" class="layui-btn layui-btn-normal submit" lay-submit="" |
68 | lay-filter="demo1">查 | 68 | lay-filter="check">查 |
69 | 询</button> | 69 | 询</button> |
70 | </div> | 70 | </div> |
71 | </div> | 71 | </div> | ... | ... |
... | @@ -104,7 +104,7 @@ | ... | @@ -104,7 +104,7 @@ |
104 | <li> | 104 | <li> |
105 | <p>{{item.classifyList[i].shortName}}</p> | 105 | <p>{{item.classifyList[i].shortName}}</p> |
106 | <div class="button"> | 106 | <div class="button"> |
107 | <button type="button" ywid="{{item.classifyList[i].ywid}}" class="layui-btn handleBus layui-btn-normal layui-btn-sm">立即办理</button> | 107 | <button type="button" ywid="{{item.classifyList[i].ywid}}" businessno="{{item.classifyList[i].businessNo}}" class="layui-btn handleBus layui-btn-normal layui-btn-sm" >立即办理</button> |
108 | {{# if(item.classifyList[i].bsmBszn){ }} | 108 | {{# if(item.classifyList[i].bsmBszn){ }} |
109 | <button type="button" class="layui-btn layui-btn-primary layui-btn-sm">办事指南</button> | 109 | <button type="button" class="layui-btn layui-btn-primary layui-btn-sm">办事指南</button> |
110 | {{# } }} | 110 | {{# } }} |
... | @@ -130,7 +130,7 @@ | ... | @@ -130,7 +130,7 @@ |
130 | <li> | 130 | <li> |
131 | <p>{{item.classifyList[i].shortName}}</p> | 131 | <p>{{item.classifyList[i].shortName}}</p> |
132 | <div class="button"> | 132 | <div class="button"> |
133 | <button type="button" ywid="{{item.classifyList[i].ywid}}" class="layui-btn handleBus layui-btn-normal layui-btn-sm">立即办理</button> | 133 | <button type="button" ywid="{{item.classifyList[i].ywid}}" businessno="{{item.classifyList[i].businessNo}}" class="layui-btn handleBus layui-btn-normal layui-btn-sm">立即办理</button> |
134 | {{# if(item.classifyList[i].bsmBszn){ }} | 134 | {{# if(item.classifyList[i].bsmBszn){ }} |
135 | <button type="button" class="layui-btn layui-btn-primary layui-btn-sm">办事指南</button> | 135 | <button type="button" class="layui-btn layui-btn-primary layui-btn-sm">办事指南</button> |
136 | {{# } }} | 136 | {{# } }} | ... | ... |
-
Please register or sign in to post a comment