95d59206 by 田浩浩

修改流程接口对应的内容

1 parent 1363975f
...@@ -163,20 +163,20 @@ function addCreatSLSQ(jsondata) { ...@@ -163,20 +163,20 @@ function addCreatSLSQ(jsondata) {
163 "bdcqzh": jsondata.bdcqzh, 163 "bdcqzh": jsondata.bdcqzh,
164 "bsmQl": jsondata.bsm_ql, 164 "bsmQl": jsondata.bsm_ql,
165 "ywid": business.ywid, 165 "ywid": business.ywid,
166 "businessno": business.businessno, 166 "businessNo": business.businessno,
167 "userid": "0026609ddc6d2afabaa3c9b0ea3b0ec3" 167 "userid": "0026609ddc6d2afabaa3c9b0ea3b0ec3"
168 }; 168 };
169 $.ajax({ 169 $.ajax({
170 type: "post", //提交方式 170 type: "post", //提交方式
171 headers:{'Content-Type':'application/json;charset=utf8'}, 171 headers:{'Content-Type':'application/json;charset=utf8'},
172 url: portal.api_url + "/portal/FillInformation/allInformation",//路径 172 url: portal.api_url + "/portal/ApplyBusinessService/createFlowBusiness",//路径
173 dataType: "json", 173 dataType: "json",
174 async: false, 174 async: false,
175 data: JSON.stringify(data), 175 data: JSON.stringify(data),
176 //数据,这里使用的是Json格式进行传输 176 //数据,这里使用的是Json格式进行传输
177 success: function (result) {//返回数据根据结果进行相应的处理 177 success: function (result) {//返回数据根据结果进行相应的处理
178 if (result.code == 200) { 178 if (result.code == 200) {
179 skipNextPage(); 179 skipNextPage(result.data.bsmSlsq,business.businessno);
180 } 180 }
181 else{ 181 else{
182 alert(result.message); 182 alert(result.message);
......
...@@ -127,5 +127,5 @@ layui.use(['form', 'common'], function () { ...@@ -127,5 +127,5 @@ layui.use(['form', 'common'], function () {
127 127
128 //下一步事件 128 //下一步事件
129 function skipClick(){ 129 function skipClick(){
130 skipNextPage(); 130 skipNextPage(GetQueryString('bsm_slsq'),GetQueryString('businessno'));
131 } 131 }
......
...@@ -20,17 +20,16 @@ function getBusinessConfig(ywid, businessno) { ...@@ -20,17 +20,16 @@ function getBusinessConfig(ywid, businessno) {
20 20
21 //获取正在办理的流程业务 21 //获取正在办理的流程业务
22 function getAcceptFlow(bsm_slsq, businessno) { 22 function getAcceptFlow(bsm_slsq, businessno) {
23 var data = {
24 "bsmSlsq": bsm_slsq,
25 "businessNo": businessno,
26 };
27 $.ajax({ 23 $.ajax({
28 type: "get", //提交方式 24 type: "get", //提交方式
29 //contentType: 'application/json', 25 //contentType: 'application/json',
30 url: portal.api_url + "/portal/ApplyBusinessService/getApplyFlow",//路径 26 url: portal.api_url + "/portal/ApplyBusinessService/getApplyFlow",//路径
31 dataType: "json", 27 dataType: "json",
32 async: false, 28 async: false,
33 data: data, 29 data: {
30 "bsmSlsq": bsm_slsq,
31 "businessNo": businessno,
32 },
34 //数据,这里使用的是Json格式进行传输 33 //数据,这里使用的是Json格式进行传输
35 success: function (result) {//返回数据根据结果进行相应的处理 34 success: function (result) {//返回数据根据结果进行相应的处理
36 if (result.code == 200 && result.data != null) { 35 if (result.code == 200 && result.data != null) {
...@@ -80,11 +79,11 @@ function getWorkBoxFLow(bsm_slsq, businessno) { ...@@ -80,11 +79,11 @@ function getWorkBoxFLow(bsm_slsq, businessno) {
80 var pageurl; 79 var pageurl;
81 $.each(business.stepList, function (index, item) { 80 $.each(business.stepList, function (index, item) {
82 if (item.stepState == 1) { 81 if (item.stepState == 1) {
83 page = item.pageurl; 82 pageurl = item.pageurl;
84 return; 83 return;
85 } 84 }
86 }); 85 });
87 window.open(portal.rootPath + pageurl + "?bsm_slsq=" + bsm_slsq+ "&businessno=" + businessno, "_self") 86 window.open(portal.rootPath + pageurl + "?bsm_slsq=" + bsm_slsq + "&businessno=" + businessno, "_self")
88 } 87 }
89 88
90 89
...@@ -101,8 +100,7 @@ function setAcceptFlow(bsmSlsq, businessNo) { ...@@ -101,8 +100,7 @@ function setAcceptFlow(bsmSlsq, businessNo) {
101 } 100 }
102 101
103 //跳转下一个环节页面 102 //跳转下一个环节页面
104 function skipNextPage() { 103 function skipNextPage(bsm_slsq, businessno) {
105 //更新当前流程所处环节
106 var nextStepIndex; 104 var nextStepIndex;
107 $.each(business.stepList, function (index, item) { 105 $.each(business.stepList, function (index, item) {
108 if (item.stepState == 1) { 106 if (item.stepState == 1) {
...@@ -110,6 +108,27 @@ function skipNextPage() { ...@@ -110,6 +108,27 @@ function skipNextPage() {
110 return; 108 return;
111 } 109 }
112 }); 110 });
113 window.location.href = portal.rootPath + business.stepList[nextStepIndex].pageurl + "?ywid=" + business.ywid + "&businessno=" + business.businessno; 111 var datajson = {
112 "bsmSlsq": bsm_slsq,
113 "businessNo": businessno,
114 "stepNo": business.stepList[nextStepIndex].stepno
115 };
116 //更新当前流程所处环节
117 $.ajax({
118 type: "post", //提交方式
119 contentType: 'application/json',
120 url: portal.api_url + "/portal/FillInformation/updateStepNo",//路径
121 dataType: "json",
122 async: false,
123 data: JSON.stringify(datajson),
124 //数据,这里使用的是Json格式进行传输
125 success: function (result) {//返回数据根据结果进行相应的处理
126 if (result.code == 200) {
127 window.location.href = portal.rootPath + business.stepList[nextStepIndex].pageurl + "?bsm_slsq=" + bsm_slsq + "&businessno=" + businessno;
128 }
129 }
130 });
114 } 131 }
115 132
133
134
......