95d59206 by 田浩浩

修改流程接口对应的内容

1 parent 1363975f
......@@ -163,20 +163,20 @@ function addCreatSLSQ(jsondata) {
"bdcqzh": jsondata.bdcqzh,
"bsmQl": jsondata.bsm_ql,
"ywid": business.ywid,
"businessno": business.businessno,
"businessNo": business.businessno,
"userid": "0026609ddc6d2afabaa3c9b0ea3b0ec3"
};
$.ajax({
type: "post", //提交方式
headers:{'Content-Type':'application/json;charset=utf8'},
url: portal.api_url + "/portal/FillInformation/allInformation",//路径
url: portal.api_url + "/portal/ApplyBusinessService/createFlowBusiness",//路径
dataType: "json",
async: false,
data: JSON.stringify(data),
//数据,这里使用的是Json格式进行传输
success: function (result) {//返回数据根据结果进行相应的处理
if (result.code == 200) {
skipNextPage();
skipNextPage(result.data.bsmSlsq,business.businessno);
}
else{
alert(result.message);
......
......@@ -127,5 +127,5 @@ layui.use(['form', 'common'], function () {
//下一步事件
function skipClick(){
skipNextPage();
skipNextPage(GetQueryString('bsm_slsq'),GetQueryString('businessno'));
}
......
......@@ -20,17 +20,16 @@ function getBusinessConfig(ywid, businessno) {
//获取正在办理的流程业务
function getAcceptFlow(bsm_slsq, businessno) {
var data = {
"bsmSlsq": bsm_slsq,
"businessNo": businessno,
};
$.ajax({
type: "get", //提交方式
//contentType: 'application/json',
url: portal.api_url + "/portal/ApplyBusinessService/getApplyFlow",//路径
dataType: "json",
async: false,
data: data,
data: {
"bsmSlsq": bsm_slsq,
"businessNo": businessno,
},
//数据,这里使用的是Json格式进行传输
success: function (result) {//返回数据根据结果进行相应的处理
if (result.code == 200 && result.data != null) {
......@@ -80,11 +79,11 @@ function getWorkBoxFLow(bsm_slsq, businessno) {
var pageurl;
$.each(business.stepList, function (index, item) {
if (item.stepState == 1) {
page = item.pageurl;
pageurl = item.pageurl;
return;
}
});
window.open(portal.rootPath + pageurl + "?bsm_slsq=" + bsm_slsq+ "&businessno=" + businessno, "_self")
window.open(portal.rootPath + pageurl + "?bsm_slsq=" + bsm_slsq + "&businessno=" + businessno, "_self")
}
......@@ -101,8 +100,7 @@ function setAcceptFlow(bsmSlsq, businessNo) {
}
//跳转下一个环节页面
function skipNextPage() {
//更新当前流程所处环节
function skipNextPage(bsm_slsq, businessno) {
var nextStepIndex;
$.each(business.stepList, function (index, item) {
if (item.stepState == 1) {
......@@ -110,6 +108,27 @@ function skipNextPage() {
return;
}
});
window.location.href = portal.rootPath + business.stepList[nextStepIndex].pageurl + "?ywid=" + business.ywid + "&businessno=" + business.businessno;
var datajson = {
"bsmSlsq": bsm_slsq,
"businessNo": businessno,
"stepNo": business.stepList[nextStepIndex].stepno
};
//更新当前流程所处环节
$.ajax({
type: "post", //提交方式
contentType: 'application/json',
url: portal.api_url + "/portal/FillInformation/updateStepNo",//路径
dataType: "json",
async: false,
data: JSON.stringify(datajson),
//数据,这里使用的是Json格式进行传输
success: function (result) {//返回数据根据结果进行相应的处理
if (result.code == 200) {
window.location.href = portal.rootPath + business.stepList[nextStepIndex].pageurl + "?bsm_slsq=" + bsm_slsq + "&businessno=" + businessno;
}
}
});
}
......