|
@@ -15,7 +15,7 @@
|
|
|
<!-- {{auditList.length > 0 ?auditList[auditList.length - 1].operatorMajorRoleName:""}} -->
|
|
|
<view class="infoText">待决策人审核</view>
|
|
|
</view>
|
|
|
- <view class="infoData">{{updateDate}}</view>
|
|
|
+ <view class="infoData">{{auditInfo.updateDate}}</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
<!-- <view class='content1'>
|
|
@@ -338,7 +338,6 @@
|
|
|
id: this.id
|
|
|
}).then(res1 => {
|
|
|
if (res1.data.code == 200) {
|
|
|
- debugger
|
|
|
this.auditInfo = res1.data.data
|
|
|
if (this.auditInfo.addressUrl && this.auditInfo.addressUrl != '') {
|
|
|
this.auditInfo.srcList = this.auditInfo.addressUrl.split(',')
|
|
@@ -416,29 +415,29 @@
|
|
|
mask: true
|
|
|
})
|
|
|
var count = 0
|
|
|
- for (let num = 0; num < that.List.length; num++) {
|
|
|
- that.$api.doRequest('post', '/workflow/api/handle', {
|
|
|
- taskId: that.auditInfo.taskId,
|
|
|
- approved: false,
|
|
|
- auditMind: that.auditMind ? that.auditMind : "",
|
|
|
- needReapply: true
|
|
|
- }).then(res => {
|
|
|
- count++
|
|
|
- if (count == that.List.length) {
|
|
|
- uni.hideLoading()
|
|
|
- that.$api.msg('审核成功!')
|
|
|
- setTimeout(function() {
|
|
|
- uni.navigateBack();
|
|
|
- }, 2000);
|
|
|
- }
|
|
|
- })
|
|
|
- }
|
|
|
+ // for (let num = 0; num < that.List.length; num++) {
|
|
|
+ that.$api.doRequest('post', '/workflow/api/handle', {
|
|
|
+ taskId: that.auditInfo.taskId,
|
|
|
+ approved: false,
|
|
|
+ auditMind: that.auditMind ? that.auditMind : "",
|
|
|
+ needReapply: true
|
|
|
+ }).then(res => {
|
|
|
+ count++
|
|
|
+ if (count == that.List.length) {
|
|
|
+ uni.hideLoading()
|
|
|
+ that.$api.msg('审核成功!')
|
|
|
+ console.log('驳回成功!')
|
|
|
+ setTimeout(function() {
|
|
|
+ uni.navigateBack();
|
|
|
+ }, 2000);
|
|
|
+ }
|
|
|
+ })
|
|
|
+ // }
|
|
|
}
|
|
|
}
|
|
|
})
|
|
|
}
|
|
|
} else {
|
|
|
- debugger
|
|
|
var that = this
|
|
|
this.show = false
|
|
|
uni.showModal({
|
|
@@ -451,24 +450,25 @@
|
|
|
title: "审核中...",
|
|
|
mask: true
|
|
|
})
|
|
|
- for (let num = 0; num < that.List.length; num++) {
|
|
|
- var tmp = 0
|
|
|
- that.$api.doRequest('post', '/workflow/api/handle', {
|
|
|
- taskId: that.auditInfo.taskId,
|
|
|
- approved: true,
|
|
|
- auditMind: that.auditMind ? that.auditMind : "",
|
|
|
- needReapply: false
|
|
|
- }).then(res => {
|
|
|
- tmp++
|
|
|
- if (tmp == that.List.length) {
|
|
|
- uni.hideLoading()
|
|
|
- that.$api.msg('审核成功!')
|
|
|
- setTimeout(function() {
|
|
|
- uni.navigateBack();
|
|
|
- }, 2000);
|
|
|
- }
|
|
|
- })
|
|
|
- }
|
|
|
+ // for (let num = 0; num < that.List.length; num++) {
|
|
|
+ var tmp = 0
|
|
|
+ that.$api.doRequest('post', '/workflow/api/handle', {
|
|
|
+ taskId: that.auditInfo.taskId,
|
|
|
+ approved: true,
|
|
|
+ auditMind: that.auditMind ? that.auditMind : "",
|
|
|
+ needReapply: false
|
|
|
+ }).then(res => {
|
|
|
+ tmp++
|
|
|
+ // if (tmp == that.List.length) {
|
|
|
+ uni.hideLoading()
|
|
|
+ that.$api.msg('审核成功!')
|
|
|
+ console.log('审核通过!')
|
|
|
+ setTimeout(function() {
|
|
|
+ uni.navigateBack();
|
|
|
+ }, 2000);
|
|
|
+ // }
|
|
|
+ })
|
|
|
+ // }
|
|
|
}
|
|
|
}
|
|
|
})
|