ソースを参照

功能性问题修改

songwb 8 ヶ月 前
コミット
9b6b14c287

+ 8 - 0
src/api/api.js

@@ -1155,6 +1155,14 @@ export function apiGetbinsectionList(params) {
         params: params
     })
 }
+//单位考评属性
+export function apiGetorganizationsectionList(params) {
+    return httpRequest({
+        url: 'organization-rating/bin-section',
+        method: 'get',
+        params: params
+    })
+}
 //---------"指标项条目-查询"
 export function apiGetdataZBXList() {
     return httpRequest({

+ 9 - 6
src/components/assessment/evaluationUnitRatingDialog.vue

@@ -20,11 +20,11 @@
                         style="margin-left: 10px">
                         <span>数据生成</span>
                     </el-button> -->
-                    <el-button size="mini" color="#3B7AD1" icon="CopyDocument" @click="unitRuleFn"
+                    <el-button size="mini" color="#3B7AD1" icon="CopyDocument" @click="unitRuleFn" :disabled="rowObj.stage === '流程已结束'"
                         style="margin-left: 10px">
                         <span>计算评级</span>
                     </el-button>
-                    <el-button type="success" icon="Upload" size="mini" @click="handleImport">导入</el-button>
+                    <el-button type="success" icon="Upload" size="mini" @click="handleImport" :disabled="rowObj.stage === '流程已结束'">导入</el-button>
                     <el-button type="warning" icon="Download" size="mini" @click="handleExport">导出</el-button>
                 </div>
                 <!-- <div class="PeriodBtn" :style="$utils.PeriodBtnSty()">
@@ -90,7 +90,7 @@
                                 <el-table-column label="生产经营评级" prop="scjyRate" width="120" />
                             </el-table-column>
                             <el-table-column label="前期评级" align="center">
-                                <el-table-column label="年度项目进度目标" width="150">
+                                <el-table-column label="年度项目进度目标完成率" width="150">
                                     <template #default="scope">
                                         <el-input-number v-model="scope.row.annualTarget" :min="0" />
                                     </template>
@@ -232,7 +232,7 @@ import {
     apiorganizationratinggrade,
     apiGetorganizationratingsave,
     apiGetOrganizationListAll,
-    apiGetbinsectionList,
+    apiGetorganizationsectionList,
     apiPostorganizationratingDelete,
     apiGetorganizationratingGenerateRating
 } from '../../api/api'
@@ -357,6 +357,7 @@ export default {
         // 查询列表页面
         getevaluRatingDiaList(row) {
             let that = this
+            that.evaluationRatingDiaData = []
             let params = {
                 pageNum: that.page.currentPage,
                 pageSize: that.page.pagesize,
@@ -402,9 +403,10 @@ export default {
         getDataDictionary() {
             let that = this
             let params = {
-                type: '3'
+                organizationYearRatingId: that.rowObj.id
             }
-            apiGetbinsectionList(params).then(datas => {
+            that.titleMsgArr = []
+            apiGetorganizationsectionList(params).then(datas => {
                 if (datas && datas.data) {
                     // that.binSectionoptions = datas.data
                     datas.data.forEach(item => {
@@ -581,6 +583,7 @@ export default {
             let that = this
             let url = 'organization-rating/exportExcel'
             let params = {
+                organizationYearRatingId: that.rowObj.id,
                 binSection: that.businessStr,
                 year: that.rowObj.year
             }

+ 4 - 2
src/components/assessment/evaluationUnitRatingPage.vue

@@ -18,10 +18,12 @@
             </div>
             <div class="PeriodBtn" :style="$utils.PeriodBtnSty()">
                 <!-- $utils.havePurview('evaluationUnitRate:oneLevel:add') -->
+                <!-- :showAdd="$utils.havePurview('evaluationUnitRate:oneLevel:add')"
+                    :showDelete="$utils.havePurview('evaluationUnitRate:oneLevel:delete')" -->
                 <btns :showImport="false" :showExport="false"
                     :showSave="$utils.havePurview('evaluationUnitRate:oneLevel:save')"
-                    :showAdd="$utils.havePurview('evaluationUnitRate:oneLevel:add')"
-                    :showDelete="$utils.havePurview('evaluationUnitRate:oneLevel:delete')"
+                    :showAdd="false"
+                    :showDelete="false"
                     :disSave="changeDateSelect.length === 0 || changeDateSelect.length > 1"
                     :disDelete="changeDateSelect.length === 0" :disImport="false" :disExport="false" @handleAdd="handleAdd"
                     @handleEdit="handleEdit" @handleDelete="handleDelete"></btns>

+ 5 - 1
src/components/assessment/monthQuarterYearFrom.vue

@@ -85,7 +85,7 @@
                                         <img :src="exportIcon" alt="">
                                         <span>导出</span>
                                     </div>
-                                    <div class="tableBtn calc" @click="calcScore" v-if="showCalcBtn">
+                                    <div class="tableBtn calc" @click="calcScore" v-if="receiptMsg.stage !== '流程已结束' || showCalcBtn">
                                         <img :src="calcIcon" alt="">
                                         <span>计算得分</span>
                                     </div>
@@ -429,6 +429,10 @@ export default {
         },
 
         setShowCalcBtn(code) {
+            if (this.receiptMsg.stage === '流程已结束') {
+                this.showCalcBtn = false
+                return
+            }
             this.showCalcBtn = this.showCalcBtnTabs.some(ele => {
                 return ele === code
             });

+ 14 - 9
src/components/taskCenter/taskUnitRatingFrom.vue

@@ -53,22 +53,22 @@
                                 </el-option>
                             </el-select> -->
                         </div>
-                        <div class="tableBtn add" @click="unitRuleFn" v-if="tabName === 'first'">
+                        <div class="tableBtn add" @click="unitRuleFn" v-if="tabName === 'first' || receiptMsg.stage !== '流程已结束'">
                             <span>评级</span>
                         </div>
-                        <div class="tableBtn add" @click="handleAdd" v-if="tabName === 'first'">
+                        <div class="tableBtn add" @click="handleAdd" v-if="tabName === 'first' || receiptMsg.stage !== '流程已结束'">
                             <img :src="addIcon" alt="">
                             <span>新增</span>
                         </div>
-                        <div class="tableBtn save" @click="handleEdit" v-if="tabName === 'first'">
+                        <div class="tableBtn save" @click="handleEdit" v-if="tabName === 'first' || receiptMsg.stage !== '流程已结束'">
                             <img :src="saveIcon" alt="">
                             <span>保存</span>
                         </div>
-                        <div class="tableBtn delete" @click="handleDelete" v-if="tabName === 'first'">
+                        <div class="tableBtn delete" @click="handleDelete" v-if="tabName === 'first' || receiptMsg.stage !== '流程已结束'">
                             <img :src="deleteIcon" alt="">
                             <span>删除</span>
                         </div>
-                        <div class="tableBtn import" @click="handleImport" v-if="tabName === 'first'">
+                        <div class="tableBtn import" @click="handleImport" v-if="tabName === 'first' || receiptMsg.stage !== '流程已结束'">
                             <img :src="importIcon" alt="">
                             <span>导入</span>
                         </div>
@@ -145,7 +145,7 @@
                                     <el-table-column label="生产经营评级" prop="scjyRate" width="120" />
                                 </el-table-column>
                                 <el-table-column label="前期评级" align="center">
-                                    <el-table-column label="年度项目进度目标" width="150">
+                                    <el-table-column label="年度项目进度目标完成率" width="150">
                                         <template #default="scope">
                                             <el-input-number v-model="scope.row.annualTarget" :min="0" />
                                         </template>
@@ -290,13 +290,15 @@
     import deleteIcon from '../../assets/btnIcon/delete.png'
     import exportIcon from '../../assets/btnIcon/export.png'
     import importIcon from '../../assets/btnIcon/import.png'
+    import sectionCha from '../../assets/benchmarkImg/sectionCha.png'
+    import sectionDef from '../../assets/benchmarkImg/sectionDef.png'
     import {
         apiGetExportMsg,
         apiGetorganizationratinglist,
         apiorganizationratinggrade,
         apiGetorganizationratingsave,
         apiGetOrganizationListAll,
-        apiGetbinsectionList,
+        apiGetorganizationsectionList,
         apiPostorganizationratingDelete,
         apiPostIsdoAction,
         apiGetorganizationyearratingHeader
@@ -467,6 +469,7 @@
             // 查询列表页面
             getevaluRatingDiaList(row, id) {
                 let that = this
+                that.evaluationRatingDiaData = []
                 let params = {
                     pageNum: that.page.currentPage,
                     pageSize: that.page.pagesize,
@@ -499,9 +502,10 @@
             getDataDictionary() {
                 let that = this
                 let params = {
-                    type: '3'
+                    organizationYearRatingId: that.rowkeyId
                 }
-                apiGetbinsectionList(params).then(datas => {
+                that.titleMsgArr = []
+                apiGetorganizationsectionList(params).then(datas => {
                     if (datas && datas.data) {
                         // that.binSectionoptions = datas.data
                         datas.data.forEach(item => {
@@ -723,6 +727,7 @@
                 let that = this
                 let url = 'organization-rating/exportExcel'
                 let params = {
+                    organizationYearRatingId: that.rowkeyId,
                     binSection: that.businessStr,
                     year: that.rowObj.year
                 }