|  | @@ -808,6 +808,20 @@ export default {
 | 
	
		
			
				|  |  |              }).then(function (res) {
 | 
	
		
			
				|  |  |                  if (res.data.code == 200) {
 | 
	
		
			
				|  |  |                      that.othercurrencys=res.data.data.teamRates;
 | 
	
		
			
				|  |  | +                    for (let sr = 0; sr < that.othercurrencys.length; sr++) {
 | 
	
		
			
				|  |  | +                        if (that.othercurrencys[sr].currencyCode!='CNY') {
 | 
	
		
			
				|  |  | +                            that.othercurrencys[sr].rate=(that.othercurrencys[sr].rate*1.03).toFixed(4)
 | 
	
		
			
				|  |  | +                        }
 | 
	
		
			
				|  |  | +                        for(let y=0;y<that.currencys.length;y++){
 | 
	
		
			
				|  |  | +                            if(that.currencys[y].currencyCode==that.othercurrencys[sr].currencyCode){
 | 
	
		
			
				|  |  | +                                that.othercurrencys[sr].rate=that.currencys[y].rate;
 | 
	
		
			
				|  |  | +                            }
 | 
	
		
			
				|  |  | +                        }
 | 
	
		
			
				|  |  | +                        
 | 
	
		
			
				|  |  | +                    }
 | 
	
		
			
				|  |  | +                    console.log(that.othercurrencys);
 | 
	
		
			
				|  |  | +                    console.log(that.currencys);
 | 
	
		
			
				|  |  | +                    
 | 
	
		
			
				|  |  |                  } else {
 | 
	
		
			
				|  |  |                      that.$message.error(res.data.msg);
 | 
	
		
			
				|  |  |                  }
 | 
	
	
		
			
				|  | @@ -1550,6 +1564,26 @@ export default {
 | 
	
		
			
				|  |  |              this.treeDataValue= data.name
 | 
	
		
			
				|  |  |              this.treeData= data.name
 | 
	
		
			
				|  |  |              // console.log(this.treeData)
 | 
	
		
			
				|  |  | +        },
 | 
	
		
			
				|  |  | +        //sr需求
 | 
	
		
			
				|  |  | +        SRrequirement(obj){
 | 
	
		
			
				|  |  | +            var currencyinfo={}
 | 
	
		
			
				|  |  | +            var rate=0
 | 
	
		
			
				|  |  | +            currencyinfo= this.othercurrencys.find(function(i){
 | 
	
		
			
				|  |  | +                return i.currencyId ===obj.currency
 | 
	
		
			
				|  |  | +            });
 | 
	
		
			
				|  |  | +            rate=currencyinfo.rate;
 | 
	
		
			
				|  |  | +            this.otherExpense=0;
 | 
	
		
			
				|  |  | +            for( let l =0;l<this.otherData.length;l++){
 | 
	
		
			
				|  |  | +                this.otherData[l].currency=obj.currency
 | 
	
		
			
				|  |  | +                this.otherData[l].subTotal=Number( this.otherData[l].cost)*Number(rate);
 | 
	
		
			
				|  |  | +                this.otherExpense+=this.otherData[l].subTotal;
 | 
	
		
			
				|  |  | +            }
 | 
	
		
			
				|  |  | +            console.log(this.otherData);
 | 
	
		
			
				|  |  | +            console.log(rate);
 | 
	
		
			
				|  |  | +            console.log(obj.currency);
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +            
 | 
	
		
			
				|  |  |          },
 | 
	
		
			
				|  |  |          //住宿地区选择
 | 
	
		
			
				|  |  |          changeSelect(val,item,index){
 | 
	
	
		
			
				|  | @@ -1558,6 +1592,7 @@ export default {
 | 
	
		
			
				|  |  |              obj= this.placeinif.find(function(i){
 | 
	
		
			
				|  |  |                  return i.id ===item
 | 
	
		
			
				|  |  |              });
 | 
	
		
			
				|  |  | +            this.SRrequirement(obj)
 | 
	
		
			
				|  |  |              //在change中获取到整条对象数据
 | 
	
		
			
				|  |  |              val.currencyName=obj.currencyName;
 | 
	
		
			
				|  |  |              val.currency=obj.currency;
 | 
	
	
		
			
				|  | @@ -2464,9 +2499,6 @@ export default {
 | 
	
		
			
				|  |  |          //监听汇率数组是否变化
 | 
	
		
			
				|  |  |          currencys:{
 | 
	
		
			
				|  |  |              handler(val){
 | 
	
		
			
				|  |  | -                console.log(val);
 | 
	
		
			
				|  |  | -                // console.log(this.quarterageData);
 | 
	
		
			
				|  |  | -                //住宿费
 | 
	
		
			
				|  |  |                  this.TotalAccommodationFee=0
 | 
	
		
			
				|  |  |                  for(let q=0;q<this.quarterageData.length;q++){
 | 
	
		
			
				|  |  |                      for(let qc=0;qc<this.currencys.length;qc++){
 | 
	
	
		
			
				|  | @@ -2506,6 +2538,29 @@ export default {
 | 
	
		
			
				|  |  |                      }
 | 
	
		
			
				|  |  |                      this.trainingExpense+=this.trainingExpenseData[t].subTotal
 | 
	
		
			
				|  |  |                  }
 | 
	
		
			
				|  |  | +                //其他费用
 | 
	
		
			
				|  |  | +                for (let nc = 0; nc < this.currencys.length; nc++) {
 | 
	
		
			
				|  |  | +                    for (let nt = 0; nt < this.othercurrencys.length; nt++) {
 | 
	
		
			
				|  |  | +                        if (this.currencys[nc].currencyCode==this.othercurrencys[nt].currencyCode) {
 | 
	
		
			
				|  |  | +                            this.othercurrencys[nt].rate=this.currencys[nc].rate;
 | 
	
		
			
				|  |  | +                        }
 | 
	
		
			
				|  |  | +                    }
 | 
	
		
			
				|  |  | +                }
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +                this.otherExpense=0;
 | 
	
		
			
				|  |  | +                for (let wm = 0; wm < this.otherData.length; wm++) {
 | 
	
		
			
				|  |  | +                    for(let cj=0;cj<this.othercurrencys.length;cj++){
 | 
	
		
			
				|  |  | +                        if(this.otherData[wm].currency==this.othercurrencys[cj].currencyId){
 | 
	
		
			
				|  |  | +                            this.otherData[wm].rate=this.othercurrencys[cj].rate
 | 
	
		
			
				|  |  | +                        }
 | 
	
		
			
				|  |  | +                    }
 | 
	
		
			
				|  |  | +                    if (this.otherData[wm].rate) {
 | 
	
		
			
				|  |  | +                        this.otherData[wm].subTotal=this.otherData[wm].cost*this.otherData[wm].rate;
 | 
	
		
			
				|  |  | +                        this.otherExpense+=this.otherData[wm].subTotal;
 | 
	
		
			
				|  |  | +                    }
 | 
	
		
			
				|  |  | +                }
 | 
	
		
			
				|  |  | +                console.log(this.otherData);
 | 
	
		
			
				|  |  | +                
 | 
	
		
			
				|  |  |              },
 | 
	
		
			
				|  |  |              deep:true
 | 
	
		
			
				|  |  |          }
 |