1.季度审核当前如果是已办的情况下,可以查看所有评分,且此时无法保存

2.个部门评分是否编辑,增加已办时不可编辑,管理员可编辑
3.保存按钮增加仅为代办时可保存
This commit is contained in:
zty 2024-08-13 16:35:05 +08:00
parent 005ae612a2
commit 9e6514cf56

View File

@ -100,42 +100,42 @@
> >
</el-input> </el-input>
</el-form-item> </el-form-item>
<el-form-item label="战略规划部评级" v-if="isOffice && !isStrategy"> <el-form-item label="战略规划部评级" v-if="(isOffice && !isStrategy)||verifyStatus==2">
<el-input <el-input
class="form-input" class="form-input"
placeholder="战略规划部部门主任才能打分" placeholder="战略规划部部门主任才能打分"
v-model.number="formModel.strategyScoring" v-model.number="formModel.strategyScoring"
:disabled="isStrategy" :disabled="isStrategy ||verifyStatus==2 ||isAdmin"
type="number" type="number"
> >
</el-input> </el-input>
</el-form-item> </el-form-item>
<el-form-item label="平台建设部评级" v-if="isOffice && !isPlatform"> <el-form-item label="平台建设部评级" v-if="(isOffice && !isPlatform)||verifyStatus==2">
<el-input <el-input
class="form-input" class="form-input"
placeholder="平台建设部部门主任才能打分" placeholder="平台建设部部门主任才能打分"
v-model="formModel.platformScoring" v-model="formModel.platformScoring"
:disabled="isPlatform" :disabled="isPlatform ||verifyStatus==2 ||isAdmin"
type="number" type="number"
> >
</el-input> </el-input>
</el-form-item> </el-form-item>
<el-form-item label="市场发展部评级" v-if="isOffice && !isMarket"> <el-form-item label="市场发展部评级" v-if="(isOffice && !isMarket)||verifyStatus==2">
<el-input <el-input
class="form-input" class="form-input"
placeholder="市场发展部部门主任才能打分" placeholder="市场发展部部门主任才能打分"
v-model="formModel.marketScoring" v-model="formModel.marketScoring"
:disabled="isMarket" :disabled="isMarket ||verifyStatus==2 ||isAdmin"
type="number" type="number"
> >
</el-input> </el-input>
</el-form-item> </el-form-item>
<el-form-item label="服务产品部评级" v-if="isOffice && !isService"> <el-form-item label="服务产品部评级" v-if="(isOffice && !isService)||verifyStatus==2">
<el-input <el-input
class="form-input" class="form-input"
placeholder="服务产品部部门主任才能打分" placeholder="服务产品部部门主任才能打分"
v-model="formModel.serviceScoring" v-model="formModel.serviceScoring"
:disabled="isService" :disabled="isService ||verifyStatus==2 ||isAdmin"
type="number" type="number"
> >
</el-input> </el-input>
@ -259,10 +259,11 @@ export default {
this.init() this.init()
this.getBudgetCategory() this.getBudgetCategory()
if (this.verifyStatus == 2) { if (this.verifyStatus == 2) {
this.isStrategy = false // this.isStrategy = false
this.isPlatform = false // this.isPlatform = false
this.isMarket = false // this.isMarket = false
this.isService = false // this.isService = false
this.isSave=false
} }
}, },
methods: { methods: {
@ -314,7 +315,7 @@ export default {
this.reimburseId = this.$route.params.id this.reimburseId = this.$route.params.id
this.pid = this.$route.params.pid this.pid = this.$route.params.pid
}, },
getQuartely: function () { getQuartely() {
let param = { let param = {
pageNoUtil: { pageNoUtil: {
pageNo: this.pageNo, pageNo: this.pageNo,
@ -326,14 +327,13 @@ export default {
} }
Api.ProjectManagements.getIndicators(param.pageNoUtil).then(result => { Api.ProjectManagements.getIndicators(param.pageNoUtil).then(result => {
if (result.status === 0) { if (result.status === 0) {
console.log('是不是办公室', this.isOffice)
let data = result.data.ls[0] let data = result.data.ls[0]
this.formModel = data this.formModel = data
this.ext = data.ext this.ext = data.ext
this.quarter = data.quarter this.quarter = data.quarter
this.formModel.execution = data.ext.execution this.formModel.execution = data.ext.execution
//userid //userid
if (data.ext.executor === this.userId || data.ext.executor.includes(this.userId)) { if (this.verifyStatus=='1'&(data.ext.executor === this.userId || data.ext.executor.includes(this.userId))) {
this.isSave = true this.isSave = true
} }
if (!this.isOffice) { if (!this.isOffice) {
@ -344,12 +344,17 @@ export default {
this.formModel.platformScoring = data.ext.platformScoring this.formModel.platformScoring = data.ext.platformScoring
this.formModel.marketScoring = data.ext.marketScoring this.formModel.marketScoring = data.ext.marketScoring
this.formModel.serviceScoring = data.ext.serviceScoring this.formModel.serviceScoring = data.ext.serviceScoring
if(data.ext.taskName!="季度审核填报" && data.ext.taskName!="部门主任评级"){
this.isStrategy = false
this.isPlatform = false
this.isMarket = false
this.isService = false
}
} }
if (data.ext.projectAdmin == this.userId) { if (data.ext.projectAdmin == this.userId) {
this.isAdmin = false this.isAdmin = false
} }
if (data.ext.taskName == "季度审核填报" && data.ext.executor==this.userId) { if (data.ext.taskName == "季度审核填报" && data.ext.executor==this.userId) {
console.log("执行人是当前")
this.applyId = false this.applyId = false
} }
} }