|
@@ -35,6 +35,26 @@
|
|
|
<span style="color:#606266;">{{ delegationInfo.visitDays }}天/{{ delegationInfo.visitPNumber }}人</span>
|
|
|
</div>
|
|
|
</div>
|
|
|
+ <div class="costbudgeting">
|
|
|
+ <span>*团组成本预算-机票的预算:</span>
|
|
|
+ <div v-if="budgeting.length>1">
|
|
|
+ <div class="costbudgeting-li" v-for="(item,index) in budgeting" :key="index">
|
|
|
+ <span>({{item.costType}}段)</span>
|
|
|
+ <span>时间:{{item.costTypeStartTime}} ~ {{item.costTypeEndTime}}</span>
|
|
|
+ <span v-for="(items,index) in item.data" :key="index"> {{items.airType}}:{{townum(items.airDRCB)}}元/人 {{items.airNum}}人 共:{{townum(items.airZCB)}} </span>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div v-if="budgeting.length<=1">
|
|
|
+ <div class="costbudgeting-li" v-for="(item,index) in budgeting" :key="index">
|
|
|
+ <span v-for="(items,index) in item.data" :key="index">{{items.airType}}:{{townum(items.airDRCB)}}元/人 {{items.airNum}}人 共:{{townum(items.airZCB)}} </span>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div v-if="budgeting.length==0">
|
|
|
+ <div class="costbudgeting-li">
|
|
|
+ 未设置团组成本或成本未通知
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
<template>
|
|
|
<el-table :data="tableDatas.slice((currentPage - 1) * pageSize, currentPage * pageSize)" border
|
|
|
style="width: 100%" v-loading="loading" element-loading-text="拼命加载中...">
|
|
@@ -53,12 +73,12 @@
|
|
|
</el-table-column>
|
|
|
<el-table-column prop="prePrice,preCurrencyStr" label="机票单价" width="120" sortable>
|
|
|
<template slot-scope="scope">
|
|
|
- {{ scope.row.prePrice }}({{ scope.row.preCurrencyStr }})
|
|
|
+ {{ townum(scope.row.prePrice) }}({{ scope.row.preCurrencyStr }})
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column prop="price,currencyStr" label="机票总价" width="120">
|
|
|
<template slot-scope="scope">
|
|
|
- {{ scope.row.price }}({{ scope.row.currencyStr }})
|
|
|
+ {{ townum(scope.row.price) }}({{ scope.row.currencyStr }})
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column prop="isAuditGM" label="是否审核" width="120">
|
|
@@ -103,10 +123,43 @@ export default {
|
|
|
DiId: '',
|
|
|
AirTicketResSelectData: [],
|
|
|
delegationInfo: {},
|
|
|
- fynone:true
|
|
|
+ fynone:true,
|
|
|
+ budgeting:[]
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
+ btn(){
|
|
|
+ console.log(this.budgeting.length)
|
|
|
+ },
|
|
|
+ //保留两位小数
|
|
|
+ townum(val){
|
|
|
+ return val.toFixed(2)
|
|
|
+ },
|
|
|
+ //获取成本提示
|
|
|
+ getcostbudgeting(){
|
|
|
+ this.budgeting=[];
|
|
|
+ var url = "/api/Groups/PostGroupCostModulePrompt"
|
|
|
+ var that = this
|
|
|
+ this.$axios({
|
|
|
+ method: 'post',
|
|
|
+ url: url,
|
|
|
+ headers: {
|
|
|
+ Authorization: 'Bearer ' + this.token
|
|
|
+ },
|
|
|
+ data: {
|
|
|
+ userId: that.userId,
|
|
|
+ diId: that.DiId,
|
|
|
+ cTable:85,
|
|
|
+ }
|
|
|
+ }).then(function (res) {
|
|
|
+ if (res.data.code == 200) {
|
|
|
+ console.log(res)
|
|
|
+ that.budgeting=res.data.data.modulePromptInfos;
|
|
|
+ } else {
|
|
|
+ // that.$message.error(res.data.msg);
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
//每页条数改变时触发 选择一页显示多少行
|
|
|
handleSizeChange(val) {
|
|
|
this.currentPage = 1;
|
|
@@ -141,7 +194,8 @@ export default {
|
|
|
} else {
|
|
|
that.DiId = that.AirTicketResSelectData[0].id;
|
|
|
}
|
|
|
- that.AirTicketResList()
|
|
|
+ that.AirTicketResList();
|
|
|
+ that.getcostbudgeting();
|
|
|
}
|
|
|
|
|
|
}
|
|
@@ -151,6 +205,7 @@ export default {
|
|
|
},
|
|
|
AirTicketResSelectChange() {
|
|
|
this.AirTicketResList();
|
|
|
+ this.getcostbudgeting();
|
|
|
},
|
|
|
//团组信息绑定
|
|
|
AirTicketResList() {
|
|
@@ -343,6 +398,7 @@ export default {
|
|
|
box-shadow: 0 0 5px #0005;
|
|
|
border-radius: 10px;
|
|
|
min-height: 830px;
|
|
|
+
|
|
|
}
|
|
|
|
|
|
.communal-title {
|
|
@@ -366,4 +422,11 @@ export default {
|
|
|
margin-left: 10px;
|
|
|
padding: 8px 20px;
|
|
|
}
|
|
|
+.costbudgeting{
|
|
|
+ color: red;
|
|
|
+ font-size: 14px;
|
|
|
+}
|
|
|
+.costbudgeting-li{
|
|
|
+ margin: 5px 0;
|
|
|
+}
|
|
|
</style>
|