|
@@ -491,19 +491,37 @@
|
|
<div slot="footer" class="dialog-footer foooot">
|
|
<div slot="footer" class="dialog-footer foooot">
|
|
<template v-if="!showMmeiLaiDe">
|
|
<template v-if="!showMmeiLaiDe">
|
|
<el-button v-if="(user.id == addForm.createrId || currentProject.inchargerId == user.id || currentProject.creatorId == user.id || permissions.projectManagement) && canAddTask" @click.native="deleteTask()" style="float:left;">{{ $t('btn.delete') }}</el-button>
|
|
<el-button v-if="(user.id == addForm.createrId || currentProject.inchargerId == user.id || currentProject.creatorId == user.id || permissions.projectManagement) && canAddTask" @click.native="deleteTask()" style="float:left;">{{ $t('btn.delete') }}</el-button>
|
|
|
|
+ <el-button type="primary" v-if="user.userNameNeedTranslate == 1 && !meetingId && !integrationTask.stage && addForm.executorListFront[0].executorId" @click="meetingCli()">{{ $t('faQiHuiYi') }}</el-button>
|
|
|
|
+ <el-button @click.native="closeBounceds()">{{ $t('btn.cancel') }}</el-button>
|
|
|
|
+ <el-button type="primary" @click="submitInsert" :loading="addLoading">{{ $t('btn.submit') }}</el-button>
|
|
</template>
|
|
</template>
|
|
|
|
+
|
|
<template v-if="showMmeiLaiDe">
|
|
<template v-if="showMmeiLaiDe">
|
|
- <el-button v-if="[0, 1, 2, 3, 5, 6].includes(showMmeiLaiDeData.taskStatus)" @click.native="deleteTask()" style="float:left;">{{ $t('btn.delete') }}</el-button>
|
|
|
|
- </template>
|
|
|
|
- <el-button type="primary" v-if="user.userNameNeedTranslate == 1 && !meetingId && !integrationTask.stage && addForm.executorListFront[0].executorId" @click="meetingCli()">{{ $t('faQiHuiYi') }}</el-button>
|
|
|
|
- <el-button @click.native="closeBounceds()">{{ $t('btn.cancel') }}</el-button>
|
|
|
|
- <template v-if="showMmeiLaiDe && addForm.id && millerSReviewer.includes(user.id) && [3, 4].includes(showMmeiLaiDeData.taskStatus) && showMmeiLaiDeData.leaderOrManager == 2">
|
|
|
|
- <template v-if="(showMmeiLaiDeData.taskStatus == 3 && user.id == showMmeiLaiDeData.checkFirstId) || (showMmeiLaiDeData.taskStatus == 4 && user.id == showMmeiLaiDeData.checkSecondId)">
|
|
|
|
- <el-button type="danger" @click="planOperation(false)" :loading="addLoading">驳回</el-button>
|
|
|
|
- <el-button type="success" @click="planOperation(true)" :loading="addLoading">通过</el-button>
|
|
|
|
|
|
+ <el-button v-if="(user.id == showMmeiLaiDeData.checkFirstId && showMmeiLaiDeData.taskStatus == 3) || (user.id == showMmeiLaiDeData.checkSecondId && [4, '4', '1', 1].includes(showMmeiLaiDeData.taskStatus))" @click.native="deleteTask()" style="float:left;">{{ $t('btn.delete') }}</el-button>
|
|
|
|
+ <el-button v-if="showMmeiLaiDeData.taskPlan && showMmeiLaiDeData.taskStatus == 2" @click.native="deleteTask()" style="float:left;">删除</el-button>
|
|
|
|
+
|
|
|
|
+ <el-button @click.native="closeBounceds()">{{ $t('btn.cancel') }}</el-button>
|
|
|
|
+
|
|
|
|
+ <template v-if="(showMmeiLaiDeData.leaderIdList || []).includes(user.id) && showMmeiLaiDeData.taskStatus == 3">
|
|
|
|
+ <el-button @click.native="planToWithdraw()">撤回</el-button>
|
|
|
|
+ </template>
|
|
|
|
+
|
|
|
|
+ <template v-if="addForm.id && millerSReviewer.includes(user.id) && [3, 4].includes(showMmeiLaiDeData.taskStatus)">
|
|
|
|
+ <template v-if="(showMmeiLaiDeData.taskStatus == 3 && user.id == showMmeiLaiDeData.checkFirstId) || (showMmeiLaiDeData.taskStatus == 4 && user.id == showMmeiLaiDeData.checkSecondId)">
|
|
|
|
+ <el-button type="danger" @click="planOperation(false)" :loading="addLoading">驳回</el-button>
|
|
|
|
+ <el-button type="success" @click="planOperation(true)" :loading="addLoading">通过</el-button>
|
|
|
|
+ </template>
|
|
|
|
+ </template>
|
|
|
|
+
|
|
|
|
+ <template>
|
|
|
|
+ <el-button type="primary" @click="submitInsert" :loading="addLoading">
|
|
|
|
+ {{ showMmeiLaiDeData.taskPlan == 1 && showMmeiLaiDeData.taskStatus == 2 ? '重新提交' : '提交' }}
|
|
|
|
+ </el-button>
|
|
</template>
|
|
</template>
|
|
</template>
|
|
</template>
|
|
- <el-button type="primary" @click="submitInsert" :loading="addLoading">{{ $t('btn.submit') }}</el-button>
|
|
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<!-- <div slot="title" v-if="addForm.parentTid != null || isRelationItem" >
|
|
<!-- <div slot="title" v-if="addForm.parentTid != null || isRelationItem" >
|
|
@@ -1065,6 +1083,37 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ planToWithdraw() {
|
|
|
|
+ this.$confirm(`确定撤回该计划吗?`, {
|
|
|
|
+ type: 'warning'
|
|
|
|
+ }).then(() => {
|
|
|
|
+ this.http.post('/task/withdrawalTaskPlan',{taskId: this.addForm.id},
|
|
|
|
+ res => {
|
|
|
|
+ if (res.code == "ok") {
|
|
|
|
+ this.$message({
|
|
|
|
+ message: '撤回成功',
|
|
|
|
+ type: 'success'
|
|
|
|
+ });
|
|
|
|
+ let obj = {
|
|
|
|
+ submitInsert: true,
|
|
|
|
+ showOrNot: this.showOrNot
|
|
|
|
+ }
|
|
|
|
+ this.$emit('closeBounced', obj)
|
|
|
|
+ } else {
|
|
|
|
+ this.$message({
|
|
|
|
+ message: res.msg,
|
|
|
|
+ type: "error"
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ error => {
|
|
|
|
+ this.$message({
|
|
|
|
+ message: error,
|
|
|
|
+ type: "error"
|
|
|
|
+ });
|
|
|
|
+ });
|
|
|
|
+ })
|
|
|
|
+ },
|
|
setDisabledPermission() {
|
|
setDisabledPermission() {
|
|
const { taskStatus } = this.showMmeiLaiDeData
|
|
const { taskStatus } = this.showMmeiLaiDeData
|
|
this.doYouWantToDisableAll = taskStatus == 3 || taskStatus == 4
|
|
this.doYouWantToDisableAll = taskStatus == 3 || taskStatus == 4
|
|
@@ -1142,33 +1191,37 @@ export default {
|
|
});
|
|
});
|
|
},
|
|
},
|
|
planOperation(type) {
|
|
planOperation(type) {
|
|
- this.http.post('/task/taskPlanPassOrReject', {
|
|
|
|
- taskId: this.addForm.id, type
|
|
|
|
- },
|
|
|
|
- res => {
|
|
|
|
- if (res.code == "ok") {
|
|
|
|
- this.$message({
|
|
|
|
- message: '操作成功',
|
|
|
|
- type: "success"
|
|
|
|
- });
|
|
|
|
- let obj = {
|
|
|
|
- submitInsert: true,
|
|
|
|
- showOrNot: this.showOrNot
|
|
|
|
|
|
+ this.$confirm(`确定${type ? '通过' : '驳回'}该计划吗?`, {
|
|
|
|
+ type: 'warning'
|
|
|
|
+ }).then(() => {
|
|
|
|
+ this.http.post('/task/taskPlanPassOrReject', {
|
|
|
|
+ taskId: this.addForm.id, type
|
|
|
|
+ },
|
|
|
|
+ res => {
|
|
|
|
+ if (res.code == "ok") {
|
|
|
|
+ this.$message({
|
|
|
|
+ message: '操作成功',
|
|
|
|
+ type: "success"
|
|
|
|
+ });
|
|
|
|
+ let obj = {
|
|
|
|
+ submitInsert: true,
|
|
|
|
+ showOrNot: this.showOrNot
|
|
|
|
+ }
|
|
|
|
+ this.$emit('closeBounced', obj)
|
|
|
|
+ } else {
|
|
|
|
+ this.$message({
|
|
|
|
+ message: res.msg,
|
|
|
|
+ type: "error"
|
|
|
|
+ });
|
|
}
|
|
}
|
|
- this.$emit('closeBounced', obj)
|
|
|
|
- } else {
|
|
|
|
|
|
+ },
|
|
|
|
+ error => {
|
|
this.$message({
|
|
this.$message({
|
|
- message: res.msg,
|
|
|
|
|
|
+ message: error,
|
|
type: "error"
|
|
type: "error"
|
|
});
|
|
});
|
|
- }
|
|
|
|
- },
|
|
|
|
- error => {
|
|
|
|
- this.$message({
|
|
|
|
- message: error,
|
|
|
|
- type: "error"
|
|
|
|
});
|
|
});
|
|
- });
|
|
|
|
|
|
+ })
|
|
},
|
|
},
|
|
// 触发外层的会议
|
|
// 触发外层的会议
|
|
meetingCli() {
|
|
meetingCli() {
|