|
@@ -86,7 +86,7 @@
|
|
<u-input class="" v-model='rejectInfo' placeholder="请在此输入审核意见" type="textarea" height="414"
|
|
<u-input class="" v-model='rejectInfo' placeholder="请在此输入审核意见" type="textarea" height="414"
|
|
maxlength="100" />
|
|
maxlength="100" />
|
|
</view>
|
|
</view>
|
|
- <!-- <u-button @click="show1 = false" class="cancel">取消</u-button>
|
|
|
|
|
|
+ <!-- <u-button @click="show1 = false" class="cancel">取消</u-button>
|
|
<u-button @click="reject()" class="confirm">确定</u-button> -->
|
|
<u-button @click="reject()" class="confirm">确定</u-button> -->
|
|
<view @click='show1 = false' class="cancel">取消</view>
|
|
<view @click='show1 = false' class="cancel">取消</view>
|
|
<view @click='reject()' class="confirm">确定</view>
|
|
<view @click='reject()' class="confirm">确定</view>
|
|
@@ -151,11 +151,11 @@
|
|
...mapState(['hasLogin', 'userInfo'])
|
|
...mapState(['hasLogin', 'userInfo'])
|
|
},
|
|
},
|
|
onBackPress(e) {
|
|
onBackPress(e) {
|
|
- if(this.everyCheck){
|
|
|
|
- uni.navigateTo({
|
|
|
|
- url: "/pages/task/my_task"
|
|
|
|
- })
|
|
|
|
- return true;
|
|
|
|
|
|
+ if (this.everyCheck) {
|
|
|
|
+ uni.navigateTo({
|
|
|
|
+ url: "/pages/task/my_task"
|
|
|
|
+ })
|
|
|
|
+ return true;
|
|
}
|
|
}
|
|
},
|
|
},
|
|
onLoad(options) {
|
|
onLoad(options) {
|
|
@@ -170,7 +170,7 @@
|
|
})
|
|
})
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
- close(){
|
|
|
|
|
|
+ close() {
|
|
this.show1 = false
|
|
this.show1 = false
|
|
this.show2 = false
|
|
this.show2 = false
|
|
},
|
|
},
|
|
@@ -188,51 +188,48 @@
|
|
this.list.contractNo = item[0].value
|
|
this.list.contractNo = item[0].value
|
|
},
|
|
},
|
|
audit() {
|
|
audit() {
|
|
- if (!this.rejectInfo1) {
|
|
|
|
- this.$api.msg('审核意见不能为空!')
|
|
|
|
- } else {
|
|
|
|
- var that = this
|
|
|
|
- that.show2 = false
|
|
|
|
- uni.showModal({
|
|
|
|
- content: "是否确定通过审核?",
|
|
|
|
- showCancel: true,
|
|
|
|
- confirmText: '确定',
|
|
|
|
- success: function(res) {
|
|
|
|
- if (res.confirm) {
|
|
|
|
- uni.showLoading({
|
|
|
|
- title: "审核中"
|
|
|
|
|
|
+ var that = this
|
|
|
|
+ that.show2 = false
|
|
|
|
+ uni.showModal({
|
|
|
|
+ content: "是否确定通过审核?",
|
|
|
|
+ showCancel: true,
|
|
|
|
+ confirmText: '确定',
|
|
|
|
+ success: function(res) {
|
|
|
|
+ if (res.confirm) {
|
|
|
|
+ uni.showLoading({
|
|
|
|
+ title: "审核中"
|
|
|
|
+ })
|
|
|
|
+ that.$api.doRequest('post', '/purchasePrice/purchasePriceEdit', that.list)
|
|
|
|
+ .then(res => {
|
|
|
|
+ if (res.data.code == 200) {
|
|
|
|
+ that.$api.doRequest('post', '/workflow/api/handle', {
|
|
|
|
+ approved: true,
|
|
|
|
+ auditMind: that.rejectInfo1,
|
|
|
|
+ needReapply: true,
|
|
|
|
+ taskId: that.list.taskId,
|
|
|
|
+ }).then(res1 => {
|
|
|
|
+ if (res1.data.code == 200) {
|
|
|
|
+ that.$api.msg('审核成功');
|
|
|
|
+ setTimeout(function() {
|
|
|
|
+ if (this.everyCheck) {
|
|
|
|
+ helper.setAudit(that.list)
|
|
|
|
+ } else {
|
|
|
|
+ uni.navigateBack()
|
|
|
|
+ }
|
|
|
|
+ uni.hideLoading()
|
|
|
|
+ }, 1000);
|
|
|
|
+ } else {
|
|
|
|
+ that.$api.msg(res1.data.message);
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ } else {
|
|
|
|
+ that.$api.msg('系统异常,请联系管理员');
|
|
|
|
+ }
|
|
})
|
|
})
|
|
- that.$api.doRequest('post', '/purchasePrice/purchasePriceEdit', that.list)
|
|
|
|
- .then(res => {
|
|
|
|
- if (res.data.code == 200) {
|
|
|
|
- that.$api.doRequest('post', '/workflow/api/handle', {
|
|
|
|
- approved: true,
|
|
|
|
- auditMind: that.rejectInfo1,
|
|
|
|
- needReapply: true,
|
|
|
|
- taskId: that.list.taskId,
|
|
|
|
- }).then(res1 => {
|
|
|
|
- if (res1.data.code == 200) {
|
|
|
|
- that.$api.msg('审核成功');
|
|
|
|
- setTimeout(function() {
|
|
|
|
- if (this.everyCheck) {
|
|
|
|
- helper.setAudit(that.list)
|
|
|
|
- } else {
|
|
|
|
- uni.navigateBack()
|
|
|
|
- }
|
|
|
|
- uni.hideLoading()
|
|
|
|
- }, 1000);
|
|
|
|
- } else {
|
|
|
|
- that.$api.msg(res1.data.message);
|
|
|
|
- }
|
|
|
|
- })
|
|
|
|
- } else {
|
|
|
|
- that.$api.msg('系统异常,请联系管理员');
|
|
|
|
- }
|
|
|
|
- })
|
|
|
|
- }
|
|
|
|
}
|
|
}
|
|
- })
|
|
|
|
- }
|
|
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+
|
|
},
|
|
},
|
|
reject() {
|
|
reject() {
|
|
if (!this.rejectInfo) {
|
|
if (!this.rejectInfo) {
|
|
@@ -456,9 +453,11 @@
|
|
color: #AFB3BF;
|
|
color: #AFB3BF;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+
|
|
/deep/.u-input__textarea {
|
|
/deep/.u-input__textarea {
|
|
height: 300rpx !important;
|
|
height: 300rpx !important;
|
|
}
|
|
}
|
|
|
|
+
|
|
.cancel,
|
|
.cancel,
|
|
.confirm {
|
|
.confirm {
|
|
position: absolute;
|
|
position: absolute;
|
|
@@ -470,13 +469,13 @@
|
|
border-top: 1px solid #eee;
|
|
border-top: 1px solid #eee;
|
|
font-size: 34rpx;
|
|
font-size: 34rpx;
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
.cancel {
|
|
.cancel {
|
|
left: 0;
|
|
left: 0;
|
|
border-right: 1px solid #eee;
|
|
border-right: 1px solid #eee;
|
|
color: #AFB3BF;
|
|
color: #AFB3BF;
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
.confirm {
|
|
.confirm {
|
|
right: 0;
|
|
right: 0;
|
|
color: #22C572;
|
|
color: #22C572;
|