fe6b48d8 by 田浩浩

修改信息效验和信息填写功能方法

1 parent 34eed108
Pipeline #6 for fe6b48d8 failed in 0 seconds
1 var sqrlb; 1
2 $(function () { 2 $(function () {
3 layui.use('element', function () { 3 layui.use('element', function () {
4 let element = layui.element; 4 let element = layui.element;
5 }); 5 });
6 addTabs('#wssq') 6 addTabs('#wssq');
7 _acceptanceProcess(GetQueryString('ywid')) 7 setFristStepPageFLow(GetQueryString('ywid'));
8 // 业务 8 // 业务
9 layui.use(['form'], function () { 9 layui.use(['form'], function () {
10 var form = layui.form 10 var form = layui.form
...@@ -42,7 +42,7 @@ function successResult() { ...@@ -42,7 +42,7 @@ function successResult() {
42 scrollbar: false, 42 scrollbar: false,
43 btn: ['下一步'], 43 btn: ['下一步'],
44 yes: function () { 44 yes: function () {
45 window.location.href = "./esf-tbxx.html"; 45 skipNextPage();
46 }, 46 },
47 content: '<ul class="dialog_con">' 47 content: '<ul class="dialog_con">'
48 + '<li><span>姓名:</span>任超</li>' 48 + '<li><span>姓名:</span>任超</li>'
...@@ -80,53 +80,12 @@ function seizureResult() { ...@@ -80,53 +80,12 @@ function seizureResult() {
80 80
81 81
82 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 //设置查验内容 83 //设置查验内容
125 function SetCheckContent() { 84 function SetCheckContent() {
126 layui.use(['form', 'upload', 'layer'], function () { 85 layui.use(['form', 'upload', 'layer'], function () {
127 var bdcqzType = $('#bdcqzType'); 86 var bdcqzType = $('#bdcqzType');
128 var form = layui.form; 87 var form = layui.form;
129 if (sqrlb == "1") { 88 if (business.sqrlb == "1") {
130 $("#sqrlx").text("权利人名称:"); 89 $("#sqrlx").text("权利人名称:");
131 // bdcqzType.append(new Option("不动产权证书号", "bdcqzh"));// 下拉菜单里添加元素 90 // bdcqzType.append(new Option("不动产权证书号", "bdcqzh"));// 下拉菜单里添加元素
132 // bdcqzType.append(new Option("不动产权证明号", "bdcqzh"));// 下拉菜单里添加元素 91 // bdcqzType.append(new Option("不动产权证明号", "bdcqzh"));// 下拉菜单里添加元素
......
...@@ -2,19 +2,7 @@ layui.use('element', function () { ...@@ -2,19 +2,7 @@ layui.use('element', function () {
2 let element = layui.element; //导航的hover效果、二级菜单等功能,需要依赖element模块 2 let element = layui.element; //导航的hover效果、二级菜单等功能,需要依赖element模块
3 }); 3 });
4 addTabs('#wssq') 4 addTabs('#wssq')
5 layui.use('laytpl', function () { 5 setAcceptFlow(GetQueryString('ywid'),GetQueryString('lclb'));
6 laytpl = layui.laytpl;
7 var getTpl = document.getElementById('progress').innerHTML
8 , view = document.getElementById('app_progress');
9 laytpl(getTpl).render(data, function (html) {
10 view.innerHTML = html;
11 });
12
13 layui.use(['element'], function () {
14 var element = layui.element;
15 element.init();
16 });
17 });
18 // form 表单 6 // form 表单
19 layui.use('form', function () { 7 layui.use('form', function () {
20 var form = layui.form; 8 var form = layui.form;
...@@ -137,46 +125,7 @@ layui.use(['form', 'common'], function () { ...@@ -137,46 +125,7 @@ layui.use(['form', 'common'], function () {
137 // }); 125 // });
138 }); 126 });
139 127
140 var data = { //数据
141 'progressList': [
142 {
143 stepName: "信息效验",
144 stepState: 2 //0:未办理 1:正在办理 2:已办理
145 },
146 {
147 stepName: "填报信息",
148 stepState: 1
149 },
150 {
151 stepName: "完税核税",
152 stepState: 0
153 },
154 {
155 stepName: "身份认证",
156 stepState: 0
157 },
158 {
159 stepName: "资料审核",
160 stepState: 0
161 }
162 ],
163 };
164
165 // 获取受理流程信息
166 function _acceptanceProcess(ywid,lclb=1) {
167 $.ajax({
168 type: "post", //提交方式
169 url: portal.api_url + "/portal/ApplyBusinessService/getApplyFlow",//路径
170 dataType: "json",
171 data: {
172 "ywid": ywid,
173 "lclb": lclb
174 },
175 //数据,这里使用的是Json格式进行传输
176 success: function (result) {//返回数据根据结果进行相应的处理
177 if (result.code == 200 && result.data != null) {
178 console.log(result.data)
179 }
180 }
181 });
182 }
...\ No newline at end of file ...\ No newline at end of file
128 //下一步事件
129 function skipClick(){
130 skipNextPage();
131 }
......
1 var business;
2 //获取创建的流程业务
3 function getCreateFlow(ywid) {
4 $.ajax({
5 type: "post", //提交方式
6 url: portal.api_url + "/portal/ApplyBusinessService/getBusinessFlow",//路径
7 dataType: "json",
8 async: false,
9 data: {
10 "ywid": ywid
11 },
12 //数据,这里使用的是Json格式进行传输
13 success: function (result) {//返回数据根据结果进行相应的处理
14 if (result.code == 200 && result.data != null) {
15 business = result.data;
16 }
17 }
18 });
19 }
20
21 //获取正在办理的流程业务
22 function getAcceptFlow(ywid, lclb) {
23 $.ajax({
24 type: "post", //提交方式
25 url: portal.api_url + "/portal/ApplyBusinessService/getApplyFlow",//路径
26 dataType: "json",
27 async: false,
28 data: {
29 "ywid": ywid,
30 "lclb": lclb
31 },
32 //数据,这里使用的是Json格式进行传输
33 success: function (result) {//返回数据根据结果进行相应的处理
34 if (result.code == 200 && result.data != null) {
35 business = result.data;
36 }
37 }
38 });
39 }
40
41 //设置步骤条信息
42 function setArticleSteps() {
43 $('.name_title h2').text(business.shortName);
44 var ArticleContent = $("#app_progress");
45 $.each(business.stepList, function (index, item) {
46 switch (item.stepState) {
47 case 0:
48 ArticleContent.append('<li class="item_proress"><p></p><h5>' + item.stepname + '</h5></li>');
49 ArticleContent.append('<li class="layui-progress"><div class="layui-progress-bar" lay-percent="0%"></div></li>');
50 break;
51 case 1:
52 ArticleContent.append('<li class="item_proress"><p class="activeing"></p><h5 class="activeingtext">' + item.stepname + '</h5></li>');
53 ArticleContent.append('<li class="layui-progress"><div class="layui-progress-bar" lay-percent="50%"></div></li>');
54 break;
55 case 2:
56 ArticleContent.append('<li class="item_proress"><p class="active"></p><h5>' + item.stepname + '</h5></li>');
57 ArticleContent.append('<li class="layui-progress"><div class="layui-progress-bar" lay-percent="100%"></div></li>');
58 break;
59 }
60 });
61 }
62
63 //获取业务发起流程方法
64 function getInitiateFLow(ywid) {
65 getCreateFlow(ywid);
66 window.open(portal.rootPath + business.stepList[0].pageurl + "?ywid=" + ywid, "_self")
67 }
68
69 //工作箱调取流程方法
70 function getWorkBoxFLow(ywid, lclb) {
71 getAcceptFlow(ywid, lclb);
72 var pageurl;
73 $.each(business.stepList, function (index, item) {
74 if (item.stepState == 1) {
75 page = item.pageurl;
76 return;
77 }
78 });
79 window.open(portal.rootPath + pageurl + "?ywid=" + ywid, "_self")
80 }
81
82
83 //设置首环节页面相关内容
84 function setFristStepPageFLow(ywid) {
85 getCreateFlow(ywid);
86 setArticleSteps();
87 }
88
89 //设置正在办理页面相关内容
90 function setAcceptFlow(ywid, lclb) {
91 getAcceptFlow(ywid, lclb);
92 setArticleSteps();
93 }
94
95 //跳转下一个环节页面
96 function skipNextPage() {
97 //更新当前流程所处环节
98 var nextStepIndex;
99 $.each(business.stepList, function (index, item) {
100 if (item.stepState == 1) {
101 nextStepIndex = index + 1;
102 return;
103 }
104 });
105 window.location.href = portal.rootPath + business.stepList[nextStepIndex].pageurl + "?ywid=" + business.ywid + "&lclb=" + business.lclb;
106 }
107
...@@ -33,8 +33,7 @@ $(function () { ...@@ -33,8 +33,7 @@ $(function () {
33 _initData() 33 _initData()
34 // 网上申请 34 // 网上申请
35 $(document).on("click", ".handleBus", function (e) { 35 $(document).on("click", ".handleBus", function (e) {
36 console.log($(this).attr("ywid")) 36 getInitiateFLow($(this).attr("ywid"));
37 _acceptanceProcess($(this).attr("ywid"))
38 }) 37 })
39 }) 38 })
40 39
...@@ -96,24 +95,6 @@ function _businessList(districtId) { ...@@ -96,24 +95,6 @@ function _businessList(districtId) {
96 }); 95 });
97 } 96 }
98 97
99 // 获取受理流程信息
100 function _acceptanceProcess(ywid) {
101 $.ajax({
102 type: "post", //提交方式
103 url: portal.api_url + "/portal/ApplyBusinessService/getBusinessFlow",//路径
104 dataType: "json",
105 data: {
106 "ywid": ywid
107 },
108 //数据,这里使用的是Json格式进行传输
109 success: function (result) {//返回数据根据结果进行相应的处理
110 if (result.code == 200 && result.data != null) {
111 console.log(result.data)
112 window.open(portal.rootPath + result.data.stepList[0].pageurl + "?ywid=" + ywid + "&stepno="+ result.data.stepList[0].stepno, "_self")
113 }
114 }
115 });
116 }
117 98
118 var data = { //数据 99 var data = { //数据
119 "immediateList": [], 100 "immediateList": [],
......
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
25 <div class="content_box"> 25 <div class="content_box">
26 <div class="name_title"> 26 <div class="name_title">
27 <h2>商品房</h2> 27 <h2>商品房</h2>
28 <p>转移登记</p> 28 <!-- <p>转移登记</p> -->
29 </div> 29 </div>
30 <div class="content_area"> 30 <div class="content_area">
31 <div class="progressBar"> 31 <div class="progressBar">
...@@ -75,42 +75,7 @@ ...@@ -75,42 +75,7 @@
75 </div> 75 </div>
76 </body> 76 </body>
77 <script type="text/javascript" src="../../staticJs/common.js"></script> 77 <script type="text/javascript" src="../../staticJs/common.js"></script>
78 <script type="text/javascript" src="../../staticJs/down.js"></script> 78 <script type="text/javascript" src="../../staticJs/onlineApply/workFlow.js"></script>
79 <script type="text/javascript" src="../../staticJs/onlineApply/bdcqlCheck.js"></script> 79 <script type="text/javascript" src="../../staticJs/onlineApply/bdcqlCheck.js"></script>
80 <script id="progress" type="text/html"> 80 <script type="text/javascript" src="../../staticJs/down.js"></script>
81 {{# layui.each(d.progressList, function(index, item){ }}
82 {{# if(item.stepState==2){ }}
83 <li class="item_proress">
84 <p class="active"></p>
85 <h5>{{item.stepname}}</h5>
86 </li>
87 <li class="layui-progress">
88 <div class="layui-progress-bar" lay-percent="100%"></div>
89 </li>
90 {{# } }}
91 {{# if(item.stepState==1){ }}
92 <li class="item_proress">
93 <p class="activeing"></p>
94 <h5 class="activeingtext">{{item.stepname}}</h5>
95 </li>
96 {{# if(index!=(d.progressList.length-1)){ }}
97 <li class="layui-progress">
98 <div class="layui-progress-bar" lay-percent="50%"></div>
99 </li>
100 {{# } }}
101 {{# } }}
102 {{# if(item.stepState==0){ }}
103 <li class="item_proress">
104 <p></p>
105 <h5>{{item.stepname}}</h5>
106 </li>
107 {{# if(index!=(d.progressList.length-1)){ }}
108 <li class="layui-progress">
109 <div class="layui-progress-bar" lay-percent="0%"></div>
110 </li>
111 {{# } }}
112 {{# } }}
113 {{# }); }}
114 </script>
115
116 </html> 81 </html>
...\ No newline at end of file ...\ No newline at end of file
......
...@@ -7,17 +7,17 @@ ...@@ -7,17 +7,17 @@
7 </style> 7 </style>
8 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 8 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
9 <title>立即办理-填报信息</title> 9 <title>立即办理-填报信息</title>
10 <script type="text/javascript" src="../staticJs/head.js"></script> 10 <script type="text/javascript" src="../../staticJs/head.js"></script>
11 <link rel="stylesheet" type="text/css" href="../staticCss/yysq.css"> 11 <link rel="stylesheet" type="text/css" href="../../staticCss/yysq.css">
12 <link rel="stylesheet" type="text/css" href="../staticCss/progress.css"> 12 <link rel="stylesheet" type="text/css" href="../../staticCss/progress.css">
13 </head> 13 </head>
14 14
15 <body> 15 <body>
16 <div class="navigation_crumbs"> 16 <div class="navigation_crumbs">
17 <div class="contentBox"> 17 <div class="contentBox">
18 <span class="layui-breadcrumb"> 18 <span class="layui-breadcrumb">
19 <a href="../../index.html">首页</a> 19 <a href="../../../index.html">首页</a>
20 <a href="./wssq.html">网上申请</a> 20 <a href="../../wssq.html">网上申请</a>
21 <a><cite>填报信息</cite></a> 21 <a><cite>填报信息</cite></a>
22 </span> 22 </span>
23 </div> 23 </div>
...@@ -118,7 +118,7 @@ ...@@ -118,7 +118,7 @@
118 <div class="fileSpan vm"> 118 <div class="fileSpan vm">
119 <input type="file" multiple id="fileInput" /> 119 <input type="file" multiple id="fileInput" />
120 <div class="file_name"> 120 <div class="file_name">
121 <img class="update" src="../staticImages/update.png"> 121 <img class="update" src="../../staticImages/update.png">
122 <p class="updatetext">点击文件上传</p> 122 <p class="updatetext">点击文件上传</p>
123 </div> 123 </div>
124 <div class="fileListName"></div> 124 <div class="fileListName"></div>
...@@ -132,7 +132,7 @@ ...@@ -132,7 +132,7 @@
132 <div class="fileSpan vm"> 132 <div class="fileSpan vm">
133 <input type="file" multiple id="fileInput1" /> 133 <input type="file" multiple id="fileInput1" />
134 <div class="file_name"> 134 <div class="file_name">
135 <img class="update" src="../staticImages/update.png"> 135 <img class="update" src="../../staticImages/update.png">
136 <p class="updatetext">点击文件上传</p> 136 <p class="updatetext">点击文件上传</p>
137 </div> 137 </div>
138 <div class="fileListName1"></div> 138 <div class="fileListName1"></div>
...@@ -147,7 +147,7 @@ ...@@ -147,7 +147,7 @@
147 <div class="fileSpan vm"> 147 <div class="fileSpan vm">
148 <input type="file" multiple id="fileInput3" /> 148 <input type="file" multiple id="fileInput3" />
149 <div class="file_name"> 149 <div class="file_name">
150 <img class="update" src="../staticImages/update.png"> 150 <img class="update" src="../../staticImages/update.png">
151 <p class="updatetext">点击文件上传</p> 151 <p class="updatetext">点击文件上传</p>
152 </div> 152 </div>
153 <div class="fileListName3"></div> 153 <div class="fileListName3"></div>
...@@ -158,59 +158,22 @@ ...@@ -158,59 +158,22 @@
158 </div> 158 </div>
159 </div> 159 </div>
160 <div class="next_button submitButton"> 160 <div class="next_button submitButton">
161 <button type="button" class="layui-btn layui-btn-normal"> 161 <button type="button" class="layui-btn layui-btn-normal" onclick="skipClick()">
162 <a href="./wshs.html"> 162 下一步
163 下一步
164 </a>
165 </button> 163 </button>
166 </div> 164 </div>
167 </div> 165 </div>
168 </div> 166 </div>
169 </body> 167 </body>
170 <script type="text/javascript" src="../staticJs/common.js"></script> 168 <script type="text/javascript" src="../../staticJs/common.js"></script>
171 <script type="text/javascript" src="../staticJs/down.js"></script> 169 <script type="text/javascript" src="../../staticJs/onlineApply/workFlow.js"></script>
172 <script type="text/javascript" src="../staticJs/esf-tbxx.js"></script> 170 <script type="text/javascript" src="../../staticJs/onlineApply/houseFill.js"></script>
173 <script type="text/javascript" src="../staticJs/imageUpdate.js"></script> 171 <script type="text/javascript" src="../../staticJs/imageUpdate.js"></script>
174 <script type="text/javascript" src="../staticJs/imageUpdate1.js"></script> 172 <script type="text/javascript" src="../../staticJs/imageUpdate1.js"></script>
175 <script type="text/javascript" src="../staticJs/imageUpdate3.js"></script> 173 <script type="text/javascript" src="../../staticJs/imageUpdate3.js"></script>
176 <script type="text/javascript" src="../staticJs/city-picker.js"></script> 174 <script type="text/javascript" src="../../staticJs/city-picker.js"></script>
175 <script type="text/javascript" src="../../staticJs/down.js"></script>
177 <script type="text/html" id="barDemo"> 176 <script type="text/html" id="barDemo">
178 <i class="layui-icon layui-icon-reduce-circle" lay-event="edit"></i> 177 <i class="layui-icon layui-icon-reduce-circle" lay-event="edit"></i>
179 </script> 178 </script>
180 <script id="progress" type="text/html">
181 {{# layui.each(d.progressList, function(index, item){ }}
182 {{# if(item.stepState==2){ }}
183 <li class="item_proress">
184 <p class="active"></p>
185 <h5>{{item.stepName}}</h5>
186 </li>
187 <li class="layui-progress">
188 <div class="layui-progress-bar" lay-percent="100%"></div>
189 </li>
190 {{# } }}
191 {{# if(item.stepState==1){ }}
192 <li class="item_proress">
193 <p class="activeing"></p>
194 <h5 class="activeingtext">{{item.stepName}}</h5>
195 </li>
196 {{# if(index!=(d.progressList.length-1)){ }}
197 <li class="layui-progress">
198 <div class="layui-progress-bar" lay-percent="50%"></div>
199 </li>
200 {{# } }}
201 {{# } }}
202 {{# if(item.stepState==0){ }}
203 <li class="item_proress">
204 <p></p>
205 <h5>{{item.stepName}}</h5>
206 </li>
207 {{# if(index!=(d.progressList.length-1)){ }}
208 <li class="layui-progress">
209 <div class="layui-progress-bar" lay-percent="0%"></div>
210 </li>
211 {{# } }}
212 {{# } }}
213 {{# }); }}
214 </script>
215
216 </html> 179 </html>
...\ No newline at end of file ...\ No newline at end of file
......
...@@ -85,6 +85,7 @@ ...@@ -85,6 +85,7 @@
85 </body> 85 </body>
86 <script type="text/javascript" src="../staticJs/down.js"></script> 86 <script type="text/javascript" src="../staticJs/down.js"></script>
87 <script type="text/javascript" src="../staticJs/common.js"></script> 87 <script type="text/javascript" src="../staticJs/common.js"></script>
88 <script type="text/javascript" src="../staticJs/onlineApply/workFlow.js"></script>
88 <script type="text/javascript" src="../staticJs/city-picker.js"></script> 89 <script type="text/javascript" src="../staticJs/city-picker.js"></script>
89 <script type="text/javascript" src="../staticJs/wssq.js"></script> 90 <script type="text/javascript" src="../staticJs/wssq.js"></script>
90 <!-- 及时办结 --> 91 <!-- 及时办结 -->
......