|
@@ -17,14 +17,27 @@
|
|
|
</el-option>
|
|
|
</el-select>
|
|
|
</div>
|
|
|
+ <div class="exceed">
|
|
|
+ <span class="exceedSpan" style="width: 80px">考评周期:</span>
|
|
|
+ <el-select v-model="evaluationCycleStr" placeholder="请选择考评周期">
|
|
|
+ <el-option
|
|
|
+ v-for="item in periodData"
|
|
|
+ :key="item.keyValue"
|
|
|
+ :label="item.keyName"
|
|
|
+ :value="item.keyValue"
|
|
|
+ :disabled="item.keyValue === 'YDKP'">
|
|
|
+ </el-option>
|
|
|
+ </el-select>
|
|
|
+ </div>
|
|
|
<seachs @handleSeach="getSeachData" @handleRest="resetSeach"></seachs>
|
|
|
</div>
|
|
|
<div class="PeriodBtn" :style="$utils.PeriodBtnSty()">
|
|
|
+ <!-- $utils.havePurview('evalIndex:oneLevel:save') -->
|
|
|
<btns
|
|
|
:showImport="false"
|
|
|
:showExport="false"
|
|
|
:showAdd="$utils.havePurview('evalIndex:oneLevel:add')"
|
|
|
- :showSave="$utils.havePurview('evalIndex:oneLevel:save')"
|
|
|
+ :showSave="true"
|
|
|
:showDelete="$utils.havePurview('evalIndex:oneLevel:delete')"
|
|
|
:disSave="changeDateSelect.length === 0 || changeDateSelect.length>1"
|
|
|
:disDelete="changeDateSelect.length === 0"
|
|
@@ -46,6 +59,7 @@
|
|
|
<el-table-column label="业务阶段" prop="binStageName" />
|
|
|
<el-table-column label="指标类型" prop="indicatorTypeName" width="200" />
|
|
|
<el-table-column label="指标名称" prop="indicatorName" width="300" />
|
|
|
+ <el-table-column label="考评周期" prop="evaluationCycle" />
|
|
|
<el-table-column label="指标单位" prop="unit" />
|
|
|
<!-- <el-table-column label="公司" prop="company" /> -->
|
|
|
<!-- <el-table-column label="部门" prop="deptName" width="150" /> -->
|
|
@@ -100,6 +114,17 @@
|
|
|
<el-form-item label="指标单位" prop="indicatorUnit">
|
|
|
<el-input v-model="ruleForm.indicatorUnit" placeholder="请输入指标单位"></el-input>
|
|
|
</el-form-item>
|
|
|
+ <el-form-item label="考评周期" prop="evaluationCycle">
|
|
|
+ <el-select v-model="ruleForm.evaluationCycle" placeholder="请选择考评周期">
|
|
|
+ <el-option
|
|
|
+ v-for="item in periodData"
|
|
|
+ :key="item.keyValue"
|
|
|
+ :label="item.keyName"
|
|
|
+ :value="item.keyValue"
|
|
|
+ :disabled="item.keyValue === 'YDKP'">
|
|
|
+ </el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
<el-form-item label="所属部门" prop="department">
|
|
|
<el-select v-model="ruleForm.department" placeholder="请选择所属部门">
|
|
|
<el-option
|
|
@@ -298,16 +323,19 @@ export default {
|
|
|
changeDateSelect: [],
|
|
|
indicatorIdS: '',
|
|
|
binSectionIds: '',
|
|
|
+ evaluationCycleStr: '',
|
|
|
evaluationIndexData:[],
|
|
|
moduleData: [],
|
|
|
stageData: [],
|
|
|
departData: [],
|
|
|
indicatorTypeData: [],
|
|
|
+ periodData: [],
|
|
|
ruleForm: {
|
|
|
indicatorName: '',
|
|
|
indicatorCode: '',
|
|
|
indicatorType: '',
|
|
|
indicatorUnit: '',
|
|
|
+ evaluationCycle: '',
|
|
|
department: '',
|
|
|
binSection: '',
|
|
|
binStage: '',
|
|
@@ -330,6 +358,9 @@ export default {
|
|
|
indicatorUnit: [
|
|
|
{ required: true, message: '请输入指标单位', trigger: 'blur' }
|
|
|
],
|
|
|
+ evaluationCycle: [
|
|
|
+ { required: true, message: '请选择考评周期', trigger: 'change' }
|
|
|
+ ],
|
|
|
department: [
|
|
|
{ required: true, message: '请选择所属部门', trigger: 'change' }
|
|
|
],
|
|
@@ -378,6 +409,7 @@ export default {
|
|
|
this.getDataDictionary('BM0001') //部门//模块//阶段
|
|
|
this.getindicatorTypeData()
|
|
|
this.getindicItemData()
|
|
|
+ this.getPeriodData()
|
|
|
},
|
|
|
methods:{
|
|
|
// 查询指标数据
|
|
@@ -387,7 +419,8 @@ export default {
|
|
|
pageNum: that.page.currentPage,
|
|
|
pageSize: that.page.pagesize,
|
|
|
indicatorName: that.indicatorIdS,
|
|
|
- binSection: that.binSectionIds
|
|
|
+ binSection: that.binSectionIds,
|
|
|
+ evaluationCycle: that.evaluationCycleStr
|
|
|
}
|
|
|
// if (type) {
|
|
|
// params.indicatorName = that.indicatorIdS
|
|
@@ -428,6 +461,18 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
+ //考评周期
|
|
|
+ getPeriodData() {
|
|
|
+ let that = this
|
|
|
+ let params = {
|
|
|
+ superKey: 'KPZQ0001'
|
|
|
+ }
|
|
|
+ apiGetdatadictionaryList(params).then(datas =>{
|
|
|
+ if (datas && datas.data) {
|
|
|
+ that.periodData = datas.data
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
// 查询部门
|
|
|
// 查询规则模块和阶段数据
|
|
|
getDataDictionary(val) {
|
|
@@ -502,6 +547,7 @@ export default {
|
|
|
indicatorCode: '',
|
|
|
indicatorType: '',
|
|
|
indicatorUnit: '',
|
|
|
+ evaluationCycle: '',
|
|
|
department: '',
|
|
|
binSection: '',
|
|
|
binStage: '',
|
|
@@ -524,6 +570,7 @@ export default {
|
|
|
indicatorCode: this.evalradio.indicatorCode,
|
|
|
indicatorType: this.evalradio.indicatorTypeId,
|
|
|
indicatorUnit: this.evalradio.unit,
|
|
|
+ evaluationCycle: this.evalradio.evaluationCycle,
|
|
|
department: this.evalradio.deptId,
|
|
|
binSection: this.evalradio.binSection,
|
|
|
binStage: this.evalradio.binStage,
|
|
@@ -587,6 +634,7 @@ export default {
|
|
|
indicatorCode: that.ruleForm.indicatorCode,
|
|
|
indicatorTypeId: that.ruleForm.indicatorType,
|
|
|
unit: that.ruleForm.indicatorUnit,
|
|
|
+ evaluationCycle: that.ruleForm.evaluationCycle,
|
|
|
deptId: that.ruleForm.department,
|
|
|
deptName: deptName,
|
|
|
binSection: that.ruleForm.binSection,
|
|
@@ -686,6 +734,7 @@ export default {
|
|
|
this.page.currentPage = 1
|
|
|
this.indicatorIdS = ''
|
|
|
this.binSectionIds = ''
|
|
|
+ this.evaluationCycleStr = ''
|
|
|
this.getEvaluationData()
|
|
|
},
|
|
|
successImport(val) {
|
|
@@ -719,6 +768,7 @@ export default {
|
|
|
indicatorCode: row.indicatorCode,
|
|
|
indicatorType: row.indicatorTypeId,
|
|
|
indicatorUnit: row.unit,
|
|
|
+ evaluationCycle: row.evaluationCycle,
|
|
|
department: row.deptId,
|
|
|
binSection: row.binSection,
|
|
|
binStage: row.binStage,
|
|
@@ -859,7 +909,6 @@ export default {
|
|
|
display: flex;
|
|
|
justify-content: end;
|
|
|
margin-right: 30px;
|
|
|
- width: 13%;
|
|
|
img{
|
|
|
margin-right: 5px;
|
|
|
margin-top: 1px;
|