|
@@ -1,6 +1,6 @@
|
|
<template>
|
|
<template>
|
|
<div class="startFrom">
|
|
<div class="startFrom">
|
|
- <el-dialog title="任务详情" v-model="dialogVisible" width="80vw" :close-on-click-modal="false">
|
|
|
|
|
|
+ <el-dialog title="任务详情" v-model="dialogVisible" width="80vw" :fullscreen="true" :close-on-click-modal="false">
|
|
<div class="startDetail">
|
|
<div class="startDetail">
|
|
<p class="starttitleSty">单据信息:</p>
|
|
<p class="starttitleSty">单据信息:</p>
|
|
<el-row class="danjuMsg">
|
|
<el-row class="danjuMsg">
|
|
@@ -65,16 +65,16 @@
|
|
</div>
|
|
</div>
|
|
<el-tabs v-model="activeName" class="demo-tabs" @tab-click="handleClick">
|
|
<el-tabs v-model="activeName" class="demo-tabs" @tab-click="handleClick">
|
|
<el-tab-pane label="考评指标项内容" name="first">
|
|
<el-tab-pane label="考评指标项内容" name="first">
|
|
- <el-table :data="quantifiedList" style="width: 100%" @select="rowClick" @select-all="rowClick">
|
|
|
|
- <el-table-column type="selection" label="操作" align="center"></el-table-column>
|
|
|
|
|
|
+ <el-table :data="quantifiedList" style="width: 100%">
|
|
<el-table-column type="index" label="序号" width="80" />
|
|
<el-table-column type="index" label="序号" width="80" />
|
|
<el-table-column label="业务类别" prop="stageName" />
|
|
<el-table-column label="业务类别" prop="stageName" />
|
|
<el-table-column label="所属板块" prop="sectionName" />
|
|
<el-table-column label="所属板块" prop="sectionName" />
|
|
<el-table-column label="单位名称" prop="organizationName" width="300" />
|
|
<el-table-column label="单位名称" prop="organizationName" width="300" />
|
|
<el-table-column label="填报部门" prop="deptName" width="260" />
|
|
<el-table-column label="填报部门" prop="deptName" width="260" />
|
|
<el-table-column label="指标分类" prop="typeName" />
|
|
<el-table-column label="指标分类" prop="typeName" />
|
|
- <!-- <el-table-column label="指标项" prop="optionName" /> -->
|
|
|
|
- <el-table-column label="计划值">
|
|
|
|
|
|
+ <el-table-column label="指标名称" prop="childName" v-if="instanceChild.defKey === 'yddwkplc'" />
|
|
|
|
+ <el-table-column label="指标项" prop="optionName" v-if="instanceChild.defKey === 'yddwkplc'" />
|
|
|
|
+ <el-table-column label="计划值" width="150">
|
|
<template #default="scope">
|
|
<template #default="scope">
|
|
<el-input-number v-model="scope.row.quantifiedValue" :precision="2" :step="0.1" :min="1" />
|
|
<el-input-number v-model="scope.row.quantifiedValue" :precision="2" :step="0.1" :min="1" />
|
|
</template>
|
|
</template>
|
|
@@ -90,8 +90,9 @@
|
|
<el-table-column label="单位名称" prop="organizationName" width="300" />
|
|
<el-table-column label="单位名称" prop="organizationName" width="300" />
|
|
<el-table-column label="填报部门" prop="deptName" width="260" />
|
|
<el-table-column label="填报部门" prop="deptName" width="260" />
|
|
<el-table-column label="指标分类" prop="typeName" />
|
|
<el-table-column label="指标分类" prop="typeName" />
|
|
- <!-- <el-table-column label="指标项" prop="optionName" /> -->
|
|
|
|
- <el-table-column label="计划值">
|
|
|
|
|
|
+ <el-table-column label="指标名称" prop="childName" v-if="instanceChild.defKey === 'yddwkplc'" />
|
|
|
|
+ <el-table-column label="指标项" prop="optionName" v-if="instanceChild.defKey === 'yddwkplc'" />
|
|
|
|
+ <el-table-column label="计划值" width="150">
|
|
<template #default="scope">
|
|
<template #default="scope">
|
|
<el-input v-model="scope.row.nonQuantifiedValue" />
|
|
<el-input v-model="scope.row.nonQuantifiedValue" />
|
|
</template>
|
|
</template>
|
|
@@ -115,7 +116,7 @@
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
-import {apiGettaskDetail,apiGetindicatorsaveBatchDto, apiPostIsdoAction, apiPostgetInstanceAndChildren} from '../../api/api'
|
|
|
|
|
|
+import {apiGettaskevalStartDetail,apiGettaskmothAyearDetail,apiGetindicatorsaveBatchDto, apiPostIsdoAction, apiPostgetInstanceAndChildren} from '../../api/api'
|
|
import addIcon from '../../assets/btnIcon/add.png'
|
|
import addIcon from '../../assets/btnIcon/add.png'
|
|
import saveIcon from '../../assets/btnIcon/save.png'
|
|
import saveIcon from '../../assets/btnIcon/save.png'
|
|
import editIcon from '../../assets/btnIcon/edit.png'
|
|
import editIcon from '../../assets/btnIcon/edit.png'
|
|
@@ -144,7 +145,8 @@ export default {
|
|
editIcon: editIcon,
|
|
editIcon: editIcon,
|
|
deleteIcon: deleteIcon,
|
|
deleteIcon: deleteIcon,
|
|
rowMsg: {},
|
|
rowMsg: {},
|
|
- descMsg: ''
|
|
|
|
|
|
+ descMsg: '',
|
|
|
|
+ instanceChild: {}
|
|
}
|
|
}
|
|
},
|
|
},
|
|
created() {
|
|
created() {
|
|
@@ -153,15 +155,13 @@ export default {
|
|
init(row) {
|
|
init(row) {
|
|
this.dialogVisible = true
|
|
this.dialogVisible = true
|
|
this.activeName = 'first'
|
|
this.activeName = 'first'
|
|
|
|
+ this.instanceChild = {}
|
|
this.getTaskId(row)
|
|
this.getTaskId(row)
|
|
this.rowMsg = row
|
|
this.rowMsg = row
|
|
},
|
|
},
|
|
handleClick() {
|
|
handleClick() {
|
|
this.changeDateSelect = []
|
|
this.changeDateSelect = []
|
|
},
|
|
},
|
|
- rowClick(selection, row) {
|
|
|
|
- this.changeDateSelect = selection
|
|
|
|
- },
|
|
|
|
// 根据流程ID获取业务ID
|
|
// 根据流程ID获取业务ID
|
|
getTaskId(row) {
|
|
getTaskId(row) {
|
|
let that = this
|
|
let that = this
|
|
@@ -171,34 +171,44 @@ export default {
|
|
}
|
|
}
|
|
apiPostgetInstanceAndChildren(params).then(datas =>{
|
|
apiPostgetInstanceAndChildren(params).then(datas =>{
|
|
if (datas && datas.data) {
|
|
if (datas && datas.data) {
|
|
|
|
+ that.instanceChild = datas.data.data.bpmInstance
|
|
let keyId = datas.data.data.bpmInstance.bizKey
|
|
let keyId = datas.data.data.bpmInstance.bizKey
|
|
- that.getDetails(keyId)
|
|
|
|
|
|
+ that.getevalStartDetails(keyId, that.instanceChild.defKey)
|
|
}
|
|
}
|
|
})
|
|
})
|
|
},
|
|
},
|
|
//获取详情
|
|
//获取详情
|
|
- getDetails(id) {
|
|
|
|
|
|
+ getevalStartDetails(id, defKey) {
|
|
let that = this
|
|
let that = this
|
|
let params = {
|
|
let params = {
|
|
id: id
|
|
id: id
|
|
}
|
|
}
|
|
- apiGettaskDetail(params).then(datas =>{
|
|
|
|
- if (datas && datas.data) {
|
|
|
|
- let item = datas.data
|
|
|
|
- that.receiptMsg = {
|
|
|
|
- code: item.responsibilityCode,
|
|
|
|
- des: item.des,
|
|
|
|
- stage: item.stage,
|
|
|
|
- creator: item.createBy,
|
|
|
|
- createDate: item.createTime,
|
|
|
|
- type: item.checkCycle === 'YDKP'?'月度考评':item.checkCycle === 'JDKP'?'季度考评':'年度考评',
|
|
|
|
- year: item.year,
|
|
|
|
- recStage: '有效'
|
|
|
|
- }
|
|
|
|
- that.quantifiedList = item.map.quantifiedList
|
|
|
|
- that.nonQuantifiedList = item.map.nonQuantifiedList
|
|
|
|
|
|
+ if (defKey === 'yddwkplc') {
|
|
|
|
+ apiGettaskmothAyearDetail(params).then(datas =>{
|
|
|
|
+ that.getDataMsg('yddwkplc', datas)
|
|
|
|
+ })
|
|
|
|
+ } else if(defKey === 'dwkpmbqd') {
|
|
|
|
+ apiGettaskevalStartDetail(params).then(datas =>{
|
|
|
|
+ that.getDataMsg('dwkpmbqd', datas)
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ getDataMsg(type, datas) {
|
|
|
|
+ if (datas && datas.data) {
|
|
|
|
+ let item = datas.data
|
|
|
|
+ this.receiptMsg = {
|
|
|
|
+ code: type === 'dwkpmbqd'?item.responsibilityCode:item.organizationEvaluationCode,
|
|
|
|
+ des: item.des,
|
|
|
|
+ stage: item.stage,
|
|
|
|
+ creator: item.createBy,
|
|
|
|
+ createDate: item.createTime,
|
|
|
|
+ type: item.checkCycle === 'YDKP'?'月度考评':item.checkCycle === 'JDKP'?'季度考评':'年度考评',
|
|
|
|
+ year: item.year,
|
|
|
|
+ recStage: '有效'
|
|
}
|
|
}
|
|
- })
|
|
|
|
|
|
+ this.quantifiedList = item.map.quantifiedList
|
|
|
|
+ this.nonQuantifiedList = item.map.nonQuantifiedList
|
|
|
|
+ }
|
|
},
|
|
},
|
|
saveDetail() {
|
|
saveDetail() {
|
|
let that = this
|
|
let that = this
|
|
@@ -240,17 +250,25 @@ export default {
|
|
action: type, //固定值
|
|
action: type, //固定值
|
|
instanceId: that.rowMsg.instId, //流程实例ID
|
|
instanceId: that.rowMsg.instId, //流程实例ID
|
|
opinion: that.descMsg, //审批意见
|
|
opinion: that.descMsg, //审批意见
|
|
- iamCode: getToken('code') //认证后code值
|
|
|
|
|
|
+ iamCode: getToken('code'), //认证后code值
|
|
|
|
+ taskName: that.rowMsg.name,
|
|
|
|
+ defKey: that.instanceChild.defKey,
|
|
|
|
+ bizKey: that.instanceChild.bizKey
|
|
}
|
|
}
|
|
apiPostIsdoAction(params).then(datas =>{
|
|
apiPostIsdoAction(params).then(datas =>{
|
|
if (datas && datas.data) {
|
|
if (datas && datas.data) {
|
|
- that.$message({
|
|
|
|
- message: datas.data.data,
|
|
|
|
- type: 'success'
|
|
|
|
- })
|
|
|
|
if (datas.data.isOk) {
|
|
if (datas.data.isOk) {
|
|
|
|
+ that.$message({
|
|
|
|
+ message: datas.data.data,
|
|
|
|
+ type: 'success'
|
|
|
|
+ })
|
|
that.dialogVisible = false
|
|
that.dialogVisible = false
|
|
that.$emit('approveMsg', datas.data.isOk)
|
|
that.$emit('approveMsg', datas.data.isOk)
|
|
|
|
+ } else {
|
|
|
|
+ that.$message({
|
|
|
|
+ message: datas.data.msg,
|
|
|
|
+ type: 'error'
|
|
|
|
+ })
|
|
}
|
|
}
|
|
}
|
|
}
|
|
})
|
|
})
|
|
@@ -263,7 +281,6 @@ export default {
|
|
.startFrom{
|
|
.startFrom{
|
|
.el-overlay{
|
|
.el-overlay{
|
|
.el-dialog{
|
|
.el-dialog{
|
|
- margin-top: 7vh;
|
|
|
|
.el-dialog__body{
|
|
.el-dialog__body{
|
|
padding: 0 20px !important;
|
|
padding: 0 20px !important;
|
|
.startDetail{
|
|
.startDetail{
|
|
@@ -316,7 +333,7 @@ export default {
|
|
width: 500px;
|
|
width: 500px;
|
|
position: relative;
|
|
position: relative;
|
|
top: 32px;
|
|
top: 32px;
|
|
- left: 73vw;
|
|
|
|
|
|
+ left: 90vw;
|
|
z-index: 11111;
|
|
z-index: 11111;
|
|
.tableBtn {
|
|
.tableBtn {
|
|
display: flex;
|
|
display: flex;
|
|
@@ -377,7 +394,7 @@ export default {
|
|
|
|
|
|
.el-table{
|
|
.el-table{
|
|
.el-table__body-wrapper{
|
|
.el-table__body-wrapper{
|
|
- height: 30vh;
|
|
|
|
|
|
+ height: 40vh !important;
|
|
}
|
|
}
|
|
.el-table__row{
|
|
.el-table__row{
|
|
.cell{
|
|
.cell{
|