fe6b48d8 by 田浩浩

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

1 parent 34eed108
Pipeline #6 for fe6b48d8 failed in 0 seconds
var sqrlb;
$(function () {
layui.use('element', function () {
let element = layui.element;
});
addTabs('#wssq')
_acceptanceProcess(GetQueryString('ywid'))
addTabs('#wssq');
setFristStepPageFLow(GetQueryString('ywid'));
// 业务
layui.use(['form'], function () {
var form = layui.form
......@@ -42,7 +42,7 @@ function successResult() {
scrollbar: false,
btn: ['下一步'],
yes: function () {
window.location.href = "./esf-tbxx.html";
skipNextPage();
},
content: '<ul class="dialog_con">'
+ '<li><span>姓名:</span>任超</li>'
......@@ -80,53 +80,12 @@ function seizureResult() {
// 获取受理流程信息
function _acceptanceProcess(ywid) {
$.ajax({
type: "post", //提交方式
url: portal.api_url + "/portal/ApplyBusinessService/getBusinessFlow",//路径
dataType: "json",
data: {
"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)
data.progressList = result.data.stepList
}
layui.use('laytpl', function () {
laytpl = layui.laytpl;
var getTpl = document.getElementById('progress').innerHTML
, view = document.getElementById('app_progress');
laytpl(getTpl).render(data, function (html) {
view.innerHTML = html;
});
layui.use(['element'], function () {
var element = layui.element;
//初始化动态元素,一些动态生成的元素如果不设置初始化,将不会有默认的动态效果
element.init();
});
});
}
});
}
var data = { //数据
'progressList': [],
};
//设置查验内容
function SetCheckContent() {
layui.use(['form', 'upload', 'layer'], function () {
var bdcqzType = $('#bdcqzType');
var form = layui.form;
if (sqrlb == "1") {
if (business.sqrlb == "1") {
$("#sqrlx").text("权利人名称:");
// bdcqzType.append(new Option("不动产权证书号", "bdcqzh"));// 下拉菜单里添加元素
// bdcqzType.append(new Option("不动产权证明号", "bdcqzh"));// 下拉菜单里添加元素
......
......@@ -2,19 +2,7 @@ layui.use('element', function () {
let element = layui.element; //导航的hover效果、二级菜单等功能,需要依赖element模块
});
addTabs('#wssq')
layui.use('laytpl', function () {
laytpl = layui.laytpl;
var getTpl = document.getElementById('progress').innerHTML
, view = document.getElementById('app_progress');
laytpl(getTpl).render(data, function (html) {
view.innerHTML = html;
});
layui.use(['element'], function () {
var element = layui.element;
element.init();
});
});
setAcceptFlow(GetQueryString('ywid'),GetQueryString('lclb'));
// form 表单
layui.use('form', function () {
var form = layui.form;
......@@ -137,46 +125,7 @@ layui.use(['form', 'common'], function () {
// });
});
var data = { //数据
'progressList': [
{
stepName: "信息效验",
stepState: 2 //0:未办理 1:正在办理 2:已办理
},
{
stepName: "填报信息",
stepState: 1
},
{
stepName: "完税核税",
stepState: 0
},
{
stepName: "身份认证",
stepState: 0
},
{
stepName: "资料审核",
stepState: 0
}
],
};
// 获取受理流程信息
function _acceptanceProcess(ywid,lclb=1) {
$.ajax({
type: "post", //提交方式
url: portal.api_url + "/portal/ApplyBusinessService/getApplyFlow",//路径
dataType: "json",
data: {
"ywid": ywid,
"lclb": lclb
},
//数据,这里使用的是Json格式进行传输
success: function (result) {//返回数据根据结果进行相应的处理
if (result.code == 200 && result.data != null) {
console.log(result.data)
}
}
});
}
\ No newline at end of file
//下一步事件
function skipClick(){
skipNextPage();
}
......
var business;
//获取创建的流程业务
function getCreateFlow(ywid) {
$.ajax({
type: "post", //提交方式
url: portal.api_url + "/portal/ApplyBusinessService/getBusinessFlow",//路径
dataType: "json",
async: false,
data: {
"ywid": ywid
},
//数据,这里使用的是Json格式进行传输
success: function (result) {//返回数据根据结果进行相应的处理
if (result.code == 200 && result.data != null) {
business = result.data;
}
}
});
}
//获取正在办理的流程业务
function getAcceptFlow(ywid, lclb) {
$.ajax({
type: "post", //提交方式
url: portal.api_url + "/portal/ApplyBusinessService/getApplyFlow",//路径
dataType: "json",
async: false,
data: {
"ywid": ywid,
"lclb": lclb
},
//数据,这里使用的是Json格式进行传输
success: function (result) {//返回数据根据结果进行相应的处理
if (result.code == 200 && result.data != null) {
business = result.data;
}
}
});
}
//设置步骤条信息
function setArticleSteps() {
$('.name_title h2').text(business.shortName);
var ArticleContent = $("#app_progress");
$.each(business.stepList, function (index, item) {
switch (item.stepState) {
case 0:
ArticleContent.append('<li class="item_proress"><p></p><h5>' + item.stepname + '</h5></li>');
ArticleContent.append('<li class="layui-progress"><div class="layui-progress-bar" lay-percent="0%"></div></li>');
break;
case 1:
ArticleContent.append('<li class="item_proress"><p class="activeing"></p><h5 class="activeingtext">' + item.stepname + '</h5></li>');
ArticleContent.append('<li class="layui-progress"><div class="layui-progress-bar" lay-percent="50%"></div></li>');
break;
case 2:
ArticleContent.append('<li class="item_proress"><p class="active"></p><h5>' + item.stepname + '</h5></li>');
ArticleContent.append('<li class="layui-progress"><div class="layui-progress-bar" lay-percent="100%"></div></li>');
break;
}
});
}
//获取业务发起流程方法
function getInitiateFLow(ywid) {
getCreateFlow(ywid);
window.open(portal.rootPath + business.stepList[0].pageurl + "?ywid=" + ywid, "_self")
}
//工作箱调取流程方法
function getWorkBoxFLow(ywid, lclb) {
getAcceptFlow(ywid, lclb);
var pageurl;
$.each(business.stepList, function (index, item) {
if (item.stepState == 1) {
page = item.pageurl;
return;
}
});
window.open(portal.rootPath + pageurl + "?ywid=" + ywid, "_self")
}
//设置首环节页面相关内容
function setFristStepPageFLow(ywid) {
getCreateFlow(ywid);
setArticleSteps();
}
//设置正在办理页面相关内容
function setAcceptFlow(ywid, lclb) {
getAcceptFlow(ywid, lclb);
setArticleSteps();
}
//跳转下一个环节页面
function skipNextPage() {
//更新当前流程所处环节
var nextStepIndex;
$.each(business.stepList, function (index, item) {
if (item.stepState == 1) {
nextStepIndex = index + 1;
return;
}
});
window.location.href = portal.rootPath + business.stepList[nextStepIndex].pageurl + "?ywid=" + business.ywid + "&lclb=" + business.lclb;
}
......@@ -33,8 +33,7 @@ $(function () {
_initData()
// 网上申请
$(document).on("click", ".handleBus", function (e) {
console.log($(this).attr("ywid"))
_acceptanceProcess($(this).attr("ywid"))
getInitiateFLow($(this).attr("ywid"));
})
})
......@@ -96,24 +95,6 @@ function _businessList(districtId) {
});
}
// 获取受理流程信息
function _acceptanceProcess(ywid) {
$.ajax({
type: "post", //提交方式
url: portal.api_url + "/portal/ApplyBusinessService/getBusinessFlow",//路径
dataType: "json",
data: {
"ywid": ywid
},
//数据,这里使用的是Json格式进行传输
success: function (result) {//返回数据根据结果进行相应的处理
if (result.code == 200 && result.data != null) {
console.log(result.data)
window.open(portal.rootPath + result.data.stepList[0].pageurl + "?ywid=" + ywid + "&stepno="+ result.data.stepList[0].stepno, "_self")
}
}
});
}
var data = { //数据
"immediateList": [],
......
......@@ -25,7 +25,7 @@
<div class="content_box">
<div class="name_title">
<h2>商品房</h2>
<p>转移登记</p>
<!-- <p>转移登记</p> -->
</div>
<div class="content_area">
<div class="progressBar">
......@@ -75,42 +75,7 @@
</div>
</body>
<script type="text/javascript" src="../../staticJs/common.js"></script>
<script type="text/javascript" src="../../staticJs/down.js"></script>
<script type="text/javascript" src="../../staticJs/onlineApply/workFlow.js"></script>
<script type="text/javascript" src="../../staticJs/onlineApply/bdcqlCheck.js"></script>
<script id="progress" type="text/html">
{{# layui.each(d.progressList, function(index, item){ }}
{{# if(item.stepState==2){ }}
<li class="item_proress">
<p class="active"></p>
<h5>{{item.stepname}}</h5>
</li>
<li class="layui-progress">
<div class="layui-progress-bar" lay-percent="100%"></div>
</li>
{{# } }}
{{# if(item.stepState==1){ }}
<li class="item_proress">
<p class="activeing"></p>
<h5 class="activeingtext">{{item.stepname}}</h5>
</li>
{{# if(index!=(d.progressList.length-1)){ }}
<li class="layui-progress">
<div class="layui-progress-bar" lay-percent="50%"></div>
</li>
{{# } }}
{{# } }}
{{# if(item.stepState==0){ }}
<li class="item_proress">
<p></p>
<h5>{{item.stepname}}</h5>
</li>
{{# if(index!=(d.progressList.length-1)){ }}
<li class="layui-progress">
<div class="layui-progress-bar" lay-percent="0%"></div>
</li>
{{# } }}
{{# } }}
{{# }); }}
</script>
<script type="text/javascript" src="../../staticJs/down.js"></script>
</html>
\ No newline at end of file
......
......@@ -7,17 +7,17 @@
</style>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>立即办理-填报信息</title>
<script type="text/javascript" src="../staticJs/head.js"></script>
<link rel="stylesheet" type="text/css" href="../staticCss/yysq.css">
<link rel="stylesheet" type="text/css" href="../staticCss/progress.css">
<script type="text/javascript" src="../../staticJs/head.js"></script>
<link rel="stylesheet" type="text/css" href="../../staticCss/yysq.css">
<link rel="stylesheet" type="text/css" href="../../staticCss/progress.css">
</head>
<body>
<div class="navigation_crumbs">
<div class="contentBox">
<span class="layui-breadcrumb">
<a href="../../index.html">首页</a>
<a href="./wssq.html">网上申请</a>
<a href="../../../index.html">首页</a>
<a href="../../wssq.html">网上申请</a>
<a><cite>填报信息</cite></a>
</span>
</div>
......@@ -118,7 +118,7 @@
<div class="fileSpan vm">
<input type="file" multiple id="fileInput" />
<div class="file_name">
<img class="update" src="../staticImages/update.png">
<img class="update" src="../../staticImages/update.png">
<p class="updatetext">点击文件上传</p>
</div>
<div class="fileListName"></div>
......@@ -132,7 +132,7 @@
<div class="fileSpan vm">
<input type="file" multiple id="fileInput1" />
<div class="file_name">
<img class="update" src="../staticImages/update.png">
<img class="update" src="../../staticImages/update.png">
<p class="updatetext">点击文件上传</p>
</div>
<div class="fileListName1"></div>
......@@ -147,7 +147,7 @@
<div class="fileSpan vm">
<input type="file" multiple id="fileInput3" />
<div class="file_name">
<img class="update" src="../staticImages/update.png">
<img class="update" src="../../staticImages/update.png">
<p class="updatetext">点击文件上传</p>
</div>
<div class="fileListName3"></div>
......@@ -158,59 +158,22 @@
</div>
</div>
<div class="next_button submitButton">
<button type="button" class="layui-btn layui-btn-normal">
<a href="./wshs.html">
下一步
</a>
<button type="button" class="layui-btn layui-btn-normal" onclick="skipClick()">
下一步
</button>
</div>
</div>
</div>
</body>
<script type="text/javascript" src="../staticJs/common.js"></script>
<script type="text/javascript" src="../staticJs/down.js"></script>
<script type="text/javascript" src="../staticJs/esf-tbxx.js"></script>
<script type="text/javascript" src="../staticJs/imageUpdate.js"></script>
<script type="text/javascript" src="../staticJs/imageUpdate1.js"></script>
<script type="text/javascript" src="../staticJs/imageUpdate3.js"></script>
<script type="text/javascript" src="../staticJs/city-picker.js"></script>
<script type="text/javascript" src="../../staticJs/common.js"></script>
<script type="text/javascript" src="../../staticJs/onlineApply/workFlow.js"></script>
<script type="text/javascript" src="../../staticJs/onlineApply/houseFill.js"></script>
<script type="text/javascript" src="../../staticJs/imageUpdate.js"></script>
<script type="text/javascript" src="../../staticJs/imageUpdate1.js"></script>
<script type="text/javascript" src="../../staticJs/imageUpdate3.js"></script>
<script type="text/javascript" src="../../staticJs/city-picker.js"></script>
<script type="text/javascript" src="../../staticJs/down.js"></script>
<script type="text/html" id="barDemo">
<i class="layui-icon layui-icon-reduce-circle" lay-event="edit"></i>
</script>
<script id="progress" type="text/html">
{{# layui.each(d.progressList, function(index, item){ }}
{{# if(item.stepState==2){ }}
<li class="item_proress">
<p class="active"></p>
<h5>{{item.stepName}}</h5>
</li>
<li class="layui-progress">
<div class="layui-progress-bar" lay-percent="100%"></div>
</li>
{{# } }}
{{# if(item.stepState==1){ }}
<li class="item_proress">
<p class="activeing"></p>
<h5 class="activeingtext">{{item.stepName}}</h5>
</li>
{{# if(index!=(d.progressList.length-1)){ }}
<li class="layui-progress">
<div class="layui-progress-bar" lay-percent="50%"></div>
</li>
{{# } }}
{{# } }}
{{# if(item.stepState==0){ }}
<li class="item_proress">
<p></p>
<h5>{{item.stepName}}</h5>
</li>
{{# if(index!=(d.progressList.length-1)){ }}
<li class="layui-progress">
<div class="layui-progress-bar" lay-percent="0%"></div>
</li>
{{# } }}
{{# } }}
{{# }); }}
</script>
</html>
\ No newline at end of file
......
......@@ -85,6 +85,7 @@
</body>
<script type="text/javascript" src="../staticJs/down.js"></script>
<script type="text/javascript" src="../staticJs/common.js"></script>
<script type="text/javascript" src="../staticJs/onlineApply/workFlow.js"></script>
<script type="text/javascript" src="../staticJs/city-picker.js"></script>
<script type="text/javascript" src="../staticJs/wssq.js"></script>
<!-- 及时办结 -->
......