|
@@ -1,5 +1,5 @@
|
|
<template>
|
|
<template>
|
|
- <div>
|
|
|
|
|
|
+ <div v-loading.fullscreen.lock="fullscreenLoading">
|
|
<div class="Entry-all">
|
|
<div class="Entry-all">
|
|
<div class="Entry-head">
|
|
<div class="Entry-head">
|
|
<div class="Entry-head-li">
|
|
<div class="Entry-head-li">
|
|
@@ -17,7 +17,23 @@
|
|
<el-button type="primary">计算费用</el-button>
|
|
<el-button type="primary">计算费用</el-button>
|
|
<el-button type="primary">全部清空</el-button>
|
|
<el-button type="primary">全部清空</el-button>
|
|
<el-button @click="storage()" type="primary">保存</el-button>
|
|
<el-button @click="storage()" type="primary">保存</el-button>
|
|
|
|
+ <el-select style="width:202px" v-model="listvalue" placeholder="请选择">
|
|
|
|
+ <el-option
|
|
|
|
+ v-for="item in listvalueoptions"
|
|
|
|
+ :key="item.id"
|
|
|
|
+ :label="item.name"
|
|
|
|
+ :value="item.id">
|
|
|
|
+ </el-option>
|
|
|
|
+ </el-select>
|
|
<el-button type="primary">导出所选明细表</el-button>
|
|
<el-button type="primary">导出所选明细表</el-button>
|
|
|
|
+ <el-select style="width:202px" v-model="tablevalue" placeholder="请选择">
|
|
|
|
+ <el-option
|
|
|
|
+ v-for="item in tablevalueoptions"
|
|
|
|
+ :key="item.id"
|
|
|
|
+ :label="item.name"
|
|
|
|
+ :value="item.id">
|
|
|
|
+ </el-option>
|
|
|
|
+ </el-select>
|
|
<el-button type="primary">导出下拉所选表格</el-button>
|
|
<el-button type="primary">导出下拉所选表格</el-button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -479,6 +495,30 @@
|
|
export default {
|
|
export default {
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
|
|
+ fullscreenLoading:false,
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ options: [{
|
|
|
|
+ value: '选项1',
|
|
|
|
+ label: '黄金糕'
|
|
|
|
+ }, {
|
|
|
|
+ value: '选项2',
|
|
|
|
+ label: '双皮奶'
|
|
|
|
+ }, {
|
|
|
|
+ value: '选项3',
|
|
|
|
+ label: '蚵仔煎'
|
|
|
|
+ }, {
|
|
|
|
+ value: '选项4',
|
|
|
|
+ label: '龙须面'
|
|
|
|
+ }, {
|
|
|
|
+ value: '选项5',
|
|
|
|
+ label: '北京烤鸭'
|
|
|
|
+ }],
|
|
|
|
+ listvalue:'',
|
|
|
|
+ tablevalue:'',
|
|
|
|
+ listvalueoptions:[],
|
|
|
|
+ tablevalueoptions:[],
|
|
|
|
+
|
|
//是否计算Checkbox
|
|
//是否计算Checkbox
|
|
choiceOne:false,//境内费用(其他费用)选择框
|
|
choiceOne:false,//境内费用(其他费用)选择框
|
|
choiceTwo:false,//国际旅费合计选择框
|
|
choiceTwo:false,//国际旅费合计选择框
|
|
@@ -602,6 +642,8 @@ export default {
|
|
that.currencys=res.data.data.currencyInit;
|
|
that.currencys=res.data.data.currencyInit;
|
|
that.value=res.data.data.groupNameData[0].id;
|
|
that.value=res.data.data.groupNameData[0].id;
|
|
that.placeinif=res.data.data.nationalTravelFeeData;
|
|
that.placeinif=res.data.data.nationalTravelFeeData;
|
|
|
|
+ that.listvalueoptions=res.data.data.wordTypeData;
|
|
|
|
+ that.tablevalueoptions=res.data.data.excelTypeData;
|
|
that.GetEnterExitCostInfobyDiId()
|
|
that.GetEnterExitCostInfobyDiId()
|
|
}
|
|
}
|
|
})
|
|
})
|
|
@@ -635,7 +677,13 @@ export default {
|
|
},
|
|
},
|
|
GetEnterExitCostInfobyDiId(){
|
|
GetEnterExitCostInfobyDiId(){
|
|
//初始化数据
|
|
//初始化数据
|
|
|
|
+
|
|
// this.currencys=[]
|
|
// this.currencys=[]
|
|
|
|
+ this.TotalAccommodationFee=0;//住宿费合计
|
|
|
|
+ this.TotalMeals=0;//伙食费合计
|
|
|
|
+ this.TotalMiscellaneous=0;//公杂费合计
|
|
|
|
+ this.trainingExpense=0;//培训费合计
|
|
|
|
+
|
|
this.DomesticFees={
|
|
this.DomesticFees={
|
|
visafees:'',//签证费
|
|
visafees:'',//签证费
|
|
visafeesDescription:'',//签证费用描述
|
|
visafeesDescription:'',//签证费用描述
|
|
@@ -732,6 +780,11 @@ export default {
|
|
that.trainingExpense+=res.data.data.trainingExpenseData[d].subTotal
|
|
that.trainingExpense+=res.data.data.trainingExpenseData[d].subTotal
|
|
}
|
|
}
|
|
that.storageid=res.data.data.id;
|
|
that.storageid=res.data.data.id;
|
|
|
|
+ that.GetNationalTravelFeeData();
|
|
|
|
+ that.fullscreenLoading=false;
|
|
|
|
+ }else{
|
|
|
|
+ that.fullscreenLoading=false;
|
|
|
|
+ that.$message.error(res.data.msg);
|
|
}
|
|
}
|
|
})
|
|
})
|
|
},
|
|
},
|
|
@@ -820,7 +873,6 @@ export default {
|
|
},
|
|
},
|
|
//培训费费用标准值改变
|
|
//培训费费用标准值改变
|
|
Traininginput(val){
|
|
Traininginput(val){
|
|
- console.log(val)
|
|
|
|
var rate=0
|
|
var rate=0
|
|
for(let j=0;j<this.currencys.length;j++){
|
|
for(let j=0;j<this.currencys.length;j++){
|
|
if(this.currencys[j].currencyName==val.currencyName){
|
|
if(this.currencys[j].currencyName==val.currencyName){
|
|
@@ -869,7 +921,7 @@ export default {
|
|
cost:0,
|
|
cost:0,
|
|
currency:0,
|
|
currency:0,
|
|
subTotal:0,
|
|
subTotal:0,
|
|
- remark:0,
|
|
|
|
|
|
+ remark:'',
|
|
})
|
|
})
|
|
}
|
|
}
|
|
if(text=="伙食费"){
|
|
if(text=="伙食费"){
|
|
@@ -882,7 +934,7 @@ export default {
|
|
cost:0,
|
|
cost:0,
|
|
currency:0,
|
|
currency:0,
|
|
subTotal:0,
|
|
subTotal:0,
|
|
- remark:0,
|
|
|
|
|
|
+ remark:'',
|
|
})
|
|
})
|
|
}
|
|
}
|
|
if(text=="公杂费"){
|
|
if(text=="公杂费"){
|
|
@@ -895,7 +947,7 @@ export default {
|
|
cost:0,
|
|
cost:0,
|
|
currency:0,
|
|
currency:0,
|
|
subTotal:0,
|
|
subTotal:0,
|
|
- remark:0,
|
|
|
|
|
|
+ remark:'',
|
|
})
|
|
})
|
|
}
|
|
}
|
|
if(text=="培训费"){
|
|
if(text=="培训费"){
|
|
@@ -1081,6 +1133,7 @@ export default {
|
|
},
|
|
},
|
|
//选择团组名称调用
|
|
//选择团组名称调用
|
|
chengvalue(){
|
|
chengvalue(){
|
|
|
|
+ this.fullscreenLoading=true;
|
|
this.GetEnterExitCostInfobyDiId()
|
|
this.GetEnterExitCostInfobyDiId()
|
|
}
|
|
}
|
|
},
|
|
},
|