审批意见校验

This commit is contained in:
宋伟佳
2021-12-14 17:04:31 +08:00
parent 275cf3a6f2
commit 8c21952c09
3 changed files with 7 additions and 2 deletions
@@ -565,6 +565,9 @@ export default {
},
//驳回事件
beforeBack () {
if(!this.commentText){
this.$message.warning('请填写审批意见')
}else{
this.listForm.applyUpdUserId = this.dataList[0].distributePersonId
this.listForm.commentText = this.commentText;
this.listForm.dataList = this.dataList
@@ -583,6 +586,7 @@ export default {
}
}, e => {
});
}
},
//提交事件
handleSubmit() {
@@ -561,7 +561,8 @@ export default {
})
},
//驳回事件
beforeBack () { if(this.commentText === null || this.commentText === undefined || this.commentText === ''){
beforeBack () {
if(!this.commentText){
this.$message.warning('请填写审批意见')
} else {
this.listForm.fenFlag = '2'
@@ -560,7 +560,7 @@ export default {
//驳回事件
beforeBack () {
if(this.commentText === null || this.commentText === undefined || this.commentText === ''){
if(!this.commentText){
this.$message.warning('请填写审批意见')
} else {
this.listForm.fenFlag = '2'