Browse Source

森语-预计请假时间判断

jbb 2 years ago
parent
commit
c281eff26b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/views/activiti/form/demoForm2.vue

+ 1 - 1
src/views/activiti/form/demoForm2.vue

@@ -979,7 +979,7 @@ export default {
                       this.$message.error('请填写预计请假天数!')
                       addForm = 'yes'
                      }
-                      if(estimate>this.leave){
+                      if(estimate>this.leave && leaveCategory=='年假'){
                       this.$message.error('预计请假年假'+estimate+'大于剩余年假'+this.leave)
                       addForm = 'yes'
                      }