Commit 2d25771e authored by liudong1993's avatar liudong1993
parents 12914fc0 a932e4cc
...@@ -49,7 +49,7 @@ ...@@ -49,7 +49,7 @@
.TTwo{margin:0 105px 0 105px;} .TTwo{margin:0 105px 0 105px;}
.Travel_TT{display: inline-block;padding:3px 8px;background-color: #333333; .Travel_TT{display: inline-block;padding:3px 8px;background-color: #333333;
color:#fff;border-radius:4px;font-size:12px;margin-left:20px;} color:#fff;border-radius:4px;font-size:12px;margin-left:20px;}
.Travel_Line{display: inline-block;width:1016px;border-bottom:1px dashed #BFBFBF;} .Travel_Line{display: inline-block;width:100%;border-bottom:1px dashed #BFBFBF;}
.TCswitch{display: inline-block;margin-left:18px;} .TCswitch{display: inline-block;margin-left:18px;}
.ComSwitchTitle{display:inline-block;vertical-align:top;width:75px;text-align: right;margin-top:2px;color:#606266;} .ComSwitchTitle{display:inline-block;vertical-align:top;width:75px;text-align: right;margin-top:2px;color:#606266;}
.LowNum .el-input__inner{ .LowNum .el-input__inner{
...@@ -842,7 +842,7 @@ ...@@ -842,7 +842,7 @@
position: relative; position: relative;
top:2px; top:2px;
text-align: center; text-align: center;
line-height: 25px; line-height: 22px;
color:#bbb; color:#bbb;
border:1px solid #bbb; border:1px solid #bbb;
border-radius:50%; border-radius:50%;
......
...@@ -388,29 +388,40 @@ html, body{ ...@@ -388,29 +388,40 @@ html, body{
.travelDaysdetailsBJ { .travelDaysdetailsBJ {
border-radius: 100px; border-radius: 100px;
flex-wrap: wrap; flex-wrap: nowrap;
padding: 20px 35px; padding: 20px 35px;
-webkit-border-radius: 100px; -webkit-border-radius: 100px;
-moz-border-radius: 100px; -moz-border-radius: 100px;
-ms-border-radius: 100px; -ms-border-radius: 100px;
-o-border-radius: 100px; -o-border-radius: 100px;
} }
.travelDaysdetails-textBox{
flex: 1;
}
.travelDaysdetails-textBox:last-child .travelDaysdetails-text{
height: 105px;
word-break: break-all;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 3;
overflow: hidden;
}
.travelDaysdetails-text { .travelDaysdetails-text {
flex-wrap: nowrap; flex-wrap: wrap;
margin-right: 46px; margin-right: 46px;
} }
.travelDaysdetails-text span { .travelDaysdetails-text0 {
font-size: 21px;
font-family: PingFang SC; font-family: PingFang SC;
font-weight: 800; font-weight: 800;
color: #2A2A2A; color: #2A2A2A;
line-height: 34px; line-height: 34px;
flex-shrink: 0;
} }
.travelDaysdetails-text div p { .travelDaysdetails-text {
font-size: 21px; font-size: 16px;
font-weight: 100; font-weight: 100;
color: #2A2A2A; color: #2A2A2A;
line-height: 34px; line-height: 34px;
...@@ -418,7 +429,21 @@ html, body{ ...@@ -418,7 +429,21 @@ html, body{
display: inline-block; display: inline-block;
padding: 0; padding: 0;
margin: 0; margin: 0;
margin-right: 10px; }
.travelDaysdetails-text1{
font-size: 16px !important;
font-weight: 100 !important;
color: #2A2A2A;
}
.travelDaysdetails-textBox:last-child span{
float: left;
}
.travelDaysdetails-text p,.travelDaysdetails-text1 p{
padding: 0 !important;
margin: 0 !important;
margin-top: 0 !important;
margin-bottom: 0 !important;
float: left;
} }
.LeaveGroupDownload-form .travelControlTrip .module-title { .LeaveGroupDownload-form .travelControlTrip .module-title {
...@@ -582,3 +607,7 @@ html, body{ ...@@ -582,3 +607,7 @@ html, body{
.otherJourney-footer .edit_div { .otherJourney-footer .edit_div {
display: none; display: none;
} }
.featureDay-vToolBar{
left: 0;
top: 0;
}
...@@ -217,7 +217,8 @@ ...@@ -217,7 +217,8 @@
</div> </div>
<div slot="footer" class="dialog-footer"> <div slot="footer" class="dialog-footer">
<button class="hollowFixedBtn" @click="iszhidanBox=false">{{$t('pub.cancelBtn')}}</button> <button class="hollowFixedBtn" @click="iszhidanBox=false">{{$t('pub.cancelBtn')}}</button>
<button class="normalBtn" type="primary" @click="getMaking()">{{$t('pub.sureBtn')}}</button> <el-button class="normalBtn" type="primary" @click="getMaking()"
:loading="loadingStandard">{{$t('pub.sureBtn')}}</el-button>
</div> </div>
</template> </template>
</el-dialog> </el-dialog>
...@@ -256,6 +257,7 @@ ...@@ -256,6 +257,7 @@
export default { export default {
data() { data() {
return { return {
loadingStandard: false,
showDialog: false, showDialog: false,
shezhiMsg: { shezhiMsg: {
FinanceId: 0, FinanceId: 0,
...@@ -460,11 +462,13 @@ ...@@ -460,11 +462,13 @@
this.getMoney() this.getMoney()
this.BillMakingMsg.Money = this.totalZD this.BillMakingMsg.Money = this.totalZD
this.iszhidanBox = true this.iszhidanBox = true
this.loadingStandard = true
this.apipost('Financial_post_SetFinanceHandFeeCode', { this.apipost('Financial_post_SetFinanceHandFeeCode', {
FrIds: ids.join(',') FrIds: ids.join(',')
}, res => { }, res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.BillMakingMsg.StandardCurrencyName = res.data.data this.BillMakingMsg.StandardCurrencyName = res.data.data
this.loadingStandard = false
// this.showDialog = true // this.showDialog = true
} else { } else {
this.Error(res.data.message); this.Error(res.data.message);
...@@ -524,8 +528,10 @@ ...@@ -524,8 +528,10 @@
}, },
//设置转交 //设置转交
getMaking() { getMaking() {
if(!this.loadingStandard&&this.BillMakingMsg.StandardCurrencyName){
this.iszhidanBox = false; this.iszhidanBox = false;
this.makeAdocument(1) this.makeAdocument(1)
}
}, },
// 制作单据 // 制作单据
makeAdocument(num, StandardCurrencyName) { makeAdocument(num, StandardCurrencyName) {
......
...@@ -683,11 +683,13 @@ ...@@ -683,11 +683,13 @@
<div class="row wrap orderNo fz12 py"> <div class="row wrap orderNo fz12 py">
<span <span
class="cursor-pointer radius5 mr px5" class="cursor-pointer radius5 mr px5"
:class="{'bgD9F3FF':x.Status==1,'bgFAEAED':x.Status==2,'bjFFF3E0':x.Status==3, :class="{'bgD9F3FF':x.InvoiceApplyState===6,'bgFAEAED':x.InvoiceApplyState===1||x.InvoiceApplyState===3,
'c3FC4FF':x.Status==1,'cF1416C':x.Status==2,'cff9800':x.Status==3}" 'bjFFF3E0':x.InvoiceApplyState===2||x.InvoiceApplyState===4||x.InvoiceApplyState===5,
'c3FC4FF':x.InvoiceApplyState===6,'cF1416C':x.InvoiceApplyState===1||x.InvoiceApplyState===3,
'cff9800':x.InvoiceApplyState===2||x.InvoiceApplyState===4||x.InvoiceApplyState===5}"
v-for="(x, i) in item.InvoiceApplyList" v-for="(x, i) in item.InvoiceApplyList"
@click="openDetails(x)" @click="openDetails(x)"
>{{ x.FrID }}</span >{{ x.ID }}</span
> >
<span v-if="item.InvoiceApplyList&&item.InvoiceApplyList.length == 0" class="c9e fz12"> <span v-if="item.InvoiceApplyList&&item.InvoiceApplyList.length == 0" class="c9e fz12">
暂无发票单据 暂无发票单据
...@@ -1108,7 +1110,7 @@ export default { ...@@ -1108,7 +1110,7 @@ export default {
// 单据详情 // 单据详情
openDetails(item) { openDetails(item) {
let query = { let query = {
id: item.FrID, id: item.FrID?item.FrID:item.ID,
blank: "y", blank: "y",
}; };
this.$router.push({ this.$router.push({
......
...@@ -80,45 +80,26 @@ ...@@ -80,45 +80,26 @@
<td class="essential-item jianju"> <td class="essential-item jianju">
<p class="pkey">本团领队</p> <p class="pkey">本团领队</p>
<p class="pvalue"> <p class="pvalue">
{{ {{orderMsg.leaderInfo}}
orderTripdiff != null
? orderTripdiff.leaderInfo
: orderMsg.leaderName +
(orderMsg.leaderMobile != null
? "/" + orderMsg.leaderMobile
: "")
}}
</p> </p>
</td> </td>
<td class="essential-item jianju"> <td class="essential-item jianju">
<p class="pkey">集合时间</p> <p class="pkey">集合时间</p>
<p class="pvalue"> <p class="pvalue">
{{ {{ orderMsg.gatheringTimeInfo }}
orderTripdiff != null
? orderTripdiff.gatheringTime
: orderMsg.gatheringTime
}}
</p> </p>
</td> </td>
<td class="essential-item jianju"> <td class="essential-item jianju">
<p class="pkey">机场服务</p> <p class="pkey">机场服务</p>
<p class="pvalue"> <p class="pvalue">
<template v-if=" {{orderMsg.airportServiceInfo}}
orderMsg &&
orderMsg.airportServicePerson &&
orderMsg.airportServicePerson != ''
">
{{ orderMsg.airportServicePerson }}
</template>
</p> </p>
</td> </td>
<td class="essential-item jianju_b"> <td class="essential-item jianju_b">
<p class="pkey">集合标识</p> <p class="pkey">集合标识</p>
<p class="pvalue"> <p class="pvalue">
{{ {{
orderTripdiff != null orderMsg.gatherIdentInfo
? orderTripdiff.gatherIdent
: orderMsg.bName
}} }}
</p> </p>
</td> </td>
...@@ -128,20 +109,14 @@ ...@@ -128,20 +109,14 @@
<p class="pkey">紧急联系人</p> <p class="pkey">紧急联系人</p>
<p class="pvalue"> <p class="pvalue">
<span v-if="vshowLLR"> <span v-if="vshowLLR">
<template v-if="orderMsg.emergencyContact != ''"> {{orderMsg.emergencyContactInfo}}
{{ orderMsg.emergencyContact }}
</template>
</span> </span>
</p> </p>
</td> </td>
<td class="essential-item jianju_b" colspan="2"> <td class="essential-item jianju_b" colspan="2">
<p class="pkey">集合地点</p> <p class="pkey">集合地点</p>
<p class="pvalue"> <p class="pvalue">
{{ {{ orderMsg.gatheringAddressInfo}}
orderTripdiff != null
? orderTripdiff.gatheringAddress
: orderMsg.gatheringAddress
}}
</p> </p>
</td> </td>
</tr> </tr>
...@@ -238,10 +213,10 @@ ...@@ -238,10 +213,10 @@
}, },
methods: { methods: {
getFontSize(title){ getFontSize(title) {
if(title.length+2>60){ if (title.length + 2 > 60) {
return 929/60 +'px' return 929 / 60 + 'px'
}else{ } else {
return '30px' return '30px'
} }
}, },
...@@ -250,15 +225,15 @@ ...@@ -250,15 +225,15 @@
watch: { watch: {
dataAll: { dataAll: {
handler(val, oldVal) { handler(val, oldVal) {
if(val&&val.tripColor){ if (val && val.tripColor) {
this.backgroundColor = this.hexToRgb(val.tripColor, 0.2) this.backgroundColor = this.hexToRgb(val.tripColor, 0.2)
let rgba = this.hexToRgb(val.tripColor, 1) let rgba = this.hexToRgb(val.tripColor, 1)
rgba = rgba.split(',') rgba = rgba.split(',')
let rgba0 = rgba[0].split('(') let rgba0 = rgba[0].split('(')
let arr = [rgba0[1],rgba[1],rgba[2]] let arr = [rgba0[1], rgba[1], rgba[2]]
if(this.getRgbLevel(arr)>50){ if (this.getRgbLevel(arr) > 50) {
this.textColor = "#fff" this.textColor = "#fff"
}else{ } else {
this.textColor = "#333" this.textColor = "#333"
} }
} }
......
...@@ -9,8 +9,7 @@ ...@@ -9,8 +9,7 @@
</div> </div>
</div> </div>
</div> --> </div> -->
<div class="UpgradedVersion-box UpgradedVersion-homebj relative" <div class="UpgradedVersion-box UpgradedVersion-homebj relative" v-for="(item,index) in tripList">
v-for="(item,index) in tripList">
<div class="absolute z-index1 column" style="left: 0;right: 0; top: 0;bottom: 0;"> <div class="absolute z-index1 column" style="left: 0;right: 0; top: 0;bottom: 0;">
<Header :TripColor="dataAll.tripColor" :orderMsg="orderMsg"></Header> <Header :TripColor="dataAll.tripColor" :orderMsg="orderMsg"></Header>
<div class="travelDaysTitlle row-aic"> <div class="travelDaysTitlle row-aic">
...@@ -39,8 +38,7 @@ ...@@ -39,8 +38,7 @@
<div class="travelDaysMasterMap-text absolute z-index2">{{item.details[0].title}}</div> <div class="travelDaysMasterMap-text absolute z-index2">{{item.details[0].title}}</div>
</div> </div>
<div class="travelDaysMasterMap-two absolute z-index2"> <div class="travelDaysMasterMap-two absolute z-index2">
<div class="travelDaysMasterMap-twoImg relative bjF6" <div class="travelDaysMasterMap-twoImg relative bjF6" :style="{'color':'#fff'}"
:style="{'color':'#fff'}"
:id="'travelDaysImg_two'+index" :id="'travelDaysImg_two'+index"
v-if="(item.details&&item.details.length>1&&item.details[1].img)||(item.jiu2&&item.jiu2.length>0&&item.jiu2[0].url)"> v-if="(item.details&&item.details.length>1&&item.details[1].img)||(item.jiu2&&item.jiu2.length>0&&item.jiu2[0].url)">
<template v-if="item.details.length>1&&item.details[1].img"> <template v-if="item.details.length>1&&item.details[1].img">
...@@ -58,8 +56,7 @@ ...@@ -58,8 +56,7 @@
</template> </template>
</template> </template>
</div> </div>
<div class="travelDaysMasterMap-twoImg relative bjF6" style="margin-top: 47px;" <div class="travelDaysMasterMap-twoImg relative bjF6" style="margin-top: 47px;" :style="{'color':'#fff'}"
:style="{'color':'#fff'}"
:id="'travelDaysImg_three'+index" :id="'travelDaysImg_three'+index"
v-if="(item.details&&item.details.length>2&&item.details[2].img)||(item.jiu2&&item.jiu2.length>1&&item.jiu2[0].url)"> v-if="(item.details&&item.details.length>2&&item.details[2].img)||(item.jiu2&&item.jiu2.length>1&&item.jiu2[0].url)">
<template v-if="item.details.length>2&&item.details[2].img"> <template v-if="item.details.length>2&&item.details[2].img">
...@@ -82,44 +79,55 @@ ...@@ -82,44 +79,55 @@
</div> </div>
<div class="travelDaysContent column"> <div class="travelDaysContent column">
<div class="travelDaysContent-text" v-for="(jindian,j) in item.details" <div class="travelDaysContent-text" v-for="(jindian,j) in item.details" v-if="item.details.length>0">
v-if="item.details.length>0">
<span>{{jindian.title?'【'+jindian.title+'】':''}}</span> <span>{{jindian.title?'【'+jindian.title+'】':''}}</span>
{{jindian.content}} {{jindian.content}}
</div> </div>
<div class="travelDaysContent-text" <div class="travelDaysContent-text" v-else>
v-else>
<span>暂无描述</span> <span>暂无描述</span>
</div> </div>
</div> </div>
<div class="travelDaysdetails"> <div class="travelDaysdetails">
<div class="travelDaysdetailsBJ row" <div class="travelDaysdetailsBJ row" :style="{'background':backgroundColor}">
:style="{'background':backgroundColor}"> <div class="travelDaysdetails-textBox column">
<div class="travelDaysdetails-text row"> <div class="travelDaysdetails-text">
<span>早餐:</span> <span class="travelDaysdetails-text0">早餐:</span>
<div><p>{{item.can.breakfirst}}</p></div> {{item.can.breakfirst}}
</div> </div>
<div class="travelDaysdetails-text row"> <div class="travelDaysdetails-text">
<span>午餐:</span> <span class="travelDaysdetails-text0">午餐:</span>
<div><p>{{item.can.lanuch}}</p></div> {{item.can.lanuch}}
</div> </div>
<div class="travelDaysdetails-text row"> <div class="travelDaysdetails-text">
<span>晚餐:</span> <span class="travelDaysdetails-text0">晚餐:</span>
<div><p>{{item.can.dinner}}</p></div> {{item.can.dinner}}
</div> </div>
<div class="travelDaysdetails-text row"> </div>
<span>住宿:</span> <div class="travelDaysdetails-textBox">
<div> <div class="travelDaysdetails-text">
<p v-for="(j,i) in item.jiu2">{{j.name}}</p> <span class="travelDaysdetails-text0">住宿:</span>
<template v-for="(j,i) in item.jiu2">{{j.name}} </template> 或同级
</div>
</div>
<template v-for="(t,i) in item.tips">
<div class="travelDaysdetails-textBox"
:style="{'flex-grow':t.content&&getHtmlPlainText(t.content).length>20?'2':''}">
<div class="travelDaysdetails-text" style="margin-right: 0;">
<span class="travelDaysdetails-text0">温馨提示:</span>
<template v-if="getHtmlPlainText(t.content).length>0">
{{getHtmlPlainText(t.content)}}
</template>
<!-- <div class="travelDaysdetails-text1" v-if="t.content!=''" v-html="t.content"></div> -->
<p v-else>暂无提示</p>
</div> </div>
</div> </div>
</template>
</div> </div>
</div> </div>
<!-- otherJourney-footer --> <!-- otherJourney-footer -->
<div> <div>
<div class="otherJourney-introduceFooter z-index1 row-aic" <div class="otherJourney-introduceFooter z-index1 row-aic" :style="{'background':''}">
:style="{'background':''}">
<div class="introduceFooterBJ introduceFooterOne" :style="{'background':dataAll.tripColor}">&nbsp;</div> <div class="introduceFooterBJ introduceFooterOne" :style="{'background':dataAll.tripColor}">&nbsp;</div>
<div class="introduceFooterBJ introduceFootertTwo" :style="{'background':dataAll.tripColor}">&nbsp;</div> <div class="introduceFooterBJ introduceFootertTwo" :style="{'background':dataAll.tripColor}">&nbsp;</div>
<div class="introduceFooter-text row-aic"> <div class="introduceFooter-text row-aic">
...@@ -143,7 +151,7 @@ ...@@ -143,7 +151,7 @@
components: { components: {
Header Header
}, },
props: ['dataAll','tripList','orderMsg','orderTripdiff','vshowD','vshowK'], props: ['dataAll', 'tripList', 'orderMsg', 'orderTripdiff', 'vshowD', 'vshowK'],
data() { data() {
return { return {
title: '北京-马德里-塞戈维亚-萨拉曼卡-贝尼多姆/小镇-瓦伦西亚-巴塞罗那(约 253km,约 3h)北京-马德里-塞戈维亚-萨拉曼卡-贝尼多姆/小镇-瓦伦西亚-巴塞罗那(约 253km,约 3h)', title: '北京-马德里-塞戈维亚-萨拉曼卡-贝尼多姆/小镇-瓦伦西亚-巴塞罗那(约 253km,约 3h)北京-马德里-塞戈维亚-萨拉曼卡-贝尼多姆/小镇-瓦伦西亚-巴塞罗那(约 253km,约 3h)',
...@@ -155,30 +163,30 @@ ...@@ -155,30 +163,30 @@
}, },
methods: { methods: {
getFontSize(title){ getHtmlPlainText(html_str) {
if(title.length>60){ //提取字符串中的文字
return 929/60 +'px' let re = new RegExp('<[^<>]+>', 'g')
}else{ if (html_str) {
return '30px' let text = html_str.replace(re, '')
return text
} else {
return ''
} }
}, },
getImgColor(img,id){ getFontSize(title) {
let size = 30;
if (title.length > 80) {
var tempSize = Number(80) / Number(title.length);
tempSize = tempSize * 30;
size = tempSize.toFixed(1);
}
return size + "px";
},
getImgColor(img, id) {
return "#fff" return "#fff"
return
// this.canvasImgColor(img,id, (callback) => {
// let rgb = callback
// rgb = rgb.split(',')
// let rgb0 = rgb[0].split('(')
// let arrRgb = [rgb0[1],rgba[1],rgb[2]]
// if(this.getRgbLevel(arrRgb)>50){
// return "#333"
// }else{
// return "#fff"
// }
// })
}, },
// 获取图片颜色 // 获取图片颜色
canvasImgColor(imgs,ids, callback) { canvasImgColor(imgs, ids, callback) {
var imgSrc = imgs var imgSrc = imgs
var upload = document.getElementById(ids) var upload = document.getElementById(ids)
const imgEle = document.createElement('img') const imgEle = document.createElement('img')
...@@ -200,7 +208,8 @@ ...@@ -200,7 +208,8 @@
const oneLineImgDataLen = canvas.width * 4; const oneLineImgDataLen = canvas.width * 4;
imgData.data.forEach((colorVal, i) => { imgData.data.forEach((colorVal, i) => {
if (i % oneLineImgDataLen <= 0.5 * oneLineImgDataLen || i % oneLineImgDataLen >= 0.6 * oneLineImgDataLen) { if (i % oneLineImgDataLen <= 0.5 * oneLineImgDataLen || i % oneLineImgDataLen >= 0.6 *
oneLineImgDataLen) {
const inLeft = i % oneLineImgDataLen <= 0.5 * oneLineImgDataLen const inLeft = i % oneLineImgDataLen <= 0.5 * oneLineImgDataLen
if (i % 4 === 0) { if (i % 4 === 0) {
// 获取rgb均值 // 获取rgb均值
...@@ -208,7 +217,9 @@ ...@@ -208,7 +217,9 @@
let leftOrRightRef = inLeft ? leftSectionData : rightSectionData; let leftOrRightRef = inLeft ? leftSectionData : rightSectionData;
//每个数组里存四个值:本颜色值中的r、g、b的均值,以及r、g、b三个值。 //每个数组里存四个值:本颜色值中的r、g、b的均值,以及r、g、b三个值。
//均值一方面用于累加计算本区域的整体均值,然后再跟每个均值对比拿到与整体均值最接近的项的索引,再取该数组里的后三个值:rgb,对应着颜色 //均值一方面用于累加计算本区域的整体均值,然后再跟每个均值对比拿到与整体均值最接近的项的索引,再取该数组里的后三个值:rgb,对应着颜色
leftOrRightRef[leftOrRightRef.length] = [curAverageRGB, imgData.data[i], imgData.data[i + 1], imgData.data[i + 2]] leftOrRightRef[leftOrRightRef.length] = [curAverageRGB, imgData.data[i], imgData.data[i + 1],
imgData.data[i + 2]
]
} }
} }
}) })
...@@ -234,7 +245,8 @@ ...@@ -234,7 +245,8 @@
} }
const leftNearestColor = leftSectionData[findNearestIndex(averageOfLeft, leftSectionData)] const leftNearestColor = leftSectionData[findNearestIndex(averageOfLeft, leftSectionData)]
const rightNearestColor = rightSectionData[findNearestIndex(averageOfRight, rightSectionData)] const rightNearestColor = rightSectionData[findNearestIndex(averageOfRight, rightSectionData)]
upload.style.backgroundColor = `rgba(${leftNearestColor[1]},${leftNearestColor[2]},${leftNearestColor[3]},1) 0%,rgba(${rightNearestColor[1]},${rightNearestColor[2]},${rightNearestColor[3]},1)` upload.style.backgroundColor =
`rgba(${leftNearestColor[1]},${leftNearestColor[2]},${leftNearestColor[3]},1) 0%,rgba(${rightNearestColor[1]},${rightNearestColor[2]},${rightNearestColor[3]},1)`
callback(upload.style.backgroundColor) callback(upload.style.backgroundColor)
} }
} }
...@@ -243,15 +255,16 @@ ...@@ -243,15 +255,16 @@
watch: { watch: {
dataAll: { dataAll: {
handler(val, oldVal) { handler(val, oldVal) {
if(val&&val.tripColor){
if (val && val.tripColor) {
this.backgroundColor = this.hexToRgb(val.tripColor, 0.2) this.backgroundColor = this.hexToRgb(val.tripColor, 0.2)
let rgba = this.hexToRgb(val.tripColor, 1) let rgba = this.hexToRgb(val.tripColor, 1)
rgba = rgba.split(',') rgba = rgba.split(',')
let rgba0 = rgba[0].split('(') let rgba0 = rgba[0].split('(')
let arr = [rgba0[1],rgba[1],rgba[2]] let arr = [rgba0[1], rgba[1], rgba[2]]
if(this.getRgbLevel(arr)>50){ if (this.getRgbLevel(arr) > 50) {
this.textColor = "#fff" this.textColor = "#fff"
}else{ } else {
this.textColor = "#333" this.textColor = "#333"
} }
} }
......
...@@ -790,11 +790,13 @@ ...@@ -790,11 +790,13 @@
<div class="row wrap orderNo fz12 py"> <div class="row wrap orderNo fz12 py">
<span <span
class="cursor-pointer radius5 mr px5" class="cursor-pointer radius5 mr px5"
:class="{'bgD9F3FF':x.Status==1,'bgFAEAED':x.Status==2,'bjFFF3E0':x.Status==3, :class="{'bgD9F3FF':x.InvoiceApplyState===6,'bgFAEAED':x.InvoiceApplyState===1||x.InvoiceApplyState===3,
'c3FC4FF':x.Status==1,'cF1416C':x.Status==2,'cff9800':x.Status==3}" 'bjFFF3E0':x.InvoiceApplyState===2||x.InvoiceApplyState===4||x.InvoiceApplyState===5,
'c3FC4FF':x.InvoiceApplyState===6,'cF1416C':x.InvoiceApplyState===1||x.InvoiceApplyState===3,
'cff9800':x.InvoiceApplyState===2||x.InvoiceApplyState===4||x.InvoiceApplyState===5}"
v-for="(x, i) in item.InvoiceApplyList" v-for="(x, i) in item.InvoiceApplyList"
@click="openDetails(x)" @click="openDetails(x)"
>{{ x.FrID }}</span >{{ x.ID }}</span
> >
<span v-if="item.InvoiceApplyList&&item.InvoiceApplyList.length == 0" class="c9e fz12"> <span v-if="item.InvoiceApplyList&&item.InvoiceApplyList.length == 0" class="c9e fz12">
暂无发票单据 暂无发票单据
...@@ -1319,7 +1321,7 @@ export default { ...@@ -1319,7 +1321,7 @@ export default {
// 单据详情 // 单据详情
openDetails(item) { openDetails(item) {
let query = { let query = {
id: item.FrID, id: item.FrID?item.FrID:item.ID,
blank: "y", blank: "y",
}; };
this.$router.push({ this.$router.push({
......
...@@ -204,8 +204,11 @@ ...@@ -204,8 +204,11 @@
<div><img src="../assets/img/TravelControlTripIcon13.png" />紧急联系人</div> <div><img src="../assets/img/TravelControlTripIcon13.png" />紧急联系人</div>
<template> <template>
<span v-if='vshowLLR'> <span v-if='vshowLLR'>
<template v-if="orderMsg.emergencyContact!=''"> <template v-if="orderTripdiff!=null&&orderTripdiff.emergencyContact!=''">
{{orderMsg.emergencyContact}} {{orderTripdiff.emergencyContact}}
</template>
<template v-else-if="orderMsg.branchManager!=''&&orderMsg.mobilePhone!=''">
{{orderMsg.branchManager+"/"+orderMsg.mobilePhone}}
</template> </template>
</span> </span>
</template> </template>
......
...@@ -82,7 +82,8 @@ ...@@ -82,7 +82,8 @@
<OrderNotice :vshowG="vshowG" :feature="feature"></OrderNotice> <OrderNotice :vshowG="vshowG" :feature="feature"></OrderNotice>
<!-- 签证信息 --> <!-- 签证信息 -->
<VisaInformation :vshowG="vshowG" :vshowM="vshowM" :vshowJ="vshowJ" :vshowI="vshowI" :feature="feature" :orderMsg="orderMsg"> <VisaInformation :vshowG="vshowG" :vshowM="vshowM" :vshowJ="vshowJ" :vshowI="vshowI" :feature="feature"
:orderMsg="orderMsg">
</VisaInformation> </VisaInformation>
</div> </div>
</div> </div>
...@@ -594,20 +595,12 @@ ...@@ -594,20 +595,12 @@
this.SourceData.Id = 0; this.SourceData.Id = 0;
if (this.$route.query.orderId > 0) { if (this.$route.query.orderId > 0) {
this.SourceData.orderId = this.$route.query.orderId; this.SourceData.orderId = this.$route.query.orderId;
var str = ""; this.SourceData.leaderInfo = this.orderMsg.leaderInfo;
if (this.orderMsg.leaderName) { this.SourceData.gatheringTime = this.orderMsg.gatheringTimeInfo;
str = this.orderMsg.leaderName; this.SourceData.airportService = this.orderMsg.airportServiceInfo;
} this.SourceData.gatherIdent = this.orderMsg.gatherIdentInfo;
if (this.orderMsg.leaderMobile) { this.SourceData.emergencyContact = this.orderMsg.emergencyContactInfo;
str += "/" + this.orderMsg.leaderMobile; this.SourceData.gatheringAddress = this.orderMsg.gatheringAddressInfo;
}
this.SourceData.leaderInfo = str;
this.SourceData.gatheringTime = this.orderMsg.gatheringTime;
this.SourceData.airportService = this.orderMsg.airportServicePerson + "/" + this.orderMsg
.airportServicePhone;
this.SourceData.gatherIdent = this.orderMsg.bName;
this.SourceData.emergencyContact = this.orderMsg.sellName + "/" + this.orderMsg.sellTel;
this.SourceData.gatheringAddress = this.orderMsg.gatheringAddress;
if (data.priceList != null && data.priceList.length > 0) { if (data.priceList != null && data.priceList.length > 0) {
var array = JSON.parse(JSON.stringify(data.priceList[0].priceFlight)); var array = JSON.parse(JSON.stringify(data.priceList[0].priceFlight));
this.SourceData.travelOrderFlightList = []; this.SourceData.travelOrderFlightList = [];
...@@ -657,6 +650,27 @@ ...@@ -657,6 +650,27 @@
}) })
}, err => {}) }, err => {})
}, },
//上移下移(IsUp:0上移,1下移)
MoveItem(item, subIndex, IsUp) {
var currentItem = this.editForm.travelOrderFlightList[subIndex];
//上移
if (IsUp == 0) {
if (subIndex > 0) {
var upItem = this.editForm.travelOrderFlightList[subIndex - 1];
this.$set(this.editForm.travelOrderFlightList, subIndex - 1, currentItem);
this.$set(this.editForm.travelOrderFlightList, subIndex, upItem);
this.$forceUpdate();
}
} else {
//下移
if (subIndex != this.editForm.travelOrderFlightList.length - 1) {
var downItem = this.editForm.travelOrderFlightList[subIndex + 1];
this.$set(this.editForm.travelOrderFlightList, subIndex + 1, currentItem);
this.$set(this.editForm.travelOrderFlightList, subIndex, downItem);
this.$forceUpdate();
}
}
},
//初始化行程 //初始化行程
initTrip(res, data) { initTrip(res, data) {
this.tripList = res.data.data.dayList; this.tripList = res.data.data.dayList;
......
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
<i class="el-icon-delete"></i> <i class="el-icon-delete"></i>
</div> </div>
</el-tooltip> </el-tooltip>
<el-tooltip class="item" effect="dark" content="尺寸" placement="top" v-if="x&&y"> <el-tooltip class="item" effect="dark" :content="'尺寸'+x+'*'+y" placement="top" v-if="x&&y">
<div class="cursorInitial fz14">{{x}} * {{y}}</div> <div class="cursorInitial fz14">{{x}} * {{y}}</div>
</el-tooltip> </el-tooltip>
</div> </div>
......
...@@ -68,41 +68,41 @@ ...@@ -68,41 +68,41 @@
pageTitle: '首页', pageTitle: '首页',
pageType: 1, pageType: 1,
pageTemplate: 0, pageTemplate: 0,
isDeletePage: false, isDeletePage: true,
dataObj: {}, dataObj: {},
}, },
{ {
pageTitle: '介绍', pageTitle: '介绍',
pageType: 2, pageType: 2,
pageTemplate: 0, pageTemplate: 0,
isDeletePage: false, isDeletePage: true,
dataObj: {}, dataObj: {},
}, },
{ {
pageTitle: '食详情', pageTitle: '食详情',
pageType: 3, pageType: 3,
pageTemplate: 0, pageTemplate: 0,
isDeletePage: false, isDeletePage: true,
dataObj: {}, dataObj: {},
}, },
{ {
pageTitle: '宿', pageTitle: '宿',
pageType: 4, pageType: 4,
isDeletePage: false, isDeletePage: true,
pageTemplate: 1, pageTemplate: 1,
dataObj: {}, dataObj: {},
}, },
{ {
pageTitle: '食', pageTitle: '食',
pageType: 5, pageType: 5,
isDeletePage: false, isDeletePage: true,
pageTemplate: 2, pageTemplate: 2,
dataObj: {}, dataObj: {},
}, },
{ {
pageTitle: '景', pageTitle: '景',
pageType: 6, pageType: 6,
isDeletePage: false, isDeletePage: true,
pageTemplate: 3, pageTemplate: 3,
dataObj: {}, dataObj: {},
} }
...@@ -128,7 +128,7 @@ ...@@ -128,7 +128,7 @@
pageTitle: '首页', //页面名称 pageTitle: '首页', //页面名称
pageType: 1, //页面类型1-首页,2-介绍页面,3-详情, 4-酒店,5-餐,6-景点 pageType: 1, //页面类型1-首页,2-介绍页面,3-详情, 4-酒店,5-餐,6-景点
pageTemplate: 0, pageTemplate: 0,
isDeletePage: false, isDeletePage: true,
dataObj: {}, dataObj: {},
}; };
return pageObj; return pageObj;
......
...@@ -123,8 +123,7 @@ ...@@ -123,8 +123,7 @@
</el-table-column> </el-table-column>
<el-table-column <el-table-column
property="name" property="name"
label="名称" label="名称">
width="80">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
property="SumPreferPrice" property="SumPreferPrice"
...@@ -170,6 +169,11 @@ ...@@ -170,6 +169,11 @@
label="客单价" label="客单价"
width="" sortable> width="" sortable>
</el-table-column> </el-table-column>
<el-table-column
property="XiaoBaoTuanCount"
label="小包团团数"
width="">
</el-table-column>
<el-table-column <el-table-column
property="zanBi" property="zanBi"
label="销售额占比" label="销售额占比"
......
...@@ -763,11 +763,13 @@ ...@@ -763,11 +763,13 @@
<div class="row wrap orderNo fz12 py"> <div class="row wrap orderNo fz12 py">
<span <span
class="cursor-pointer radius5 mr px5" class="cursor-pointer radius5 mr px5"
:class="{'bgD9F3FF':x.Status==1,'bgFAEAED':x.Status==2,'bjFFF3E0':x.Status==3, :class="{'bgD9F3FF':x.InvoiceApplyState===6,'bgFAEAED':x.InvoiceApplyState===1||x.InvoiceApplyState===3,
'c3FC4FF':x.Status==1,'cF1416C':x.Status==2,'cff9800':x.Status==3}" 'bjFFF3E0':x.InvoiceApplyState===2||x.InvoiceApplyState===4||x.InvoiceApplyState===5,
'c3FC4FF':x.InvoiceApplyState===6,'cF1416C':x.InvoiceApplyState===1||x.InvoiceApplyState===3,
'cff9800':x.InvoiceApplyState===2||x.InvoiceApplyState===4||x.InvoiceApplyState===5}"
v-for="(x, i) in item.InvoiceApplyList" v-for="(x, i) in item.InvoiceApplyList"
@click="openDetails(x)" @click="openDetails(x)"
>{{ x.FrID }}</span >{{ x.ID }}</span
> >
<span v-if="item.InvoiceApplyList&&item.InvoiceApplyList.length == 0" class="c9e fz12"> <span v-if="item.InvoiceApplyList&&item.InvoiceApplyList.length == 0" class="c9e fz12">
暂无发票单据 暂无发票单据
...@@ -1321,7 +1323,7 @@ ...@@ -1321,7 +1323,7 @@
// 单据详情 // 单据详情
openDetails(item) { openDetails(item) {
let query = { let query = {
id: item.FrID, id: item.FrID?item.FrID:item.ID,
blank: "y", blank: "y",
}; };
this.$router.push({ this.$router.push({
......
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