|
|
@@ -60,7 +60,7 @@
|
|
|
<span v-show="theTask.targetType == '40'">回款</span>
|
|
|
</el-descriptions-item> -->
|
|
|
<el-descriptions-item content-class-name="my-content" label="督办事项来源" label-class-name="my-label">
|
|
|
- {{ theTask.source }}
|
|
|
+ {{ selectDictLabel(sourceOptions, theTask.source) }}
|
|
|
</el-descriptions-item>
|
|
|
</el-descriptions>
|
|
|
</header>
|
|
|
@@ -88,9 +88,10 @@
|
|
|
</el-table-column>
|
|
|
<el-table-column align="center" label="附件" prop="progFile">
|
|
|
<template #default="{ row }">
|
|
|
- <el-upload action="#" :http-request="uploadrequest" :show-file-list="false">
|
|
|
+ <el-upload action="#" :disabled="type !== '1'" :http-request="uploadrequest" :show-file-list="false">
|
|
|
<el-button
|
|
|
v-permissions="['plat:task:enclosure:add']"
|
|
|
+ :disabled="type !== '1'"
|
|
|
size="mini"
|
|
|
style="margin-left: 10px"
|
|
|
slot="trigger"
|
|
|
@@ -100,7 +101,6 @@
|
|
|
</el-button>
|
|
|
<el-button
|
|
|
v-show="row.progFile"
|
|
|
- v-permissions="['plat:task:enclosure:look']"
|
|
|
size="mini"
|
|
|
style="margin-left: 10px"
|
|
|
@click="showFile(row.progFile)">
|
|
|
@@ -157,32 +157,16 @@
|
|
|
@click="changeStatus(20, '20')">
|
|
|
提交
|
|
|
</el-button>
|
|
|
- <el-button
|
|
|
- v-show="theTask.step === 30 && type == 1"
|
|
|
- v-permissions="['plat:task:detail:adopt']"
|
|
|
- type="primary"
|
|
|
- @click="changeStatus(30, '30')">
|
|
|
+ <el-button v-show="theTask.step === 30 && type == 1" type="primary" @click="changeStatus(30, '30')">
|
|
|
审批通过
|
|
|
</el-button>
|
|
|
- <el-button
|
|
|
- v-show="theTask.step === 30 && type == 1"
|
|
|
- v-permissions="['plat:task:detail:return']"
|
|
|
- type="danger"
|
|
|
- @click="changeStatus(30, '40')">
|
|
|
+ <el-button v-show="theTask.step === 30 && type == 1" type="danger" @click="changeStatus(30, '40')">
|
|
|
审批退回
|
|
|
</el-button>
|
|
|
- <el-button
|
|
|
- v-show="theTask.step === 40 && type == 1"
|
|
|
- v-permissions="['plat:task:detail:adopt']"
|
|
|
- type="primary"
|
|
|
- @click="changeStatus(40, '30')">
|
|
|
+ <el-button v-show="theTask.step === 40 && type == 1" type="primary" @click="changeStatus(40, '30')">
|
|
|
审批通过
|
|
|
</el-button>
|
|
|
- <el-button
|
|
|
- v-show="theTask.step === 40 && type == 1"
|
|
|
- v-permissions="['plat:task:detail:return']"
|
|
|
- type="danger"
|
|
|
- @click="changeStatus(40, '40')">
|
|
|
+ <el-button v-show="theTask.step === 40 && type == 1" type="danger" @click="changeStatus(40, '40')">
|
|
|
审批退回
|
|
|
</el-button>
|
|
|
<el-button @click="$router.go(-1)">返回</el-button>
|
|
|
@@ -226,6 +210,7 @@
|
|
|
// 督办进展
|
|
|
progressList: [],
|
|
|
// 日志
|
|
|
+ sourceOptions: [],
|
|
|
logList: [],
|
|
|
theTask: {},
|
|
|
typeMap: {},
|
|
|
@@ -269,14 +254,19 @@
|
|
|
},
|
|
|
// 初始化数据
|
|
|
async initData() {
|
|
|
- const [err, [type, user]] = await to(
|
|
|
- Promise.all([dictApi.getDictDataList({ dictType: 'task_type' }), userApi.getList()])
|
|
|
+ const [err, [type, source, user]] = await to(
|
|
|
+ Promise.all([
|
|
|
+ dictApi.getDictDataList({ dictType: 'task_type' }),
|
|
|
+ this.getDicts('plat_task_source'),
|
|
|
+ userApi.getList(),
|
|
|
+ ])
|
|
|
)
|
|
|
if (err) return
|
|
|
this.types = type.data.list
|
|
|
for (let type of this.types) {
|
|
|
this.typeMap[type.dictValue] = type.dictLabel
|
|
|
}
|
|
|
+ this.sourceOptions = source.data.values || []
|
|
|
this.users = user.data.list
|
|
|
for (let user of this.users) {
|
|
|
this.userMap[user.id] = user.nickName
|