|  | @@ -986,7 +986,8 @@ export default {
 | 
	
		
			
				|  |  |    },
 | 
	
		
			
				|  |  |    data() {
 | 
	
		
			
				|  |  |      return {
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | +      isSap:1,
 | 
	
		
			
				|  |  | +      isSrm:1,
 | 
	
		
			
				|  |  |        selectList: [],
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |        isPurchaseSap: [],isPurchaseSrm: [],
 | 
	
	
		
			
				|  | @@ -1914,10 +1915,20 @@ export default {
 | 
	
		
			
				|  |  |        const that = this 
 | 
	
		
			
				|  |  |        console.log("currentRow",this.currentRow.sapstatus)
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -            var send_data = this.selectList
 | 
	
		
			
				|  |  | +     var send_data = this.selectList
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +     if(send_data.length == 0){
 | 
	
		
			
				|  |  | +        that.$notify({ title: '失败', message: '请勾选数据!'  , type: 'error', duration: 2000 })
 | 
	
		
			
				|  |  | +        return false
 | 
	
		
			
				|  |  | +      }
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +      console.log(that.isSap)
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | +      if(that.isSap == 1){
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -            SapOrder(send_data).then(response => {
 | 
	
		
			
				|  |  | +         that.isSap = 0
 | 
	
		
			
				|  |  | +         SapOrder(send_data).then(response => {
 | 
	
		
			
				|  |  |                console.log('response', response)
 | 
	
		
			
				|  |  |                  
 | 
	
		
			
				|  |  |                 if (response.msg !== 'fail') {
 | 
	
	
		
			
				|  | @@ -1930,6 +1941,20 @@ export default {
 | 
	
		
			
				|  |  |                  }
 | 
	
		
			
				|  |  |                 
 | 
	
		
			
				|  |  |              })
 | 
	
		
			
				|  |  | + 
 | 
	
		
			
				|  |  | +            
 | 
	
		
			
				|  |  | +      } else {
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +        that.$notify({ title: '失败', message: '正在请求中,请稍等几秒钟后再点击'  , type: 'error', duration: 2000 })
 | 
	
		
			
				|  |  | +      }
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +      setTimeout(() => {
 | 
	
		
			
				|  |  | +              that.isSap = 1
 | 
	
		
			
				|  |  | +            }, 3000)
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +           
 | 
	
		
			
				|  |  |      
 | 
	
		
			
				|  |  |    
 | 
	
		
			
				|  |  |        // if(this.currentRow.sapstatus){
 | 
	
	
		
			
				|  | @@ -1988,7 +2013,20 @@ export default {
 | 
	
		
			
				|  |  |        console.log('勾选数据selectList', this.selectList)
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |        var send_data = this.selectList
 | 
	
		
			
				|  |  | -      SrmOrder(send_data).then(response => {
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +      if(send_data.length == 0){
 | 
	
		
			
				|  |  | +        that.$notify({ title: '失败', message: '请勾选数据!'  , type: 'error', duration: 2000 })
 | 
	
		
			
				|  |  | +        return false
 | 
	
		
			
				|  |  | +      }
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +      console.log(that.isSrm)
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +      if(that.isSrm == 1){
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +         that.isSrm = 0
 | 
	
		
			
				|  |  | +         SrmOrder(send_data).then(response => {
 | 
	
		
			
				|  |  |                console.log('response', response)
 | 
	
		
			
				|  |  |                  
 | 
	
		
			
				|  |  |                 if (response.msg !== 'fail') {
 | 
	
	
		
			
				|  | @@ -2003,6 +2041,21 @@ export default {
 | 
	
		
			
				|  |  |                 
 | 
	
		
			
				|  |  |              })
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | + 
 | 
	
		
			
				|  |  | +            
 | 
	
		
			
				|  |  | +      } else {
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +        that.$notify({ title: '失败', message: '正在请求中,请稍等几秒钟后再点击'  , type: 'error', duration: 2000 })
 | 
	
		
			
				|  |  | +      }
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +      setTimeout(() => {
 | 
	
		
			
				|  |  | +              that.isSrm = 1
 | 
	
		
			
				|  |  | +            }, 3000)
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +   
 | 
	
		
			
				|  |  |        // if(this.currentRow.srmstatus){
 | 
	
		
			
				|  |  |        //   if(this.currentRow.srmstatus != 0){
 | 
	
		
			
				|  |  |        //     const srmArr = this.currentRow.srmbuyeCode.split(",")
 |