|
@@ -137,6 +137,7 @@
|
|
|
<label>{{item.currencyName}}汇率:</label>
|
|
|
<el-input-number size="mini" :controls="false" :precision="4" v-model="item.rate"></el-input-number>
|
|
|
</div>
|
|
|
+ <span class="redzhu">(注:请先修改汇率在添加数据,否则请删除在添加!)</span>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="Entry-form-li">
|
|
@@ -740,13 +741,370 @@ export default {
|
|
|
this.choiceSix=false//培训费用选择框
|
|
|
this.sumJJC=false//经济舱小计选择框
|
|
|
this.sumGWC=false//公务舱小计选择框
|
|
|
- this.airJJC_Checked=false//经济舱选择框
|
|
|
+ this.airJJC_Checked=false//经济舱选择框
|
|
|
this.airGWC_Checked=false//公务舱选择框
|
|
|
+ this.storageid=0
|
|
|
|
|
|
- this.quarterageData= []
|
|
|
- this.boardWagesData=[]
|
|
|
- this.miscellaneousFeeData=[]
|
|
|
- this.trainingExpenseData=[]
|
|
|
+ this.quarterageData= [
|
|
|
+ {
|
|
|
+ id:0,
|
|
|
+ diId:this.value,
|
|
|
+ type:1,
|
|
|
+ days:1,
|
|
|
+ nationalTravelFeeId:'',
|
|
|
+ cost:0,
|
|
|
+ currency:0,
|
|
|
+ subTotal:0,
|
|
|
+ remark:'',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ id:0,
|
|
|
+ diId:this.value,
|
|
|
+ type:1,
|
|
|
+ days:2,
|
|
|
+ nationalTravelFeeId:'',
|
|
|
+ cost:0,
|
|
|
+ currency:0,
|
|
|
+ subTotal:0,
|
|
|
+ remark:'',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ id:0,
|
|
|
+ diId:this.value,
|
|
|
+ type:1,
|
|
|
+ days:3,
|
|
|
+ nationalTravelFeeId:'',
|
|
|
+ cost:0,
|
|
|
+ currency:0,
|
|
|
+ subTotal:0,
|
|
|
+ remark:'',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ id:0,
|
|
|
+ diId:this.value,
|
|
|
+ type:1,
|
|
|
+ days:4,
|
|
|
+ nationalTravelFeeId:'',
|
|
|
+ cost:0,
|
|
|
+ currency:0,
|
|
|
+ subTotal:0,
|
|
|
+ remark:'',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ id:0,
|
|
|
+ diId:this.value,
|
|
|
+ type:1,
|
|
|
+ days:5,
|
|
|
+ nationalTravelFeeId:'',
|
|
|
+ cost:0,
|
|
|
+ currency:0,
|
|
|
+ subTotal:0,
|
|
|
+ remark:'',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ id:0,
|
|
|
+ diId:this.value,
|
|
|
+ type:1,
|
|
|
+ days:6,
|
|
|
+ nationalTravelFeeId:'',
|
|
|
+ cost:0,
|
|
|
+ currency:0,
|
|
|
+ subTotal:0,
|
|
|
+ remark:'',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ id:0,
|
|
|
+ diId:this.value,
|
|
|
+ type:1,
|
|
|
+ days:7,
|
|
|
+ nationalTravelFeeId:'',
|
|
|
+ cost:0,
|
|
|
+ currency:0,
|
|
|
+ subTotal:0,
|
|
|
+ remark:'',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ id:0,
|
|
|
+ diId:this.value,
|
|
|
+ type:1,
|
|
|
+ days:8,
|
|
|
+ nationalTravelFeeId:'',
|
|
|
+ cost:0,
|
|
|
+ currency:0,
|
|
|
+ subTotal:0,
|
|
|
+ remark:'',
|
|
|
+ },
|
|
|
+ ]
|
|
|
+ this.boardWagesData=[
|
|
|
+ {
|
|
|
+ id:0,
|
|
|
+ diId:this.value,
|
|
|
+ type:2,
|
|
|
+ days:1,
|
|
|
+ nationalTravelFeeId:'',
|
|
|
+ cost:0,
|
|
|
+ currency:0,
|
|
|
+ subTotal:0,
|
|
|
+ remark:'',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ id:0,
|
|
|
+ diId:this.value,
|
|
|
+ type:2,
|
|
|
+ days:2,
|
|
|
+ nationalTravelFeeId:'',
|
|
|
+ cost:0,
|
|
|
+ currency:0,
|
|
|
+ subTotal:0,
|
|
|
+ remark:'',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ id:0,
|
|
|
+ diId:this.value,
|
|
|
+ type:2,
|
|
|
+ days:3,
|
|
|
+ nationalTravelFeeId:'',
|
|
|
+ cost:0,
|
|
|
+ currency:0,
|
|
|
+ subTotal:0,
|
|
|
+ remark:'',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ id:0,
|
|
|
+ diId:this.value,
|
|
|
+ type:2,
|
|
|
+ days:4,
|
|
|
+ nationalTravelFeeId:'',
|
|
|
+ cost:0,
|
|
|
+ currency:0,
|
|
|
+ subTotal:0,
|
|
|
+ remark:'',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ id:0,
|
|
|
+ diId:this.value,
|
|
|
+ type:2,
|
|
|
+ days:5,
|
|
|
+ nationalTravelFeeId:'',
|
|
|
+ cost:0,
|
|
|
+ currency:0,
|
|
|
+ subTotal:0,
|
|
|
+ remark:'',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ id:0,
|
|
|
+ diId:this.value,
|
|
|
+ type:2,
|
|
|
+ days:6,
|
|
|
+ nationalTravelFeeId:'',
|
|
|
+ cost:0,
|
|
|
+ currency:0,
|
|
|
+ subTotal:0,
|
|
|
+ remark:'',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ id:0,
|
|
|
+ diId:this.value,
|
|
|
+ type:2,
|
|
|
+ days:7,
|
|
|
+ nationalTravelFeeId:'',
|
|
|
+ cost:0,
|
|
|
+ currency:0,
|
|
|
+ subTotal:0,
|
|
|
+ remark:'',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ id:0,
|
|
|
+ diId:this.value,
|
|
|
+ type:2,
|
|
|
+ days:8,
|
|
|
+ nationalTravelFeeId:'',
|
|
|
+ cost:0,
|
|
|
+ currency:0,
|
|
|
+ subTotal:0,
|
|
|
+ remark:'',
|
|
|
+ },
|
|
|
+ ]
|
|
|
+ this.miscellaneousFeeData=[
|
|
|
+ {
|
|
|
+ id:0,
|
|
|
+ diId:this.value,
|
|
|
+ type:3,
|
|
|
+ days:1,
|
|
|
+ nationalTravelFeeId:'',
|
|
|
+ cost:0,
|
|
|
+ currency:0,
|
|
|
+ subTotal:0,
|
|
|
+ remark:'',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ id:0,
|
|
|
+ diId:this.value,
|
|
|
+ type:3,
|
|
|
+ days:2,
|
|
|
+ nationalTravelFeeId:'',
|
|
|
+ cost:0,
|
|
|
+ currency:0,
|
|
|
+ subTotal:0,
|
|
|
+ remark:'',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ id:0,
|
|
|
+ diId:this.value,
|
|
|
+ type:3,
|
|
|
+ days:3,
|
|
|
+ nationalTravelFeeId:'',
|
|
|
+ cost:0,
|
|
|
+ currency:0,
|
|
|
+ subTotal:0,
|
|
|
+ remark:'',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ id:0,
|
|
|
+ diId:this.value,
|
|
|
+ type:3,
|
|
|
+ days:4,
|
|
|
+ nationalTravelFeeId:'',
|
|
|
+ cost:0,
|
|
|
+ currency:0,
|
|
|
+ subTotal:0,
|
|
|
+ remark:'',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ id:0,
|
|
|
+ diId:this.value,
|
|
|
+ type:3,
|
|
|
+ days:5,
|
|
|
+ nationalTravelFeeId:'',
|
|
|
+ cost:0,
|
|
|
+ currency:0,
|
|
|
+ subTotal:0,
|
|
|
+ remark:'',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ id:0,
|
|
|
+ diId:this.value,
|
|
|
+ type:3,
|
|
|
+ days:6,
|
|
|
+ nationalTravelFeeId:'',
|
|
|
+ cost:0,
|
|
|
+ currency:0,
|
|
|
+ subTotal:0,
|
|
|
+ remark:'',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ id:0,
|
|
|
+ diId:this.value,
|
|
|
+ type:3,
|
|
|
+ days:7,
|
|
|
+ nationalTravelFeeId:'',
|
|
|
+ cost:0,
|
|
|
+ currency:0,
|
|
|
+ subTotal:0,
|
|
|
+ remark:'',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ id:0,
|
|
|
+ diId:this.value,
|
|
|
+ type:3,
|
|
|
+ days:8,
|
|
|
+ nationalTravelFeeId:'',
|
|
|
+ cost:0,
|
|
|
+ currency:0,
|
|
|
+ subTotal:0,
|
|
|
+ remark:'',
|
|
|
+ },
|
|
|
+ ]
|
|
|
+ this.trainingExpenseData=[
|
|
|
+ {
|
|
|
+ id:0,
|
|
|
+ diId:this.value,
|
|
|
+ type:4,
|
|
|
+ days:1,
|
|
|
+ nationalTravelFeeId:'',
|
|
|
+ cost:0,
|
|
|
+ currency:0,
|
|
|
+ subTotal:0,
|
|
|
+ remark:'',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ id:0,
|
|
|
+ diId:this.value,
|
|
|
+ type:4,
|
|
|
+ days:2,
|
|
|
+ nationalTravelFeeId:'',
|
|
|
+ cost:0,
|
|
|
+ currency:0,
|
|
|
+ subTotal:0,
|
|
|
+ remark:'',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ id:0,
|
|
|
+ diId:this.value,
|
|
|
+ type:4,
|
|
|
+ days:3,
|
|
|
+ nationalTravelFeeId:'',
|
|
|
+ cost:0,
|
|
|
+ currency:0,
|
|
|
+ subTotal:0,
|
|
|
+ remark:'',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ id:0,
|
|
|
+ diId:this.value,
|
|
|
+ type:4,
|
|
|
+ days:4,
|
|
|
+ nationalTravelFeeId:'',
|
|
|
+ cost:0,
|
|
|
+ currency:0,
|
|
|
+ subTotal:0,
|
|
|
+ remark:'',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ id:0,
|
|
|
+ diId:this.value,
|
|
|
+ type:4,
|
|
|
+ days:5,
|
|
|
+ nationalTravelFeeId:'',
|
|
|
+ cost:0,
|
|
|
+ currency:0,
|
|
|
+ subTotal:0,
|
|
|
+ remark:'',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ id:0,
|
|
|
+ diId:this.value,
|
|
|
+ type:4,
|
|
|
+ days:6,
|
|
|
+ nationalTravelFeeId:'',
|
|
|
+ cost:0,
|
|
|
+ currency:0,
|
|
|
+ subTotal:0,
|
|
|
+ remark:'',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ id:0,
|
|
|
+ diId:this.value,
|
|
|
+ type:4,
|
|
|
+ days:7,
|
|
|
+ nationalTravelFeeId:'',
|
|
|
+ cost:0,
|
|
|
+ currency:0,
|
|
|
+ subTotal:0,
|
|
|
+ remark:'',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ id:0,
|
|
|
+ diId:this.value,
|
|
|
+ type:4,
|
|
|
+ days:8,
|
|
|
+ nationalTravelFeeId:'',
|
|
|
+ cost:0,
|
|
|
+ currency:0,
|
|
|
+ subTotal:0,
|
|
|
+ remark:'',
|
|
|
+ },
|
|
|
+ ]
|
|
|
|
|
|
var url = "/api/Groups/GetEnterExitCostInfobyDiId"
|
|
|
var that = this
|
|
@@ -811,7 +1169,7 @@ export default {
|
|
|
that.trainingExpense+=res.data.data.trainingExpenseData[d].subTotal
|
|
|
}
|
|
|
that.storageid=res.data.data.id;
|
|
|
- that.GetNationalTravelFeeData();
|
|
|
+ // that.GetNationalTravelFeeData();
|
|
|
that.fullscreenLoading=false;
|
|
|
}else{
|
|
|
that.fullscreenLoading=false;
|
|
@@ -865,6 +1223,8 @@ export default {
|
|
|
});
|
|
|
//在change中获取到整条对象数据
|
|
|
console.log(obj);
|
|
|
+ console.log(this.currencys);
|
|
|
+ console.log(this.boardWagesData);
|
|
|
// if(index!=undefined){
|
|
|
// val[index].currencyName=obj.currencyName;
|
|
|
// val[index].currency=obj.currency;
|
|
@@ -906,6 +1266,7 @@ export default {
|
|
|
});
|
|
|
//在change中获取到整条对象数据
|
|
|
console.log(obj);
|
|
|
+ console.log(this.currencys);
|
|
|
console.log(val);
|
|
|
if(index!=undefined){
|
|
|
val[index].currencyName=obj.currencyName;
|
|
@@ -1057,62 +1418,70 @@ export default {
|
|
|
//住宿费
|
|
|
var quarterageDatas=[];
|
|
|
for(let m=0;m<this.quarterageData.length;m++){
|
|
|
- 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,
|
|
|
- })
|
|
|
+ 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++){
|
|
|
- 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,
|
|
|
- })
|
|
|
+ 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++){
|
|
|
- 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,
|
|
|
- })
|
|
|
+ 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++){
|
|
|
- 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,
|
|
|
- })
|
|
|
+ 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)
|
|
|
},
|