|
@@ -72,7 +72,7 @@
|
|
|
<el-table-column label="序号" type="index" width="80" />
|
|
|
<el-table-column label="人员" prop="deptName">
|
|
|
<template #default="scope">
|
|
|
- <el-select v-model="scope.row.deptName" placeholder="请选择人员">
|
|
|
+ <el-select v-model="scope.row.employeeId" placeholder="请选择人员">
|
|
|
<el-option
|
|
|
v-for="item in deptLeaderOptionDet"
|
|
|
:key="item.id"
|
|
@@ -82,14 +82,14 @@
|
|
|
</el-select>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="排序" >
|
|
|
+ <el-table-column label="建议值">
|
|
|
<template #default="scope">
|
|
|
- <el-input-number v-model="scope.row.serialNumber" :min="1" />
|
|
|
+ <el-input-number v-model="scope.row.suggestedValue" :precision="2" :step="0.1" :min="0" />
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="建议值">
|
|
|
+ <el-table-column label="排序" >
|
|
|
<template #default="scope">
|
|
|
- <el-input-number v-model="scope.row.suggestedValue" :precision="2" :step="0.1" :min="0" />
|
|
|
+ <el-input-number v-model="scope.row.serialNumber" :min="1" />
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
@@ -116,7 +116,7 @@
|
|
|
|
|
|
<script>
|
|
|
import importDailog from '../importPage/importDailog.vue'
|
|
|
-import {apiPostevaluationdeptadDetails,apiGetevaluationdeptadUpdate, apiPostevaluationdeptadDetailsHead} from '../../api/api'
|
|
|
+import {apiPostevaluationdeptadDetails,apiGetevaluationdeptadUpdate, apiPostevaluationdeptadDetailsHead, apiGetuserPageList} from '../../api/api'
|
|
|
import ExcelJS from 'exceljs'
|
|
|
import fileSave from 'file-saver'
|
|
|
import addIcon from '../../assets/btnIcon/add.png'
|
|
@@ -172,22 +172,39 @@ export default {
|
|
|
created() {
|
|
|
},
|
|
|
methods: {
|
|
|
- init(row, deptLeaderOption) {
|
|
|
+ init(row) {
|
|
|
this.dialogVisible = true
|
|
|
this.activeName = 'first'
|
|
|
this.getDetails(row.id)
|
|
|
- this.deptLeaderOptionDet = deptLeaderOption
|
|
|
- this.receiptMsg = {
|
|
|
- code: row.orderNumber,
|
|
|
- des: row.declarationReason,
|
|
|
- stage: row.stage,
|
|
|
- deptLeaderName: row.deptLeaderName,
|
|
|
- deptName: row.deptName,
|
|
|
- createDate: row.createTime,
|
|
|
- year: row.annual,
|
|
|
- declarationLevel: row.declarationLevel
|
|
|
- }
|
|
|
+ // this.getDetailsHeader(row.id)
|
|
|
+ this.changeDeptLead(row.deptId)
|
|
|
this.rowMsg = row
|
|
|
+ this.$nextTick(() =>{
|
|
|
+ this.receiptMsg = {
|
|
|
+ code: row.orderNumber,
|
|
|
+ des: row.declarationReason,
|
|
|
+ stage: row.stage,
|
|
|
+ deptLeaderName: row.deptLeaderName,
|
|
|
+ deptName: row.deptName,
|
|
|
+ createDate: row.createTime,
|
|
|
+ year: row.annual,
|
|
|
+ declarationLevel: row.declarationLevel
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
+ // 根据部门查询人员
|
|
|
+ changeDeptLead(val) {
|
|
|
+ let that = this
|
|
|
+ let params = {
|
|
|
+ current: 1,
|
|
|
+ size: 500,
|
|
|
+ orgId: val
|
|
|
+ }
|
|
|
+ apiGetuserPageList(params).then(datas =>{
|
|
|
+ if (datas && datas.data) {
|
|
|
+ that.deptLeaderOptionDet = datas.data.records
|
|
|
+ }
|
|
|
+ })
|
|
|
},
|
|
|
handleClick() {
|
|
|
this.changeDateSelect = []
|
|
@@ -202,7 +219,7 @@ export default {
|
|
|
if (datas && datas.data) {
|
|
|
let row = datas.data
|
|
|
that.receiptMsg = {
|
|
|
- code: row.responsibilityCode,
|
|
|
+ code: row.orderNumber,
|
|
|
des: row.des,
|
|
|
stage: row.stage,
|
|
|
createName: row.createName,
|
|
@@ -229,7 +246,7 @@ export default {
|
|
|
let obj = {
|
|
|
showInput: true,
|
|
|
businessPlanId: this.rowMsg.id,
|
|
|
- deptName: '',
|
|
|
+ employeeId: '',
|
|
|
baseScore: 0,
|
|
|
serialNumber: 0
|
|
|
}
|
|
@@ -241,13 +258,13 @@ export default {
|
|
|
that.quantifiedList.forEach(item =>{
|
|
|
let emName = ''
|
|
|
that.deptLeaderOptionDet.forEach(it =>{
|
|
|
- if (item.deptName === it.id) {
|
|
|
+ if (item.employeeId === it.id) {
|
|
|
emName = it.name
|
|
|
}
|
|
|
})
|
|
|
let obj = {
|
|
|
assessmentDeclarationId: that.rowMsg.id,
|
|
|
- employeeId: item.deptName,
|
|
|
+ employeeId: item.employeeId,
|
|
|
employeeName: emName,
|
|
|
suggestedValue: item.suggestedValue.toString(),
|
|
|
serialNumber: item.serialNumber.toString()
|