转交审批
This commit is contained in:
parent
8c19dda186
commit
a6acbd8aa2
|
@ -142,9 +142,7 @@
|
|||
<view class="weui-cell weui-cell_access" style="height: 4.3em">
|
||||
{{spryname}}
|
||||
</view> -->
|
||||
<view class="btn-area">
|
||||
<button class="weui-btn" type="primary" bindtap="submit">提交审批</button>
|
||||
</view>
|
||||
<button class="weui-btn" type="primary" bindtap="submit">分析完毕,发起作业</button>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
|
|
|
@ -1 +1,5 @@
|
|||
/* pages/operation/operationadd.wxss */
|
||||
.weui-btn{
|
||||
width:auto;
|
||||
margin: 5px;
|
||||
}
|
|
@ -7,7 +7,8 @@ Page({
|
|||
*/
|
||||
data: {
|
||||
serverUrl: getApp().globalData.serverUrl,
|
||||
zyimg2: []
|
||||
zyimg2: [],
|
||||
zjsp:false
|
||||
},
|
||||
getZy: function (zyid) {
|
||||
wx.showLoading({
|
||||
|
@ -59,7 +60,19 @@ Page({
|
|||
* 生命周期函数--监听页面显示
|
||||
*/
|
||||
onShow: function () {
|
||||
|
||||
let lst = getApp().globalData.selectPeopleList
|
||||
let nst = []
|
||||
let nst1 = []
|
||||
if (lst) {
|
||||
for (var i = 0; i < lst.length; i++) {
|
||||
nst.push(lst[i]['name'])
|
||||
nst1.push(lst[i]['id'])
|
||||
}
|
||||
this.setData({
|
||||
zyspryname: nst.join(','),
|
||||
spry: nst1,
|
||||
})
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
|
@ -239,4 +252,41 @@ Page({
|
|||
}
|
||||
});
|
||||
},
|
||||
openaction: function () {
|
||||
var that = this
|
||||
wx.showActionSheet({
|
||||
itemList: ['确认无误,审批通过', '转交他人审批', '终止审批开始作业'],
|
||||
success: function (res) {
|
||||
if (!res.cancel) {
|
||||
if (res.tapIndex == 0) {
|
||||
that.submit2()
|
||||
}
|
||||
else if (res.tapIndex == 1) {
|
||||
that.setData({
|
||||
'zjsp': true,
|
||||
'action':'转交他人审批'
|
||||
})
|
||||
} else if (res.tapIndex == 2) {
|
||||
wx.request({
|
||||
url: that.data.serverUrl + 'api/operation?a=spzy',
|
||||
header: {
|
||||
'content-type': 'application/x-www-form-urlencoded', //
|
||||
'Cookie': wx.getStorageSync("sessionid"),
|
||||
},
|
||||
method: 'POST',
|
||||
data: { 'zyid': that.data.zyid ,'zzsp':true},
|
||||
success: res => {
|
||||
if (res.statusCode === 200) {
|
||||
wx.hideLoading();
|
||||
wx.navigateBack({
|
||||
delta: 1
|
||||
})
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
})
|
|
@ -120,3 +120,19 @@
|
|||
<button class="weui-btn" type="primary" bindtap="submit3" wx:if="{{zyzt.zyzt == '待关闭'}}">现场清理完毕,关闭作业</button>
|
||||
<button type="primary" bindtap="openaction" class="weui-btn" wx:if="{{zyzt.zyzt == '审批中'}}">选择操作</button>
|
||||
<view wx:if="{{zyzt.zyzt == '审批中'}}"><span>当前操作:</span><span style="color:blue">{{action}}</span></view>
|
||||
<view wx:if="{{zjsp}}" class="weui-cells weui-cells_after-title">
|
||||
<view class="weui-cell weui-cell_select">
|
||||
<view class="weui-cell__hd weui-cell__hd_in-select-after">
|
||||
<view class="weui-label">新审批人</view>
|
||||
</view>
|
||||
<view class="weui-cell__bd">
|
||||
<navigator url="/pages/userSelect/userSelect">
|
||||
<view class="weui-select">请选择</view>
|
||||
</navigator>
|
||||
</view>
|
||||
</view>
|
||||
<view class="weui-cell weui-cell_access" style="height: 5.3em">
|
||||
{{zyspryname}}
|
||||
</view>
|
||||
</view>
|
||||
<button type="primary" bindtap="zjsp" class="weui-btn" wx:if="{{zjsp}}">确认转交</button>
|
||||
|
|
Loading…
Reference in New Issue