|
@@ -33,7 +33,7 @@
|
|
|
<u-gap height="110"></u-gap>
|
|
|
<view v-if="data.pageType === 1 && zindeButtion === 1 && data.isEnd === '0'" class="bomButtonBody"
|
|
|
style="position: fixed;bottom: 0">
|
|
|
- <uni-row>
|
|
|
+ <uni-row v-if="isEnd === 0">
|
|
|
<uni-col :span="10">
|
|
|
<view class="desc">
|
|
|
<u-button color="rgb(55,186,189)" shape="circle" size="large"
|
|
@@ -54,6 +54,33 @@
|
|
|
</view>
|
|
|
</uni-col>
|
|
|
</uni-row>
|
|
|
+ <uni-row v-if="isEnd === 1">
|
|
|
+ <uni-col :span="9">
|
|
|
+ <view class="desc">
|
|
|
+ <u-button color="rgb(55,186,189)" shape="circle" size="large"
|
|
|
+ @click="passTrue('同意','RESULT_TRUE','bottom')">同意,下一步
|
|
|
+ </u-button>
|
|
|
+ </view>
|
|
|
+ </uni-col>
|
|
|
+ <uni-col :span="5">
|
|
|
+ <view class="desc">
|
|
|
+ <u-button color="rgb(188, 188, 188)" shape="circle" size="large"
|
|
|
+ @click="passTrue('驳回','RESULT_FALSE','bottom')">驳回</u-button>
|
|
|
+ </view>
|
|
|
+ </uni-col>
|
|
|
+ <uni-col :span="5">
|
|
|
+ <view class="desc">
|
|
|
+ <u-button color="rgb(136, 188, 160)" shape="circle" size="large"
|
|
|
+ @click="passTrue('驳回','RESULT_CASE_OF','bottom')">转交</u-button>
|
|
|
+ </view>
|
|
|
+ </uni-col>
|
|
|
+ <uni-col :span="5">
|
|
|
+ <view class="desc">
|
|
|
+ <u-button color="rgb(136, 188, 160)" shape="circle" size="large"
|
|
|
+ @click="confirm1()">结束</u-button>
|
|
|
+ </view>
|
|
|
+ </uni-col>
|
|
|
+ </uni-row>
|
|
|
</view>
|
|
|
<view>
|
|
|
<!-- 普通弹窗 -->
|
|
@@ -116,6 +143,12 @@
|
|
|
* 会山科技-会助理 审批操作功能组件
|
|
|
* */
|
|
|
export default {
|
|
|
+ props: {
|
|
|
+ isEnd: {
|
|
|
+ type: Number,
|
|
|
+ default: 0
|
|
|
+ }
|
|
|
+ },
|
|
|
data() {
|
|
|
return {
|
|
|
baseUrl: this.$BASE_URL,
|
|
@@ -154,6 +187,42 @@
|
|
|
uni.hideLoading()
|
|
|
},
|
|
|
methods: {
|
|
|
+ confirm1(e) {
|
|
|
+ let that = this;
|
|
|
+ let id = this.data.taskId ? this.data.taskId : this.data.id
|
|
|
+ uni.showModal({
|
|
|
+ title: "提醒",
|
|
|
+ content: "确定在当前节点同意并结束吗?",
|
|
|
+ success(res) {
|
|
|
+ if (res.confirm) {
|
|
|
+ that.$httpRequest({
|
|
|
+ url: '/app/useSealEnd?taskId=' + id,
|
|
|
+ method: 'get'
|
|
|
+ }).then((res) => {
|
|
|
+ if (res.data.code === 200) {
|
|
|
+ uni.showModal({
|
|
|
+ title: "结束成功",
|
|
|
+ icon: "OK",
|
|
|
+ showCancel: false,
|
|
|
+ success() {
|
|
|
+ uni.navigateBack()
|
|
|
+ }
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ uni.showModal({
|
|
|
+ title: "结束失败",
|
|
|
+ content: res.msg,
|
|
|
+ showCancel: false,
|
|
|
+ success() {
|
|
|
+ uni.navigateBack()
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
nextApprovalChange(e) {
|
|
|
let nextUser = e.detail.value[1]
|
|
|
this.form.nextUserName = e.detail.value[1].text
|
|
@@ -254,7 +323,8 @@
|
|
|
const {
|
|
|
data: res
|
|
|
} = await this.$httpRequest({
|
|
|
- url: '/app/pL?taskId='+ this.data.id +'&groupId=' + this.data.baseGroupId + '&baseId=' + this.data.baseId,
|
|
|
+ url: '/app/pL?taskId=' + this.data.id + '&groupId=' + this.data.baseGroupId + '&baseId=' +
|
|
|
+ this.data.baseId,
|
|
|
method: 'get',
|
|
|
urlType: this.$getUrlType()
|
|
|
});
|
|
@@ -312,12 +382,16 @@
|
|
|
})
|
|
|
}
|
|
|
if (this.historyData[this.historyData.length - 1]) {
|
|
|
- if (!(this.historyData[this.historyData.length - 1].comment === "同意并结束") &&
|
|
|
- !(this.historyData[this.historyData.length - 1].comment === "自动结束")) {
|
|
|
+ if (!(this.historyData[this.historyData.length - 1].comment === "自动结束") && this.isEnd === 0) {
|
|
|
this.list1.push({
|
|
|
title: "待审批"
|
|
|
})
|
|
|
}
|
|
|
+ if (this.isEnd === 1 && this.data.isEnd === '1') {
|
|
|
+ this.list1.push({
|
|
|
+ title: "流程结束"
|
|
|
+ })
|
|
|
+ }
|
|
|
}
|
|
|
this.active = this.list1.length - 1
|
|
|
uni.hideLoading()
|
|
@@ -362,7 +436,8 @@
|
|
|
const {
|
|
|
data: res
|
|
|
} = await this.$httpRequest({
|
|
|
- url: '/app/currentPL?taskId='+ this.data.id +'&groupId=' + this.data.baseGroupId + '&baseId=' + this.data.baseId,
|
|
|
+ url: '/app/currentPL?taskId=' + this.data.id + '&groupId=' + this.data.baseGroupId +
|
|
|
+ '&baseId=' + this.data.baseId,
|
|
|
method: 'get',
|
|
|
urlType: this.$getUrlType()
|
|
|
});
|
|
@@ -491,4 +566,4 @@
|
|
|
justify-content: space-between;
|
|
|
margin-bottom: 10px;
|
|
|
}
|
|
|
-</style>
|
|
|
+</style>
|