|  | @@ -651,11 +651,11 @@ import {
 | 
	
		
			
				|  |  |          submitForm(formName) {
 | 
	
		
			
				|  |  |              this.$refs[formName].validate((valid) => {
 | 
	
		
			
				|  |  |              if (valid) {
 | 
	
		
			
				|  |  | -                if(this.ruleForm.paymentType == 4 && (!this.balance||this.balance<=0)) {
 | 
	
		
			
				|  |  | +                if(this.ruleForm.paymentType == 4 && (!this.balance||this.balance<=0||this.balance < this.moneyAll)) {
 | 
	
		
			
				|  |  |                      this.$message.error('团队账户余额不足!!!');
 | 
	
		
			
				|  |  |                      return
 | 
	
		
			
				|  |  |                  }
 | 
	
		
			
				|  |  | -                if(this.ruleForm.paymentType == 5 && (!this.grantQuota||this.grantQuota<=0)) {
 | 
	
		
			
				|  |  | +                if(this.ruleForm.paymentType == 5 && (!this.grantQuota||this.grantQuota<=0||this.grantQuota < this.moneyAll)) {
 | 
	
		
			
				|  |  |                      this.$message.error('团队授信余额不足!!!');
 | 
	
		
			
				|  |  |                      return
 | 
	
		
			
				|  |  |                  }
 | 
	
	
		
			
				|  | @@ -1148,7 +1148,14 @@ import {
 | 
	
		
			
				|  |  |                      source: value
 | 
	
		
			
				|  |  |                  })
 | 
	
		
			
				|  |  |                  this.balance = res.data.balance
 | 
	
		
			
				|  |  | -                this.grantQuota = res.data.grantQuota
 | 
	
		
			
				|  |  | +                if(res.data.grantQuota && res.data.grantUsed) {
 | 
	
		
			
				|  |  | +                    this.grantQuota = res.data.grantQuota - res.data.grantUsed
 | 
	
		
			
				|  |  | +                }else if(res.data.grantQuota) {
 | 
	
		
			
				|  |  | +                    this.grantQuota = res.data.grantQuota
 | 
	
		
			
				|  |  | +                }else {
 | 
	
		
			
				|  |  | +                    this.grantQuota = 0
 | 
	
		
			
				|  |  | +                }
 | 
	
		
			
				|  |  | +                
 | 
	
		
			
				|  |  |              } catch (error) {
 | 
	
		
			
				|  |  |                  this.balance = null
 | 
	
		
			
				|  |  |                  this.grantQuota = null
 |