1.项目立项新增增加校验,详情/编辑
2.季度审核编辑时,项目专业/管理员才能修改指标完成情况修改
This commit is contained in:
parent
304b56beb4
commit
4fb1d85502
@ -384,6 +384,9 @@ export default {
|
|||||||
type: 'custom-input',
|
type: 'custom-input',
|
||||||
title: '项目名称',
|
title: '项目名称',
|
||||||
model: 'projectName',
|
model: 'projectName',
|
||||||
|
rules: [
|
||||||
|
{required: true, message: '项目名称不能为空'}
|
||||||
|
],
|
||||||
externalValue: {
|
externalValue: {
|
||||||
disabled: false
|
disabled: false
|
||||||
}
|
}
|
||||||
@ -481,6 +484,9 @@ export default {
|
|||||||
type: 'custom-input',
|
type: 'custom-input',
|
||||||
title: '项目来源',
|
title: '项目来源',
|
||||||
model: 'cC',
|
model: 'cC',
|
||||||
|
rules: [
|
||||||
|
{required: true, message: '项目来源不能为空'}
|
||||||
|
],
|
||||||
externalValue: {
|
externalValue: {
|
||||||
disabled: false
|
disabled: false
|
||||||
}
|
}
|
||||||
@ -489,10 +495,10 @@ export default {
|
|||||||
type: 'custom-input-number',
|
type: 'custom-input-number',
|
||||||
title: '难度系数',
|
title: '难度系数',
|
||||||
model: 'difficultyFactor',
|
model: 'difficultyFactor',
|
||||||
// rules: [
|
rules: [
|
||||||
// {required: true, message: '难度系数不能为空'},
|
{required: true, message: '难度系数不能为空'},
|
||||||
// {type: 'number', message: '难度系数必须为数字值或小数'}
|
{type: 'number', message: '难度系数必须为数字值或小数'}
|
||||||
// ],
|
],
|
||||||
externalValue: {
|
externalValue: {
|
||||||
disabled: false
|
disabled: false
|
||||||
}
|
}
|
||||||
@ -510,38 +516,38 @@ export default {
|
|||||||
type: 'custom-input-number',
|
type: 'custom-input-number',
|
||||||
title: '项目总额(万元)',
|
title: '项目总额(万元)',
|
||||||
model: 'gross',
|
model: 'gross',
|
||||||
// rules: [
|
rules: [
|
||||||
// {required: true, message: '项目总金额不能为空'},
|
{required: true, message: '项目总金额不能为空'},
|
||||||
// {type: 'number', message: '项目总金额必须为数字值'}
|
{type: 'number', message: '项目总金额必须为数字值'}
|
||||||
// ],
|
],
|
||||||
externalValue: {}
|
externalValue: {}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: 'custom-input-number',
|
type: 'custom-input-number',
|
||||||
title: '支出预算(万元)',
|
title: '支出预算(万元)',
|
||||||
model: 'budget',
|
model: 'budget',
|
||||||
// rules: [
|
rules: [
|
||||||
// {required: true, message: '支出预算不能为空'},
|
{required: true, message: '支出预算不能为空'},
|
||||||
// {type: 'number', message: '支出预算必须为数字值'}
|
{type: 'number', message: '支出预算必须为数字值'}
|
||||||
// ],
|
],
|
||||||
externalValue: {}
|
externalValue: {}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: 'custom-textarea',
|
type: 'custom-textarea',
|
||||||
title: '支出测算方案',
|
title: '支出测算方案',
|
||||||
model: 'scheme',
|
model: 'scheme',
|
||||||
// rules: [
|
rules: [
|
||||||
// {required: true, message: '项目说明不能为空'},
|
{required: true, message: '项目说明不能为空'},
|
||||||
// ],
|
],
|
||||||
externalValue: {}
|
externalValue: {}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: 'custom-textarea',
|
type: 'custom-textarea',
|
||||||
title: '项目绩效目标',
|
title: '项目绩效目标',
|
||||||
model: 'goal',
|
model: 'goal',
|
||||||
// rules: [
|
rules: [
|
||||||
// {required: true, message: '项目说明不能为空'},
|
{required: true, message: '项目说明不能为空'},
|
||||||
// ],
|
],
|
||||||
externalValue: {}
|
externalValue: {}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -35,8 +35,8 @@
|
|||||||
|
|
||||||
<div style="text-align: right" >
|
<div style="text-align: right" >
|
||||||
<el-button type="primary" @click="cancel()">返回</el-button>
|
<el-button type="primary" @click="cancel()">返回</el-button>
|
||||||
<el-button type="primary" @click="addExpApply(0)" v-if="verifyStatus===1">审核</el-button>
|
<el-button type="primary" @click="addExpApply(0)" v-if="verifyStatus==1">审核</el-button>
|
||||||
<el-button type="warning" @click="addExpApply(1)" v-if="verifyStatus===1">驳回</el-button>
|
<el-button type="warning" @click="addExpApply(1)" v-if="verifyStatus==1">驳回</el-button>
|
||||||
</div>
|
</div>
|
||||||
<data-table
|
<data-table
|
||||||
:totalColumnsData="tableColumnsData"
|
:totalColumnsData="tableColumnsData"
|
||||||
|
@ -344,7 +344,7 @@ export default {
|
|||||||
if (data.ext.projectAdmin == this.userId) {
|
if (data.ext.projectAdmin == this.userId) {
|
||||||
this.isAdmin = false
|
this.isAdmin = false
|
||||||
}
|
}
|
||||||
if (data.createdBy == this.userId) {
|
if (data.ext.taskName == "季度审核填报" && data.ext.executor==this.userId) {
|
||||||
console.log("执行人是当前")
|
console.log("执行人是当前")
|
||||||
this.applyId = false
|
this.applyId = false
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user