Commit 4a47577c authored by 黄奎's avatar 黄奎

页面修改

parent 8dcf3e27
<style> <style>
@import "../../../assets/css/newTravelManager.css"; @import "../../../assets/css/newTravelManager.css";
.Audit_left{
display: -webkit-box;
-webkit-box-align: center;
align-items: center;
border-right: 1px dashed #dddddd;
}
</style> </style>
<template> <template>
<div class="flexOne quoTation"> <div class="flexOne quoTation">
...@@ -55,19 +50,19 @@ ...@@ -55,19 +50,19 @@
<div class="commonContent" v-loading="loading"> <div class="commonContent" v-loading="loading">
<ul class="_content"> <ul class="_content">
<li v-for="item in dataList" :key="item.subCode" :data-id='item.ID'> <li v-for="item in dataList" :key="item.subCode" :data-id='item.ID'>
<div class="Audit_left" style="width:100px;"> <div class="_left">
<div> <div>
<p class="quoListName" style="width:80px;"> <p class="quoListName">
<el-tooltip popper-class="max-w250" effect="dark" :content="item.ID" placement="top-start"> <el-tooltip popper-class="max-w250" effect="dark" :content="item.ID" placement="top-start">
<span>{{item.ID}}</span> <span>{{item.ID}}</span>
</el-tooltip> </el-tooltip>
</p> </p>
</div> </div>
</div> </div>
<div class="Audit_left"> <div class="_left">
<div> <div>
<p class="quoListName" > <p class="quoListName">
<el-tooltip popper-class="max-w250" effect="dark" :content="item.LineName" placement="top-start"> <el-tooltip popper-class="max-w250" effect="dark" :content="item.LineName" placement="top-start">
<span>{{item.LineName}}</span> <span>{{item.LineName}}</span>
</el-tooltip> </el-tooltip>
...@@ -77,9 +72,9 @@ ...@@ -77,9 +72,9 @@
</p> </p>
</div> </div>
</div> </div>
<div class="Audit_left"> <div class="_left">
<div> <div>
<p class="quoListName" > <p class="quoListName">
<el-tooltip popper-class="max-w250" effect="dark" :content="item.Title" placement="top-start"> <el-tooltip popper-class="max-w250" effect="dark" :content="item.Title" placement="top-start">
<span>{{item.Title}}</span> <span>{{item.Title}}</span>
</el-tooltip> </el-tooltip>
...@@ -136,7 +131,7 @@ ...@@ -136,7 +131,7 @@
</div> </div>
<span slot="reference" class="diPrice">{{item.SalesPrice}}<span class="qi"></span></span> <span slot="reference" class="diPrice">{{item.SalesPrice}}<span class="qi"></span></span>
</el-popover> </el-popover>
</div> </div>
</div> </div>
<div class="_rightAudit"> <div class="_rightAudit">
...@@ -184,12 +179,12 @@ ...@@ -184,12 +179,12 @@
<div class="AD_Operation"> <div class="AD_Operation">
<span class="openGroup opbd"> <span class="openGroup opbd">
<el-tooltip class="item" effect="dark" content="查看" placement="top-start" popper-class="max-w250"> <el-tooltip class="item" effect="dark" content="查看" placement="top-start" popper-class="max-w250">
<span @click="goUrl('QuotationDetails',item.ID,1)"></span> <span @click="goUrl('QuotationAduit',item.ID,1)"></span>
</el-tooltip> </el-tooltip>
</span> </span>
<span class="openGroup opbd" v-if="item.TravelState==2"> <span class="openGroup opbd" v-if="item.TravelState==2">
<el-tooltip class="item" effect="dark" content="审核" placement="top-start" popper-class="max-w250"> <el-tooltip class="item" effect="dark" content="审核" placement="top-start" popper-class="max-w250">
<span @click="goUrl('QuotationDetails',item.ID,2)"></span> <span @click="goUrl('QuotationAduit',item.ID,2)"></span>
</el-tooltip> </el-tooltip>
</span> </span>
<span class="openGroup opbd"> <span class="openGroup opbd">
...@@ -465,7 +460,9 @@ ...@@ -465,7 +460,9 @@
name: path, name: path,
query: { query: {
configId: configId, configId: configId,
Qtype: qType Qtype: qType,
blank: 'y',
tab: '报价单审核'
} }
}); });
} else { } else {
......
...@@ -290,7 +290,7 @@ ...@@ -290,7 +290,7 @@
{{childItem.PeopleNumber}} {{childItem.PeopleNumber}}
</td> </td>
<td> <td>
{{(Number(subItem.BusCostPrice)/Number(childItem.PeopleNumber)).toFixed(0)}} {{((Number(subItem.BusCostPrice)+Number(subItem.PassFee))/Number(childItem.PeopleNumber)).toFixed(0)}}
</td> </td>
<td v-if="childIndex==0" :rowspan="CostNumberList.length"> <td v-if="childIndex==0" :rowspan="CostNumberList.length">
<el-input type='text' v-model="subItem.ScenicCostPrice" class="w70" <el-input type='text' v-model="subItem.ScenicCostPrice" class="w70"
...@@ -435,7 +435,7 @@ ...@@ -435,7 +435,7 @@
</td> </td>
<td> <td>
<template v-if="CostNumberList&&CostNumberList.length>0"> <template v-if="CostNumberList&&CostNumberList.length>0">
{{(Number(subItem.BusCostPrice)/Number(CostNumberList[0].PeopleNumber)).toFixed(0)}} {{((Number(subItem.BusCostPrice)+Number(subItem.PassFee))/Number(CostNumberList[0].PeopleNumber)).toFixed(0)}}
</template> </template>
</td> </td>
<td> <td>
......
...@@ -10,9 +10,9 @@ ...@@ -10,9 +10,9 @@
</style> </style>
<template> <template>
<div class="DirectQuotation clearfix" v-loading="loading"> <div class="DirectQuotation clearfix" v-loading="loading">
<div class="singlePrice clearfix"> <div class="singlePrice clearfix" v-show="IsShow">
<CostNewPriceAudit ref="CostNewPrice" :postConfig="postData" :OtherPrice="otherPrice" <CostNewPriceAudit ref="CostNewPrice" :postConfig="postData" :OtherPrice="otherPrice"
:dayCostPrice="dayCostPriceList" :LineList="LineList" :CostCurrencyList="CostCurrencyList" :dayCostPrice="dayCostPriceList" :CostCurrencyList="CostCurrencyList"
:CostNumberList="CostNumberList" :CurrencyNumberListExt="CurrencyNumberListExt" :CostNumberList="CostNumberList" :CurrencyNumberListExt="CurrencyNumberListExt"
:teamPrice="teamPrice" :teamPrice="teamPrice"
></CostNewPriceAudit> ></CostNewPriceAudit>
...@@ -37,6 +37,7 @@ ...@@ -37,6 +37,7 @@
data() { data() {
return { return {
ConfigID: 0, ConfigID: 0,
IsShow:false,
//基本配置 //基本配置
postData: { postData: {
ID: 0, ID: 0,
...@@ -66,7 +67,9 @@ ...@@ -66,7 +67,9 @@
StartCityId: 0, StartCityId: 0,
ReturnArriveCityId: 0, //返回抵达城市 ReturnArriveCityId: 0, //返回抵达城市
CustomerName: "", //客户名称 CustomerName: "", //客户名称
TeamType: 0, //团队类型 TeamType: 0, //团队类型,
LineName:"",//线路名称
LtName:"",//系列名称
}, },
dayCostPriceList: [], //报价列表 dayCostPriceList: [], //报价列表
isSubmit: true, isSubmit: true,
...@@ -146,41 +149,29 @@ ...@@ -146,41 +149,29 @@
}, },
//保存数据 //保存数据
SaveData() { SaveData() {
var currencyNumList = [];
if (this.CurrencyNumberListExt != null && this.CurrencyNumberListExt.length > 0) {
this.CurrencyNumberListExt.forEach((item, index) => {
item.currencyNumberList.forEach(subItem => {
currencyNumList.push(subItem);
});
});
}
var nObj = { var nObj = {
config: this.postData, config: this.postData,
dayCostPriceList: this.dayCostPriceList,
otherPrice: this.otherPrice,
teamPrice: this.teamPrice,
CostCurrencyList: this.CostCurrencyList,
CostNumberList: this.CostNumberList,
CurrencyNumberListExt: currencyNumList
}; };
this.loading = true; // this.loading = true;
this.apipost( // this.apipost(
"travel_post_SetConfigOffer_V2", nObj, // "travel_post_SetConfigOffer_V2", nObj,
res => { // res => {
this.loading = false; // this.loading = false;
if (res.data.resultCode == 1) { // if (res.data.resultCode == 1) {
this.Success(res.data.message); // this.Success(res.data.message);
if (this.postData.TeamType == 1) { // if (this.postData.TeamType == 1) {
this.goUrl('newQuotation2'); // this.goUrl('newQuotation2');
} else { // } else {
this.goUrl('newQuotation'); // this.goUrl('newQuotation');
} // }
} else { // } else {
this.Error(res.data.message); // this.Error(res.data.message);
} // }
}, // },
err => {} // err => {}
); // );
}, },
goUrl(path) { goUrl(path) {
this.$router.push({ this.$router.push({
...@@ -200,13 +191,14 @@ ...@@ -200,13 +191,14 @@
ID: configId, ID: configId,
offerId: offerId offerId: offerId
}; };
this.apipost( this.apipost(
"travel_get_GetMyTravelInfo_V2", "travel_get_GetMyTravelInfo_V2",
msg, msg,
res => { res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
var tempData = res.data.data; var tempData = res.data.data;
console.log("tempData", tempData); console.log("tempData1", tempData);
if (tempData.ID && tempData.ID > 0) { if (tempData.ID && tempData.ID > 0) {
this.postData.ID = tempData.ID; this.postData.ID = tempData.ID;
} }
...@@ -238,6 +230,8 @@ ...@@ -238,6 +230,8 @@
this.postData.NightNum = tempData.NightNum; this.postData.NightNum = tempData.NightNum;
} }
this.postData.CustomerName = tempData.CustomerName; this.postData.CustomerName = tempData.CustomerName;
this.postData.LineName=tempData.LineName;
this.postData.LtName=tempData.LtName;
this.LineList = tempData.LineList; this.LineList = tempData.LineList;
if (tempData.dayCostPriceList && tempData.dayCostPriceList != null && tempData.dayCostPriceList.length > if (tempData.dayCostPriceList && tempData.dayCostPriceList != null && tempData.dayCostPriceList.length >
0) { 0) {
...@@ -260,18 +254,7 @@ ...@@ -260,18 +254,7 @@
.CurrencyNumberListExt.length > 0) { .CurrencyNumberListExt.length > 0) {
this.CurrencyNumberListExt = tempData.CurrencyNumberListExt; this.CurrencyNumberListExt = tempData.CurrencyNumberListExt;
} }
if (this.CostCurrencyList && this.CostCurrencyList.length > 0 && this.IsShow=true;
this.CurrencyNumberListExt) {
this.CostCurrencyList.forEach(item => {
let currencyNumberItem = {
Key: item.CurrencyId,
currencyNumberList: []
};
if (this.CurrencyNumberListExt.length == 0) {
this.CurrencyNumberListExt.push(currencyNumberItem);
}
});
}
} else { } else {
this.Error(res.data.message); this.Error(res.data.message);
} }
......
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