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:
2025-04-23 14:47:41 +00:00
4 changed files with 36 additions and 4 deletions

View File

@@ -206,6 +206,14 @@ const rollbackHandler = async () => {
}
const handleAgree = async () => {
if (!_value.value) {
ElNotification({
title: '提示',
message: '请填写审核意见',
type: 'warning'
})
return
}
// const values = form.value.getValues()
const params = {
taskId: props.taskId,

View File

@@ -146,8 +146,8 @@
</div>
</div>
<div v-perm="['annual:plan:approve']" v-if="data.state==='4'">
<baseTitle title="前置流程"></baseTitle>
<select-pre-process :formData="localFormData"/>
<!-- <baseTitle title="前置流程"></baseTitle>-->
<!-- <select-pre-process :formData="localFormData"/>-->
<baseTitle title="审核意见"></baseTitle>
<el-form-item prop="_value">
<el-input
@@ -323,6 +323,14 @@ const handleRejectPlan = async () => {
})
}
const handleAgreePlan = async () => {
if (!_value.value) {
ElNotification({
title: '提示',
message: '请填写审核意见',
type: 'warning'
})
return
}
const params = {
auditOpinion: _value.value,
projectId: parseInt(route.query.projectId),

View File

@@ -201,6 +201,14 @@ const rollbackHandler = async () => {
}
}
const handleAgree = async () => {
if (!_value.value) {
ElNotification({
title: '提示',
message: '请填写审核意见',
type: 'warning'
})
return
}
// const values = form.value.getValues()
const params = {
taskId: props.taskId,

View File

@@ -146,8 +146,8 @@
</div>
</div>
<div v-perm="['annual:plan:approve']" v-if="data.state==='4'">
<baseTitle title="前置流程"></baseTitle>
<select-pre-process :formData="localFormData"/>
<!-- <baseTitle title="前置流程"></baseTitle>-->
<!-- <select-pre-process :formData="localFormData"/>-->
<baseTitle title="审核意见"></baseTitle>
<el-form-item prop="_value">
<el-input
@@ -280,6 +280,14 @@ const handleRejectPlan = async () => {
})
}
const handleAgreePlan = async () => {
if (!_value.value) {
ElNotification({
title: '提示',
message: '请填写审核意见',
type: 'warning'
})
return
}
const params = {
auditOpinion: _value.value,
projectId: parseInt(route.query.projectId),