|
|
|
|
@ -1,7 +1,7 @@
|
|
|
|
|
<template>
|
|
|
|
|
<div>
|
|
|
|
|
<el-drawer
|
|
|
|
|
size="46%"
|
|
|
|
|
size="56%"
|
|
|
|
|
:title="type === 1 ? '年中绩效指标' : '年末绩效指标'"
|
|
|
|
|
:visible.sync="isShow"
|
|
|
|
|
direction="rtl"
|
|
|
|
|
@ -55,10 +55,14 @@ import { save, show, index as evaluateIndex } from "@/api/achievements/evaluate"
|
|
|
|
|
import { deepCopy, resetSelect } from '@/utils'
|
|
|
|
|
import { getToken } from "@/utils/auth";
|
|
|
|
|
import { editorBudget } from '@/api/budget/budget'
|
|
|
|
|
import { getparameter } from '@/api/system/dictionary'
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
symbols: [],
|
|
|
|
|
units: [],
|
|
|
|
|
isPid0: false,
|
|
|
|
|
isShow: false,
|
|
|
|
|
type: 1,
|
|
|
|
|
action: process.env.VUE_APP_UPLOAD_API,
|
|
|
|
|
@ -70,14 +74,15 @@ export default {
|
|
|
|
|
width: 80,
|
|
|
|
|
label: "自评展开",
|
|
|
|
|
expandFn: ({ row, $index, store }) => {
|
|
|
|
|
row._form.score = row.score
|
|
|
|
|
return (
|
|
|
|
|
<div class="expand">
|
|
|
|
|
<el-form
|
|
|
|
|
ref={`expand-form${$index}`}
|
|
|
|
|
props={{ model: row._form }}
|
|
|
|
|
label-width="80px"
|
|
|
|
|
label-width="120px"
|
|
|
|
|
>
|
|
|
|
|
<el-form-item label="自评值" required={true}>
|
|
|
|
|
<el-form-item label="实际完成值" required={true}>
|
|
|
|
|
<el-input
|
|
|
|
|
type="textarea"
|
|
|
|
|
autosize={{
|
|
|
|
|
@ -85,16 +90,16 @@ export default {
|
|
|
|
|
}}
|
|
|
|
|
v-model={row._form.result}
|
|
|
|
|
size="small"
|
|
|
|
|
placeholder="请输入自评值"
|
|
|
|
|
placeholder="请输入实际完成值"
|
|
|
|
|
></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
|
|
<el-form-item label="得分" required={true}>
|
|
|
|
|
<el-input-number
|
|
|
|
|
type="textarea"
|
|
|
|
|
disabled={this.isPid0}
|
|
|
|
|
precision={2}
|
|
|
|
|
controls={false}
|
|
|
|
|
vModel={row._form.result}
|
|
|
|
|
vModel={row._form.score}
|
|
|
|
|
size="small"
|
|
|
|
|
placeholder="请输入自评值"
|
|
|
|
|
></el-input-number>
|
|
|
|
|
@ -194,6 +199,35 @@ export default {
|
|
|
|
|
prop: "target.name",
|
|
|
|
|
minWidth: 200,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: "评价方式",
|
|
|
|
|
prop: "target.evaluation_way",
|
|
|
|
|
minWidth: 180
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: "是否固定指标项目",
|
|
|
|
|
prop: "is_fixed",
|
|
|
|
|
width: 120,
|
|
|
|
|
formatter(row,data,val) {
|
|
|
|
|
return val? '是' : '否';
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: "计算符号",
|
|
|
|
|
prop: "target.symbol_id",
|
|
|
|
|
width: 120,
|
|
|
|
|
formatter: (cel,data,val) => {
|
|
|
|
|
return this.symbols.find(i => i.id === val)?.value
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: "单位",
|
|
|
|
|
prop: "target.unit_id",
|
|
|
|
|
width: 120,
|
|
|
|
|
formatter: (cel,data,val) => {
|
|
|
|
|
return this.units.find(i => i.id === val)?.value
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: "半年(程)指标值",
|
|
|
|
|
prop: "target.half_target",
|
|
|
|
|
@ -243,7 +277,6 @@ export default {
|
|
|
|
|
row._fileList = fileList;
|
|
|
|
|
},
|
|
|
|
|
uploadBefore(file) {
|
|
|
|
|
console.log(file);
|
|
|
|
|
if (file.size / 1024 > 500) {
|
|
|
|
|
this.$message({
|
|
|
|
|
type: "warning",
|
|
|
|
|
@ -273,7 +306,6 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
expandChange({ row, expanded }) {
|
|
|
|
|
console.log(row, expanded)
|
|
|
|
|
if(expanded.indexOf(row) !== -1) {
|
|
|
|
|
evaluateIndex({
|
|
|
|
|
type: this.type,
|
|
|
|
|
@ -338,6 +370,14 @@ export default {
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
async getSymbols() {
|
|
|
|
|
const res = await getparameter( { number: "symbol" })
|
|
|
|
|
this.symbols = res.detail
|
|
|
|
|
},
|
|
|
|
|
async getUnits() {
|
|
|
|
|
const res = await getparameter({ number: "unit" })
|
|
|
|
|
this.units = res.detail
|
|
|
|
|
},
|
|
|
|
|
submit() {},
|
|
|
|
|
},
|
|
|
|
|
computed: {},
|
|
|
|
|
@ -349,6 +389,10 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
created() {
|
|
|
|
|
this.getSymbols()
|
|
|
|
|
this.getUnits()
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|