Conflicts: env/env.jsmaster
@@ -44,6 +44,7 @@ Page({ | |||||
], | ], | ||||
//事务总表对象 | //事务总表对象 | ||||
item:{}, | item:{}, | ||||
detpId:187, | |||||
itemId:13, | itemId:13, | ||||
active:0, | active:0, | ||||
result:[], | result:[], | ||||
@@ -62,8 +63,8 @@ Page({ | |||||
* 生命周期函数--监听页面加载 | * 生命周期函数--监听页面加载 | ||||
*/ | */ | ||||
onLoad(options) { | onLoad(options) { | ||||
this.setData({itemId:options.id}); | |||||
console.log(options) | |||||
this.setData({itemId:options.id,deptId:options.deptId}); | |||||
console.log(options); | |||||
//this.getApprovalItemList(); | //this.getApprovalItemList(); | ||||
this.groupList(); | this.groupList(); | ||||
this.townList(); | this.townList(); | ||||
@@ -87,7 +88,8 @@ Page({ | |||||
let d = { | let d = { | ||||
templateId : _this.data.item.templateId, | templateId : _this.data.item.templateId, | ||||
orderByColumn:"id", | orderByColumn:"id", | ||||
isAsc:"asc" | |||||
isAsc:"asc", | |||||
method:"GET" | |||||
} | } | ||||
UTIL.httpRequest(API.URL_GET_TEMPLATEDETAIL, d, { | UTIL.httpRequest(API.URL_GET_TEMPLATEDETAIL, d, { | ||||
success: (r) => { | success: (r) => { | ||||
@@ -168,7 +170,8 @@ Page({ | |||||
let data={ | let data={ | ||||
dataType:0, | dataType:0, | ||||
pageNum:1, | pageNum:1, | ||||
pageSize:50 | |||||
pageSize:50, | |||||
method:"GET" | |||||
} | } | ||||
UTIL.httpRequest(API.URL_GET_TEMPLATELIST, data, { | UTIL.httpRequest(API.URL_GET_TEMPLATELIST, data, { | ||||
success: (res) => { | success: (res) => { | ||||
@@ -178,7 +181,8 @@ Page({ | |||||
let d = { | let d = { | ||||
templateId : res.rows[0].id, | templateId : res.rows[0].id, | ||||
orderByColumn:"id", | orderByColumn:"id", | ||||
isAsc:"asc" | |||||
isAsc:"asc", | |||||
method:"GET" | |||||
} | } | ||||
UTIL.httpRequest(API.URL_GET_TEMPLATEDETAIL, d, { | UTIL.httpRequest(API.URL_GET_TEMPLATEDETAIL, d, { | ||||
success: (r) => { | success: (r) => { | ||||
@@ -201,7 +205,8 @@ Page({ | |||||
let data = { | let data = { | ||||
templateId : e.currentTarget.dataset.id, | templateId : e.currentTarget.dataset.id, | ||||
orderByColumn:"id", | orderByColumn:"id", | ||||
isAsc:"asc" | |||||
isAsc:"asc", | |||||
method:"GET" | |||||
} | } | ||||
UTIL.httpRequest(API.URL_GET_TEMPLATEDETAIL, data, { | UTIL.httpRequest(API.URL_GET_TEMPLATEDETAIL, data, { | ||||
success: (res) => { | success: (res) => { | ||||
@@ -241,7 +246,8 @@ Page({ | |||||
success: function (response) { | success: function (response) { | ||||
let d = { | let d = { | ||||
deptId:response.data.data.deptId, | deptId:response.data.data.deptId, | ||||
deptLevel:3 | |||||
deptLevel:3, | |||||
method:"GET" | |||||
} | } | ||||
UTIL.httpRequest(API.URL_GET_USERLIST,d,{ | UTIL.httpRequest(API.URL_GET_USERLIST,d,{ | ||||
success: (res) => { | success: (res) => { | ||||
@@ -256,8 +262,9 @@ Page({ | |||||
}, | }, | ||||
groupList:function(){ | groupList:function(){ | ||||
let data = { | let data = { | ||||
deptId : 187, | |||||
deptLevel:1 | |||||
deptId : this.data.deptId, | |||||
deptLevel:1, | |||||
method:"GET" | |||||
} | } | ||||
UTIL.httpRequest(API.URL_GET_USERLIST,data ,{ | UTIL.httpRequest(API.URL_GET_USERLIST,data ,{ | ||||
success: (res) => { | success: (res) => { | ||||
@@ -270,8 +277,9 @@ Page({ | |||||
}, | }, | ||||
villageList:function(){ | villageList:function(){ | ||||
let data = { | let data = { | ||||
deptId : 187, | |||||
deptLevel:2 | |||||
deptId : this.data.deptId, | |||||
deptLevel:2, | |||||
method:"GET" | |||||
} | } | ||||
UTIL.httpRequest(API.URL_GET_USERLIST,data ,{ | UTIL.httpRequest(API.URL_GET_USERLIST,data ,{ | ||||
success: (res) => { | success: (res) => { | ||||
@@ -275,6 +275,7 @@ Page({ | |||||
success: (res) => { | success: (res) => { | ||||
if (res.code == API.SUCCESS_CODE) { | if (res.code == API.SUCCESS_CODE) { | ||||
this.setData({userInfoObj:res.user}) | this.setData({userInfoObj:res.user}) | ||||
console.log(res.user); | |||||
this.setData({region:res.user.deptName}) | this.setData({region:res.user.deptName}) | ||||
this.setData({item:JSON.stringify(res.user)}) | this.setData({item:JSON.stringify(res.user)}) | ||||
this.getBookList() | this.getBookList() | ||||
@@ -306,7 +307,8 @@ Page({ | |||||
/* 获取账套*/ | /* 获取账套*/ | ||||
getBookList:function(){ | getBookList:function(){ | ||||
let d = { | let d = { | ||||
loginDeptID : this.data.userInfoObj.loginDeptId | |||||
loginDeptID : this.data.userInfoObj.loginDeptId, | |||||
method:'GET' | |||||
} | } | ||||
UTIL.httpRequest(API.URL_GET_BOOKLISTBYDEPTID,d, { | UTIL.httpRequest(API.URL_GET_BOOKLISTBYDEPTID,d, { | ||||
success: (res) => { | success: (res) => { | ||||
@@ -332,7 +334,8 @@ Page({ | |||||
bookName:this.data.bookList[e.detail.value].bookName | bookName:this.data.bookList[e.detail.value].bookName | ||||
}) | }) | ||||
let data={ | let data={ | ||||
loginBookId:this.data.bookList[e.detail.value].id | |||||
loginBookId:this.data.bookList[e.detail.value].id, | |||||
method:'GET' | |||||
} | } | ||||
let _this = this | let _this = this | ||||
UTIL.httpRequest(API.URL_GET_CHANGEBOOK,data, { | UTIL.httpRequest(API.URL_GET_CHANGEBOOK,data, { | ||||
@@ -454,7 +457,8 @@ Page({ | |||||
bookId:"" | bookId:"" | ||||
}, () => { | }, () => { | ||||
let data={ | let data={ | ||||
loginDeptID : this.getRegionId('areas') | |||||
loginDeptID : this.getRegionId('areas'), | |||||
method:'GET' | |||||
} | } | ||||
let _this = this | let _this = this | ||||
UTIL.httpRequest(API.URL_GET_CHANGEDEPT,data, { | UTIL.httpRequest(API.URL_GET_CHANGEDEPT,data, { | ||||
@@ -11,7 +11,7 @@ | |||||
<text class="name">{{userInfoObj.nickName}}</text> | <text class="name">{{userInfoObj.nickName}}</text> | ||||
<view class="jobs"> | <view class="jobs"> | ||||
<view class="icon" style="background:url('https://dazu.nongshen.net/api/profile/wechat/header_job.png') no-repeat; background-size: 100% 100%;"></view> | <view class="icon" style="background:url('https://dazu.nongshen.net/api/profile/wechat/header_job.png') no-repeat; background-size: 100% 100%;"></view> | ||||
{{userInfoObj.remark}} | |||||
{{userInfoObj.roles.length>0?userInfoObj.roles[0].roleName:""}} | |||||
</view> | </view> | ||||
</view> | </view> | ||||
<view class="task_wrap "> | <view class="task_wrap "> | ||||
@@ -39,7 +39,7 @@ | |||||
} | } | ||||
.information_header .name_wrap .jobs{ | .information_header .name_wrap .jobs{ | ||||
margin-left: 18rpx; | margin-left: 18rpx; | ||||
width: 155rpx; | |||||
/* width: 155rpx; */ | |||||
height: 40rpx; | height: 40rpx; | ||||
background: #5bae75; | background: #5bae75; | ||||
border:2rpx solid #2c8e68; | border:2rpx solid #2c8e68; | ||||
@@ -49,6 +49,7 @@ | |||||
font-size: 28rpx; | font-size: 28rpx; | ||||
justify-content: center; | justify-content: center; | ||||
align-items: center; | align-items: center; | ||||
padding: 0 20rpx; | |||||
} | } | ||||
.information_header .name_wrap .jobs .icon{ | .information_header .name_wrap .jobs .icon{ | ||||
width: 26rpx; | width: 26rpx; | ||||
@@ -134,6 +134,7 @@ Page({ | |||||
openId:STORAGE.getOpenId(), | openId:STORAGE.getOpenId(), | ||||
phonenumber:phone | phonenumber:phone | ||||
} | } | ||||
console.log(STORAGE.getOpenId()); | |||||
UTIL.httpRequestNoneDetal(API.URL_POST_USERBAND, sendData,"POST",{ | UTIL.httpRequestNoneDetal(API.URL_POST_USERBAND, sendData,"POST",{ | ||||
success: (res) => { | success: (res) => { | ||||
if (res.code == API.SUCCESS_CODE) { | if (res.code == API.SUCCESS_CODE) { | ||||