operation check 1
This commit is contained in:
parent
b9f22baefc
commit
c875911ae8
4
app.js
4
app.js
|
@ -91,8 +91,8 @@ App({
|
||||||
},
|
},
|
||||||
globalData: {
|
globalData: {
|
||||||
userInfo: null,
|
userInfo: null,
|
||||||
serverUrl: 'https://safeyun.ctcshe.com/',
|
//serverUrl: 'https://safeyun.ctcshe.com/',
|
||||||
//serverUrl: 'http://127.0.0.1:8000/',
|
serverUrl: 'http://127.0.0.1:8000/',
|
||||||
//serverUrl: 'http://192.168.0.102:8000/',
|
//serverUrl: 'http://192.168.0.102:8000/',
|
||||||
//serverUrl:'http://10.7.100.250:8000/',
|
//serverUrl:'http://10.7.100.250:8000/',
|
||||||
isaqy: 0,
|
isaqy: 0,
|
||||||
|
|
|
@ -7,7 +7,8 @@ Page({
|
||||||
*/
|
*/
|
||||||
data: {
|
data: {
|
||||||
zyimg:[],
|
zyimg:[],
|
||||||
zyqy:''
|
zyqy:'',
|
||||||
|
chosespr:false
|
||||||
},
|
},
|
||||||
checkboxChangefxcs: function (e) {
|
checkboxChangefxcs: function (e) {
|
||||||
var x = this.data.fxcslist;
|
var x = this.data.fxcslist;
|
||||||
|
@ -32,6 +33,17 @@ Page({
|
||||||
bindzynrInput: function (e) {
|
bindzynrInput: function (e) {
|
||||||
this.data.zynr = e.detail.value
|
this.data.zynr = e.detail.value
|
||||||
},
|
},
|
||||||
|
chosesprChange: function (e) {
|
||||||
|
if (e.detail.value) {
|
||||||
|
this.setData({
|
||||||
|
chosespr:true
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
this.setData({
|
||||||
|
chosespr:false
|
||||||
|
})
|
||||||
|
}
|
||||||
|
},
|
||||||
/**
|
/**
|
||||||
* 生命周期函数--监听页面加载
|
* 生命周期函数--监听页面加载
|
||||||
*/
|
*/
|
||||||
|
@ -239,6 +251,25 @@ Page({
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
getspr12array:function(){
|
||||||
|
wx.request({
|
||||||
|
url: getApp().globalData.serverUrl + 'api/operation?a=getspr12',
|
||||||
|
header: {
|
||||||
|
'content-type': 'application/json', //
|
||||||
|
'Cookie': wx.getStorageSync("sessionid"),
|
||||||
|
},
|
||||||
|
method: 'GET',
|
||||||
|
data: {'sdbm':this.data.sdbm},
|
||||||
|
success: res => {
|
||||||
|
if (res.statusCode === 200) {
|
||||||
|
this.setData({
|
||||||
|
spr1Array:res.data.spr1Array,
|
||||||
|
spr2Array:res.data.spr2Array
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
},
|
||||||
submit:function(){
|
submit:function(){
|
||||||
var that = this;
|
var that = this;
|
||||||
if (!that.data.kssj) {
|
if (!that.data.kssj) {
|
||||||
|
@ -321,6 +352,9 @@ Page({
|
||||||
fxcs: this.data.fxcs,
|
fxcs: this.data.fxcs,
|
||||||
}
|
}
|
||||||
//console.log(gcdata.unsafe)
|
//console.log(gcdata.unsafe)
|
||||||
|
wx.showLoading({
|
||||||
|
title: '',
|
||||||
|
})
|
||||||
wx.request({
|
wx.request({
|
||||||
url: getApp().globalData.serverUrl + 'api/operation?a=add',
|
url: getApp().globalData.serverUrl + 'api/operation?a=add',
|
||||||
header: {
|
header: {
|
||||||
|
|
|
@ -85,7 +85,7 @@
|
||||||
<view class="weui-cells weui-cells_after-title">
|
<view class="weui-cells weui-cells_after-title">
|
||||||
<view class="weui-cell">
|
<view class="weui-cell">
|
||||||
<view class="weui-cell__bd">
|
<view class="weui-cell__bd">
|
||||||
<textarea class="weui-textarea" placeholder="请输入描述" style="height: 3.3em" bindinput="bindzynrInput"/>
|
<textarea class="weui-textarea" placeholder="请输入描述" style="height: 3.3em" bindinput="bindzynrInput" />
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
@ -127,8 +127,8 @@
|
||||||
</view>
|
</view>
|
||||||
</label>
|
</label>
|
||||||
</checkbox-group>
|
</checkbox-group>
|
||||||
</view>
|
</view>
|
||||||
<!-- <view class="weui-cells__title">审批人</view>
|
<!-- <view class="weui-cells__title">审批人</view>
|
||||||
<view class="weui-cell weui-cell_select">
|
<view class="weui-cell weui-cell_select">
|
||||||
<view class="weui-cell__hd weui-cell__hd_in-select-after">
|
<view class="weui-cell__hd weui-cell__hd_in-select-after">
|
||||||
<view class="weui-label">审批人</view>
|
<view class="weui-label">审批人</view>
|
||||||
|
@ -142,9 +142,32 @@
|
||||||
<view class="weui-cell weui-cell_access" style="height: 4.3em">
|
<view class="weui-cell weui-cell_access" style="height: 4.3em">
|
||||||
{{spryname}}
|
{{spryname}}
|
||||||
</view> -->
|
</view> -->
|
||||||
|
<view class="weui-cell weui-cell_switch">
|
||||||
|
<view class="weui-cell__bd">手动选择审批人</view>
|
||||||
|
<view class="weui-cell__ft">
|
||||||
|
<switch bindchange="chosesprChange" />
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="weui-cell weui-cell_select" wx:if="{{chosespr}}">
|
||||||
|
<view class="weui-cell__hd weui-cell__hd_in-select-after">
|
||||||
|
<view>作业部门审批人</view>
|
||||||
|
</view>
|
||||||
|
<view class="weui-cell__bd">
|
||||||
|
<picker bindchange="bindspr1change" value="{{spr1index}}" range="{{spr1Array}}" range-key="text">
|
||||||
|
<view class="weui-select">{{spr1Array[spr1index].text}}</view>
|
||||||
|
</picker>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="weui-cell weui-cell_select" wx:if="{{chosespr}}">
|
||||||
|
<view class="weui-cell__hd weui-cell__hd_in-select-after">
|
||||||
|
<view>属地部门审批人</view>
|
||||||
|
</view>
|
||||||
|
<view class="weui-cell__bd">
|
||||||
|
<picker bindchange="bindspr2change" value="{{spr2index}}" range="{{spr2Array}}" range-key="text">
|
||||||
|
<view class="weui-select">{{spr2Array[spr2index].text}}</view>
|
||||||
|
</picker>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
<button class="weui-btn" type="primary" bindtap="submit">分析完毕,发起作业</button>
|
<button class="weui-btn" type="primary" bindtap="submit">分析完毕,发起作业</button>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -141,6 +141,9 @@ Page({
|
||||||
},
|
},
|
||||||
submit2: function () {
|
submit2: function () {
|
||||||
var that = this;
|
var that = this;
|
||||||
|
wx.showLoading({
|
||||||
|
title: '',
|
||||||
|
})
|
||||||
wx.request({
|
wx.request({
|
||||||
url: that.data.serverUrl + 'api/operation?a=spzy',
|
url: that.data.serverUrl + 'api/operation?a=spzy',
|
||||||
header: {
|
header: {
|
||||||
|
@ -256,6 +259,9 @@ Page({
|
||||||
},
|
},
|
||||||
zjsp: function () {
|
zjsp: function () {
|
||||||
var that=this
|
var that=this
|
||||||
|
wx.showLoading({
|
||||||
|
title: '',
|
||||||
|
})
|
||||||
wx.request({
|
wx.request({
|
||||||
url: getApp().globalData.serverUrl + 'api/operation?a=spzy',
|
url: getApp().globalData.serverUrl + 'api/operation?a=spzy',
|
||||||
header: {
|
header: {
|
||||||
|
@ -275,7 +281,7 @@ Page({
|
||||||
openaction: function () {
|
openaction: function () {
|
||||||
var that = this
|
var that = this
|
||||||
wx.showActionSheet({
|
wx.showActionSheet({
|
||||||
itemList: ['确认无误,审批通过', '转交他人审批', '终止审批开始作业'],
|
itemList: ['确认无误,审批通过', '提交上级审批'],
|
||||||
success: function (res) {
|
success: function (res) {
|
||||||
if (!res.cancel) {
|
if (!res.cancel) {
|
||||||
if (res.tapIndex == 0) {
|
if (res.tapIndex == 0) {
|
||||||
|
@ -284,7 +290,7 @@ Page({
|
||||||
else if (res.tapIndex == 1) {
|
else if (res.tapIndex == 1) {
|
||||||
that.setData({
|
that.setData({
|
||||||
'zjsp': true,
|
'zjsp': true,
|
||||||
'action':'转交他人审批'
|
'action':'提交上级审批'
|
||||||
})
|
})
|
||||||
} else if (res.tapIndex == 2) {
|
} else if (res.tapIndex == 2) {
|
||||||
wx.request({
|
wx.request({
|
||||||
|
|
|
@ -65,6 +65,14 @@
|
||||||
{{zynr}}
|
{{zynr}}
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="weui-cell weui-cell_access">
|
||||||
|
<view class="weui-cell__bd weui-cell_primary">
|
||||||
|
<view>作业人员</view>
|
||||||
|
<view class="weui-cell__ft">
|
||||||
|
{{zyry}}
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="weui-cell weui-cell_access">
|
<view class="weui-cell weui-cell_access">
|
||||||
<view class="weui-cell__bd weui-cell_primary">
|
<view class="weui-cell__bd weui-cell_primary">
|
||||||
|
@ -115,12 +123,12 @@
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<button class="weui-btn" type="primary" bindtap="submit" wx:if="{{zyzt.zyzt == '确认中'}}">安全措施就绪,确认参与作业</button>
|
<button class="weui-btn" type="primary" bindtap="submit" wx:if="{{zyzt.zyzt == '确认中'}}">我的安全措施就绪,确认参与作业</button>
|
||||||
<!-- <button class="weui-btn" type="primary" bindtap="submit2" >安全措施就绪,可以开始作业</button> -->
|
<!-- <button class="weui-btn" type="primary" bindtap="submit2" >安全措施就绪,可以开始作业</button> -->
|
||||||
<button class="weui-btn" type="primary" bindtap="submit3" wx:if="{{zyzt.zyzt == '待关闭'}}">现场清理完毕,关闭作业</button>
|
<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>
|
<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="{{zyzt.zyzt == '审批中'}}"><span>当前操作:</span><span style="color:blue">{{action}}</span></view>
|
||||||
<view wx:if="{{zjsp}}" class="weui-cells weui-cells_after-title">
|
<!-- <view wx:if="{{zjsp}}" class="weui-cells weui-cells_after-title">
|
||||||
<view class="weui-cell weui-cell_select">
|
<view class="weui-cell weui-cell_select">
|
||||||
<view class="weui-cell__hd weui-cell__hd_in-select-after">
|
<view class="weui-cell__hd weui-cell__hd_in-select-after">
|
||||||
<view class="weui-label">新审批人</view>
|
<view class="weui-label">新审批人</view>
|
||||||
|
@ -134,5 +142,5 @@
|
||||||
<view class="weui-cell weui-cell_access" style="height: 5.3em">
|
<view class="weui-cell weui-cell_access" style="height: 5.3em">
|
||||||
{{zyspryname}}
|
{{zyspryname}}
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view> -->
|
||||||
<button type="primary" bindtap="zjsp" class="weui-btn" wx:if="{{zjsp}}">确认转交</button>
|
<button type="primary" bindtap="zjsp" class="weui-btn" wx:if="{{zjsp}}">确认提交</button>
|
||||||
|
|
|
@ -124,6 +124,7 @@
|
||||||
<view class="weui-cell weui-cell_access">
|
<view class="weui-cell weui-cell_access">
|
||||||
<view class="weui-cell__bd weui-cell_primary">
|
<view class="weui-cell__bd weui-cell_primary">
|
||||||
<view>{{index+1}} {{item.jdmc}}</view>
|
<view>{{index+1}} {{item.jdmc}}</view>
|
||||||
|
<view class="weui-media-box__desc" wx:if="{{index>0}}">可审批人:{{item.sprs}}</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="weui-cell__ft" wx:if="{{zyzt.index > index }}" style="color:green">
|
<view class="weui-cell__ft" wx:if="{{zyzt.index > index }}" style="color:green">
|
||||||
已执行
|
已执行
|
||||||
|
@ -177,7 +178,7 @@
|
||||||
已通过
|
已通过
|
||||||
</view>
|
</view>
|
||||||
<view class="weui-cell__ft" wx:if="{{item.checked == 2}}" style="color:green">
|
<view class="weui-cell__ft" wx:if="{{item.checked == 2}}" style="color:green">
|
||||||
转交审批
|
通过并提交上级
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</block>
|
</block>
|
||||||
|
|
|
@ -98,7 +98,10 @@
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<button type="primary" bindtap="openaction" class="weui-btn" wx:if="{{yhzt ==1}}">选择操作</button>
|
<button type="primary" bindtap="openaction" class="weui-btn" wx:if="{{yhzt ==1}}">选择操作</button>
|
||||||
<view wx:if="{{yhzt ==1}}"><span>当前操作:</span><span style="color:blue">{{action}}</span></view>
|
<view wx:if="{{yhzt ==1}}">
|
||||||
|
<span>当前操作:</span>
|
||||||
|
<span style="color:blue">{{action}}</span>
|
||||||
|
</view>
|
||||||
<view wx:if='{{yhzt!=0}}'>
|
<view wx:if='{{yhzt!=0}}'>
|
||||||
<view wx:if="{{zppg=='yes' && shresult !='reject' }}">
|
<view wx:if="{{zppg=='yes' && shresult !='reject' }}">
|
||||||
<view class="weui-cells__title">新评估人</view>
|
<view class="weui-cells__title">新评估人</view>
|
||||||
|
|
Loading…
Reference in New Issue