| @@ -44,8 +44,8 @@ Page({ | |||||
| ], | ], | ||||
| //事务总表对象 | //事务总表对象 | ||||
| item:{}, | item:{}, | ||||
| detpId:187, | |||||
| itemId:13, | |||||
| detpId:"", | |||||
| itemId:"", | |||||
| active:0, | active:0, | ||||
| result:[], | result:[], | ||||
| show:false, | show:false, | ||||
| @@ -64,7 +64,6 @@ Page({ | |||||
| */ | */ | ||||
| onLoad(options) { | onLoad(options) { | ||||
| this.setData({itemId:options.id,deptId:options.deptId}); | this.setData({itemId:options.id,deptId:options.deptId}); | ||||
| console.log(options); | |||||
| //this.getApprovalItemList(); | //this.getApprovalItemList(); | ||||
| this.groupList(); | this.groupList(); | ||||
| this.townList(); | this.townList(); | ||||
| @@ -252,7 +251,11 @@ Page({ | |||||
| UTIL.httpRequest(API.URL_GET_USERLIST,d,{ | UTIL.httpRequest(API.URL_GET_USERLIST,d,{ | ||||
| success: (res) => { | success: (res) => { | ||||
| if (res.code == API.SUCCESS_CODE) { | if (res.code == API.SUCCESS_CODE) { | ||||
| console.log(res); | |||||
| res.rows.map(rr => { | |||||
| rr.approvalLevel = 3 | |||||
| rr.approvalLevel = 1 | |||||
| rr.approvalOrder = 0 | |||||
| }) | |||||
| _this.setData({towns:res.rows}); | _this.setData({towns:res.rows}); | ||||
| } | } | ||||
| } | } | ||||
| @@ -269,6 +272,11 @@ Page({ | |||||
| UTIL.httpRequest(API.URL_GET_USERLIST,data ,{ | UTIL.httpRequest(API.URL_GET_USERLIST,data ,{ | ||||
| success: (res) => { | success: (res) => { | ||||
| if (res.code == API.SUCCESS_CODE) { | if (res.code == API.SUCCESS_CODE) { | ||||
| res.rows.map(rr => { | |||||
| rr.approvalLevel = 2 | |||||
| rr.approvalLevel = 1 | |||||
| rr.approvalOrder = 0 | |||||
| }) | |||||
| this.setData({groups:res.rows}); | this.setData({groups:res.rows}); | ||||
| } | } | ||||
| } | } | ||||
| @@ -284,6 +292,11 @@ Page({ | |||||
| UTIL.httpRequest(API.URL_GET_USERLIST,data ,{ | UTIL.httpRequest(API.URL_GET_USERLIST,data ,{ | ||||
| success: (res) => { | success: (res) => { | ||||
| if (res.code == API.SUCCESS_CODE) { | if (res.code == API.SUCCESS_CODE) { | ||||
| res.rows.map(rr => { | |||||
| rr.approvalLevel = 1 | |||||
| rr.approvalLevel = 1 | |||||
| rr.approvalOrder = 0 | |||||
| }) | |||||
| this.setData({villages:res.rows}); | this.setData({villages:res.rows}); | ||||
| } | } | ||||
| } | } | ||||
| @@ -322,6 +335,7 @@ Page({ | |||||
| let li = this.data.templateDetailList | let li = this.data.templateDetailList | ||||
| li = li.filter(function(e,i,s){ | li = li.filter(function(e,i,s){ | ||||
| s[i].name = i+1 | s[i].name = i+1 | ||||
| s[i].approvalOrder = i+1 | |||||
| return true | return true | ||||
| }) | }) | ||||
| this.setData({templateDetailList:li}) | this.setData({templateDetailList:li}) | ||||