企业制修订计划管控 首页接收任务

This commit is contained in:
gaojiabao
2023-03-22 13:54:15 +08:00
parent 8e9fa527a7
commit 2485a3f321
3 changed files with 53 additions and 11 deletions
+44 -1
View File
@@ -11,7 +11,12 @@
<li v-for="item in toDoTaskList" :key="item.id" class="time-title"> <li v-for="item in toDoTaskList" :key="item.id" class="time-title">
<div style="min-height: 30px"> <div style="min-height: 30px">
<span @click="dealWith(item)" <span @click="dealWith(item)"
style="line-height: 30px; font-size: 13px;display: inline-block;width: 100%;">{{ getPrcNameFilter(item) }}</span> style="line-height: 30px; font-size: 13px;display: inline-block;width: 80%;">{{ getPrcNameFilter(item) }}</span>
<el-button type="primary"
size="small"
class="common-button-primary"
icon="el-icon-check"
@click="handleReceive(item)" v-if="item.prcType ===25 || item.taskInfo === '技术标准起草'? true : false">接受任务</el-button>
<!-- <el-tooltip class="item" effect="dark" :content="getPrcNameFilter(item)" placement="left" v-else>--> <!-- <el-tooltip class="item" effect="dark" :content="getPrcNameFilter(item)" placement="left" v-else>-->
<!-- <span @click="dealWith(item)"--> <!-- <span @click="dealWith(item)"-->
<!-- style="line-height: 30px; font-size: 13px;">{{ getPrcNameFilter(item).substring(0, 32) + '...' }}</span>--> <!-- style="line-height: 30px; font-size: 13px;">{{ getPrcNameFilter(item).substring(0, 32) + '...' }}</span>-->
@@ -61,6 +66,44 @@ export default {
toPage() { toPage() {
this.$router.push(this.path) this.$router.push(this.path)
}, },
// 接受按钮
handleReceive(item) {
this.isSubmit = true
// execTask({
// todoId: this.todoId // 当前节点ID
// }).then(res => {
// if (res.sign && res.sign === '0') {
// this.$message.success('接收成功')
// this.$router.push('/processCenter')
// }
// this.isSubmit = false
// })
// if(!this.tableData.standardData[0]){
// this.$message.warning('请先选择企标计划')
// this.isSubmit = false
// return
// }
this.$http.get("lawss/activiti/selectBusProcessNew", {
taskId: item.taskIds,
}, {
_this: this
}, res => {
this.$http.get("lawss/activiti/acceptTack", {
nowEsId: res,
oaFlag: '0',
taskId: item.taskIds,
}, {
_this: this
}, res => {
// if (res.sign && res.sign === '0') {
this.$message.success('接收成功')
this.isSubmit = false
this.showreceive = false
// this.$router.push('/processCenter')
// }
})
})
},
dealWith (row) { // 办理 dealWith (row) { // 办理
const prcType = row.prcType const prcType = row.prcType
switch(prcType) { switch(prcType) {
@@ -97,15 +97,15 @@
v-if="showOver3" v-if="showOver3"
>驳回</el-button> >驳回</el-button>
</el-popover> </el-popover>
<el-button <!-- <el-button-->
type="primary" <!-- type="primary"-->
size="small" <!-- size="small"-->
class="common-button-primary" <!-- class="common-button-primary"-->
icon="el-icon-check" <!-- icon="el-icon-check"-->
@click="handleReceive" <!-- @click="handleReceive"-->
:loading="submitLoading" <!-- :loading="submitLoading"-->
v-if="showReceive" <!-- v-if="showReceive"-->
>接收任务</el-button> <!-- >接收任务</el-button>-->
<el-button <el-button
type="danger" type="danger"
size="small" size="small"
@@ -3461,7 +3461,6 @@
_this: this _this: this
}, res => { }, res => {
if (res.data === true) { if (res.data === true) {
console.log(1);
this.showreceive = true this.showreceive = true
} else { } else {
this.showreceive = false this.showreceive = false