|
@@ -3,19 +3,12 @@
|
|
<div class="evaluationUnitRatingBtn">
|
|
<div class="evaluationUnitRatingBtn">
|
|
<div class="collectSeach" :style="$utils.collectSeachSty()">
|
|
<div class="collectSeach" :style="$utils.collectSeachSty()">
|
|
<div class="exceed">
|
|
<div class="exceed">
|
|
- <span class="exceedSpan">单位名称:</span>
|
|
|
|
- <el-input v-model="resCompanyName" placeholder="请输入单位名称"></el-input>
|
|
|
|
|
|
+ <span class="exceedSpan">评级编码:</span>
|
|
|
|
+ <el-input v-model="ratingCode" placeholder="请输入评级编码"></el-input>
|
|
</div>
|
|
</div>
|
|
<div class="exceed">
|
|
<div class="exceed">
|
|
- <span class="exceedSpan">业务属性:</span>
|
|
|
|
- <el-select v-model="businessStr" placeholder="请选择业务属性" clearable >
|
|
|
|
- <el-option
|
|
|
|
- v-for="item in binSectionoptions"
|
|
|
|
- :key="item.sectionCode"
|
|
|
|
- :label="item.sectionName"
|
|
|
|
- :value="item.sectionCode">
|
|
|
|
- </el-option>
|
|
|
|
- </el-select>
|
|
|
|
|
|
+ <span class="exceedSpan">评级描述:</span>
|
|
|
|
+ <el-input v-model="ratingDes" placeholder="请输入评级描述"></el-input>
|
|
</div>
|
|
</div>
|
|
<div class="exceed">
|
|
<div class="exceed">
|
|
<span class="exceedSpan" style="width: 80px">考评年度:</span>
|
|
<span class="exceedSpan" style="width: 80px">考评年度:</span>
|
|
@@ -25,71 +18,53 @@
|
|
</div>
|
|
</div>
|
|
<div class="PeriodBtn" :style="$utils.PeriodBtnSty()">
|
|
<div class="PeriodBtn" :style="$utils.PeriodBtnSty()">
|
|
<btns
|
|
<btns
|
|
- :showImport="$utils.havePurview('evaluationUnitRate:oneLevel:import')"
|
|
|
|
- :showExport="$utils.havePurview('evaluationUnitRate:oneLevel:export')"
|
|
|
|
- :showSave="$utils.havePurview('evaluationUnitRate:oneLevel:save')"
|
|
|
|
- :showAdd="$utils.havePurview('evaluationUnitRate:oneLevel:add')"
|
|
|
|
- :showDelete="$utils.havePurview('evaluationUnitRate:oneLevel:delete')"
|
|
|
|
|
|
+ :showImport="false" :showExport="false" :showSave="true" :showAdd="true" :showDelete="true"
|
|
:disSave="changeDateSelect.length === 0 || changeDateSelect.length>1"
|
|
:disSave="changeDateSelect.length === 0 || changeDateSelect.length>1"
|
|
:disDelete="changeDateSelect.length === 0"
|
|
:disDelete="changeDateSelect.length === 0"
|
|
- :disImport="false"
|
|
|
|
- :disExport="false"
|
|
|
|
|
|
+ :disImport="false" :disExport="false"
|
|
@handleAdd="handleAdd"
|
|
@handleAdd="handleAdd"
|
|
@handleEdit="handleEdit"
|
|
@handleEdit="handleEdit"
|
|
@handleDelete="handleDelete"
|
|
@handleDelete="handleDelete"
|
|
- @handleImport="handleImport"
|
|
|
|
- @handleExport="handleExport"
|
|
|
|
></btns>
|
|
></btns>
|
|
</div>
|
|
</div>
|
|
<div class="evaluationUnitRatingTableData">
|
|
<div class="evaluationUnitRatingTableData">
|
|
<!-- @row-click="rowClickToggle" -->
|
|
<!-- @row-click="rowClickToggle" -->
|
|
- <el-table :data="evaluationUnitRatingData" style="width: 100%" ref="tableSS" :class="unitRatingTableSty()"
|
|
|
|
- @select="rowClick" @select-all="rowClick">
|
|
|
|
|
|
+ <el-table :data="evaluationUnitRatingData" style="width: 100%" :class="unitRatingTableSty()"
|
|
|
|
+ @select="rowClick" @select-all="rowClick" @row-dblclick="rowClickToggle">
|
|
<el-table-column type="selection" label="操作" align="center"></el-table-column>
|
|
<el-table-column type="selection" label="操作" align="center"></el-table-column>
|
|
<el-table-column type="index" label="序号" align="center"></el-table-column>
|
|
<el-table-column type="index" label="序号" align="center"></el-table-column>
|
|
- <el-table-column label="考评单位" width="200">
|
|
|
|
|
|
+ <el-table-column label="编码" prop="yearRatingCode" />
|
|
|
|
+ <el-table-column label="描述" prop="des" />
|
|
|
|
+ <el-table-column label="年份" prop="year" />
|
|
|
|
+ <el-table-column label="状态" prop="stage" width="200">
|
|
<template #default="scope">
|
|
<template #default="scope">
|
|
- <el-tooltip
|
|
|
|
- class="box-item"
|
|
|
|
- effect="customized"
|
|
|
|
- :content="scope.row.organizationShortName"
|
|
|
|
- placement="right"
|
|
|
|
- >
|
|
|
|
- <span class="tooltipCC">{{scope.row.organizationShortName}}</span>
|
|
|
|
- </el-tooltip>
|
|
|
|
|
|
+ <p class="indicitem" @click="seeStates(scope.row)">{{scope.row.stage}}</p>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column label="创建人" prop="createName" />
|
|
|
|
+ <el-table-column label="创建时间" prop="createTime" />
|
|
|
|
+ <el-table-column label="操作" width="160">
|
|
|
|
+ <template #default="scope">
|
|
|
|
+ <div style="display:flex">
|
|
|
|
+ <p class="indicitem" v-if="scope.row.stage === '流程未启动'" @click="agetdeptresponsibility(scope.row)">启动</p>
|
|
|
|
+ <p style="font-size: 12px;margin-right: 20px;" v-else-if="scope.row.stage === '流程已结束'" >已结束</p>
|
|
|
|
+ <p style="font-size: 12px;margin-right: 20px;" v-else >已启动</p>
|
|
|
|
+ </div>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column label="业务板块" prop="binSectionName" />
|
|
|
|
- <el-table-column label="考评年度" prop="year" />
|
|
|
|
- <el-table-column label="生成经营评级" prop="scjyRate" />
|
|
|
|
- <el-table-column label="前期评级" prop="qqRate" />
|
|
|
|
- <el-table-column label="基建评级" prop="jjRate" />
|
|
|
|
- <el-table-column label="年度评级" prop="yearRate" />
|
|
|
|
</el-table>
|
|
</el-table>
|
|
|
|
+ <el-pagination
|
|
|
|
+ @size-change="handleSizeChange"
|
|
|
|
+ @current-change="handleCurrentChange"
|
|
|
|
+ :current-page="page.currentPage"
|
|
|
|
+ :page-size="page.pagesize"
|
|
|
|
+ layout="total, prev, pager, next, jumper"
|
|
|
|
+ :total="page.total">
|
|
|
|
+ </el-pagination>
|
|
</div>
|
|
</div>
|
|
<el-dialog :title="title" custom-class="startToDia" v-model="dialogVisible" width="600px" :close-on-click-modal="false">
|
|
<el-dialog :title="title" custom-class="startToDia" v-model="dialogVisible" width="600px" :close-on-click-modal="false">
|
|
<div class="periodFrom">
|
|
<div class="periodFrom">
|
|
- <el-form :model="ruleForm" :rules="rules" ref="ruleForm" label-width="100px" class="demo-ruleForm" :validate-on-rule-change="false">
|
|
|
|
- <el-form-item label="考评单位" prop="companyRuleF">
|
|
|
|
- <el-select v-model="ruleForm.companyRuleF" placeholder="请选择考评单位" :disabled="isSave">
|
|
|
|
- <el-option
|
|
|
|
- v-for="item in companyData"
|
|
|
|
- :key="item.organizationId"
|
|
|
|
- :label="item.organizationShortName"
|
|
|
|
- :value="item.organizationId">
|
|
|
|
- </el-option>
|
|
|
|
- </el-select>
|
|
|
|
- </el-form-item>
|
|
|
|
- <el-form-item label="业务属性" prop="binSection">
|
|
|
|
- <el-select v-model="ruleForm.binSection" placeholder="请选择业务属性">
|
|
|
|
- <el-option
|
|
|
|
- v-for="item in binSectionoptions"
|
|
|
|
- :key="item.sectionCode"
|
|
|
|
- :label="item.sectionName"
|
|
|
|
- :value="item.sectionCode">
|
|
|
|
- </el-option>
|
|
|
|
- </el-select>
|
|
|
|
- </el-form-item>
|
|
|
|
|
|
+ <el-form :model="ruleForm" :rules="rules" ref="ruleForm" label-width="100px" class="demo-ruleForm" :validate-on-rule-change="false">
|
|
<el-form-item label="年份" prop="year">
|
|
<el-form-item label="年份" prop="year">
|
|
<el-date-picker
|
|
<el-date-picker
|
|
v-model="ruleForm.year"
|
|
v-model="ruleForm.year"
|
|
@@ -99,112 +74,93 @@
|
|
placeholder="请选择年份"
|
|
placeholder="请选择年份"
|
|
/>
|
|
/>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
- <el-form-item label="生成经营评级">
|
|
|
|
- <el-select v-model="ruleForm.scjyRate" placeholder="请选择评级">
|
|
|
|
- <el-option
|
|
|
|
- v-for="item in ratingArr"
|
|
|
|
- :key="item.value"
|
|
|
|
- :label="item.label"
|
|
|
|
- :value="item.value">
|
|
|
|
- </el-option>
|
|
|
|
- </el-select>
|
|
|
|
- </el-form-item>
|
|
|
|
- <el-form-item label="前期评级">
|
|
|
|
- <el-select v-model="ruleForm.qqRate" placeholder="请选择评级">
|
|
|
|
- <el-option
|
|
|
|
- v-for="item in ratingArr"
|
|
|
|
- :key="item.value"
|
|
|
|
- :label="item.label"
|
|
|
|
- :value="item.value">
|
|
|
|
- </el-option>
|
|
|
|
- </el-select>
|
|
|
|
- </el-form-item>
|
|
|
|
- <el-form-item label="基建评级">
|
|
|
|
- <el-select v-model="ruleForm.jjRate" placeholder="请选择评级">
|
|
|
|
- <el-option
|
|
|
|
- v-for="item in ratingArr"
|
|
|
|
- :key="item.value"
|
|
|
|
- :label="item.label"
|
|
|
|
- :value="item.value">
|
|
|
|
- </el-option>
|
|
|
|
- </el-select>
|
|
|
|
- </el-form-item>
|
|
|
|
- <el-form-item label="年度评级">
|
|
|
|
- <el-select v-model="ruleForm.yearRate" placeholder="请选择评级">
|
|
|
|
- <el-option
|
|
|
|
- v-for="item in ratingArr"
|
|
|
|
- :key="item.value"
|
|
|
|
- :label="item.label"
|
|
|
|
- :value="item.value">
|
|
|
|
- </el-option>
|
|
|
|
- </el-select>
|
|
|
|
- </el-form-item>
|
|
|
|
- <el-form-item label="描述" prop="remark">
|
|
|
|
- <el-input v-model="ruleForm.remark" :rows="5" type="textarea" placeholder="请输入描述"></el-input>
|
|
|
|
|
|
+ <el-form-item label="描述" prop="des">
|
|
|
|
+ <el-input v-model="ruleForm.des" :rows="5" type="textarea" placeholder="请输入描述"></el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-form>
|
|
</el-form>
|
|
</div>
|
|
</div>
|
|
- <template #footer>
|
|
|
|
|
|
+ <template #footer v-if="isSave && evalradio.stage !== '流程启动'">
|
|
<span class="dialog-footer">
|
|
<span class="dialog-footer">
|
|
<el-button @click="dialogVisible = false">取 消</el-button>
|
|
<el-button @click="dialogVisible = false">取 消</el-button>
|
|
<el-button type="primary" @click="saveevaluaStart('ruleForm')">确 定</el-button>
|
|
<el-button type="primary" @click="saveevaluaStart('ruleForm')">确 定</el-button>
|
|
</span>
|
|
</span>
|
|
</template>
|
|
</template>
|
|
</el-dialog>
|
|
</el-dialog>
|
|
|
|
+ <el-dialog title="流程详情" v-model="statesVisible" :fullscreen="true" :close-on-click-modal="false">
|
|
|
|
+ <div class="flowSty">
|
|
|
|
+ <iframe id="iframeContain" width="100%" height="500px"
|
|
|
|
+ frameborder="0" class="iframe" name="iframeContain" seamless scrolling="no" :src="iframeURL">
|
|
|
|
+ </iframe>
|
|
|
|
+ <el-table :data="stageArr" style="width: 100%">
|
|
|
|
+ <el-table-column type="index" label="序号" align="center" />
|
|
|
|
+ <el-table-column label="任务名称" prop="taskName" />
|
|
|
|
+ <el-table-column label="任务创建时间" prop="createTime" />
|
|
|
|
+ <el-table-column label="任务处理时间" prop="approveTime" />
|
|
|
|
+ <el-table-column label="候选人" prop="assignInfo" width="300">
|
|
|
|
+ <template #default="scope">
|
|
|
|
+ <span>{{changeAssignInfo(scope.row)}}</span>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column label="执行人" prop="approverName" />
|
|
|
|
+ <el-table-column label="处理状态" prop="status">
|
|
|
|
+ <template #default="scope">
|
|
|
|
+ <div v-if="scope.row.status === 'start'">启动</div>
|
|
|
|
+ <div v-else-if="scope.row.status === 'agree'">同意</div>
|
|
|
|
+ <div v-else-if="scope.row.status === 'awaiting_check'">等待,待审批</div>
|
|
|
|
+ <div v-else-if="scope.row.status === 'reject'">驳回</div>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column label="备注/意见" prop="opinion" />
|
|
|
|
+ </el-table>
|
|
|
|
+ </div>
|
|
|
|
+ </el-dialog>
|
|
</div>
|
|
</div>
|
|
- <start-from-list ref="startFromDetail" ></start-from-list>
|
|
|
|
- <import-dailog ref="importPage" @successImport="successImport"></import-dailog>
|
|
|
|
|
|
+ <rating-dialog ref="ratingDialog" ></rating-dialog>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
-import importDailog from '../importPage/importDailog.vue'
|
|
|
|
-import startFromList from './evaluationDeptStartFrom.vue'
|
|
|
|
|
|
+import ratingDialog from './evaluationUnitRatingDialog.vue'
|
|
import btns from '../elbuttonS.vue'
|
|
import btns from '../elbuttonS.vue'
|
|
import seachs from '../seachGroup.vue'
|
|
import seachs from '../seachGroup.vue'
|
|
-import ExcelJS from 'exceljs'
|
|
|
|
-import fileSave from 'file-saver'
|
|
|
|
-import {apiGetorganizationratinglist, apiGetorganizationratingsave,apiGetOrganizationListAll,apiGetbinsectionList,
|
|
|
|
-apiPostorganizationratingDelete} from '../../api/api'
|
|
|
|
|
|
+import {apiGetorganizationyearratinglist, apiGetorganizationyearratingsave,apiGetworkflowgetOpinion,apiGetdoAction,
|
|
|
|
+apiPostorganizationyearratingDelete} from '../../api/api'
|
|
export default {
|
|
export default {
|
|
components: {
|
|
components: {
|
|
- startFromList,
|
|
|
|
- importDailog,
|
|
|
|
|
|
+ ratingDialog,
|
|
btns,
|
|
btns,
|
|
seachs
|
|
seachs
|
|
},
|
|
},
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
dialogVisible: false,
|
|
dialogVisible: false,
|
|
|
|
+ statesVisible: false,
|
|
isSave: false,
|
|
isSave: false,
|
|
title: '',
|
|
title: '',
|
|
|
|
+ iframeURL: '',
|
|
evalradio: {},
|
|
evalradio: {},
|
|
changeDateSelect: [],
|
|
changeDateSelect: [],
|
|
evaluationUnitRatingData:[],
|
|
evaluationUnitRatingData:[],
|
|
- companyData: [],
|
|
|
|
- binSectionoptions: [],
|
|
|
|
|
|
+ stageArr: [],
|
|
ruleForm: {
|
|
ruleForm: {
|
|
- companyRuleF: '',
|
|
|
|
year: '',
|
|
year: '',
|
|
- binSection: '',
|
|
|
|
- scjyRate: '',
|
|
|
|
- qqRate: '',
|
|
|
|
- jjRate: '',
|
|
|
|
- yearRate: '',
|
|
|
|
- remark: ''
|
|
|
|
|
|
+ des: ''
|
|
},
|
|
},
|
|
rules: {
|
|
rules: {
|
|
- companyRuleF: [
|
|
|
|
- { required: true, message: '请选择考评单位', trigger: 'change' }
|
|
|
|
- ],
|
|
|
|
- binSection: [
|
|
|
|
- { required: true, message: '请选择考评单位', trigger: 'change' }
|
|
|
|
- ],
|
|
|
|
year: [
|
|
year: [
|
|
{ required: true, message: '请选择年份', trigger: 'change' }
|
|
{ required: true, message: '请选择年份', trigger: 'change' }
|
|
|
|
+ ],
|
|
|
|
+ des: [
|
|
|
|
+ { required: true, message: '请输入描述', trigger: 'blur' }
|
|
]
|
|
]
|
|
},
|
|
},
|
|
- resCompanyName: '',
|
|
|
|
|
|
+ page:{
|
|
|
|
+ pagesize: 12,
|
|
|
|
+ currentPage: 1,
|
|
|
|
+ total: 0
|
|
|
|
+ },
|
|
|
|
+ ratingCode: '',
|
|
|
|
+ ratingDes: '',
|
|
businessStr: '',
|
|
businessStr: '',
|
|
resAnnual: '',
|
|
resAnnual: '',
|
|
monthArr: [],
|
|
monthArr: [],
|
|
@@ -230,50 +186,32 @@ export default {
|
|
]
|
|
]
|
|
this.resAnnual = new Date().getFullYear().toString()
|
|
this.resAnnual = new Date().getFullYear().toString()
|
|
this.getevaluRatingList()
|
|
this.getevaluRatingList()
|
|
- this.getOrganizetionData()
|
|
|
|
- this.getDataDictionary()
|
|
|
|
},
|
|
},
|
|
methods:{
|
|
methods:{
|
|
// 查询列表页面
|
|
// 查询列表页面
|
|
getevaluRatingList() {
|
|
getevaluRatingList() {
|
|
let that = this
|
|
let that = this
|
|
let params = {
|
|
let params = {
|
|
- pageNum: 1,
|
|
|
|
- pageSize: 500,
|
|
|
|
- organizationId: that.resCompanyName,
|
|
|
|
- binSection: that.businessStr,
|
|
|
|
|
|
+ pageNum: that.page.currentPage,
|
|
|
|
+ pageSize: that.page.pagesize,
|
|
|
|
+ des: that.ratingDes,
|
|
|
|
+ yearRatingCode: that.ratingCode,
|
|
year: that.resAnnual
|
|
year: that.resAnnual
|
|
}
|
|
}
|
|
- apiGetorganizationratinglist(params).then(datas =>{
|
|
|
|
|
|
+ apiGetorganizationyearratinglist(params).then(datas =>{
|
|
if (datas && datas.data.records) {
|
|
if (datas && datas.data.records) {
|
|
that.evaluationUnitRatingData = datas.data.records
|
|
that.evaluationUnitRatingData = datas.data.records
|
|
|
|
+ that.page.total = datas.data.total
|
|
}
|
|
}
|
|
})
|
|
})
|
|
},
|
|
},
|
|
- //查询单位数据
|
|
|
|
- getOrganizetionData() {
|
|
|
|
- let that = this
|
|
|
|
- let params = {
|
|
|
|
- evaluationCycle: 'NDKP',
|
|
|
|
- organizationType: 'DWKP'
|
|
|
|
- }
|
|
|
|
- apiGetOrganizationListAll(params).then(datas => {
|
|
|
|
- if (datas && datas.data) {
|
|
|
|
- that.companyData = datas.data
|
|
|
|
- }
|
|
|
|
- })
|
|
|
|
|
|
+ handleSizeChange(val){
|
|
|
|
+ this.page.pagesize = val
|
|
|
|
+ this.getevaluRatingList()
|
|
},
|
|
},
|
|
- // 查询属性和阶段
|
|
|
|
- getDataDictionary() {
|
|
|
|
- let that = this
|
|
|
|
- let params = {
|
|
|
|
- type: '1'
|
|
|
|
- }
|
|
|
|
- apiGetbinsectionList(params).then(datas =>{
|
|
|
|
- if (datas && datas.data) {
|
|
|
|
- that.binSectionoptions = datas.data
|
|
|
|
- }
|
|
|
|
- })
|
|
|
|
|
|
+ handleCurrentChange(val){
|
|
|
|
+ this.page.currentPage =val
|
|
|
|
+ this.getevaluRatingList()
|
|
},
|
|
},
|
|
saveevaluaStart(formName) {
|
|
saveevaluaStart(formName) {
|
|
let that = this
|
|
let that = this
|
|
@@ -286,27 +224,17 @@ export default {
|
|
//新增/修改考评启动数据
|
|
//新增/修改考评启动数据
|
|
saveAndEditIndicatorData() {
|
|
saveAndEditIndicatorData() {
|
|
let that = this
|
|
let that = this
|
|
- let orgName = ''
|
|
|
|
- this.companyData.forEach(item =>{
|
|
|
|
- if (item.organizationId === that.ruleForm.companyRuleF) {
|
|
|
|
- orgName = item.organizationShortName
|
|
|
|
- }
|
|
|
|
- })
|
|
|
|
|
|
+ // let userMes = JSON.parse(window.sessionStorage.getItem('user'))
|
|
let params = {
|
|
let params = {
|
|
- organizationId: that.ruleForm.companyRuleF,
|
|
|
|
- organizationShortName: orgName,
|
|
|
|
|
|
+ // createName: userMes.name,
|
|
|
|
+ createName: '组织人事部',
|
|
year: that.ruleForm.year,
|
|
year: that.ruleForm.year,
|
|
- binSection: that.ruleForm.binSection,
|
|
|
|
- scjyRate: that.ruleForm.scjyRate,
|
|
|
|
- qqRate: that.ruleForm.qqRate,
|
|
|
|
- jjRate: that.ruleForm.jjRate,
|
|
|
|
- yearRate: that.ruleForm.yearRate,
|
|
|
|
- remark: that.ruleForm.remark
|
|
|
|
|
|
+ des: that.ruleForm.des
|
|
}
|
|
}
|
|
if (that.isSave) {
|
|
if (that.isSave) {
|
|
params.id = that.evalradio.id
|
|
params.id = that.evalradio.id
|
|
}
|
|
}
|
|
- apiGetorganizationratingsave(params).then(datas =>{
|
|
|
|
|
|
+ apiGetorganizationyearratingsave(params).then(datas =>{
|
|
if (!datas.success) {
|
|
if (!datas.success) {
|
|
that.$message({
|
|
that.$message({
|
|
message: datas.message,
|
|
message: datas.message,
|
|
@@ -334,31 +262,90 @@ export default {
|
|
this.getevaluRatingList()
|
|
this.getevaluRatingList()
|
|
},
|
|
},
|
|
resetSeach() {
|
|
resetSeach() {
|
|
- this.resCompanyName = ''
|
|
|
|
- this.businessStr = ''
|
|
|
|
|
|
+ this.ratingDes = ''
|
|
|
|
+ this.ratingCode = ''
|
|
this.resAnnual = ''
|
|
this.resAnnual = ''
|
|
this.getevaluRatingList()
|
|
this.getevaluRatingList()
|
|
},
|
|
},
|
|
rowClick(selection, row) {
|
|
rowClick(selection, row) {
|
|
this.changeDateSelect = selection
|
|
this.changeDateSelect = selection
|
|
},
|
|
},
|
|
- // rowClickToggle(row) {
|
|
|
|
- // this.$refs.tableSS.toggleRowSelection(row)
|
|
|
|
- // },
|
|
|
|
|
|
+ rowClickToggle(row) {
|
|
|
|
+ this.$refs.ratingDialog.init(row)
|
|
|
|
+ },
|
|
|
|
+ seeStates(row) {
|
|
|
|
+ if (!row.instId) {
|
|
|
|
+ this.$message({
|
|
|
|
+ type: 'error',
|
|
|
|
+ message: '无法查看流程'
|
|
|
|
+ });
|
|
|
|
+ } else {
|
|
|
|
+ this.statesVisible = true
|
|
|
|
+ let url = ''
|
|
|
|
+ if (window.location.hostname === '10.65.78.81') {
|
|
|
|
+ url = 'http://10.65.79.85:8080'
|
|
|
|
+ } else {
|
|
|
|
+ url = 'http://10.65.78.23:8080'
|
|
|
|
+ }
|
|
|
|
+ this.iframeURL = url+'/agilebpm-ui/bpm/instance/instanceImageDialog.html?instanceId='+row.instId+'&iamCode='+window.localStorage.getItem('code')
|
|
|
|
+ this.getstageData(row.instId)
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ // 根据流程id获取业务id
|
|
|
|
+ getstageData(id) {
|
|
|
|
+ let that = this
|
|
|
|
+ let params = {
|
|
|
|
+ instId: id,
|
|
|
|
+ iamCode: window.localStorage.getItem('code')
|
|
|
|
+ }
|
|
|
|
+ apiGetworkflowgetOpinion(params).then(datas =>{
|
|
|
|
+ if (datas && datas.data) {
|
|
|
|
+ that.stageArr = datas.data.data
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ },
|
|
|
|
+ changeAssignInfo(row) {
|
|
|
|
+ let showStr = ''
|
|
|
|
+ if (row.assignInfo) {
|
|
|
|
+ showStr = row.assignInfo.substring(row.assignInfo.indexOf('-')+1, row.assignInfo.length).substring(0, row.assignInfo.substring(row.assignInfo.indexOf('-')+1, row.assignInfo.length).indexOf('-'))
|
|
|
|
+ }
|
|
|
|
+ return showStr
|
|
|
|
+ },
|
|
|
|
+ agetdeptresponsibility(row) {
|
|
|
|
+ let that = this
|
|
|
|
+ let par = {
|
|
|
|
+ defKey: "nddwpj",
|
|
|
|
+ businessKey: row.id,
|
|
|
|
+ action: "start",
|
|
|
|
+ opinion: "年度单位评级",
|
|
|
|
+ iamCode: window.localStorage.getItem('code')
|
|
|
|
+ }
|
|
|
|
+ if (row.instId === null || row.instId === '') {
|
|
|
|
+ apiGetdoAction(par).then(datas =>{
|
|
|
|
+ if (datas && datas.data) {
|
|
|
|
+ if (datas.data.isOk) {
|
|
|
|
+ that.$message({
|
|
|
|
+ message: '流程已启动',
|
|
|
|
+ type: 'success'
|
|
|
|
+ });
|
|
|
|
+ } else {
|
|
|
|
+ that.$message({
|
|
|
|
+ message: datas.data.msg,
|
|
|
|
+ type: 'error'
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ },
|
|
handleAdd() {
|
|
handleAdd() {
|
|
this.dialogVisible = true
|
|
this.dialogVisible = true
|
|
this.isSave = false
|
|
this.isSave = false
|
|
this.title = '新建单位绩效考核评级'
|
|
this.title = '新建单位绩效考核评级'
|
|
this.$nextTick(() =>{
|
|
this.$nextTick(() =>{
|
|
this.ruleForm = {
|
|
this.ruleForm = {
|
|
- companyRuleF: '',
|
|
|
|
year: '',
|
|
year: '',
|
|
- binSection: '',
|
|
|
|
- scjyRate: '',
|
|
|
|
- qqRate: '',
|
|
|
|
- jjRate: '',
|
|
|
|
- yearRate: '',
|
|
|
|
- remark: ''
|
|
|
|
|
|
+ des: ''
|
|
}
|
|
}
|
|
})
|
|
})
|
|
},
|
|
},
|
|
@@ -368,14 +355,8 @@ export default {
|
|
this.title = '修改单位绩效考核评级'
|
|
this.title = '修改单位绩效考核评级'
|
|
this.evalradio = this.changeDateSelect[0]
|
|
this.evalradio = this.changeDateSelect[0]
|
|
this.ruleForm = {
|
|
this.ruleForm = {
|
|
- companyRuleF: this.evalradio.organizationId,
|
|
|
|
year: this.evalradio.year,
|
|
year: this.evalradio.year,
|
|
- binSection: this.evalradio.binSection,
|
|
|
|
- scjyRate: this.evalradio.scjyRate,
|
|
|
|
- qqRate: this.evalradio.qqRate,
|
|
|
|
- jjRate: this.evalradio.jjRate,
|
|
|
|
- yearRate: this.evalradio.yearRate,
|
|
|
|
- remark: this.evalradio.remark
|
|
|
|
|
|
+ des: this.evalradio.des
|
|
}
|
|
}
|
|
},
|
|
},
|
|
//删除
|
|
//删除
|
|
@@ -390,7 +371,7 @@ export default {
|
|
that.changeDateSelect.forEach(it =>{
|
|
that.changeDateSelect.forEach(it =>{
|
|
paramsArr.push(it.id)
|
|
paramsArr.push(it.id)
|
|
})
|
|
})
|
|
- apiPostorganizationratingDelete(paramsArr.join(',')).then(datas =>{
|
|
|
|
|
|
+ apiPostorganizationyearratingDelete(paramsArr.join(',')).then(datas =>{
|
|
that.$message({
|
|
that.$message({
|
|
type: 'success',
|
|
type: 'success',
|
|
message: '删除成功!'
|
|
message: '删除成功!'
|
|
@@ -399,45 +380,6 @@ export default {
|
|
that.changeDateSelect = []
|
|
that.changeDateSelect = []
|
|
})
|
|
})
|
|
})
|
|
})
|
|
- },
|
|
|
|
- handleImport() {
|
|
|
|
- this.$refs.importPage.upload.title = "单位考评评级"
|
|
|
|
- this.$refs.importPage.upload.open = true
|
|
|
|
- this.$refs.importPage.upload.url = '/organization-rating/import'
|
|
|
|
- },
|
|
|
|
- successImport(val) {
|
|
|
|
- this.getevaluRatingList()
|
|
|
|
- },
|
|
|
|
- handleExport() {
|
|
|
|
- let data = this.evaluationUnitRatingData //接口返回数据
|
|
|
|
- const workbook = new ExcelJS.Workbook()
|
|
|
|
- const worksheet = workbook.addWorksheet('Sheet1')
|
|
|
|
- //根据数据自己调整
|
|
|
|
- let colums = []
|
|
|
|
- colums = [
|
|
|
|
- { header: 'ID', key: 'id', width: 26, hidden: true},
|
|
|
|
- { header: '考评单位', key: 'organizationShortName', width: 26 },
|
|
|
|
- { header: '考评单位ID', key: 'organizationId', width: 26, hidden: true },
|
|
|
|
- { header: '业务板块ID', key: 'binSection', width: 26, hidden: true },
|
|
|
|
- { header: '考评年度', key: 'year', width: 26 },
|
|
|
|
- { header: '生成经营评级', key: 'scjyRate', width: 26 },
|
|
|
|
- { header: '前期评级', key: 'qqRate', width: 26 },
|
|
|
|
- { header: '基建评级', key: 'jjRate', width: 26 },
|
|
|
|
- { header: '年度评级', key: 'yearRate', width: 26 },
|
|
|
|
- { header: '备注', key: 'remake', width: 26 },
|
|
|
|
- ]
|
|
|
|
- worksheet.columns = colums
|
|
|
|
- worksheet.getRow(1).font = {
|
|
|
|
- size: 12,
|
|
|
|
- bold: true
|
|
|
|
- }
|
|
|
|
- worksheet.addRows(data)
|
|
|
|
-
|
|
|
|
- workbook.xlsx.writeBuffer().then(buffer => {
|
|
|
|
- //这里为type
|
|
|
|
- const blob = new Blob([buffer], { type: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=UTF-8' })
|
|
|
|
- fileSave(blob, `单位考评评级数据导出.xlsx`)
|
|
|
|
- })
|
|
|
|
},
|
|
},
|
|
unitRatingTableSty() {
|
|
unitRatingTableSty() {
|
|
if (this.winPix === 1.25 || this.innerWidth < 1800) {
|
|
if (this.winPix === 1.25 || this.innerWidth < 1800) {
|
|
@@ -514,12 +456,12 @@ export default {
|
|
.evaluationUnitRatingTableData{
|
|
.evaluationUnitRatingTableData{
|
|
.unitRating125Table{
|
|
.unitRating125Table{
|
|
.el-table__body-wrapper{
|
|
.el-table__body-wrapper{
|
|
- height: 63vh !important;
|
|
|
|
|
|
+ height: 53vh !important;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
.unitRating100Table{
|
|
.unitRating100Table{
|
|
.el-table__body-wrapper{
|
|
.el-table__body-wrapper{
|
|
- height: 65vh !important;
|
|
|
|
|
|
+ height: 60vh !important;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
.el-table{
|
|
.el-table{
|