Commit 6a2515f8 authored by 黄媛媛's avatar 黄媛媛
parents b5d73aba c3d0d948
...@@ -9,12 +9,15 @@ ...@@ -9,12 +9,15 @@
.CostNewPrice .CP_halfWi { .CostNewPrice .CP_halfWi {
width: 45%; width: 45%;
} }
.CostNewPrice .QuotationFirstDiv1{
padding-top:30px; .CostNewPrice .QuotationFirstDiv1 {
padding-top: 30px;
} }
.CostNewPrice .QuotationFirstDiv1 .el-form-item__content .el-select{
.CostNewPrice .QuotationFirstDiv1 .el-form-item__content .el-select {
width: calc(100% - 100px); width: calc(100% - 100px);
} }
</style> </style>
<template> <template>
...@@ -26,7 +29,7 @@ ...@@ -26,7 +29,7 @@
<el-col :span="12"> <el-col :span="12">
<el-form-item label="线路" label-width="100px"> <el-form-item label="线路" label-width="100px">
<el-select v-model="postConfig.LineId" :placeholder="$t('pub.pleaseSel')" <el-select v-model="postConfig.LineId" :placeholder="$t('pub.pleaseSel')"
@change="getLineTeamList(postConfig.LineId)" filterable> @change="getLineTeamList(postConfig.LineId,1)" filterable>
<el-option :label="$t('pub.unlimitedSel')" :value='0'></el-option> <el-option :label="$t('pub.unlimitedSel')" :value='0'></el-option>
<el-option v-for="item in LineList" :label='item.LineName' :value='item.LineID' :key='item.LineID'> <el-option v-for="item in LineList" :label='item.LineName' :value='item.LineID' :key='item.LineID'>
</el-option> </el-option>
...@@ -46,8 +49,8 @@ ...@@ -46,8 +49,8 @@
<el-row> <el-row>
<el-col :span="24"> <el-col :span="24">
<el-form-item label="团队标题" label-width="100px"> <el-form-item label="团队标题" label-width="100px">
<el-input v-model="postConfig.Title" type="textarea" style="width:94%" :autosize="{minRows: 1, maxRows: 2 }" resize="none" <el-input v-model="postConfig.Title" type="textarea" style="width:94%"
placeholder="请填写团队标题" maxlength="200"></el-input> :autosize="{minRows: 1, maxRows: 2 }" resize="none" placeholder="请填写团队标题" maxlength="200"></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
...@@ -130,11 +133,13 @@ ...@@ -130,11 +133,13 @@
<tr> <tr>
<td class="CP_comBack">汇率</td> <td class="CP_comBack">汇率</td>
<td v-for='item in CostCurrencyList'> <td v-for='item in CostCurrencyList'>
<el-input class="w80" v-model='item.ExchangeRate' @keyup.native="checkRate(item,'ExchangeRate'),getchange()"> <el-input class="w80" v-model='item.ExchangeRate'
@keyup.native="checkRate(item,'ExchangeRate'),getchange()">
</el-input> </el-input>
</td> </td>
<td> <td>
<el-input class="w100" v-model='queryMsg.RateInput' @keyup.native="checkRate(queryMsg,'RateInput'),getchange()"> <el-input class="w100" v-model='queryMsg.RateInput'
@keyup.native="checkRate(queryMsg,'RateInput'),getchange()">
</el-input> </el-input>
</td> </td>
</tr> </tr>
...@@ -207,7 +212,8 @@ ...@@ -207,7 +212,8 @@
@keyup.native="checkPrice(subItem,'HotelCostPrice')"></el-input> @keyup.native="checkPrice(subItem,'HotelCostPrice')"></el-input>
</td> </td>
<td> <td>
<el-input type='text' v-model="subItem.BusCostPrice" @keyup.native="checkPrice(subItem,'BusCostPrice'),getchange()"> <el-input type='text' v-model="subItem.BusCostPrice"
@keyup.native="checkPrice(subItem,'BusCostPrice'),getchange()">
</el-input> </el-input>
</td> </td>
<td> <td>
...@@ -595,8 +601,12 @@ ...@@ -595,8 +601,12 @@
return totalMoney; return totalMoney;
}, },
//获取系列列表 //获取系列列表
getLineTeamList(lineId) { getLineTeamList(lineId,isClear) {
this.postConfig.LineteamId = 0; if(isClear&&isClear==1)
{
this.postConfig.LineteamId = 0;
}
let msg = { let msg = {
lineID: lineId, lineID: lineId,
isTOOP: 1 isTOOP: 1
...@@ -740,6 +750,16 @@ ...@@ -740,6 +750,16 @@
this.queryMsg.Money = ""; this.queryMsg.Money = "";
this.shortPeopleNumber(); this.shortPeopleNumber();
}, },
//删除币种
DeleteCurrency(index) {
this.CostCurrencyList.splice(index, 1);
},
//删除人数
DeletePNumber(index) {
this.CostNumberList.splice(index, 1);
},
//人数排序 //人数排序
shortPeopleNumber() { shortPeopleNumber() {
this.CurrencyNumberListExt.forEach(x => { this.CurrencyNumberListExt.forEach(x => {
...@@ -831,20 +851,27 @@ ...@@ -831,20 +851,27 @@
x.OtherMoney = (OtherShareMoney / x.PeopleNumber).toFixed(2); x.OtherMoney = (OtherShareMoney / x.PeopleNumber).toFixed(2);
}); });
}, },
getchange() getchange() {
{ this.getLeaderShare();
this.getLeaderShare(); this.getSubtotalMoney();
this.getSubtotalMoney();
} }
}, },
mounted() { mounted() {
this.getAllCurrency(); this.getAllCurrency();
}, },
created() {}, created() {
},
watch: { watch: {
postConfig: {
handler: function (val, oldVal) {
this.getLineTeamList(this.postConfig.LineId);
},
deep: true
},
CostNumberList: { CostNumberList: {
handler: function (val, oldVal) { handler: function (val, oldVal) {
console.log("111");
this.getchange() this.getchange()
}, },
deep: true deep: true
......
<template> <template>
<div class="DirectQuotation clearfix"> <div class="DirectQuotation clearfix" v-loading="loading">
<DirectQuotation ref="QuotationPrice" :postConfig="postData" :dayCostPrice="dayCostPriceList" <DirectQuotation ref="QuotationPrice" :postConfig="postData" :dayCostPrice="dayCostPriceList"
:otherPrice="otherPrice" :teamPrice="teamPrice" :LineList="LineList" :CostCurrencyList="CostCurrencyList" :otherPrice="otherPrice" :teamPrice="teamPrice" :LineList="LineList" :CostCurrencyList="CostCurrencyList"
:CostNumberList="CostNumberList" :CurrencyNumberListExt="CurrencyNumberListExt"></DirectQuotation> :CostNumberList="CostNumberList" :CurrencyNumberListExt="CurrencyNumberListExt"></DirectQuotation>
...@@ -113,6 +113,7 @@ ...@@ -113,6 +113,7 @@
ContractUrl: "", //合同地址 ContractUrl: "", //合同地址
}, },
LineList: [], //线路列表 LineList: [], //线路列表
loading:false
}; };
}, },
methods: { methods: {
...@@ -139,10 +140,11 @@ ...@@ -139,10 +140,11 @@
CostNumberList: this.CostNumberList, CostNumberList: this.CostNumberList,
CurrencyNumberListExt: currencyNumList CurrencyNumberListExt: currencyNumList
}; };
this.loading=true;
this.apipost( this.apipost(
"travel_post_SetConfigOffer_V2", nObj, "travel_post_SetConfigOffer_V2", nObj,
res => { res => {
this.loading=false;
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.Success(res.data.message); this.Success(res.data.message);
this.goUrl('newQuotation'); this.goUrl('newQuotation');
......
...@@ -38,6 +38,7 @@ ...@@ -38,6 +38,7 @@
<el-option label="仲夏花火夜" :value="-2"></el-option> <el-option label="仲夏花火夜" :value="-2"></el-option>
<el-option label="寻觅日本美食" :value="-3"></el-option> <el-option label="寻觅日本美食" :value="-3"></el-option>
<el-option label="邂逅北海道的雪" :value="-4"></el-option> <el-option label="邂逅北海道的雪" :value="-4"></el-option>
<el-option label="日本趣味滑雪乐" :value="-5"></el-option>
<el-option <el-option
v-for="item in titleList" v-for="item in titleList"
:key="item.subCode" :key="item.subCode"
...@@ -738,6 +739,9 @@ ...@@ -738,6 +739,9 @@
if(this.Typevalue==-4){ if(this.Typevalue==-4){
title+="邂逅北海道的雪" title+="邂逅北海道的雪"
} }
if(this.Typevalue==-5){
title+="日本趣味滑雪乐"
}
if(this.Typevalue>0){ if(this.Typevalue>0){
this.titleList.forEach(item=>{ this.titleList.forEach(item=>{
if(item.id==this.Typevalue){ if(item.id==this.Typevalue){
...@@ -790,6 +794,9 @@ ...@@ -790,6 +794,9 @@
else if(this.Typevalue==-4){ else if(this.Typevalue==-4){
window.open("http://www.oytour.com/#/FoodImg4"); window.open("http://www.oytour.com/#/FoodImg4");
} }
else if(this.Typevalue==-5){
window.open("http://www.oytour.com/#/Juanski");
}
else{ else{
window.open("http://www.oytour.com/#/JuanDetails?id="+this.Typevalue); window.open("http://www.oytour.com/#/JuanDetails?id="+this.Typevalue);
} }
......
...@@ -1139,7 +1139,13 @@ export default { ...@@ -1139,7 +1139,13 @@ export default {
}, },
detailMessage: {}, detailMessage: {},
downLoadList: [], downLoadList: [],
NewSaleRnkInfo: {}, NewSaleRnkInfo: {
List: [
{
EmployeeImg: ''
}
]
},
}; };
}, },
filters: { filters: {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment