@@ -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)