修改信息效验内容
Showing
1 changed file
with
146 additions
and
0 deletions
staticJs/onlineApply/bdcqlCheck.js
0 → 100644
1 | var sqrlb; | ||
2 | $(function () { | ||
3 | layui.use('element', function () { | ||
4 | let element = layui.element; | ||
5 | }); | ||
6 | addTabs('#wssq') | ||
7 | _acceptanceProcess(GetQueryString('ywid')) | ||
8 | // 业务 | ||
9 | layui.use(['form'], function () { | ||
10 | var form = layui.form | ||
11 | //自定义验证规则 | ||
12 | form.verify({ | ||
13 | title: function (value) { | ||
14 | if (value.length == 0) { | ||
15 | return '权利人不能为空'; | ||
16 | } else if (value.length < 2) { | ||
17 | return '权利人至少得2个字符啊'; | ||
18 | } | ||
19 | } | ||
20 | }); | ||
21 | |||
22 | //监听提交 | ||
23 | form.on('submit(submit)', function (data) { | ||
24 | layer.alert(JSON.stringify(data.field), { | ||
25 | title: '最终的提交信息' | ||
26 | }) | ||
27 | return false; | ||
28 | }); | ||
29 | }) | ||
30 | // 结果弹框 | ||
31 | $('.reset').click(function () { | ||
32 | successResult() | ||
33 | // seizureResult() | ||
34 | }) | ||
35 | SetCheckContent(); | ||
36 | }) | ||
37 | function successResult() { | ||
38 | layui.use('layer', function () { | ||
39 | layer.open({ | ||
40 | title: '<p class="system_prompt successInfo">房屋状态:正常</p>', | ||
41 | area: ['370px', '335px'], | ||
42 | scrollbar: false, | ||
43 | btn: ['下一步'], | ||
44 | yes: function () { | ||
45 | window.location.href = "./esf-tbxx.html"; | ||
46 | }, | ||
47 | content: '<ul class="dialog_con">' | ||
48 | + '<li><span>姓名:</span>任超</li>' | ||
49 | + '<li><span>身份证号:</span>610124193335522</li>' | ||
50 | + '<li><span>联系电话:</span>18740677386</li>' | ||
51 | + '<li><span>产权证号:</span>89897987987987</li>' | ||
52 | + '<li><span>坐落:</span>西安市雁塔区南二环西段</li>' | ||
53 | + '<li><span>面积:</span>2000</li>' | ||
54 | + '<li><span>合同备案号:</span>9798798798798</li>' | ||
55 | + '</ul>' | ||
56 | }); | ||
57 | }) | ||
58 | |||
59 | } | ||
60 | |||
61 | function seizureResult() { | ||
62 | layui.use('layer', function () { | ||
63 | layer.open({ | ||
64 | title: '<p class="system_prompt seizureInfo">房屋状态:正常</p>', | ||
65 | area: ['370px', '335px'], | ||
66 | scrollbar: false, | ||
67 | btn: ['下一步'], | ||
68 | content: '<ul class="dialog_con">' | ||
69 | + '<li><span>姓名:</span>任超</li>' | ||
70 | + '<li><span>身份证号:</span>610124193335522</li>' | ||
71 | + '<li><span>联系电话:</span>18740677386</li>' | ||
72 | + '<li><span>产权证号:</span>89897987987987</li>' | ||
73 | + '<li><span>坐落:</span>西安市雁塔区南二环西段</li>' | ||
74 | + '<li><span>面积:</span>2000</li>' | ||
75 | + '<li><span>合同备案号:</span>9798798798798</li>' | ||
76 | + '</ul>' | ||
77 | }); | ||
78 | }) | ||
79 | } | ||
80 | |||
81 | |||
82 | |||
83 | // 获取受理流程信息 | ||
84 | function _acceptanceProcess(ywid) { | ||
85 | $.ajax({ | ||
86 | type: "post", //提交方式 | ||
87 | url: portal.api_url + "/portal/ApplyBusinessService/getBusinessFlow",//路径 | ||
88 | dataType: "json", | ||
89 | data: { | ||
90 | "ywid": ywid | ||
91 | }, | ||
92 | //数据,这里使用的是Json格式进行传输 | ||
93 | success: function (result) {//返回数据根据结果进行相应的处理 | ||
94 | if (result.code == 200 && result.data != null) { | ||
95 | sqrlb = result.data.sqrlb; | ||
96 | console.log(result.data) | ||
97 | $('.name_title h2').text(result.data.shortName) | ||
98 | $('.name_title p').text(result.data.businessName) | ||
99 | data.progressList = result.data.stepList | ||
100 | } | ||
101 | layui.use('laytpl', function () { | ||
102 | laytpl = layui.laytpl; | ||
103 | var getTpl = document.getElementById('progress').innerHTML | ||
104 | , view = document.getElementById('app_progress'); | ||
105 | laytpl(getTpl).render(data, function (html) { | ||
106 | view.innerHTML = html; | ||
107 | }); | ||
108 | |||
109 | layui.use(['element'], function () { | ||
110 | var element = layui.element; | ||
111 | //初始化动态元素,一些动态生成的元素如果不设置初始化,将不会有默认的动态效果 | ||
112 | element.init(); | ||
113 | }); | ||
114 | }); | ||
115 | } | ||
116 | }); | ||
117 | } | ||
118 | |||
119 | var data = { //数据 | ||
120 | 'progressList': [], | ||
121 | }; | ||
122 | |||
123 | |||
124 | //设置查验内容 | ||
125 | function SetCheckContent() { | ||
126 | layui.use(['form', 'upload', 'layer'], function () { | ||
127 | var bdcqzType = $('#bdcqzType'); | ||
128 | var form = layui.form; | ||
129 | if (sqrlb == "1") { | ||
130 | $("#sqrlx").text("权利人名称:"); | ||
131 | // bdcqzType.append(new Option("不动产权证书号", "bdcqzh"));// 下拉菜单里添加元素 | ||
132 | // bdcqzType.append(new Option("不动产权证明号", "bdcqzh"));// 下拉菜单里添加元素 | ||
133 | bdcqzType.append(new Option("合同号", "hth"));// 下拉菜单里添加元素 | ||
134 | // bdcqzType.append(new Option("房产证号", "hth"));// 下拉菜单里添加元素 | ||
135 | // bdcqzType.append(new Option("土地证号", "hth"));// 下拉菜单里添加元素 | ||
136 | } else { | ||
137 | $("#sqrlx").text("义务人名称:"); | ||
138 | bdcqzType.append(new Option("不动产权证书号", "bdcqzh"));// 下拉菜单里添加元素 | ||
139 | // bdcqzType.append(new Option("不动产权证明号", "bdcqzh"));// 下拉菜单里添加元素 | ||
140 | bdcqzType.append(new Option("合同号", "hth"));// 下拉菜单里添加元素 | ||
141 | // bdcqzType.append(new Option("房产证号", "hth"));// 下拉菜单里添加元素 | ||
142 | // bdcqzType.append(new Option("土地证号", "hth"));// 下拉菜单里添加元素 | ||
143 | } | ||
144 | layui.form.render("select"); | ||
145 | }); | ||
146 | } | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
-
Please register or sign in to post a comment