|
@@ -666,7 +666,6 @@ export default {
|
|
portType: 1
|
|
portType: 1
|
|
}
|
|
}
|
|
}).then(function (res) {
|
|
}).then(function (res) {
|
|
- console.log(res)
|
|
|
|
if(res.data.code==200){
|
|
if(res.data.code==200){
|
|
that.options=res.data.data.groupNameData;
|
|
that.options=res.data.data.groupNameData;
|
|
that.currencys=res.data.data.currencyInit;
|
|
that.currencys=res.data.data.currencyInit;
|
|
@@ -1316,17 +1315,14 @@ export default {
|
|
return i.id ===item
|
|
return i.id ===item
|
|
});
|
|
});
|
|
//在change中获取到整条对象数据
|
|
//在change中获取到整条对象数据
|
|
- console.log(obj);
|
|
|
|
val.currencyName=obj.currencyName;
|
|
val.currencyName=obj.currencyName;
|
|
val.currency=obj.currency;
|
|
val.currency=obj.currency;
|
|
val.cost=obj.roomCost;
|
|
val.cost=obj.roomCost;
|
|
- console.log(this.currencys)
|
|
|
|
for(let j=0;j<this.currencys.length;j++){
|
|
for(let j=0;j<this.currencys.length;j++){
|
|
if(this.currencys[j].currencyCode==obj.currencyCode){
|
|
if(this.currencys[j].currencyCode==obj.currencyCode){
|
|
rate=this.currencys[j].rate;
|
|
rate=this.currencys[j].rate;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- console.log(val.cost,rate)
|
|
|
|
val.subTotal=Number(val.cost)*Number(rate);
|
|
val.subTotal=Number(val.cost)*Number(rate);
|
|
this.TotalAccommodationFee=0;
|
|
this.TotalAccommodationFee=0;
|
|
for(let a=0;a<this.quarterageData.length;a++){
|
|
for(let a=0;a<this.quarterageData.length;a++){
|
|
@@ -1336,17 +1332,12 @@ export default {
|
|
},
|
|
},
|
|
//伙食地区选择
|
|
//伙食地区选择
|
|
mealschangeSelect(val,item,index){
|
|
mealschangeSelect(val,item,index){
|
|
- console.log(val);
|
|
|
|
- console.log(index);
|
|
|
|
var rate=0
|
|
var rate=0
|
|
var obj={}
|
|
var obj={}
|
|
obj= this.placeinif.find(function(i){
|
|
obj= this.placeinif.find(function(i){
|
|
return i.id ===item
|
|
return i.id ===item
|
|
});
|
|
});
|
|
//在change中获取到整条对象数据
|
|
//在change中获取到整条对象数据
|
|
- console.log(obj);
|
|
|
|
- console.log(this.currencys);
|
|
|
|
- console.log(this.boardWagesData);
|
|
|
|
// if(index!=undefined){
|
|
// if(index!=undefined){
|
|
// val[index].currencyName=obj.currencyName;
|
|
// val[index].currencyName=obj.currencyName;
|
|
// val[index].currency=obj.currency;
|
|
// val[index].currency=obj.currency;
|
|
@@ -1380,16 +1371,12 @@ export default {
|
|
},
|
|
},
|
|
//公杂费地区选择
|
|
//公杂费地区选择
|
|
MiscellaneouschangeSelect(val,item,index){
|
|
MiscellaneouschangeSelect(val,item,index){
|
|
- console.log(index);
|
|
|
|
var rate=0
|
|
var rate=0
|
|
var obj={}
|
|
var obj={}
|
|
obj= this.placeinif.find(function(i){
|
|
obj= this.placeinif.find(function(i){
|
|
return i.id ===item
|
|
return i.id ===item
|
|
});
|
|
});
|
|
//在change中获取到整条对象数据
|
|
//在change中获取到整条对象数据
|
|
- console.log(obj);
|
|
|
|
- console.log(this.currencys);
|
|
|
|
- console.log(val);
|
|
|
|
if(index!=undefined){
|
|
if(index!=undefined){
|
|
val[index].currencyName=obj.currencyName;
|
|
val[index].currencyName=obj.currencyName;
|
|
val[index].currency=obj.currency;
|
|
val[index].currency=obj.currency;
|
|
@@ -1537,82 +1524,83 @@ export default {
|
|
},
|
|
},
|
|
//保存
|
|
//保存
|
|
storage:debounce(function(){
|
|
storage:debounce(function(){
|
|
- //住宿费
|
|
|
|
- this.fullscreenLoading=true
|
|
|
|
- var quarterageDatas=[];
|
|
|
|
- for(let m=0;m<this.quarterageData.length;m++){
|
|
|
|
- if(this.quarterageData[m].nationalTravelFeeId!=''){
|
|
|
|
- quarterageDatas.push({
|
|
|
|
- id:this.quarterageData[m].id,
|
|
|
|
- diId:this.quarterageData[m].diId,
|
|
|
|
- type:this.quarterageData[m].type,
|
|
|
|
- days:this.quarterageData[m].days,
|
|
|
|
- nationalTravelFeeId:this.quarterageData[m].nationalTravelFeeId,
|
|
|
|
- cost:this.quarterageData[m].cost,
|
|
|
|
- currency:this.quarterageData[m].currency,
|
|
|
|
- subTotal:this.quarterageData[m].subTotal,
|
|
|
|
- remark:this.quarterageData[m].remark,
|
|
|
|
- })
|
|
|
|
|
|
+ return new Promise((resolve, reject) => {
|
|
|
|
+ //住宿费
|
|
|
|
+ this.fullscreenLoading=true
|
|
|
|
+ var quarterageDatas=[];
|
|
|
|
+ for(let m=0;m<this.quarterageData.length;m++){
|
|
|
|
+ if(this.quarterageData[m].nationalTravelFeeId!=''){
|
|
|
|
+ quarterageDatas.push({
|
|
|
|
+ id:this.quarterageData[m].id,
|
|
|
|
+ diId:this.quarterageData[m].diId,
|
|
|
|
+ type:this.quarterageData[m].type,
|
|
|
|
+ days:this.quarterageData[m].days,
|
|
|
|
+ nationalTravelFeeId:this.quarterageData[m].nationalTravelFeeId,
|
|
|
|
+ cost:this.quarterageData[m].cost,
|
|
|
|
+ currency:this.quarterageData[m].currency,
|
|
|
|
+ subTotal:this.quarterageData[m].subTotal,
|
|
|
|
+ remark:this.quarterageData[m].remark,
|
|
|
|
+ })
|
|
|
|
+ }
|
|
}
|
|
}
|
|
- }
|
|
|
|
- //伙食费
|
|
|
|
- var boardWagesDatas=[];
|
|
|
|
- for(let n=0;n<this.boardWagesData.length;n++){
|
|
|
|
- if(this.boardWagesData[n].nationalTravelFeeId!=''){
|
|
|
|
- boardWagesDatas.push({
|
|
|
|
- id:this.boardWagesData[n].id,
|
|
|
|
- diId:this.boardWagesData[n].diId,
|
|
|
|
- type:this.boardWagesData[n].type,
|
|
|
|
- days:this.boardWagesData[n].days,
|
|
|
|
- nationalTravelFeeId:this.boardWagesData[n].nationalTravelFeeId,
|
|
|
|
- cost:this.boardWagesData[n].cost,
|
|
|
|
- currency:this.boardWagesData[n].currency,
|
|
|
|
- subTotal:this.boardWagesData[n].subTotal,
|
|
|
|
- remark:this.boardWagesData[n].remark,
|
|
|
|
- })
|
|
|
|
|
|
+ //伙食费
|
|
|
|
+ var boardWagesDatas=[];
|
|
|
|
+ for(let n=0;n<this.boardWagesData.length;n++){
|
|
|
|
+ if(this.boardWagesData[n].nationalTravelFeeId!=''){
|
|
|
|
+ boardWagesDatas.push({
|
|
|
|
+ id:this.boardWagesData[n].id,
|
|
|
|
+ diId:this.boardWagesData[n].diId,
|
|
|
|
+ type:this.boardWagesData[n].type,
|
|
|
|
+ days:this.boardWagesData[n].days,
|
|
|
|
+ nationalTravelFeeId:this.boardWagesData[n].nationalTravelFeeId,
|
|
|
|
+ cost:this.boardWagesData[n].cost,
|
|
|
|
+ currency:this.boardWagesData[n].currency,
|
|
|
|
+ subTotal:this.boardWagesData[n].subTotal,
|
|
|
|
+ remark:this.boardWagesData[n].remark,
|
|
|
|
+ })
|
|
|
|
+ }
|
|
}
|
|
}
|
|
- }
|
|
|
|
- //公杂费miscellaneousFeeData
|
|
|
|
- var miscellaneousFeeDatas=[];
|
|
|
|
- for(let b=0;b<this.miscellaneousFeeData.length;b++){
|
|
|
|
- if(this.miscellaneousFeeData[b].nationalTravelFeeId!=''){
|
|
|
|
- miscellaneousFeeDatas.push({
|
|
|
|
- id:this.miscellaneousFeeData[b].id,
|
|
|
|
- diId:this.miscellaneousFeeData[b].diId,
|
|
|
|
- type:this.miscellaneousFeeData[b].type,
|
|
|
|
- days:this.miscellaneousFeeData[b].days,
|
|
|
|
- nationalTravelFeeId:this.miscellaneousFeeData[b].nationalTravelFeeId,
|
|
|
|
- cost:this.miscellaneousFeeData[b].cost,
|
|
|
|
- currency:this.miscellaneousFeeData[b].currency,
|
|
|
|
- subTotal:this.miscellaneousFeeData[b].subTotal,
|
|
|
|
- remark:this.miscellaneousFeeData[b].remark,
|
|
|
|
- })
|
|
|
|
|
|
+ //公杂费miscellaneousFeeData
|
|
|
|
+ var miscellaneousFeeDatas=[];
|
|
|
|
+ for(let b=0;b<this.miscellaneousFeeData.length;b++){
|
|
|
|
+ if(this.miscellaneousFeeData[b].nationalTravelFeeId!=''){
|
|
|
|
+ miscellaneousFeeDatas.push({
|
|
|
|
+ id:this.miscellaneousFeeData[b].id,
|
|
|
|
+ diId:this.miscellaneousFeeData[b].diId,
|
|
|
|
+ type:this.miscellaneousFeeData[b].type,
|
|
|
|
+ days:this.miscellaneousFeeData[b].days,
|
|
|
|
+ nationalTravelFeeId:this.miscellaneousFeeData[b].nationalTravelFeeId,
|
|
|
|
+ cost:this.miscellaneousFeeData[b].cost,
|
|
|
|
+ currency:this.miscellaneousFeeData[b].currency,
|
|
|
|
+ subTotal:this.miscellaneousFeeData[b].subTotal,
|
|
|
|
+ remark:this.miscellaneousFeeData[b].remark,
|
|
|
|
+ })
|
|
|
|
+ }
|
|
}
|
|
}
|
|
- }
|
|
|
|
- //培训费
|
|
|
|
- var trainingExpenseDatas=[];
|
|
|
|
- for(let p=0;p<this.trainingExpenseData.length;p++){
|
|
|
|
- if(this.trainingExpenseData[p].nationalTravelFeeId!=''){
|
|
|
|
- trainingExpenseDatas.push({
|
|
|
|
- id:this.trainingExpenseData[p].id,
|
|
|
|
- diId:this.trainingExpenseData[p].diId,
|
|
|
|
- type:this.trainingExpenseData[p].type,
|
|
|
|
- days:this.trainingExpenseData[p].days,
|
|
|
|
- nationalTravelFeeId:this.trainingExpenseData[p].nationalTravelFeeId,
|
|
|
|
- cost:this.trainingExpenseData[p].cost,
|
|
|
|
- currency:this.trainingExpenseData[p].currency,
|
|
|
|
- subTotal:this.trainingExpenseData[p].subTotal,
|
|
|
|
- remark:this.trainingExpenseData[p].remark,
|
|
|
|
- })
|
|
|
|
|
|
+ //培训费
|
|
|
|
+ var trainingExpenseDatas=[];
|
|
|
|
+ for(let p=0;p<this.trainingExpenseData.length;p++){
|
|
|
|
+ if(this.trainingExpenseData[p].nationalTravelFeeId!=''){
|
|
|
|
+ trainingExpenseDatas.push({
|
|
|
|
+ id:this.trainingExpenseData[p].id,
|
|
|
|
+ diId:this.trainingExpenseData[p].diId,
|
|
|
|
+ type:this.trainingExpenseData[p].type,
|
|
|
|
+ days:this.trainingExpenseData[p].days,
|
|
|
|
+ nationalTravelFeeId:this.trainingExpenseData[p].nationalTravelFeeId,
|
|
|
|
+ cost:this.trainingExpenseData[p].cost,
|
|
|
|
+ currency:this.trainingExpenseData[p].currency,
|
|
|
|
+ subTotal:this.trainingExpenseData[p].subTotal,
|
|
|
|
+ remark:this.trainingExpenseData[p].remark,
|
|
|
|
+ })
|
|
|
|
+ }
|
|
}
|
|
}
|
|
- }
|
|
|
|
- this.storageAPI(quarterageDatas,boardWagesDatas,miscellaneousFeeDatas,trainingExpenseDatas)
|
|
|
|
|
|
+ this.storageAPI(quarterageDatas,boardWagesDatas,miscellaneousFeeDatas,trainingExpenseDatas)
|
|
|
|
+ })
|
|
},1000,true),
|
|
},1000,true),
|
|
//保存API
|
|
//保存API
|
|
storageAPI(arrthre,arrfour,arrfive,arrsix){
|
|
storageAPI(arrthre,arrfour,arrfive,arrsix){
|
|
var url = "/api/Groups/PostEnterExitCostOperate"
|
|
var url = "/api/Groups/PostEnterExitCostOperate"
|
|
var that = this
|
|
var that = this
|
|
- console.log(that.value)
|
|
|
|
this.$axios({
|
|
this.$axios({
|
|
method: 'post',
|
|
method: 'post',
|
|
url: url,
|
|
url: url,
|
|
@@ -1659,7 +1647,6 @@ export default {
|
|
}
|
|
}
|
|
}).then(function (res) {
|
|
}).then(function (res) {
|
|
if(res.data.code==200){
|
|
if(res.data.code==200){
|
|
- console.log(res)
|
|
|
|
that.$message({
|
|
that.$message({
|
|
type: 'success',
|
|
type: 'success',
|
|
message: res.data.msg
|
|
message: res.data.msg
|
|
@@ -1672,6 +1659,8 @@ export default {
|
|
}).catch(function (error) {
|
|
}).catch(function (error) {
|
|
that.$message.error(error.message);
|
|
that.$message.error(error.message);
|
|
});
|
|
});
|
|
|
|
+
|
|
|
|
+
|
|
},
|
|
},
|
|
//选择团组名称调用
|
|
//选择团组名称调用
|
|
chengvalue(){
|
|
chengvalue(){
|
|
@@ -1679,7 +1668,7 @@ export default {
|
|
this.fullscreenLoading=true;
|
|
this.fullscreenLoading=true;
|
|
this.GetEnterExitCostInfobyDiId()
|
|
this.GetEnterExitCostInfobyDiId()
|
|
},
|
|
},
|
|
- eptschedule(val){
|
|
|
|
|
|
+ eptschedule:debounce(function(val){
|
|
var subTypeId=0
|
|
var subTypeId=0
|
|
if(val==1){
|
|
if(val==1){
|
|
subTypeId=this.listvalue
|
|
subTypeId=this.listvalue
|
|
@@ -1707,7 +1696,6 @@ export default {
|
|
subTypeId:subTypeId
|
|
subTypeId:subTypeId
|
|
}
|
|
}
|
|
}).then(function (res) {
|
|
}).then(function (res) {
|
|
- console.log(res)
|
|
|
|
if(res.data.code==200){
|
|
if(res.data.code==200){
|
|
that.$message({
|
|
that.$message({
|
|
type: 'success',
|
|
type: 'success',
|
|
@@ -1718,7 +1706,10 @@ export default {
|
|
that.$message.error(res.data.msg);
|
|
that.$message.error(res.data.msg);
|
|
}
|
|
}
|
|
})
|
|
})
|
|
- },
|
|
|
|
|
|
+ // this.storage().then(function () {
|
|
|
|
+ // });
|
|
|
|
+ },500,true),
|
|
|
|
+ //
|
|
calculation(){
|
|
calculation(){
|
|
var jnfy
|
|
var jnfy
|
|
var jjcxj
|
|
var jjcxj
|