Commit d2f1bbb0 authored by liudong1993's avatar liudong1993
parents f0a34383 b61084f2
...@@ -12,6 +12,8 @@ ...@@ -12,6 +12,8 @@
<!-- <script type="text/javascript" src="http://api.map.baidu.com/library/MarkerClusterer/1.2/src/MarkerClusterer_min.js"></script> --> <!-- <script type="text/javascript" src="http://api.map.baidu.com/library/MarkerClusterer/1.2/src/MarkerClusterer_min.js"></script> -->
<script type="text/javascript" src="static/MarkerClusterer.js"></script> <script type="text/javascript" src="static/MarkerClusterer.js"></script>
<script type="text/javascript" src="static/CurveLine.min.js"></script> <script type="text/javascript" src="static/CurveLine.min.js"></script>
<link href="https://api.mapbox.com/mapbox-gl-js/v2.6.1/mapbox-gl.css" rel="stylesheet">
    <script src="https://api.mapbox.com/mapbox-gl-js/v2.6.1/mapbox-gl.js"></script>
<!-- <script type="text/javascript" src="http://activity.oytour.com/google.js?key=AIzaSyAZ5MIfzicStzKbIkbI3RcBBeZBjQFKsp0&language=zh-CN"></script> --> <!-- <script type="text/javascript" src="http://activity.oytour.com/google.js?key=AIzaSyAZ5MIfzicStzKbIkbI3RcBBeZBjQFKsp0&language=zh-CN"></script> -->
<!-- <script type="text/javascript"> <!-- <script type="text/javascript">
window.google = { window.google = {
......
let locationName = window.location.hostname; let locationName = window.location.hostname;
let ViittoFileUrl = locationName.indexOf('oytour') !== -1 || locationName.indexOf('viitto') !== -1 ? "http://staticfile.oytour.com" : 'http://192.168.2.214:8130' let ViittoFileUrl = locationName.indexOf('oytour') !== -1 || locationName.indexOf('viitto') !== -1 ? "http://staticfile.oytour.com" : 'http://192.168.10.214:8130'
var tripUtils = { var tripUtils = {
TypeKey: { TypeKey: {
traffic: "1", traffic: "1",
...@@ -356,9 +356,9 @@ var tripUtils = { ...@@ -356,9 +356,9 @@ var tripUtils = {
IsUseBus: 0, //是否用车(0-不用车,1-用车) IsUseBus: 0, //是否用车(0-不用车,1-用车)
//行程介绍 //行程介绍
trafficIntroduce: { trafficIntroduce: {
IntroduceTitle: "", //行程介绍标题 IntroduceTitle: "提示信息", //行程介绍标题
IntroduceImage: ViittoFileUrl + "/Upload/DefalutImage/DMC/defaultairline.png", //行程介绍图片 IntroduceImage: ViittoFileUrl + "/Upload/DefalutImage/DMC/defaultairline.png", //行程介绍图片
IntroduceDetail: "", //行程介绍详细信息 IntroduceDetail: "集合于国际机场,由专人为您办理登机手续后,搭程专机", //行程介绍详细信息
TrafficType: 2, //交通类型,默认为专车 TrafficType: 2, //交通类型,默认为专车
TrafficContent: "", //交通详情 TrafficContent: "", //交通详情
TrafficImage: "", //交通图片 TrafficImage: "", //交通图片
...@@ -470,7 +470,7 @@ var tripUtils = { ...@@ -470,7 +470,7 @@ var tripUtils = {
ImaArray: [], ImaArray: [],
Rank: 0, Rank: 0,
//餐厅名称 //餐厅名称
DinnerName: "", DinnerName: "酒店内享用早餐",
//套餐名称 //套餐名称
MealName: "", MealName: "",
QCity: '', QCity: '',
...@@ -518,6 +518,7 @@ var tripUtils = { ...@@ -518,6 +518,7 @@ var tripUtils = {
Title: "", Title: "",
Description: "", Description: "",
Rank: 0, Rank: 0,
KMNumber:"",
}; };
}, },
......
...@@ -1351,7 +1351,7 @@ ...@@ -1351,7 +1351,7 @@
newArr.push(blob); newArr.push(blob);
var fileName = `${that.uuid(10,10)}.png`; var fileName = `${that.uuid(10,10)}.png`;
var path = `/Upload/Temporary`; var path = `/Upload/Temporary`;
that.uploadSelfBlob(path, newArr, x => { that.uploadSelfBlob(path, newArr,'', x => {
let allPath = that.domainManager().ViittoFileUrl + x.data.FilePath; let allPath = that.domainManager().ViittoFileUrl + x.data.FilePath;
this.postImg(allPath) this.postImg(allPath)
}) })
......
...@@ -350,6 +350,7 @@ ...@@ -350,6 +350,7 @@
</p> </p>
<p v-if="item.lureEmpName">引流人:{{ item.lureEmpName }}</p> <p v-if="item.lureEmpName">引流人:{{ item.lureEmpName }}</p>
<p>{{ $t("hotel.hotel_StartTeam") }}:{{ item.startDate }}</p> <p>{{ $t("hotel.hotel_StartTeam") }}:{{ item.startDate }}</p>
<p v-if="item.teamType==1||item.teamType==2">{{item.status==1?"未结团":(item.status==2?"已结团 ":(item.status==5?"待结团审核":""))}}{{item.status==2?item.outGroupAuditDate:""}}</p>
<p v-if="item.tradeWay == 1">{{ item.platformOrder }}</p> <p v-if="item.tradeWay == 1">{{ item.platformOrder }}</p>
<!-- <p v-if="item.commissionMoney" style="color: red;"> <!-- <p v-if="item.commissionMoney" style="color: red;">
{{ $t("salesModule.CommissionNum") }}:{{ item.commissionMoney }} {{ $t("salesModule.CommissionNum") }}:{{ item.commissionMoney }}
......
...@@ -1692,6 +1692,7 @@ ...@@ -1692,6 +1692,7 @@
"> ">
{{ item.tcnum }} {{ item.tcnum }}
</p> </p>
<p class="fz12 over_ellipsis" style="width: 100%"> <p class="fz12 over_ellipsis" style="width: 100%">
{{ item.commissionSPeopleName }} {{ item.commissionSPeopleName }}
</p> </p>
...@@ -1700,6 +1701,7 @@ ...@@ -1700,6 +1701,7 @@
{{ $t("hotel.hotel_StartTeam") }}{{ item.startDate }} {{ $t("hotel.hotel_StartTeam") }}{{ item.startDate }}
</p> </p>
<p>{{ $t("restaurant.res_oderTime") }}{{ item.createDate }}</p> <p>{{ $t("restaurant.res_oderTime") }}{{ item.createDate }}</p>
<p v-if="item.teamType==1||item.teamType==2">{{item.status==1?"未结团":(item.status==2?"已结团 ":(item.status==5?"待结团审核":""))}}{{item.status==2?item.outGroupAuditDate:""}}</p>
<p v-if="item.tradeWay == 1">{{ item.platformOrder }}</p> <p v-if="item.tradeWay == 1">{{ item.platformOrder }}</p>
<p v-if="item.commissionMoney" style="color: red;cursor: pointer;"> <p v-if="item.commissionMoney" style="color: red;cursor: pointer;">
<span style="float: left;">{{ $t("salesModule.Commission") }}</span> <span style="float: left;">{{ $t("salesModule.Commission") }}</span>
......
...@@ -106,7 +106,7 @@ ...@@ -106,7 +106,7 @@
</td> </td>
<td class="more_td" v-if="subIndex==0" :rowspan="item.ShopDetailsList.length"> <td class="more_td" v-if="subIndex==0" :rowspan="item.ShopDetailsList.length">
<!--汇率 DMCRate--> <!--汇率 DMCRate-->
<el-input type="number" v-model="item.ShopDetailsList[0].DMCRate" disabled="true"></el-input> <el-input type="number" v-model="item.ShopDetailsList[0].DMCRate" ></el-input>
</td> </td>
<td @click="upIndex = outindex" v-if="subIndex==0" :rowspan="item.ShopDetailsList.length"> <td @click="upIndex = outindex" v-if="subIndex==0" :rowspan="item.ShopDetailsList.length">
<!--DMCOPCredentials (地接OP上传凭证)--> <!--DMCOPCredentials (地接OP上传凭证)-->
......
...@@ -1033,20 +1033,18 @@ ...@@ -1033,20 +1033,18 @@
<i class="el-icon-arrow-down el-icon--right"></i> <i class="el-icon-arrow-down el-icon--right"></i>
</span> </span>
<el-dropdown-menu slot="dropdown" class="TC-dropdown"> <el-dropdown-menu slot="dropdown" class="TC-dropdown">
<el-dropdown-item v-if="item.TeamType!=3" <el-dropdown-item @click.native="goToOpenTravel('TravelManager2',item.ID,0,item)">
@click.native="goToOpenTravel('TravelManager2',item.ID,0,item)">
{{$t('Operation.Op_xilieModyfi')}} {{$t('Operation.Op_xilieModyfi')}}
</el-dropdown-item> </el-dropdown-item>
<el-dropdown-item v-else @click.native="goToOpenTravel('TravelManager6',item.ID,0,item)"> <el-dropdown-item @click.native="goToOpenTravel('TravelManager',item.ID,0,item)">
{{$t('Operation.Op_xilieModyfi')}} {{$t('Operation.Op_xilieModyfi')}}(新)
</el-dropdown-item> </el-dropdown-item>
<el-dropdown-item v-if="item.TeamType!=3"
@click.native="goTonowTeam('TravelManager2',item.ID,item.TCID,item.TCNUM,item)"> <el-dropdown-item @click.native="goTonowTeam('TravelManager2',item.ID,item.TCID,item.TCNUM,item)">
{{$t('Operation.Op_dangtuanModify')}} {{$t('Operation.Op_dangtuanModify')}}
</el-dropdown-item> </el-dropdown-item>
<el-dropdown-item v-else <el-dropdown-item @click.native="goTonowTeam('TravelManager',item.ID,item.TCID,item.TCNUM,item)">
@click.native="goTonowTeam('TravelManager6',item.ID,item.TCID,item.TCNUM,item)"> {{$t('Operation.Op_dangtuanModify')}}(新)
{{$t('Operation.Op_dangtuanModify')}}
</el-dropdown-item> </el-dropdown-item>
</el-dropdown-menu> </el-dropdown-menu>
</el-dropdown> </el-dropdown>
...@@ -1101,9 +1099,8 @@ ...@@ -1101,9 +1099,8 @@
@click.native="RemoveHotelJourneyOrder(item.TCID)"> @click.native="RemoveHotelJourneyOrder(item.TCID)">
{{$t('op.HotelXJ')}} {{$t('op.HotelXJ')}}
</el-dropdown-item> </el-dropdown-item>
<!-- 结团 --> <!-- 结团 &&Number(item.OrderGuestNum)>0 HK2023-09-14 取消人数判断(南亚线没有人数,损失机票)-->
<el-dropdown-item v-if="item.Status==1&&Number(item.OrderGuestNum)>0" <el-dropdown-item v-if="item.Status==1" @click.native="OutGroup(item.TCID,2,item.TravelEndAudit)">
@click.native="OutGroup(item.TCID,2,item.TravelEndAudit)">
{{$t('Operation.Op_jietuan')}} {{$t('Operation.Op_jietuan')}}
</el-dropdown-item> </el-dropdown-item>
<el-dropdown-item v-if="item.Status==2" @click.native="OutGroup(item.TCID,1,item.TravelEndAudit)"> <el-dropdown-item v-if="item.Status==2" @click.native="OutGroup(item.TCID,1,item.TravelEndAudit)">
......
...@@ -792,7 +792,8 @@ ...@@ -792,7 +792,8 @@
@click.native="setUpPlat(item)">{{$t('Operation.Op_shangjia')}}</el-dropdown-item> @click.native="setUpPlat(item)">{{$t('Operation.Op_shangjia')}}</el-dropdown-item>
<el-dropdown-item v-if="item.TCState==3" @click.native="Setshelves(item.TCID)"> <el-dropdown-item v-if="item.TCState==3" @click.native="Setshelves(item.TCID)">
{{$t('Operation.Op_xiajia')}}</el-dropdown-item> {{$t('Operation.Op_xiajia')}}</el-dropdown-item>
<el-dropdown-item v-if="item.Status==1&&Number(item.OrderGuestNum)>0" <!--&&Number(item.OrderGuestNum)>0 HK 2023-09-14去掉人数判断-->
<el-dropdown-item v-if="item.Status==1"
@click.native="OutGroup(item.TCID,2)"> @click.native="OutGroup(item.TCID,2)">
{{$t('Operation.Op_jietuan')}} {{$t('Operation.Op_jietuan')}}
</el-dropdown-item> </el-dropdown-item>
......
...@@ -690,7 +690,8 @@ ...@@ -690,7 +690,8 @@
<el-dropdown-item v-if="item.TCState==3" @click.native="Setshelves(item.TCID)"> <el-dropdown-item v-if="item.TCState==3" @click.native="Setshelves(item.TCID)">
{{$t('Operation.Op_xiajia')}} {{$t('Operation.Op_xiajia')}}
</el-dropdown-item> </el-dropdown-item>
<el-dropdown-item v-if="item.Status==1&&Number(item.OrderGuestNum)>0" <!--&&Number(item.OrderGuestNum)>0 HK 2023-09-14 取消人数判断-->
<el-dropdown-item v-if="item.Status==1"
@click.native="OutGroup(item.TCID,2)"> @click.native="OutGroup(item.TCID,2)">
{{$t('Operation.Op_jietuan')}} {{$t('Operation.Op_jietuan')}}
</el-dropdown-item> </el-dropdown-item>
......
...@@ -49,6 +49,7 @@ ...@@ -49,6 +49,7 @@
<th width="100">序号</th> <th width="100">序号</th>
<th width="10%">单号</th> <th width="10%">单号</th>
<th width="10%">费用说明</th> <th width="10%">费用说明</th>
<th width="10%">付款对象</th>
<th width="10%">日期</th> <th width="10%">日期</th>
<th width="20%">备注</th> <th width="20%">备注</th>
<th width="10%">应付/应付金额</th> <th width="10%">应付/应付金额</th>
...@@ -62,6 +63,7 @@ ...@@ -62,6 +63,7 @@
<td> <td>
<span class="padding10" v-for="i in item.CostTypeList">{{i}}</span> <span class="padding10" v-for="i in item.CostTypeList">{{i}}</span>
</td> </td>
<td>{{item.ClientName}}</td>
<td>{{item.CreateDate}}</td> <td>{{item.CreateDate}}</td>
<td> <td>
<div v-for="childItem in item.TradeWayList"> <div v-for="childItem in item.TradeWayList">
...@@ -71,7 +73,8 @@ ...@@ -71,7 +73,8 @@
</div> </div>
</td> </td>
<td> <td>
<span>{{item.Type === 2 ? '-' : ''}}{{moneyFormat(item.Money)}}</span> <p><span>原币{{item.WBMoney}}</span></p>
<p><span>{{item.Type === 2 ? '-' : ''}}{{moneyFormat(item.Money)}}</span></p>
</td> </td>
<td>{{item.EmName}}</td> <td>{{item.EmName}}</td>
<td> <td>
...@@ -88,12 +91,12 @@ ...@@ -88,12 +91,12 @@
</tr> </tr>
<tr v-if='hotelList.length!=0'> <tr v-if='hotelList.length!=0'>
<td>成本总价</td> <td>成本总价</td>
<td style="text-align:left;padding-left:5px;" colspan="8"> <td style="text-align:left;padding-left:5px;" colspan="9">
¥{{getTotalMoney(hotelList)}} ¥{{getTotalMoney(hotelList)}}
</td> </td>
</tr> </tr>
<tr v-if='hotelList.length==0'> <tr v-if='hotelList.length==0'>
<td colspan="9" class="color666">没有找到你需要的财务数据</td> <td colspan="10" class="color666">没有找到你需要的财务数据</td>
</tr> </tr>
</table> </table>
<p class="teamRevenueExpenditureTitle"> <p class="teamRevenueExpenditureTitle">
...@@ -109,6 +112,7 @@ ...@@ -109,6 +112,7 @@
<th width="100">序号</th> <th width="100">序号</th>
<th width="10%">单号</th> <th width="10%">单号</th>
<th width="10%">费用说明</th> <th width="10%">费用说明</th>
<th width="10%">付款对象</th>
<th width="10%">日期</th> <th width="10%">日期</th>
<th width="20%">备注</th> <th width="20%">备注</th>
<th width="10%">应付/应付金额</th> <th width="10%">应付/应付金额</th>
...@@ -122,6 +126,7 @@ ...@@ -122,6 +126,7 @@
<td> <td>
<span class="padding10" v-for="i in item.CostTypeList">{{i}}</span> <span class="padding10" v-for="i in item.CostTypeList">{{i}}</span>
</td> </td>
<td>{{item.ClientName}}</td>
<td>{{item.CreateDate}}</td> <td>{{item.CreateDate}}</td>
<td> <td>
<div v-for="childItem in item.TradeWayList"> <div v-for="childItem in item.TradeWayList">
...@@ -131,7 +136,8 @@ ...@@ -131,7 +136,8 @@
</div> </div>
</td> </td>
<td> <td>
<span>¥{{item.Type === 2 ? '-' : ''}}{{moneyFormat(item.Money)}}</span> <p><span>原币{{item.WBMoney}}</span></p>
<p><span>¥{{item.Type === 2 ? '-' : ''}}{{moneyFormat(item.Money)}}</span></p>
</td> </td>
<td>{{item.EmName}}</td> <td>{{item.EmName}}</td>
<td> <td>
...@@ -148,12 +154,12 @@ ...@@ -148,12 +154,12 @@
</tr> </tr>
<tr v-if='eatList.length!=0'> <tr v-if='eatList.length!=0'>
<td>成本总价</td> <td>成本总价</td>
<td style="text-align:left;padding-left:5px;" colspan="8"> <td style="text-align:left;padding-left:5px;" colspan="9">
¥{{getTotalMoney(eatList)}} ¥{{getTotalMoney(eatList)}}
</td> </td>
</tr> </tr>
<tr v-if='eatList.length==0'> <tr v-if='eatList.length==0'>
<td colspan="9" class="color666">没有找到你需要的财务数据</td> <td colspan="10" class="color666">没有找到你需要的财务数据</td>
</tr> </tr>
</table> </table>
<p class="teamRevenueExpenditureTitle"> <p class="teamRevenueExpenditureTitle">
...@@ -169,6 +175,7 @@ ...@@ -169,6 +175,7 @@
<th width="100">序号</th> <th width="100">序号</th>
<th width="10%">单号</th> <th width="10%">单号</th>
<th width="10%">费用说明</th> <th width="10%">费用说明</th>
<th width="10%">付款对象</th>
<th width="10%">日期</th> <th width="10%">日期</th>
<th width="20%">备注</th> <th width="20%">备注</th>
<th width="10%">应付/应付金额</th> <th width="10%">应付/应付金额</th>
...@@ -182,6 +189,7 @@ ...@@ -182,6 +189,7 @@
<td> <td>
<span class="padding10" v-for="i in item.CostTypeList">{{i}}</span> <span class="padding10" v-for="i in item.CostTypeList">{{i}}</span>
</td> </td>
<td>{{item.ClientName}}</td>
<td>{{item.CreateDate}}</td> <td>{{item.CreateDate}}</td>
<td> <td>
<div v-for="childItem in item.TradeWayList"> <div v-for="childItem in item.TradeWayList">
...@@ -191,7 +199,8 @@ ...@@ -191,7 +199,8 @@
</div> </div>
</td> </td>
<td> <td>
<span>¥{{item.Type === 2 ? '-' : ''}}{{moneyFormat(item.Money)}}</span> <p><span>原币{{item.WBMoney}}</span></p>
<p><span>¥{{item.Type === 2 ? '-' : ''}}{{moneyFormat(item.Money)}}</span></p>
</td> </td>
<td>{{item.EmName}}</td> <td>{{item.EmName}}</td>
<td> <td>
...@@ -208,12 +217,12 @@ ...@@ -208,12 +217,12 @@
</tr> </tr>
<tr v-if='ticketList.length!=0'> <tr v-if='ticketList.length!=0'>
<td>成本总价</td> <td>成本总价</td>
<td style="text-align:left;padding-left:5px;" colspan="8"> <td style="text-align:left;padding-left:5px;" colspan="9">
¥{{getTotalMoney(ticketList)}} ¥{{getTotalMoney(ticketList)}}
</td> </td>
</tr> </tr>
<tr v-if='ticketList.length==0'> <tr v-if='ticketList.length==0'>
<td colspan="9" class="color666">没有找到你需要的财务数据</td> <td colspan="10" class="color666">没有找到你需要的财务数据</td>
</tr> </tr>
</table> </table>
<p class="teamRevenueExpenditureTitle"> <p class="teamRevenueExpenditureTitle">
...@@ -229,6 +238,7 @@ ...@@ -229,6 +238,7 @@
<th width="100">序号</th> <th width="100">序号</th>
<th width="10%">单号</th> <th width="10%">单号</th>
<th width="10%">费用说明</th> <th width="10%">费用说明</th>
<th width="10%">付款对象</th>
<th width="10%">日期</th> <th width="10%">日期</th>
<th width="20%">备注</th> <th width="20%">备注</th>
<th width="10%">应付/应付金额</th> <th width="10%">应付/应付金额</th>
...@@ -242,6 +252,7 @@ ...@@ -242,6 +252,7 @@
<td> <td>
<span class="padding10" v-for="i in item.CostTypeList">{{i}}</span> <span class="padding10" v-for="i in item.CostTypeList">{{i}}</span>
</td> </td>
<td>{{item.ClientName}}</td>
<td>{{item.CreateDate}}</td> <td>{{item.CreateDate}}</td>
<td> <td>
<div v-for="childItem in item.TradeWayList"> <div v-for="childItem in item.TradeWayList">
...@@ -251,7 +262,8 @@ ...@@ -251,7 +262,8 @@
</div> </div>
</td> </td>
<td> <td>
<span>¥{{item.Type === 2 ? '-' : ''}}{{moneyFormat(item.Money)}}</span> <p><span>原币{{item.WBMoney}}</span></p>
<p><span>¥{{item.Type === 2 ? '-' : ''}}{{moneyFormat(item.Money)}}</span></p>
</td> </td>
<td>{{item.EmName}}</td> <td>{{item.EmName}}</td>
<td> <td>
...@@ -268,12 +280,12 @@ ...@@ -268,12 +280,12 @@
</tr> </tr>
<tr v-if='busList.length!=0'> <tr v-if='busList.length!=0'>
<td>成本总价</td> <td>成本总价</td>
<td style="text-align:left;padding-left:5px;" colspan="8"> <td style="text-align:left;padding-left:5px;" colspan="9">
¥{{getTotalMoney(busList)}} ¥{{getTotalMoney(busList)}}
</td> </td>
</tr> </tr>
<tr v-if='busList.length==0'> <tr v-if='busList.length==0'>
<td colspan="9" class="color666">没有找到你需要的财务数据</td> <td colspan="10" class="color666">没有找到你需要的财务数据</td>
</tr> </tr>
</table> </table>
...@@ -290,6 +302,7 @@ ...@@ -290,6 +302,7 @@
<th width="100">序号</th> <th width="100">序号</th>
<th width="10%">单号</th> <th width="10%">单号</th>
<th width="10%">费用说明</th> <th width="10%">费用说明</th>
<th width="10%">付款对象</th>
<th width="10%">日期</th> <th width="10%">日期</th>
<th width="20%">备注</th> <th width="20%">备注</th>
<th width="10%">应付/应付金额</th> <th width="10%">应付/应付金额</th>
...@@ -303,6 +316,7 @@ ...@@ -303,6 +316,7 @@
<td> <td>
<span class="padding10" v-for="i in item.CostTypeList">{{i}}</span> <span class="padding10" v-for="i in item.CostTypeList">{{i}}</span>
</td> </td>
<td>{{item.ClientName}}</td>
<td>{{item.CreateDate}}</td> <td>{{item.CreateDate}}</td>
<td> <td>
<div v-for="childItem in item.TradeWayList"> <div v-for="childItem in item.TradeWayList">
...@@ -312,7 +326,8 @@ ...@@ -312,7 +326,8 @@
</div> </div>
</td> </td>
<td> <td>
<span>¥{{item.Type === 2 ? '-' : ''}}{{moneyFormat(item.Money)}}</span> <p><span>原币{{item.WBMoney}}</span></p>
<p><span>¥{{item.Type === 2 ? '-' : ''}}{{moneyFormat(item.Money)}}</span></p>
</td> </td>
<td>{{item.EmName}}</td> <td>{{item.EmName}}</td>
<td> <td>
...@@ -329,12 +344,12 @@ ...@@ -329,12 +344,12 @@
</tr> </tr>
<tr v-if='otherList.length!=0'> <tr v-if='otherList.length!=0'>
<td>成本总价</td> <td>成本总价</td>
<td style="text-align:left;padding-left:5px;" colspan="8"> <td style="text-align:left;padding-left:5px;" colspan="9">
¥{{getTotalMoney(otherList)}} ¥{{getTotalMoney(otherList)}}
</td> </td>
</tr> </tr>
<tr v-if='otherList.length==0'> <tr v-if='otherList.length==0'>
<td colspan="9" class="color666">没有找到你需要的财务数据</td> <td colspan="10" class="color666">没有找到你需要的财务数据</td>
</tr> </tr>
</table> </table>
<div v-if='picIsShow' class="viewBigPicLayer" @click="picIsShow=false,picObj=[]"> <div v-if='picIsShow' class="viewBigPicLayer" @click="picIsShow=false,picObj=[]">
......
...@@ -19,6 +19,7 @@ ...@@ -19,6 +19,7 @@
<p class=" fz14" :class="{'cursor-pointer c059FF6':scope.row.OrderType==2}" <p class=" fz14" :class="{'cursor-pointer c059FF6':scope.row.OrderType==2}"
@click="scope.row.OrderType==2?goTuanDetails(scope.row):''">{{scope.row.TCNUM}}</p> @click="scope.row.OrderType==2?goTuanDetails(scope.row):''">{{scope.row.TCNUM}}</p>
<p>出发日期:{{scope.row.StartDate}}</p> <p>出发日期:{{scope.row.StartDate}}</p>
<p v-if="scope.row.OrderType==2&&scope.row.Status>=0">{{scope.row.Status==1?"未结团":(scope.row.Status==2?"已结团 ":(scope.row.Status==5?"待结团审核":""))}}{{scope.row.Status==2?scope.row.OutGroupAuditDate:""}}</p>
</div> </div>
</template> </template>
</el-table-column> </el-table-column>
......
...@@ -15,6 +15,7 @@ ...@@ -15,6 +15,7 @@
v-if="((item.TypeState>3 && CurrentUserInfo.RB_Group_id==QjGroupId())||item.TypeState<=3)"> v-if="((item.TypeState>3 && CurrentUserInfo.RB_Group_id==QjGroupId())||item.TypeState<=3)">
<img v-bind:src="item.imgUrl"> <img v-bind:src="item.imgUrl">
<div>{{item.ckTitle}}</div> <div>{{item.ckTitle}}</div>
</div> </div>
</template> </template>
</div> </div>
...@@ -30,7 +31,9 @@ ...@@ -30,7 +31,9 @@
<div v-if="CurrentUserInfo.RB_Group_id==QjGroupId()" class="ScraList">{{$t('sm.imgLongtips')}}</div> <div v-if="CurrentUserInfo.RB_Group_id==QjGroupId()" class="ScraList">{{$t('sm.imgLongtips')}}</div>
<div class="TFContent"> <div class="TFContent">
<div class="TFconTitle"> <div class="TFconTitle">
<span>{{ckTitle}}</span> <el-tooltip class="item" effect="dark" content="点击重新加载行程特色" placement="top-start">
<span style="cursor:pointer;" @click="ReLoadFeature()">{{ckTitle}}</span>
</el-tooltip>
<div class="TFBTline"></div> <div class="TFBTline"></div>
</div> </div>
<div class="TFchildContent clearfix"> <div class="TFchildContent clearfix">
...@@ -252,6 +255,13 @@ ...@@ -252,6 +255,13 @@
created: function () {}, created: function () {},
methods: { methods: {
//重新加载行程特色
ReLoadFeature() {
if (this.$refs.UpgradedVersion != undefined) {
this.FeatureData.FeatureHtmlJson = '';
this.$refs.UpgradedVersion.initFeature(true)
}
},
// 初始化行程特色 // 初始化行程特色
init: function () {}, init: function () {},
// 行程特色删除区块 // 行程特色删除区块
...@@ -373,19 +383,8 @@ ...@@ -373,19 +383,8 @@
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
//保存按钮跳转当当前页码 //保存按钮跳转当当前页码
if (SaveType == 1) { if (SaveType == 1) {
let path = "TravelManager2"; let path = this.$route.path;
if (TeamType == 0) { console.log("path", path);
path = "TravelManager2";
} else if (TeamType == 1) {
path = "TravelManager3";
} else if (TeamType == 2) {
path = "TravelManager5";
} else if (TeamType == 3) {
path = "TravelManager6";
}
if (postData.isfromManager) {
path = "TravelManager5";
}
this.Success("保存成功"); this.Success("保存成功");
if (this.isNewConfig) { if (this.isNewConfig) {
this.$router.push({ this.$router.push({
......
<style> <style>
@import "../../../assets/css/newTravelManager.css"; @import "../../../assets/css/newTravelManager.css";
@import "../../../assets/css/endTravelManager.css"; @import "../../../assets/css/endTravelManager.css";
.mapImg-Img p{
text-align: center;
padding: 20px 40px;
font-size: 18px;
color: #E95252;
}
</style> </style>
<template> <template>
<div> <div>
...@@ -43,6 +48,24 @@ ...@@ -43,6 +48,24 @@
id="thirdAnchor" @featureCallBack="getFeature" :FeatureData="FeatureData" :TeamType="TeamType" id="thirdAnchor" @featureCallBack="getFeature" :FeatureData="FeatureData" :TeamType="TeamType"
:isNewConfig="isNewConfig" @unlockFormCommit="unlockFormCommit" :CurrentUserInfo="CurrentUserInfo"> :isNewConfig="isNewConfig" @unlockFormCommit="unlockFormCommit" :CurrentUserInfo="CurrentUserInfo">
</TravelFeature> </TravelFeature>
<!-- 地图 -->
<div class="TravelPrice clearfix" style="padding: 25px;">
<div class="mapImg-buttom">
<span class="TMTitle"><i></i>地图</span>
<span class="foldList" @click="ShowMap=!ShowMap">编辑地图</span>
</div>
<div class="mapImg-Img marginT20">
<div v-if="PostConfig&&PostConfig.MapUrl">
<el-image
style="width: 100%; height: auto"
:src="PostConfig.MapUrl"
:preview-src-list="[PostConfig.MapUrl]">
</el-image>
</div>
<p v-else @click="ShowMap=!ShowMap" style="cursor: pointer;">地图暂未生成图</p>
</div>
</div>
<Tripmap v-if="ShowMap" :dataAll="PostConfig" :ConfigId="ConfigId" @Cancel="ShowMap=false" @Success="getMapImgSuccess"></Tripmap>
<TravelNotice :class="{'showOther':TeamType==3}" ref="TravelNotice" id="fourAnchor" @headCallBack="getNotice" <TravelNotice :class="{'showOther':TeamType==3}" ref="TravelNotice" id="fourAnchor" @headCallBack="getNotice"
:subArray="NoticeParameters" :NoticeData="NoticeData" v-bind:PostConfig="PostConfig" :subArray="NoticeParameters" :NoticeData="NoticeData" v-bind:PostConfig="PostConfig"
v-bind:AllCityList="AllCityList" v-bind:CountryID="PostConfig.CountryID"></TravelNotice> v-bind:AllCityList="AllCityList" v-bind:CountryID="PostConfig.CountryID"></TravelNotice>
...@@ -94,8 +117,20 @@ ...@@ -94,8 +117,20 @@
import TravelPrice2 from "../TravelGroupControl/TravelPrice2"; import TravelPrice2 from "../TravelGroupControl/TravelPrice2";
import TravelPrice3 from "../TravelGroupControl/TravelPrice3"; import TravelPrice3 from "../TravelGroupControl/TravelPrice3";
import TravelPrice4 from "../TravelGroupControl/TravelPrice4"; import TravelPrice4 from "../TravelGroupControl/TravelPrice4";
import Tripmap from "../TravelGroupControl/tripmap";
export default { export default {
components: {
TravelConfig: TravelConfig,
TravelDaysTripDirect: TravelDaysTripDirect,
TravelFeature: TravelFeature,
TravelNotice: TravelNotice,
TravelPrice: TravelPrice,
TravelPrice2: TravelPrice2,
TravelPrice3: TravelPrice3,
TravelPrice4: TravelPrice4,
Tripmap,
},
provide() { provide() {
return { return {
loadConfigInfo: this.firstLoadConfigInfo, loadConfigInfo: this.firstLoadConfigInfo,
...@@ -104,6 +139,7 @@ ...@@ -104,6 +139,7 @@
}, },
data() { data() {
return { return {
ShowMap: false,
//当前登录用户信息 //当前登录用户信息
CurrentUserInfo: {}, CurrentUserInfo: {},
IsShowBtn: false, //是否显示按钮 IsShowBtn: false, //是否显示按钮
...@@ -165,6 +201,9 @@ ...@@ -165,6 +201,9 @@
WLocationId: 0, //位置编号 WLocationId: 0, //位置编号
WCityId: 0, //城市编号 WCityId: 0, //城市编号
TripColor:"",//行程特色主色 TripColor:"",//行程特色主色
TripCountryList: [],//行程国家
TripCitwlist: [],//行程城市
TripMapList: [],
}, },
//行程 //行程
FeatureData: { FeatureData: {
...@@ -246,17 +285,11 @@ ...@@ -246,17 +285,11 @@
saveLoading: false, //保存按钮loading saveLoading: false, //保存按钮loading
}; };
}, },
components: {
TravelConfig: TravelConfig,
TravelDaysTripDirect: TravelDaysTripDirect,
TravelFeature: TravelFeature,
TravelNotice: TravelNotice,
TravelPrice: TravelPrice,
TravelPrice2: TravelPrice2,
TravelPrice3: TravelPrice3,
TravelPrice4: TravelPrice4
},
methods: { methods: {
getMapImgSuccess(path){
this.PostConfig.MapUrl = path
this.ShowMap = false
},
/*获取行程特色内容对象*/ /*获取行程特色内容对象*/
getFeature(featureObj) { getFeature(featureObj) {
this.PostFeature = featureObj; this.PostFeature = featureObj;
...@@ -405,6 +438,9 @@ ...@@ -405,6 +438,9 @@
basicData.WCountryId = this.PostConfig.WCountryId; basicData.WCountryId = this.PostConfig.WCountryId;
basicData.WLocationId = this.PostConfig.WLocationId; basicData.WLocationId = this.PostConfig.WLocationId;
basicData.WCityId = this.PostConfig.WCityId; basicData.WCityId = this.PostConfig.WCityId;
basicData.TripCountryList = this.PostDaysTrip.TripCountryList;
basicData.TripCitwlist = this.PostDaysTrip.TripCitwlist;
basicData.TripMapList = this.PostDaysTrip.TripMapList;
this.journeyList.IsUpdateTrip = this.PostDaysTrip.IsUpdateTrip; this.journeyList.IsUpdateTrip = this.PostDaysTrip.IsUpdateTrip;
//行程特色数据 //行程特色数据
var TripFeature = {}; var TripFeature = {};
...@@ -839,7 +875,18 @@ ...@@ -839,7 +875,18 @@
this.PostConfig.WCountryId = tempData.WCountryId; this.PostConfig.WCountryId = tempData.WCountryId;
this.PostConfig.WLocationId = tempData.WLocationId; this.PostConfig.WLocationId = tempData.WLocationId;
this.PostConfig.WCityId = tempData.WCityId; this.PostConfig.WCityId = tempData.WCityId;
this.PostConfig.TripCountryList = tempData.TripCountryList;
this.PostConfig.TripCitwlist = tempData.TripCitwlist;
this.PostConfig.TripMapList = tempData.TripMapList;
this.PostConfig.MapUrl = tempData.MapUrl;
let arrList = function(list){
list.forEach(x=>{
x.NationList = []
x.CityListAll = []
x.CityListIds = []
})
}
arrList(this.PostConfig.TripMapList)
this.NoticeParameters.ConfigId = tempData.ConfigId; this.NoticeParameters.ConfigId = tempData.ConfigId;
this.NoticeParameters.CountryID = tempData.CountryID; this.NoticeParameters.CountryID = tempData.CountryID;
......
...@@ -28,14 +28,17 @@ ...@@ -28,14 +28,17 @@
} }
this.$emit("input", this.$el.innerText); this.$emit("input", this.$el.innerText);
setTimeout(() => { setTimeout(() => {
try {
var range = sel.getRangeAt(0); var range = sel.getRangeAt(0);
var textNode = range.startContainer; var textNode = range.startContainer;
range.setStart(textNode, offset); range.setStart(textNode, offset);
sel.removeAllRanges(); sel.removeAllRanges();
sel.addRange(range); sel.addRange(range);
} catch (err) {
console.warn(err);
}
}, 0); }, 0);
}, },
} }
}; };
......
...@@ -1498,7 +1498,7 @@ ...@@ -1498,7 +1498,7 @@
newArr.push(blob); newArr.push(blob);
var fileName = `${that.uuid(10, 10)}.png`; var fileName = `${that.uuid(10, 10)}.png`;
var path = `/newFeature`; var path = `/newFeature`;
that.uploadSelfBlob(path, newArr, x => { that.uploadSelfBlob(path, newArr,'', x => {
let allPath = that.domainManager().ViittoFileUrl + x.data.FilePath; let allPath = that.domainManager().ViittoFileUrl + x.data.FilePath;
let i = e.target.id.split("_")[2]; let i = e.target.id.split("_")[2];
that.imgUrlChange(allPath); that.imgUrlChange(allPath);
......
...@@ -9,29 +9,28 @@ ...@@ -9,29 +9,28 @@
</FeatureControls> </FeatureControls>
</div> </div>
</div> </div>
<div class="UpgradedVersionDetails-box column" v-for="(item,i) in FeatureData.dataObj.SubList"> <div class="UpgradedVersionDetails-box column" v-for="(item,i) in FeatureData.dataObj.SubList">
<div class="UpgradedVersionDetails-imgbox row-aic UpgradedVersion-Hover"> <div class="UpgradedVersionDetails-imgbox row-aic UpgradedVersion-Hover">
<div class="UpgradedVersionDetails-img relative"> <div class="UpgradedVersionDetails-img relative">
<div class="UpgradedVersionDetails1 absolute z-index3"> <div class="UpgradedVersionDetails1 absolute z-index3">
<FeatureControls v-if="FeatureData" :index="index" :FeatureData="FeatureData" :ControlsType="'row'" isImg="1" :isUploadImg="true" <FeatureControls v-if="FeatureData" :index="index" :FeatureData="FeatureData" :ControlsType="'row'"
:isSelectImg="true" @toUploadImg="UploadImg(i)" @toSelectImg="SelectImg(i)" @toAddImg="AddImg" isImg="1" :isUploadImg="true" :isSelectImg="true" @toUploadImg="UploadImg(i)"
@toDeleteImg="DeleteImg(i)" :x="312" :y="312" /> @toSelectImg="SelectImg(i)" @toAddImg="AddImg" @toDeleteImg="DeleteImg(i)" :x="312" :y="312" />
<input type="file" style="display:none" :id="'GouDetaFile_'+(FeatureData * 2 + 1)+'_'+i+'_'+index" @change="uploadpic"> <input type="file" style="display:none" :id="'GouDetaFile_'+(FeatureData * 2 + 1)+'_'+i+'_'+index"
@change="uploadpic">
</div> </div>
<div class="UpgradedVersionDetails-imgOne relative bjE6" <div class="UpgradedVersionDetails-imgOne relative bjE6"
:id="'viewSpotBox_' + (FeatureData * 4) +'_deta_'+i+index"> :id="'viewSpotBox_' + (FeatureData * 4) +'_deta_'+i+index">
<VueDraggableResizable v-if="item.ImgList&&item.ImgList.length>0" <VueDraggableResizable v-if="item.ImgList&&item.ImgList.length>0" :w="312" :h="312"
:w="312" :h="312" :ref="'viewSpotVds_' + FeatureData * 4 + '_deta_'+i+index" tabindex="0" :resizable="false"
:ref="'viewSpotVds_' + FeatureData * 4 + '_deta_'+i+index" :active="false" :parent="false" axis="x" @activated="onActivated(FeatureData * 4, i)"
tabindex="0" :resizable="false" :active="false" :parent="false" axis="x" :x="item.ImgList[0].x" :y="item.ImgList[0].y" :z="2" @dragstop="onViewSpotDragstopX">
@activated="onActivated(FeatureData * 4, i)" :x="item.ImgList[0].x"
:y="item.ImgList[0].y" :z="2" @dragstop="onViewSpotDragstopX">
<img v-if="item.ImgList[0].url" :src="item.ImgList[0].url" <img v-if="item.ImgList[0].url" :src="item.ImgList[0].url"
:id="'viewSpotImg_' + FeatureData * 4 + '_deta_'+i+index"/> :id="'viewSpotImg_' + FeatureData * 4 + '_deta_'+i+index" />
<!-- <img :src="item.ImgList[0].url" :id="'viewSpotImg_' + FeatureData * 4 + 'deta_'+i+index"/> -->
</VueDraggableResizable> </VueDraggableResizable>
<template v-else> <template v-else>
<img src="http://imgfile.oytour.com/Static/NewTripFeature/homeBj.png"/> <img src="http://imgfile.oytour.com/Static/NewTripFeature/homeBj.png" />
</template> </template>
</div> </div>
<div class="UpgradedVersionDetails-detailsTop absolute"></div> <div class="UpgradedVersionDetails-detailsTop absolute"></div>
...@@ -112,19 +111,19 @@ ...@@ -112,19 +111,19 @@
}, },
isShowScenicImg: false, isShowScenicImg: false,
MasterMapIndex: null, //主图下标 MasterMapIndex: null, //主图下标
imgIndex:null imgIndex: null
}; };
}, },
methods: { methods: {
onActivated(i, j) { onActivated(i, j) {
this.imgIndex = j; this.imgIndex = j;
}, },
onViewSpotDragstopX(x,y) { onViewSpotDragstopX(x, y) {
let imgWidth = document.querySelector( let imgWidth = document.querySelector(
"#viewSpotImg_" + (this.FeatureItem * 4) + "_deta_"+this.imgIndex + this.index "#viewSpotImg_" + (this.FeatureItem * 4) + "_deta_" + this.imgIndex + this.index
).width; ).width;
let boxWidth = document.querySelector( let boxWidth = document.querySelector(
"#viewSpotBox_" + (this.FeatureItem * 4) + "_deta_"+this.imgIndex + this.index "#viewSpotBox_" + (this.FeatureItem * 4) + "_deta_" + this.imgIndex + this.index
).offsetWidth; ).offsetWidth;
let cha = boxWidth - imgWidth; let cha = boxWidth - imgWidth;
if (cha <= 0) { if (cha <= 0) {
...@@ -141,14 +140,14 @@ ...@@ -141,14 +140,14 @@
} }
} }
this.FeatureData.dataObj.SubList[this.imgIndex].x = x; this.FeatureData.dataObj.SubList[this.imgIndex].x = x;
this.$refs["viewSpotVds_" + (this.FeatureData * 4) + "_deta_"+this.imgIndex + this.index][0]._data.left = x; this.$refs["viewSpotVds_" + (this.FeatureData * 4) + "_deta_" + this.imgIndex + this.index][0]._data.left = x;
}, },
onViewSpotDragstop(x, y) { onViewSpotDragstop(x, y) {
let imgHeight = document.querySelector( let imgHeight = document.querySelector(
"#viewSpotImg_" + (this.FeatureData * 4)+ "_deta_"+this.imgIndex + this.index "#viewSpotImg_" + (this.FeatureData * 4) + "_deta_" + this.imgIndex + this.index
).height; ).height;
let boxHeight = document.querySelector( let boxHeight = document.querySelector(
"#viewSpotBox_" + (this.FeatureData * 4)+ "_deta_"+this.imgIndex + this.index "#viewSpotBox_" + (this.FeatureData * 4) + "_deta_" + this.imgIndex + this.index
).offsetHeight; ).offsetHeight;
let cha = boxHeight - imgHeight; let cha = boxHeight - imgHeight;
if (cha <= 0) { if (cha <= 0) {
...@@ -166,7 +165,7 @@ ...@@ -166,7 +165,7 @@
} }
this.FeatureData.dataObj.SubList[this.imgIndex].y = y; this.FeatureData.dataObj.SubList[this.imgIndex].y = y;
this.$refs[ this.$refs[
"viewSpotVds_" + (this.FeatureData * 4)+ "_deta_"+this.imgIndex + this.index "viewSpotVds_" + (this.FeatureData * 4) + "_deta_" + this.imgIndex + this.index
][0]._data.top = y; ][0]._data.top = y;
}, },
...@@ -186,7 +185,7 @@ ...@@ -186,7 +185,7 @@
newArr.push(blob); newArr.push(blob);
var fileName = `${that.uuid(10, 10)}.png`; var fileName = `${that.uuid(10, 10)}.png`;
var path = `/newFeature`; var path = `/newFeature`;
that.uploadSelfBlob(path, newArr, x => { that.uploadSelfBlob(path, newArr, '', x => {
let allPath = that.domainManager().ViittoFileUrl + x.data.FilePath; let allPath = that.domainManager().ViittoFileUrl + x.data.FilePath;
let i = e.target.id.split("_")[2]; let i = e.target.id.split("_")[2];
that.FeatureData.dataObj.SubList[that.MasterMapIndex].ImgList[0].url = allPath that.FeatureData.dataObj.SubList[that.MasterMapIndex].ImgList[0].url = allPath
...@@ -256,4 +255,5 @@ ...@@ -256,4 +255,5 @@
<style> <style>
@import url("../../../../assets/css/UpgradedVersion.css"); @import url("../../../../assets/css/UpgradedVersion.css");
</style> </style>
...@@ -17,8 +17,7 @@ ...@@ -17,8 +17,7 @@
<div class="featureHome-vToolBar-one absolute z-index3"> <div class="featureHome-vToolBar-one absolute z-index3">
<FeatureControls :index="index" :FeatureData="FeatureItem" :ControlsType="'row'" :isTemplate="false" <FeatureControls :index="index" :FeatureData="FeatureItem" :ControlsType="'row'" :isTemplate="false"
:isUploadImg="true" :isSelectImg="true" :isAddImg="false" :isDeleteImg="false" @toUploadImg="UploadImg" :isUploadImg="true" :isSelectImg="true" :isAddImg="false" :isDeleteImg="false" @toUploadImg="UploadImg"
@toSelectImg="SelectImg" @toAddImg="AddImg" @toDeleteImg="DeleteImg" @toSelectImg="SelectImg" @toAddImg="AddImg" @toDeleteImg="DeleteImg" :x="697" :y="930"></FeatureControls>
:x="697" :y="930"></FeatureControls>
<input type="file" style="display:none" :id="'homefile_'+(FeatureItem * 2 + 1) + '_'+index" @change="uploadpic"> <input type="file" style="display:none" :id="'homefile_'+(FeatureItem * 2 + 1) + '_'+index" @change="uploadpic">
</div> </div>
<div class="featureHome-vToolBar-two absolute z-index3"> <div class="featureHome-vToolBar-two absolute z-index3">
...@@ -28,14 +27,13 @@ ...@@ -28,14 +27,13 @@
</FeatureControls> </FeatureControls>
</div> </div>
<div class="featureHome-left-one bjF6 absolute z-index2" :id="'viewSpotBox_' + (FeatureItem * 4 + 1) + '_' +index"> <div class="featureHome-left-one bjF6 absolute z-index2"
<VueDraggableResizable v-if="FeatureItem.dataObj.ImgList&&FeatureItem.dataObj.ImgList.length>0" :id="'viewSpotBox_' + (FeatureItem * 4 + 1) + '_' +index">
:w="697" :h="930" <VueDraggableResizable v-if="FeatureItem.dataObj.ImgList&&FeatureItem.dataObj.ImgList.length>0" :w="697"
:ref="'viewSpotVds_' + (FeatureItem * 4 + 1) + '_'+index" tabindex="0" :resizable="false" :active="false" :h="930" :ref="'viewSpotVds_' + (FeatureItem * 4 + 1) + '_'+index" tabindex="0" :resizable="false"
:parent="false" axis="x" @activated="onActivated(FeatureItem * 4 + 1, index)" :active="false" :parent="false" axis="x" @activated="onActivated(FeatureItem * 4 + 1, index)"
:x="FeatureItem.dataObj.ImgList[0].x" :y="0" :z="2" @dragstop="onViewSpotDragstopY"> :x="FeatureItem.dataObj.ImgList[0].x" :y="0" :z="2" @dragstop="onViewSpotDragstopY">
<img :src="FeatureItem.dataObj.ImgList[0].url" <img :src="FeatureItem.dataObj.ImgList[0].url" :id="'viewSpotImg_' + (FeatureItem * 4 + 1) + '_'+index" />
:id="'viewSpotImg_' + (FeatureItem * 4 + 1) + '_'+index"/>
</VueDraggableResizable> </VueDraggableResizable>
</div> </div>
<div class="featureHome-left-two absolute z-index1" :style="{'background':TripColor}"> <div class="featureHome-left-two absolute z-index1" :style="{'background':TripColor}">
...@@ -150,6 +148,10 @@ ...@@ -150,6 +148,10 @@
}, },
uploadpic(e) { uploadpic(e) {
let that = this; let that = this;
var postJson = {
// ConfigId: 8757,
// MapLevel: 11,
};
that.$message.info('上传中...') that.$message.info('上传中...')
if (e.target.files.length > 0 && e.target.files[0].size > 0) { if (e.target.files.length > 0 && e.target.files[0].size > 0) {
// 压缩图片需要的一些元素和对象 // 压缩图片需要的一些元素和对象
...@@ -160,7 +162,7 @@ ...@@ -160,7 +162,7 @@
newArr.push(blob); newArr.push(blob);
var fileName = `${that.uuid(10, 10)}.png`; var fileName = `${that.uuid(10, 10)}.png`;
var path = `/newFeature`; var path = `/newFeature`;
that.uploadSelfBlob(path, newArr, x => { that.uploadSelfBlob(path, newArr, postJson, x => {
let allPath = that.domainManager().ViittoFileUrl + x.data.FilePath; let allPath = that.domainManager().ViittoFileUrl + x.data.FilePath;
let i = e.target.id.split("_")[2]; let i = e.target.id.split("_")[2];
that.FeatureItem.dataObj.ImgList[0].url = allPath that.FeatureItem.dataObj.ImgList[0].url = allPath
...@@ -211,8 +213,10 @@ ...@@ -211,8 +213,10 @@
} }
}; };
</script> </script>
<style> <style>
@import url("../../../../assets/css/UpgradedVersion.css"); @import url("../../../../assets/css/UpgradedVersion.css");
</style> </style>
...@@ -194,10 +194,14 @@ ...@@ -194,10 +194,14 @@
}; };
return detailsObj; return detailsObj;
}, },
initFeature() { initFeature(isReload) {
var oldJson = this.FeatureData.FeatureHtmlJson ? var oldJson = this.FeatureData.FeatureHtmlJson ?
JSON.parse(JSON.stringify(this.FeatureData.FeatureHtmlJson)) : JSON.parse(JSON.stringify(this.FeatureData.FeatureHtmlJson)) :
""; "";
if (isReload) {
console.log("重新更新行程特色");
oldJson = [];
}
if (oldJson && oldJson.length > 0) { if (oldJson && oldJson.length > 0) {
oldJson.forEach(item => { oldJson.forEach(item => {
item.isDeletePage = true; item.isDeletePage = true;
......
...@@ -112,7 +112,7 @@ ...@@ -112,7 +112,7 @@
newArr.push(blob); newArr.push(blob);
var fileName = `${that.uuid(10, 10)}.png`; var fileName = `${that.uuid(10, 10)}.png`;
var path = `/newFeature`; var path = `/newFeature`;
that.uploadSelfBlob(path, newArr, x => { that.uploadSelfBlob(path, newArr,'', x => {
let allPath = that.domainManager().ViittoFileUrl + x.data.FilePath; let allPath = that.domainManager().ViittoFileUrl + x.data.FilePath;
let i = e.target.id.split("_")[2]; let i = e.target.id.split("_")[2];
if (that.StencilDrawing) { if (that.StencilDrawing) {
......
This diff is collapsed.
<style> <style>
.TravelDayContentThree .TC-HotelDinner td{ .TravelDayContentThree .TC-HotelDinner td {
padding-left: 0 !important; padding-left: 0 !important;
} }
.TC-HotelDinner{
.TC-HotelDinner {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
flex-wrap: wrap; flex-wrap: wrap;
} }
.TC-Comtitlediv{
.TC-Comtitlediv {
width: 100%; width: 100%;
} }
.Traveltrip-item-box{
.Traveltrip-item-box {
overflow: hidden; overflow: hidden;
} }
.TC-HotelDinner{
.TC-HotelDinner {
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
padding: 0 10px; padding: 0 10px;
} }
.TC-HotelDinner tr td { .TC-HotelDinner tr td {
vertical-align: middle; vertical-align: middle;
} }
...@@ -40,7 +45,8 @@ ...@@ -40,7 +45,8 @@
font-size: 13px; font-size: 13px;
margin-left: 20px; margin-left: 20px;
} }
.Ht_hotelSelect{
.Ht_hotelSelect {
width: 330px; width: 330px;
} }
...@@ -64,9 +70,10 @@ ...@@ -64,9 +70,10 @@
</td> </td>
<td width="140" valign="middle"> <td width="140" valign="middle">
<el-select v-if="!dayObj.isRead&&IsDirect==1" class="" :placeholder="$t('pub.pleaseSel')" filterable <el-select v-if="!dayObj.isRead&&IsDirect==1" class="" :placeholder="$t('pub.pleaseSel')" filterable
v-model="dayObj.DinnerArray[0].BreakfastUseType"> v-model="dayObj.DinnerArray[0].BreakfastUseType" @change="changeBreakfastList(dayObj.DinnerArray[0])">
<el-option :label="$t('pub.unlimitedSel')" :value="DefaultSelectValue"></el-option> <el-option :label="$t('pub.unlimitedSel')" :value="DefaultSelectValue"></el-option>
<el-option v-for="item in breakFirstList" :label="item.name" :value="item.Id" :key="item.Id"></el-option> <el-option v-for="item in breakFirstList" :label="item.name" :value="item.Id" :key="item.Id">
</el-option>
</el-select> </el-select>
<el-input type="text" v-model="dayObj.DinnerArray[0].DinnerName" class="" <el-input type="text" v-model="dayObj.DinnerArray[0].DinnerName" class=""
v-if="!dayObj.isRead&&IsDirect==0" @change="noDirectDinnerChange(0)"></el-input> v-if="!dayObj.isRead&&IsDirect==0" @change="noDirectDinnerChange(0)"></el-input>
...@@ -101,29 +108,23 @@ ...@@ -101,29 +108,23 @@
<img src="../../../assets/img/daily_dinner.png"> <img src="../../../assets/img/daily_dinner.png">
</td> </td>
<td valign="middle"> <td valign="middle">
<el-select v-if="!dayObj.isRead&&IsDirect==1" class="" style="width: 140px;" :placeholder="$t('pub.pleaseSel')" filterable <el-select v-if="!dayObj.isRead&&IsDirect==1" class="" style="width: 140px;"
v-model="dayObj.DinnerArray[2].DinnerId" @visible-change="getDinnerList($event)" :placeholder="$t('pub.pleaseSel')" filterable v-model="dayObj.DinnerArray[2].DinnerId"
@change="changeDinner2List(dayObj.DinnerArray[2])"> @visible-change="getDinnerList($event)" @change="changeDinner2List(dayObj.DinnerArray[2])">
<el-option :label="$t('pub.unlimitedSel')" :value="DefaultSelectValue"></el-option> <el-option :label="$t('pub.unlimitedSel')" :value="DefaultSelectValue"></el-option>
<el-option v-for="item in QDinnerList2" :label="item.Name" :value="item.ID" :key="item.ID"> <el-option v-for="item in QDinnerList2" :label="item.Name" :value="item.ID" :key="item.ID">
<span>{{ item.Name }}</span> <span>{{ item.Name }}</span>
<span class="TC-realSpan">{{item.RealName}}</span> <span class="TC-realSpan">{{item.RealName}}</span>
</el-option> </el-option>
</el-select> </el-select>
<el-input type="text" v-model="dayObj.DinnerArray[2].DinnerName" class="" <el-input type="text" v-model="dayObj.DinnerArray[2].DinnerName" class=""
v-if="!dayObj.isRead&&IsDirect==0" @change="noDirectDinnerChange(2)"></el-input> v-if="!dayObj.isRead&&IsDirect==0" @change="noDirectDinnerChange(2)"></el-input>
<span class="TC-hotelName" v-if="dayObj.isRead"> <span class="TC-hotelName" v-if="dayObj.isRead">
{{IsDirect==1?getQDinnerList2(dayObj.DinnerArray[2].DinnerId):dayObj.DinnerArray[2].DinnerName}} {{IsDirect==1?getQDinnerList2(dayObj.DinnerArray[2].DinnerId):dayObj.DinnerArray[2].DinnerName}}
</span> </span>
</td> </td>
</tr> </tr>
</template> </template>
<!-- <tr>
<td colspan="6" height="15"></td>
</tr> -->
<tr class="marginT10"> <tr class="marginT10">
<td width="70" valign="top"> <td width="70" valign="top">
<img crossorigin="Anonymous" src="../../../assets/img/daily_hotel-1.png"> <img crossorigin="Anonymous" src="../../../assets/img/daily_hotel-1.png">
...@@ -168,7 +169,7 @@ ...@@ -168,7 +169,7 @@
QDinnerList: [], QDinnerList: [],
QDinnerList2: [], QDinnerList2: [],
DefaultSelectValue: 0, DefaultSelectValue: 0,
breakFirstList: [ ], breakFirstList: [],
showDining: false, showDining: false,
HotelChooseArray: this.dayObj.HotelChooseArray, HotelChooseArray: this.dayObj.HotelChooseArray,
dinnerArray: this.dayObj.DinnerArray, dinnerArray: this.dayObj.DinnerArray,
...@@ -269,7 +270,7 @@ ...@@ -269,7 +270,7 @@
hotelDescribeObj.Id = hotelObj.HotelId; hotelDescribeObj.Id = hotelObj.HotelId;
hotelDescribeObj.Describe = obj.WarmTip; hotelDescribeObj.Describe = obj.WarmTip;
if (hotelDescribeObj.Describe != null && hotelDescribeObj.Describe != "") { if (hotelDescribeObj.Describe != null && hotelDescribeObj.Describe != "") {
this.dayObj.WarmTipObj.Description += "<p>" + hotelDescribeObj.Describe + "</p>"; //this.dayObj.WarmTipObj.Description += "<p>" + hotelDescribeObj.Describe + "</p>";
} }
} }
} }
...@@ -326,6 +327,21 @@ ...@@ -326,6 +327,21 @@
}); });
return isExist; return isExist;
}, },
//早餐切换
changeBreakfastList(breakfastObj) {
if (breakfastObj.BreakfastUseType != 0) {
//获取当前选中的对象
let obj = {};
obj = this.breakFirstList.find(item => {
return item.Id === breakfastObj.BreakfastUseType; //筛选出匹配数据
});
if (obj != undefined) {
breakfastObj.DinnerName = obj.name;
}
} else {
breakfastObj.DinnerName = "";
}
},
//获取餐厅列表 //获取餐厅列表
getDinnerList(event) { getDinnerList(event) {
if (event) { if (event) {
...@@ -397,7 +413,7 @@ ...@@ -397,7 +413,7 @@
dinnerDescribeObj.Describe = obj.About; dinnerDescribeObj.Describe = obj.About;
dinnerDescribeObj.Sort = dinnerObj.UseDinnerType; dinnerDescribeObj.Sort = dinnerObj.UseDinnerType;
if (dinnerDescribeObj.Describe != null && dinnerDescribeObj.Describe != "") { if (dinnerDescribeObj.Describe != null && dinnerDescribeObj.Describe != "") {
this.dayObj.WarmTipObj.Description += "<p>" + dinnerDescribeObj.Describe + "</p>"; //this.dayObj.WarmTipObj.Description += "<p>" + dinnerDescribeObj.Describe + "</p>";
} }
} }
} }
...@@ -483,7 +499,7 @@ ...@@ -483,7 +499,7 @@
dinnerDescribeArr.push(x); dinnerDescribeArr.push(x);
} }
}); });
this.WarmTripDescribe.DinnerDescribeArr = dinnerDescribeArr; //this.WarmTripDescribe.DinnerDescribeArr = dinnerDescribeArr;
}, },
//餐饮对象创建 //餐饮对象创建
dinnerFactory(useDinnerType) { dinnerFactory(useDinnerType) {
...@@ -632,9 +648,9 @@ ...@@ -632,9 +648,9 @@
"travel_get_GetConfigDinnerList", {}, "travel_get_GetConfigDinnerList", {},
res => { res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.breakFirstList= res.data.data.breakFirstList; this.breakFirstList = res.data.data.breakFirstList;
this.otherDinner=res.data.data.otherDinner; this.otherDinner = res.data.data.otherDinner;
this.hotelHotSpringDinner=res.data.data.hotelHotSpringDinner; this.hotelHotSpringDinner = res.data.data.hotelHotSpringDinner;
} }
}, },
err => {} err => {}
......
...@@ -136,8 +136,13 @@ ...@@ -136,8 +136,13 @@
<el-input type="textarea" :autosize="{minRows: 1, maxRows: 8 }" resize="none" class="w700" <el-input type="textarea" :autosize="{minRows: 1, maxRows: 8 }" resize="none" class="w700"
placeholder="请输入行程大点信息" v-model="dayObj.TitleObj.Title"></el-input> placeholder="请输入行程大点信息" v-model="dayObj.TitleObj.Title"></el-input>
</el-form-item> </el-form-item>
<el-form-item style="display:none;">
<el-input placeholder="请输入公里数" class="w120" v-model="dayObj.TitleObj.KMNumber">
<template slot="append">KM</template>
</el-input>
</el-form-item>
</span> </span>
<span class="TC-spanTitle" v-if="dayObj.isRead">{{dayObj.TitleObj.Title}}</span> <span class="TC-spanTitle" v-if="dayObj.isRead">{{dayObj.TitleObj.Title}} </span>
</div> </div>
</div> </div>
<div class="TC-Comtitlediv"> <div class="TC-Comtitlediv">
......
...@@ -147,6 +147,11 @@ ...@@ -147,6 +147,11 @@
<el-input type="textarea" :autosize="{minRows: 1, maxRows: 8 }" resize="none" <el-input type="textarea" :autosize="{minRows: 1, maxRows: 8 }" resize="none"
placeholder="请输入行程大点信息" v-model="dayObj.TitleObj.Title"></el-input> placeholder="请输入行程大点信息" v-model="dayObj.TitleObj.Title"></el-input>
</el-form-item> </el-form-item>
<el-form-item>
<el-input placeholder="请输入公里数" class="w120" v-model="dayObj.TitleObj.KMNumber">
<template slot="append">KM</template>
</el-input>
</el-form-item>
</span> </span>
<span class="TC-spanTitle" v-if="dayObj.isRead">{{dayObj.TitleObj.Title}}</span> <span class="TC-spanTitle" v-if="dayObj.isRead">{{dayObj.TitleObj.Title}}</span>
</div> </div>
...@@ -218,42 +223,14 @@ ...@@ -218,42 +223,14 @@
</el-select> </el-select>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
<!-- 行程景点信息 --> <!-- 行程景点信息 -->
<!--
<div class>
<noScenic v-if="!ishasScenic" :trafficObj="dayObj.TrafficObj" :class="{'showOther':TeamType==3}"></noScenic>
</div>
<div class="TC-ComInfoDiv" :class="scenicCheck>0||dayObj.ScenicArray.length>0?'_margin_bottom':''">
<onedayList :class="{'showOther':TeamType==3}"
v-if="(NoticeParameters.IsDirect==1 && dayObj.ScenicArray.length==1)||(scenicCheck==1 && NoticeParameters.IsDirect==0)"
:isRead="dayObj.isRead" :scenicArray="dayObj.ScenicArray" :IsDirect="NoticeParameters.IsDirect"
:DayNum="dayObj.DayNum"></onedayList>
<twodayList :class="{'showOther':TeamType==3}"
v-if="(NoticeParameters.IsDirect==1 && dayObj.ScenicArray.length==2)||(scenicCheck==2 && NoticeParameters.IsDirect==0)"
:isRead="dayObj.isRead" :scenicArray="dayObj.ScenicArray" :IsDirect="NoticeParameters.IsDirect"
:DayNum="dayObj.DayNum"></twodayList>
<threedayList :class="{'showOther':TeamType==3}"
v-if="(NoticeParameters.IsDirect==1 && dayObj.ScenicArray.length==3)||(scenicCheck==3 && NoticeParameters.IsDirect==0)"
:isRead="dayObj.isRead" :scenicArray="dayObj.ScenicArray" :IsDirect="NoticeParameters.IsDirect"
:DayNum="dayObj.DayNum"></threedayList>
<fourdayList :class="{'showOther':TeamType==3}"
v-if="(NoticeParameters.IsDirect==1 && dayObj.ScenicArray.length==4)||(scenicCheck==4 && NoticeParameters.IsDirect==0)"
:isRead="dayObj.isRead" :scenicArray="dayObj.ScenicArray" :IsDirect="NoticeParameters.IsDirect"
:DayNum="dayObj.DayNum"></fourdayList>
<fivedayList :class="{'showOther':TeamType==3}"
v-if="(NoticeParameters.IsDirect==1 && dayObj.ScenicArray.length==5)||(scenicCheck==5 && NoticeParameters.IsDirect==0)"
:isRead="dayObj.isRead" :scenicArray="dayObj.ScenicArray" :IsDirect="NoticeParameters.IsDirect"
:DayNum="dayObj.DayNum"></fivedayList>
</div> -->
<div class="TC-warmTips TC-Comtitlediv" v-if="!dayObj.isRead" :class="{'showOther':TeamType==3}"> <div class="TC-warmTips TC-Comtitlediv" v-if="!dayObj.isRead" :class="{'showOther':TeamType==3}">
<div class="TC-SpecialInstruction clearfix column"> <div class="TC-SpecialInstruction clearfix column">
<div class="TC-leftTitle" style="height: 20px;">温馨提示</div> <div class="TC-leftTitle" style="height: 20px;">温馨提示</div>
<div class="TC-rightContent" style="width: 100%;"> <div class="TC-rightContent" style="width: 100%;">
<!--<el-input type="textarea" v-model="dayObj.WarmTipObj.Description"></el-input>-->
<my-edit v-on:edit-value="dayObj.WarmTipObj.Description = arguments[0]" <my-edit v-on:edit-value="dayObj.WarmTipObj.Description = arguments[0]"
v-bind:editValue="dayObj.WarmTipObj.Description" v-bind:toolbarShow="toolbar" v-bind:editValue="dayObj.WarmTipObj.Description" v-bind:toolbarShow="toolbar"
v-bind:referenceList="DefaultList"></my-edit> v-bind:referenceList="DefaultList"></my-edit>
...@@ -294,11 +271,6 @@ ...@@ -294,11 +271,6 @@
<script> <script>
import hotelTrip from "../travelLineTrip/HotelTripThree"; import hotelTrip from "../travelLineTrip/HotelTripThree";
import noScenic from "../TravelTripPreview/noScenic"; import noScenic from "../TravelTripPreview/noScenic";
import onedayList from "../TravelTripPreview/onedayList";
import twodayList from "../TravelTripPreview/twodayList";
import threedayList from "../TravelTripPreview/threedayList";
import fourdayList from "../TravelTripPreview/fourdayList";
import fivedayList from "../TravelTripPreview/fivedayList";
import trifficTrip from "../travelLineTrip/trifficTripThree"; import trifficTrip from "../travelLineTrip/trifficTripThree";
import MyEdit from "../../EditTemplate.vue"; import MyEdit from "../../EditTemplate.vue";
import ScenicTraffic from "../travelLineTrip/ScenicTraffic"; import ScenicTraffic from "../travelLineTrip/ScenicTraffic";
...@@ -347,25 +319,7 @@ ...@@ -347,25 +319,7 @@
getScenicArray(){ getScenicArray(){
let i = 1 let i = 1
let list = [] let list = []
// this.ScenicArray.forEach(y=>{
// this.dayObj.ScenicArray.forEach(x=>{
// x.Rank = 0
// if(x.CouponsId==y){
// list.push(x)
// }
// })
// })
// this.dayObj.ScenicArrayImg = JSON.parse(JSON.stringify(this.ScenicArray));
// list.forEach((x,index)=>{
// x.Rank = index+1
// })
// this.dayObj.ScenicArray.forEach(x=>{
// list.forEach(y=>{
// if(x.CouponsId==y.CouponsId){
// x.Rank = y.Rank
// }
// })
// })
this.dayObj.ScenicArray.forEach(x=>{ this.dayObj.ScenicArray.forEach(x=>{
x.Rank = 0 x.Rank = 0
if(x.CouponsId===this.ScenicArraySingle){ if(x.CouponsId===this.ScenicArraySingle){
...@@ -832,12 +786,11 @@ ...@@ -832,12 +786,11 @@
}, },
mounted() {}, mounted() {},
components: { components: {
onedayList,
hotelTrip, hotelTrip,
twodayList,
threedayList,
fourdayList,
fivedayList,
trifficTrip, trifficTrip,
noScenic, noScenic,
"my-edit": MyEdit, "my-edit": MyEdit,
......
...@@ -119,7 +119,7 @@ export default { ...@@ -119,7 +119,7 @@ export default {
let lxymallUrl = ''; //国内游api let lxymallUrl = ''; //国内游api
let crmUrl = ""; //crm API let crmUrl = ""; //crm API
let locationName = window.location.hostname; let locationName = window.location.hostname;
let ocrUrl="http://192.168.10.68:8888"; let ocrUrl = "http://192.168.10.68:8888";
// domainUrl = "http://192.168.10.238:8083"; // 刘东电脑 // domainUrl = "http://192.168.10.238:8083"; // 刘东电脑
// domainUrl = "http://192.168.10.226"; //春姐 // domainUrl = "http://192.168.10.226"; //春姐
domainUrl = "http://192.168.10.128"; //奎哥 domainUrl = "http://192.168.10.128"; //奎哥
...@@ -139,18 +139,18 @@ export default { ...@@ -139,18 +139,18 @@ export default {
mallUrl = "https://mallapi.oytour.com"; mallUrl = "https://mallapi.oytour.com";
lxymallUrl = "https://erpmallapi.oytour.com"; lxymallUrl = "https://erpmallapi.oytour.com";
crmUrl = "http://testcrm.oytour.com"; crmUrl = "http://testcrm.oytour.com";
ocrUrl="http://ocr.oytour.com"; ocrUrl = "http://ocr.oytour.com";
} else if (locationName.indexOf('oytour') !== -1) { } else if (locationName.indexOf('oytour') !== -1) {
domainUrl = "http://reborn.oytour.com"; domainUrl = "http://reborn.oytour.com";
mallUrl = "https://mallapi.oytour.com"; mallUrl = "https://mallapi.oytour.com";
lxymallUrl = "https://erpmallapi.oytour.com"; lxymallUrl = "https://erpmallapi.oytour.com";
crmUrl = "http://crm.oytour.com"; crmUrl = "http://crm.oytour.com";
ocrUrl="http://ocr.oytour.com"; ocrUrl = "http://ocr.oytour.com";
} }
var obj = { var obj = {
//主地址 //主地址
DomainUrl: domainUrl, DomainUrl: domainUrl,
ocrUrl:ocrUrl,//行程下载地址 ocrUrl: ocrUrl, //行程下载地址
//常用提交数据URL //常用提交数据URL
PostUrl: domainUrl + "/api/common/post", PostUrl: domainUrl + "/api/common/post",
//上传文件URL //上传文件URL
...@@ -287,8 +287,7 @@ export default { ...@@ -287,8 +287,7 @@ export default {
this.$router.push({ this.$router.push({
path: '/signname' path: '/signname'
}) })
} } else if (this.$route.path == "/clientConfirm") {
else if (this.$route.path == "/clientConfirm") {
let TCID = this.$route.query.TCID; let TCID = this.$route.query.TCID;
let orderID = this.$route.query.orderID; let orderID = this.$route.query.orderID;
let guestId = this.$route.query.guestId; let guestId = this.$route.query.guestId;
...@@ -300,8 +299,7 @@ export default { ...@@ -300,8 +299,7 @@ export default {
guestId: guestId, guestId: guestId,
} }
}) })
} } else if (this.$route.path == "/clientConfirmRB") {
else if (this.$route.path == "/clientConfirmRB") {
let TCID = this.$route.query.TCID; let TCID = this.$route.query.TCID;
let orderID = this.$route.query.orderID; let orderID = this.$route.query.orderID;
let guestId = this.$route.query.guestId; let guestId = this.$route.query.guestId;
...@@ -313,8 +311,7 @@ export default { ...@@ -313,8 +311,7 @@ export default {
guestId: guestId, guestId: guestId,
} }
}) })
} } else if (this.$route.path == "/TravelContractConfirm") {
else if (this.$route.path == "/TravelContractConfirm") {
let ContractId = this.$route.query.ContractId; let ContractId = this.$route.query.ContractId;
this.$router.push({ this.$router.push({
name: "TravelContractConfirm", name: "TravelContractConfirm",
...@@ -1061,10 +1058,14 @@ export default { ...@@ -1061,10 +1058,14 @@ export default {
}, faildCall) }, faildCall)
}, },
//Blob文件上传 //Blob文件上传
Vue.prototype.uploadSelfBlob = function (path, files, successCall) { Vue.prototype.uploadSelfBlob = function (path, files, paramsObj, successCall) {
console.log("paramsObj", paramsObj);
let that = this; let that = this;
var uploadUrl = that.domainManager().UploadUrl + "/Upload/UploadBlob?fileType=1&fileLimit=5&&filePath=" + path; var uploadUrl = that.domainManager().UploadUrl + "/Upload/UploadBlob?fileType=1&fileLimit=5&&filePath=" + path;
var formData = new FormData(); var formData = new FormData();
if (paramsObj && paramsObj != '') {
formData.append("paramsObj", JSON.stringify(paramsObj));
}
formData.append("myfile", files[0]); formData.append("myfile", files[0]);
that.$http.post(uploadUrl, formData, { that.$http.post(uploadUrl, formData, {
'Content-Type': 'multipart/form-data' 'Content-Type': 'multipart/form-data'
...@@ -1073,6 +1074,7 @@ export default { ...@@ -1073,6 +1074,7 @@ export default {
successCall(res); successCall(res);
}) })
}, },
//path 请按照"/模块名称/用户ID/自定义文件夹/" /谁搞错一次5块红包 //path 请按照"/模块名称/用户ID/自定义文件夹/" /谁搞错一次5块红包
//files 文件数组 //files 文件数组
//p 进度回调函数 //p 进度回调函数
...@@ -1722,20 +1724,20 @@ export default { ...@@ -1722,20 +1724,20 @@ export default {
// 多位小数点四舍五入 // 多位小数点四舍五入
Vue.prototype.RoundItUp = function (Money) { Vue.prototype.RoundItUp = function (Money) {
let FractionalPart = String(Money).split('.') let FractionalPart = String(Money).split('.')
if(FractionalPart&&FractionalPart[1]&&FractionalPart[1].length>2){ if (FractionalPart && FractionalPart[1] && FractionalPart[1].length > 2) {
return Money = (parseFloat(Money)).toFixed(2) //(parseFloat(Money.toFixed(3))+0.001).toFixed(2) return Money = (parseFloat(Money)).toFixed(2) //(parseFloat(Money.toFixed(3))+0.001).toFixed(2)
}else{ } else {
return Money = Math.round(Money * 100) / 100 return Money = Math.round(Money * 100) / 100
} }
} }
// 颜色转换rgb // 颜色转换rgb
Vue.prototype.hexToRgb = function (hexValue, opc) { Vue.prototype.hexToRgb = function (hexValue, opc) {
var rgx = /^#?([a-f\d])([a-f\d])([a-f\d])$/i; var rgx = /^#?([a-f\d])([a-f\d])([a-f\d])$/i;
var hex = hexValue.replace(rgx, function(m, r, g, b) { var hex = hexValue.replace(rgx, function (m, r, g, b) {
return r + r + g + g + b + b; return r + r + g + g + b + b;
}); });
var rgb = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(hex); var rgb = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(hex);
if(!rgb){ if (!rgb) {
return hexValue; return hexValue;
} }
var r = parseInt(rgb[1], 16); var r = parseInt(rgb[1], 16);
...@@ -1785,5 +1787,13 @@ export default { ...@@ -1785,5 +1787,13 @@ export default {
} }
return uuid.join(""); return uuid.join("");
} }
Vue.prototype.getRandomColor = function () {
var letters = '0123456789ABCDEF';
var color = '#';
for (var i = 0; i < 6; i++) {
color += letters[Math.floor(Math.random() * 16)];
}
return color;
}
} }
} }
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
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