Merge pull request 'feat(components): 增加审核意见必填校验' (#999) from master into prod
Reviewed-on: http://git.feashow.cn/clay/mosr-web/pulls/999
This commit is contained in:
@@ -206,6 +206,14 @@ const rollbackHandler = async () => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const handleAgree = async () => {
|
const handleAgree = async () => {
|
||||||
|
if (!_value.value) {
|
||||||
|
ElNotification({
|
||||||
|
title: '提示',
|
||||||
|
message: '请填写审核意见',
|
||||||
|
type: 'warning'
|
||||||
|
})
|
||||||
|
return
|
||||||
|
}
|
||||||
// const values = form.value.getValues()
|
// const values = form.value.getValues()
|
||||||
const params = {
|
const params = {
|
||||||
taskId: props.taskId,
|
taskId: props.taskId,
|
||||||
|
|||||||
@@ -146,8 +146,8 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div v-perm="['annual:plan:approve']" v-if="data.state==='4'">
|
<div v-perm="['annual:plan:approve']" v-if="data.state==='4'">
|
||||||
<baseTitle title="前置流程"></baseTitle>
|
<!-- <baseTitle title="前置流程"></baseTitle>-->
|
||||||
<select-pre-process :formData="localFormData"/>
|
<!-- <select-pre-process :formData="localFormData"/>-->
|
||||||
<baseTitle title="审核意见"></baseTitle>
|
<baseTitle title="审核意见"></baseTitle>
|
||||||
<el-form-item prop="_value">
|
<el-form-item prop="_value">
|
||||||
<el-input
|
<el-input
|
||||||
@@ -323,6 +323,14 @@ const handleRejectPlan = async () => {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
const handleAgreePlan = async () => {
|
const handleAgreePlan = async () => {
|
||||||
|
if (!_value.value) {
|
||||||
|
ElNotification({
|
||||||
|
title: '提示',
|
||||||
|
message: '请填写审核意见',
|
||||||
|
type: 'warning'
|
||||||
|
})
|
||||||
|
return
|
||||||
|
}
|
||||||
const params = {
|
const params = {
|
||||||
auditOpinion: _value.value,
|
auditOpinion: _value.value,
|
||||||
projectId: parseInt(route.query.projectId),
|
projectId: parseInt(route.query.projectId),
|
||||||
|
|||||||
@@ -201,6 +201,14 @@ const rollbackHandler = async () => {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
const handleAgree = async () => {
|
const handleAgree = async () => {
|
||||||
|
if (!_value.value) {
|
||||||
|
ElNotification({
|
||||||
|
title: '提示',
|
||||||
|
message: '请填写审核意见',
|
||||||
|
type: 'warning'
|
||||||
|
})
|
||||||
|
return
|
||||||
|
}
|
||||||
// const values = form.value.getValues()
|
// const values = form.value.getValues()
|
||||||
const params = {
|
const params = {
|
||||||
taskId: props.taskId,
|
taskId: props.taskId,
|
||||||
|
|||||||
@@ -146,8 +146,8 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div v-perm="['annual:plan:approve']" v-if="data.state==='4'">
|
<div v-perm="['annual:plan:approve']" v-if="data.state==='4'">
|
||||||
<baseTitle title="前置流程"></baseTitle>
|
<!-- <baseTitle title="前置流程"></baseTitle>-->
|
||||||
<select-pre-process :formData="localFormData"/>
|
<!-- <select-pre-process :formData="localFormData"/>-->
|
||||||
<baseTitle title="审核意见"></baseTitle>
|
<baseTitle title="审核意见"></baseTitle>
|
||||||
<el-form-item prop="_value">
|
<el-form-item prop="_value">
|
||||||
<el-input
|
<el-input
|
||||||
@@ -280,6 +280,14 @@ const handleRejectPlan = async () => {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
const handleAgreePlan = async () => {
|
const handleAgreePlan = async () => {
|
||||||
|
if (!_value.value) {
|
||||||
|
ElNotification({
|
||||||
|
title: '提示',
|
||||||
|
message: '请填写审核意见',
|
||||||
|
type: 'warning'
|
||||||
|
})
|
||||||
|
return
|
||||||
|
}
|
||||||
const params = {
|
const params = {
|
||||||
auditOpinion: _value.value,
|
auditOpinion: _value.value,
|
||||||
projectId: parseInt(route.query.projectId),
|
projectId: parseInt(route.query.projectId),
|
||||||
|
|||||||
Reference in New Issue
Block a user