468b9522 by 田浩浩

修改获取正在办理流程参数bug

1 parent e7379727
...@@ -2,7 +2,7 @@ layui.use('element', function () { ...@@ -2,7 +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 setAcceptFlow(GetQueryString('ywid'),GetQueryString('lclb')); 5 setAcceptFlow(GetQueryString('bsm_slsq'),GetQueryString('businessno'));
6 // form 表单 6 // form 表单
7 layui.use('form', function () { 7 layui.use('form', function () {
8 var form = layui.form; 8 var form = layui.form;
......
1 var business; 1 var business;
2 //获取创建的流程业务 2 //获取业务配置信息
3 function getCreateFlow(ywid, businessno) { 3 function getBusinessConfig(ywid, businessno) {
4 $.ajax({ 4 $.ajax({
5 type: "post", //提交方式 5 type: "post", //提交方式
6 url: portal.api_url + "/portal/ApplyBusinessService/getBusinessFlow",//路径 6 url: portal.api_url + "/portal/ApplyBusinessService/getBusinessFlow",//路径
...@@ -22,15 +22,15 @@ function getCreateFlow(ywid, businessno) { ...@@ -22,15 +22,15 @@ function getCreateFlow(ywid, businessno) {
22 function getAcceptFlow(bsm_slsq, businessno) { 22 function getAcceptFlow(bsm_slsq, businessno) {
23 var data = { 23 var data = {
24 "bsmSlsq": bsm_slsq, 24 "bsmSlsq": bsm_slsq,
25 "businessNo": businessno 25 "businessNo": businessno,
26 }; 26 };
27 $.ajax({ 27 $.ajax({
28 type: "post", //提交方式 28 type: "get", //提交方式
29 contentType: 'application/json', 29 //contentType: 'application/json',
30 url: portal.api_url + "/portal/ApplyBusinessService/getApplyFlow",//路径 30 url: portal.api_url + "/portal/ApplyBusinessService/getApplyFlow",//路径
31 dataType: "json", 31 dataType: "json",
32 async: false, 32 async: false,
33 data: JSON.stringify(data), 33 data: data,
34 //数据,这里使用的是Json格式进行传输 34 //数据,这里使用的是Json格式进行传输
35 success: function (result) {//返回数据根据结果进行相应的处理 35 success: function (result) {//返回数据根据结果进行相应的处理
36 if (result.code == 200 && result.data != null) { 36 if (result.code == 200 && result.data != null) {
...@@ -70,7 +70,7 @@ function setArticleSteps() { ...@@ -70,7 +70,7 @@ function setArticleSteps() {
70 70
71 //获取业务发起流程方法 71 //获取业务发起流程方法
72 function getInitiateFLow(ywid, businessno) { 72 function getInitiateFLow(ywid, businessno) {
73 getCreateFlow(ywid, businessno); 73 getBusinessConfig(ywid, businessno);
74 window.open(portal.rootPath + business.stepList[0].pageurl + "?ywid=" + ywid + "&businessno=" + businessno, "_self") 74 window.open(portal.rootPath + business.stepList[0].pageurl + "?ywid=" + ywid + "&businessno=" + businessno, "_self")
75 } 75 }
76 76
...@@ -90,7 +90,7 @@ function getWorkBoxFLow(bsm_slsq, businessno) { ...@@ -90,7 +90,7 @@ function getWorkBoxFLow(bsm_slsq, businessno) {
90 90
91 //设置首环节页面相关内容 91 //设置首环节页面相关内容
92 function setFristStepPageFLow(ywid) { 92 function setFristStepPageFLow(ywid) {
93 getCreateFlow(ywid); 93 getBusinessConfig(ywid);
94 setArticleSteps(); 94 setArticleSteps();
95 } 95 }
96 96
......