|
|
@@ -90,6 +90,7 @@
|
|
|
<template #default="{ row }">
|
|
|
<el-upload action="#" :http-request="uploadrequest" :show-file-list="false">
|
|
|
<el-button
|
|
|
+ v-permissions="['plat:task:enclosure:add']"
|
|
|
size="mini"
|
|
|
style="margin-left: 10px"
|
|
|
slot="trigger"
|
|
|
@@ -99,6 +100,7 @@
|
|
|
</el-button>
|
|
|
<el-button
|
|
|
v-show="row.progFile"
|
|
|
+ v-permissions="['plat:task:enclosure:look']"
|
|
|
size="mini"
|
|
|
style="margin-left: 10px"
|
|
|
@click="showFile(row.progFile)">
|
|
|
@@ -115,7 +117,9 @@
|
|
|
</el-table-column>
|
|
|
<el-table-column v-if="theTask.step < 30 && type == 1" align="center" label="操作">
|
|
|
<template #default="{ row }">
|
|
|
- <el-button type="text" @click="handleDel(row.$index)">删除</el-button>
|
|
|
+ <el-button v-permissions="['plat:task:enclosure:delete']" type="text" @click="handleDel(row.$index)">
|
|
|
+ 删除
|
|
|
+ </el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
|
@@ -132,31 +136,53 @@
|
|
|
</el-col>
|
|
|
<el-col :span="8">
|
|
|
<div class="buttons">
|
|
|
- <el-button v-show="theTask.taskStatus === '10' && type == 1" type="primary" @click="changeStatus(10, '10')">
|
|
|
+ <el-button
|
|
|
+ v-show="theTask.taskStatus === '10' && type == 1"
|
|
|
+ v-permissions="['plat:task:detail:receive']"
|
|
|
+ type="primary"
|
|
|
+ @click="changeStatus(10, '10')">
|
|
|
接收
|
|
|
</el-button>
|
|
|
<el-button
|
|
|
v-show="theTask.taskStatus === '20' && theTask.step === 20 && type == 1"
|
|
|
+ v-permissions="['plat:task:detail:staging']"
|
|
|
type="success"
|
|
|
@click="changeStatus(15)">
|
|
|
暂存
|
|
|
</el-button>
|
|
|
<el-button
|
|
|
v-show="theTask.taskStatus === '20' && theTask.step === 20 && type == 1"
|
|
|
+ v-permissions="['plat:task:detail:submit']"
|
|
|
type="primary"
|
|
|
@click="changeStatus(20, '20')">
|
|
|
提交
|
|
|
</el-button>
|
|
|
- <el-button v-show="theTask.step === 30 && type == 1" type="primary" @click="changeStatus(30, '30')">
|
|
|
+ <el-button
|
|
|
+ v-show="theTask.step === 30 && type == 1"
|
|
|
+ v-permissions="['plat:task:detail:adopt']"
|
|
|
+ type="primary"
|
|
|
+ @click="changeStatus(30, '30')">
|
|
|
审批通过
|
|
|
</el-button>
|
|
|
- <el-button v-show="theTask.step === 30 && type == 1" type="danger" @click="changeStatus(30, '40')">
|
|
|
+ <el-button
|
|
|
+ v-show="theTask.step === 30 && type == 1"
|
|
|
+ v-permissions="['plat:task:detail:return']"
|
|
|
+ type="danger"
|
|
|
+ @click="changeStatus(30, '40')">
|
|
|
审批退回
|
|
|
</el-button>
|
|
|
- <el-button v-show="theTask.step === 40 && type == 1" type="primary" @click="changeStatus(40, '30')">
|
|
|
+ <el-button
|
|
|
+ v-show="theTask.step === 40 && type == 1"
|
|
|
+ v-permissions="['plat:task:detail:adopt']"
|
|
|
+ type="primary"
|
|
|
+ @click="changeStatus(40, '30')">
|
|
|
审批通过
|
|
|
</el-button>
|
|
|
- <el-button v-show="theTask.step === 40 && type == 1" type="danger" @click="changeStatus(40, '40')">
|
|
|
+ <el-button
|
|
|
+ v-show="theTask.step === 40 && type == 1"
|
|
|
+ v-permissions="['plat:task:detail:return']"
|
|
|
+ type="danger"
|
|
|
+ @click="changeStatus(40, '40')">
|
|
|
审批退回
|
|
|
</el-button>
|
|
|
<el-button @click="$router.go(-1)">返回</el-button>
|
|
|
@@ -191,6 +217,7 @@
|
|
|
import asyncUploadFile from '@/utils/uploadajax'
|
|
|
import dictApi from '@/api/system/dict'
|
|
|
import axios from 'axios'
|
|
|
+
|
|
|
export default {
|
|
|
name: 'TaskDetail',
|
|
|
data() {
|
|
|
@@ -363,12 +390,15 @@
|
|
|
height: calc(100vh - 60px - 12px * 2 - 40px);
|
|
|
display: flex;
|
|
|
padding: 20px 40px;
|
|
|
+
|
|
|
> .el-row {
|
|
|
flex: 1;
|
|
|
+
|
|
|
> .el-col {
|
|
|
height: 100%;
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
.title {
|
|
|
p,
|
|
|
h3 {
|
|
|
@@ -390,6 +420,7 @@
|
|
|
justify-content: space-between;
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
header {
|
|
|
min-height: 134px;
|
|
|
background: rgba(196, 196, 196, 0.5);
|
|
|
@@ -399,6 +430,7 @@
|
|
|
align-items: center;
|
|
|
padding: 7px 20px;
|
|
|
margin-top: 16px;
|
|
|
+
|
|
|
::v-deep .el-descriptions__body {
|
|
|
background: transparent;
|
|
|
}
|
|
|
@@ -418,39 +450,48 @@
|
|
|
white-space: nowrap;
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
.buttons {
|
|
|
height: 60px;
|
|
|
padding-top: 28px;
|
|
|
text-align: right;
|
|
|
}
|
|
|
+
|
|
|
.add-pro {
|
|
|
text-align: right;
|
|
|
margin: 10px 0;
|
|
|
}
|
|
|
+
|
|
|
.records {
|
|
|
padding: 10px 20px;
|
|
|
height: calc(100% - 60px);
|
|
|
overflow-y: auto;
|
|
|
+
|
|
|
li {
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
+
|
|
|
i {
|
|
|
font-size: 40px;
|
|
|
margin-right: 10px;
|
|
|
}
|
|
|
+
|
|
|
.text {
|
|
|
flex: 1;
|
|
|
}
|
|
|
+
|
|
|
p {
|
|
|
height: 20px;
|
|
|
line-height: 20px;
|
|
|
display: flex;
|
|
|
justify-content: space-between;
|
|
|
font-weight: 500;
|
|
|
+
|
|
|
&:first-child {
|
|
|
font-weight: bold;
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
& + li {
|
|
|
margin-top: 10px;
|
|
|
}
|