Commit 52a16e5f authored by 王悦's avatar 王悦
parents 868f355b 954b1705
......@@ -11,6 +11,7 @@
<script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=ZzGBZF6L0sgFDLlDohyvYhCnWy4dwksX" ></script>
<script type="text/javascript" src="http://api.map.baidu.com/library/CurveLine/1.5/src/CurveLine.min.js"></script>
<script type="text/javascript" src="http://ditu.google.cn/maps/api/js?key=AIzaSyAZ5MIfzicStzKbIkbI3RcBBeZBjQFKsp0&language=zh-CN"></script>
<script src="http://code.jquery.com/jquery-2.1.1.min.js"></script>
<title>四川和平国际旅行社</title>
</head>
<body>
......
......@@ -69,6 +69,8 @@ div{
font-family: SimSun;
font-size: 60px;
color: #000000;
position: relative;
z-index: 5;
}
.hotel_1_header>.hotel_1_header_title>div:nth-child(2){
margin: auto;
......@@ -92,6 +94,8 @@ div{
text-align: center;
font-family: SimSun;
font-size: 34px;
position: relative;
z-index: 5;
}
.hotel_1_header>.hotel_1_header_title>div:nth-child(2)>img:nth-child(3){
position: absolute;
......@@ -231,6 +235,8 @@ div{
font-size: 30px;
line-height: 30px;
color: #222222;
position: relative;
z-index: 5;
}
.hotel_1_info_1_info>.hotel_1_info_1_info_right>div:nth-child(2){
margin: 12px 0;
......@@ -249,6 +255,8 @@ div{
font-size: 16px;
line-height: 25px;
color: #535353;
position: relative;
z-index: 5;
}
.hotel_1_info_2{
......@@ -375,6 +383,8 @@ div{
font-size: 30px;
line-height: 30px;
color: #222222;
position: relative;
z-index: 5;
}
.hotel_1_info_2_bottom>.hotel_1_info_2_bottom_right>div:nth-child(2){
margin: 12px 0;
......@@ -434,6 +444,8 @@ div{
font-size: 30px;
line-height: 30px;
color: #222222;
position: relative;
z-index: 5;
}
.hotel_2_info_1>.hotel_2_info_1_content>div:nth-child(2){
margin: 12px 0;
......@@ -452,6 +464,8 @@ div{
font-size: 16px;
line-height: 25px;
color: #535353;
position: relative;
z-index: 5;
}
.hotel_2_info_1>.hotel_2_info_1_img{
......@@ -617,6 +631,8 @@ div{
font-size: 30px;
line-height: 30px;
color: #222222;
position: relative;
z-index: 5;
}
.hotel_2_info_2_top>.hotel_2_info_2_top_right>div:nth-child(2){
margin: 12px 0;
......@@ -635,6 +651,8 @@ div{
font-size: 16px;
line-height: 25px;
color: #535353;
position: relative;
z-index: 5;
}
.hotel_2_info_2>.hotel_2_info_2_bottom{
......@@ -721,6 +739,8 @@ div{
font-family: SimSun;
font-size: 52px;
color: #000000;
position: relative;
z-index: 5;
}
.viewSpot_1_header>.viewSpot_1_header_title>div:nth-child(1)>div:nth-child(2){
display: inline-block;
......@@ -733,6 +753,8 @@ div{
font-family: SimSun;
font-size: 70px;
color: #000000;
position: relative;
z-index: 5;
}
.viewSpot_1_header>.viewSpot_1_header_title>div:nth-child(1)>div:nth-child(3){
display: inline-block;
......@@ -741,6 +763,8 @@ div{
font-family: SimSun;
font-size: 52px;
color: #000000;
position: relative;
z-index: 5;
}
.viewSpot_1_header>.viewSpot_1_header_title>div:nth-child(2){
margin: auto;
......@@ -763,6 +787,8 @@ div{
text-align: center;
font-family: SimSun;
font-size: 14px;
position: relative;
z-index: 5;
}
.viewSpot_1_header>.viewSpot_1_header_title>div:nth-child(2)>img:nth-child(3){
position: absolute;
......@@ -855,6 +881,8 @@ div{
font-size: 30px;
line-height: 30px;
color: #222222;
position: relative;
z-index: 5;
}
.viewSpot_1_info_1_info>.viewSpot_1_info_1_info_right>div:nth-child(2){
margin: 10px 0 0 0;
......@@ -1020,6 +1048,8 @@ div{
font-size: 30px;
line-height: 30px;
color: #222222;
position: relative;
z-index: 5;
}
.viewSpot_1_info_2_bottom>.viewSpot_1_info_2_bottom_right>div:nth-child(2){
margin: 12px 0;
......@@ -1038,6 +1068,8 @@ div{
font-size: 16px;
line-height: 25px;
color: #535353;
position: relative;
z-index: 5;
}
/* 景点2 */
......@@ -1101,6 +1133,8 @@ div{
font-size: 30px;
line-height: 30px;
color: #222222;
position: relative;
z-index: 5;
}
.viewSpot_2_info_1_info>.viewSpot_2_info_1_info_right>div:nth-child(2){
width: 100%;
......@@ -1261,6 +1295,8 @@ div{
font-size: 30px;
line-height: 30px;
color: #222222;
position: relative;
z-index: 5;
}
.viewSpot_2_info_2>.viewSpot_2_info_2_info_1>div:nth-child(2){
width: 100%;
......@@ -1298,6 +1334,8 @@ div{
font-size: 30px;
line-height: 30px;
color: #222222;
position: relative;
z-index: 5;
}
.viewSpot_2_info_2>.viewSpot_2_info_2_info_2>div:nth-child(2){
display: inline-block;
......@@ -1338,6 +1376,8 @@ div{
font-size: 30px;
line-height: 30px;
color: #222222;
position: relative;
z-index: 5;
}
.viewSpot_2_info_2>.viewSpot_2_info_2_info_3>div:nth-child(2){
width: 100%;
......@@ -1550,6 +1590,8 @@ div{
font-family: SimSun;
font-size: 52px;
color: #000000;
position: relative;
z-index: 5;
}
.restaurant_1_header>.restaurant_1_header_title>div:nth-child(1)>div:nth-child(2){
display: inline-block;
......@@ -1562,6 +1604,8 @@ div{
font-family: SimSun;
font-size: 70px;
color: #000000;
position: relative;
z-index: 5;
}
.restaurant_1_header>.restaurant_1_header_title>div:nth-child(1)>div:nth-child(3){
display: inline-block;
......@@ -1570,6 +1614,8 @@ div{
font-family: SimSun;
font-size: 52px;
color: #000000;
position: relative;
z-index: 5;
}
.restaurant_1_header>.restaurant_1_header_title>div:nth-child(2){
margin: auto;
......@@ -1592,6 +1638,8 @@ div{
text-align: center;
font-family: SimSun;
font-size: 14px;
position: relative;
z-index: 5;
}
.restaurant_1_header>.restaurant_1_header_title>div:nth-child(2)>img:nth-child(3){
position: absolute;
......@@ -1684,6 +1732,8 @@ div{
font-size: 30px;
line-height: 30px;
color: #222222;
position: relative;
z-index: 5;
}
.restaurant_1_info_1_info>.restaurant_1_info_1_info_right>div:nth-child(2){
margin: 10px 0 0 0;
......@@ -1841,6 +1891,8 @@ div{
font-size: 30px;
line-height: 30px;
color: #222222;
position: relative;
z-index: 5;
}
.restaurant_1_info_2_right_bottom>.restaurant_1_info_2_right_bottom_right>div:nth-child(2){
margin: 12px 0;
......
......@@ -5,14 +5,15 @@
text-align: center;
font-weight: bold;
margin-top:10px;
font-size:16px;
}
.Bus_Content{
width:800px;
width:100%;
height:auto;
margin:auto;
}
.Bus_detailTable {
width: 100%;
width: 800px;
font-size: 12px;
color: #333;
margin: 10px auto;
......@@ -24,11 +25,14 @@
.Bus_detailTable td {
border: 1px solid #d1d1d1;
padding: 3px 10px;
font-size:16px;
}
.Bus_detailTable th {
background-color: #fff;
border: 1px solid #d1d1d1;
font-size:16px;
font-weight:bold;
}
.txLeft{
text-align: left;
......@@ -42,6 +46,9 @@
.totalTabal td{
height:33px;
}
/* body{
min-width: 100%!important;
} */
</style>
<template>
......@@ -79,7 +86,7 @@
</tr>
</tbody>
</table>
<table class="Bus_detailTable totalTabal" style="page-break-before: always;margin: 0px;">
<table class="Bus_detailTable totalTabal" style="border:0px;page-break-before:always;margin:0 auto;">
<tr>
<td class="txRight" colspan="4">
<div style="width:275px;text-align:right;float:right;">{{Year}}{{Month}}月应付公社车资:</div>
......@@ -105,7 +112,7 @@
</tr>
</table>
<table class="Bus_detailTable" v-for="item in dataList" style="margin: 0px;page-break-before: always;">
<table class="Bus_detailTable" v-for="item in dataList" style="margin: 5px auto;border:0px;page-break-before:always;">
<tr>
<th>做账主体</th>
<th width="200">团号</th>
......@@ -164,11 +171,10 @@
getList(){
this.apipost('bus_get_CarfareApportionExport',this.msg, res => {
if(res.data.resultCode == 1) {
console.log(res,'res');
this.dataList = res.data.data.RObj;
this.msg.CurrName = res.data.data.CurrName;
this.TotalJan = res.data.data.TotalStatistics.TSumOMoney;
this.TotalCn = res.data.data.TotalStatistics.TSumMoney
this.TotalCn = res.data.data.TotalStatistics.TSumMoney;
}else{
this.Error(res.data.message);
}
......
......@@ -236,14 +236,19 @@
</li>
<li
v-if="ComplainInfo.DisposeStatus===4&&(getLocalStorage().EmployeeId===ComplainDetial[ComplainDetial.length-1].CreateBy||authority.indexOf('S_Complain_Finance')!=-1)">
<span>单据详情</span>
<span>赔偿列表</span>
<span v-for="compensation in ComplainCompensation" class="CD_dealResult" href="javascript:void(0)"
@click="setFinance(compensation)">{{compensation.CompensateMoney}}</span>
</li>
<li
v-if="ComplainInfo.DisposeStatus===4&&getLocalStorage().EmployeeId===ComplainDetial[ComplainDetial.length-1].CreateBy">
</li>
<li>{{ComplainInfo.Description}}</li>
<li></li>
</ul>
<ul>
<li style="height:auto;line-height: 20px;padding:5px 0;">
<p>{{ComplainInfo.Description}}</p>
</li>
</ul>
</div>
<div class="CD_Conditions">
......
......@@ -1595,7 +1595,7 @@
<td colspan="4" class="groupTourOrder_remarks" style="height: 40px;">
<div>
<div><span>备注:</span>
<p><span
<p><span v-if="item.tsId>0">投诉单号:<a href="javascript:void(0);" @click="goUrlTS('ComplaintsDetail',item.tsId,item.orderId,'投诉详情')">{{item.tsId}}</a> ;</span><span
v-if='item.clientSource==1&&item.brandName!=""'>{{item.brandName}}订单 {{item.platformOrder}};</span>{{item.remarks}}
</p></div>
<div>
......@@ -1962,6 +1962,18 @@
}
},
methods: {
//跳转
goUrlTS (path, id, orderId, title) {
this.$router.push({
name: path,
query: {
'id': id,
'orderId': orderId,
blank: 'y',
tab: title
}
})
},
getItem (obj) {
this.checkedObj = obj
},
......
......@@ -1046,20 +1046,20 @@
</el-form-item>
</el-col>
<el-col :span="4">
<!-- <el-form-item label="成交单价" prop="Unit_Price">
<el-input v-model='addMsg.Unit_Price' @keyup.native="checkPrice(addMsg,'Unit_Price');getTotalPrice()" ></el-input>
</el-form-item> -->
<el-form-item label="成交单价" prop="Unit_Price">
<el-input v-model='addMsg.Unit_Price' @keyup.native="checkPrice(addMsg,'Unit_Price');getTotalPrice()" ></el-input>
</el-form-item>
<!-- <el-form-item label="成交单价" prop="Unit_Price">
<el-select v-model='addMsg.Unit_Price'
filterable :placeholder="$t('pub.pleaseSel')" @change="getTotalPrice()">
<el-option v-for="item in Unit_PriceList" :label='item.LessMoney' :value='item.ID' :key='item.ID'>
</el-option>
</el-select>
<!-- <el-input v-model='addMsg.Unit_Price' :disabled="true" @keyup.native="checkPrice(addMsg,'Unit_Price');getTotalPrice()"></el-input> -->
</el-form-item>
<el-form-item>
<p v-if="LessMoney==0" style="line-height: 18px; color: #E95252;">注:如果超出本团的最低让价,差价将由你来承担</p>
<p v-else="LessMoney>0" style="line-height: 18px; color: #E95252;">注:最多少价{{LessMoney}}元,如需少价更多请联系上级主管</p>
</el-form-item> -->
<el-form-item> <p v-if="LessMoney==0" style="line-height: 18px; color: #E95252;">注:如果超出本团的最低让价,差价将由你来承担</p>
<!-- <p v-if="LessMoney==0" style="line-height: 18px; color: #E95252;">注:如果超出本团的最低让价,差价将由你来承担</p>
<p v-else="LessMoney>0" style="line-height: 18px; color: #E95252;">注:最多少价{{LessMoney}}元,如需少价更多请联系上级主管</p> -->
</el-form-item>
</el-col>
</el-row>
......@@ -1616,7 +1616,7 @@
<tr>
<td colspan="4" class="groupTourOrder_remarks" style="height: 40px;">
<div>
<div><span>备注:</span><p><span v-if='item.clientSource==1&&item.brandName!=""'>{{item.brandName}}订单 {{item.platformOrder}};</span>{{item.remarks}}</p></div>
<div><span>备注:</span><p><span v-if="item.tsId>0">投诉单号:<a href="javascript:void(0);" @click="goUrlTS('ComplaintsDetail',item.tsId,item.orderId,'投诉详情')">{{item.tsId}}</a> ;</span><span v-if='item.clientSource==1&&item.brandName!=""'>{{item.brandName}}订单 {{item.platformOrder}};</span>{{item.remarks}}</p></div>
<div>
<!-- <span>{{item.remarksName}}&ensp;{{item.rematksTime}}</span> -->
<el-popover width="600" placement="bottom-end" trigger="click">
......@@ -2305,6 +2305,18 @@ export default {
}
},
methods: {
//跳转
goUrlTS (path, id, orderId, title) {
this.$router.push({
name: path,
query: {
'id': id,
'orderId': orderId,
blank: 'y',
tab: title
}
})
},
maxCommissionMinusRate: function () {
this.TCMsg.CommissionMinusRate = this.TCMsg.CommissionMinusRate.replace(/[^\.\d]/g,'');
this.TCMsg.CommissionMinusRate = this.TCMsg.CommissionMinusRate.replace('.','');
......
......@@ -933,7 +933,7 @@
CommissionShareMoney: '0',
OrderForm: '1',
SonControlID: '-1',
IsShowMessagesMoney: '1'
IsShowMessagesMoney: '2'
},
employeeMsg: {
BranchId: '-1',
......@@ -1704,7 +1704,7 @@
this.ScenicRefundMoney = 0;
this.addMsg.CommissionSharePeople = '-1'
this.addMsg.CommissionShareMoney = '0'
this.addMsg.IsShowMessagesMoney = '1'
this.addMsg.IsShowMessagesMoney = '2'
this.remarkMsg = {
zc: '',
bzc: '',
......
......@@ -1091,17 +1091,17 @@
</el-col>
<el-col :span="5">
<el-form-item label="成交单价" prop="Unit_Price">
<el-select v-model='addMsg.Unit_Price'
<!-- <el-select v-model='addMsg.Unit_Price'
filterable :placeholder="$t('pub.pleaseSel')" @change="getTotalPrice()">
<el-option v-for="item in Unit_PriceList" :label='item.LessMoney' :value='item.ID' :key='item.ID'>
</el-option>
</el-select>
<!-- <el-input v-model='addMsg.Unit_Price' :disabled="true" @keyup.native="checkPrice(addMsg,'Unit_Price');getTotalPrice()"></el-input> -->
</el-select> -->
<el-input v-model='addMsg.Unit_Price' :disabled="isChecked" @keyup.native="checkPrice(addMsg,'Unit_Price');getTotalPrice()"></el-input>
</el-form-item>
<el-form-item>
<p v-if="LessMoney==0" style="line-height: 18px; color: #E95252;">注:如果超出本团的最低让价,差价将由你来承担</p>
<p v-else="LessMoney>0" style="line-height: 18px; color: #E95252;">注:最多少价{{LessMoney}}元,如需少价更多请联系上级主管</p>
<p style="line-height: 18px; color: #E95252;">注:如果超出本团的最低让价,差价将由你来承担</p>
<!-- <p v-if="LessMoney==0" style="line-height: 18px; color: #E95252;">注:如果超出本团的最低让价,差价将由你来承担</p>
<p v-else="LessMoney>0" style="line-height: 18px; color: #E95252;">注:最多少价{{LessMoney}}元,如需少价更多请联系上级主管</p> -->
</el-form-item>
</el-col>
</el-row>
......@@ -1707,6 +1707,7 @@
<div class="clearfix RL-MARK">
<span class="RL-remarkTitle">备注:</span>
<span class="RL-redType RL-remarkCon">
<span v-if="childItem.TsId>0">投诉单号:<a href="javascript:void(0);" @click="goUrlTS('ComplaintsDetail',childItem.TsId,childItem.OrderId,'投诉详情')">{{childItem.TsId}}</a> ;</span>
<span v-if='childItem.ClientSource==1&&childItem.BrandName!=""'>{{childItem.BrandName}}订单
{{childItem.PlatformOrder}};</span>
{{childItem.Remarks}}
......@@ -2488,6 +2489,18 @@ import updateSalesMan from "../../commonPage/updateSalesMan.vue";
updateSalesMan:updateSalesMan
},
methods: {
//跳转
goUrlTS (path, id, orderId, title) {
this.$router.push({
name: path,
query: {
'id': id,
'orderId': orderId,
blank: 'y',
tab: title
}
})
},
maxCommissionMinusRate: function () {
this.TCMsg.CommissionMinusRate = this.TCMsg.CommissionMinusRate.replace(/[^\.\d]/g,'');
this.TCMsg.CommissionMinusRate = this.TCMsg.CommissionMinusRate.replace('.','');
......
......@@ -8,8 +8,8 @@
<div class="travelControlTrip detail-box">
<div class="trip_cover" v-show="pdfLoading" v-loading="pdfLoading"></div>
<input type="button" class="travelControlTripBtn" value="下载PDF" @click="toPDF(orderMsg.startDate + orderMsg.lineteamName+orderMsg.dayNum+'日游')" />
<input style="display:none;" type="button" class="travelControlTripBtn" value="下载WORD" @click="ToWord(orderMsg.startDate + orderMsg.lineteamName+orderMsg.dayNum+'日游')" />
<!-- <input type="button" class="travelControlTripBtn" value="下载Word" @click="toWord(orderMsg.startDate + orderMsg.lineteamName+orderMsg.dayNum+'日游')" /> -->
<input type="button" style="width: auto !important;display:none" class="travelControlTripBtn" value="下载手机版WORD" @click="gernalFeature()" />
<!-- ToWord(orderMsg.startDate + orderMsg.lineteamName+orderMsg.dayNum+'日游') -->
<!--&&isopOperation HK 注释 可以让销售修改基本信息-->
<input type="button" v-if="orderId>0" class="travelControlTripBtn" value="修改信息" @click="editMsgShow=true" />
<div id="pdfNode">
......@@ -219,7 +219,7 @@
<div class="short-line"></div>
<div class="english-title">Trip characteristics</div>
</div>
<div v-html="feature.featureHtml"></div>
<div v-html="feature.featureHtml" id="gernalCanvas"></div>
</div>
<div id="teamacitvy"> </div>
</div>
......@@ -642,6 +642,86 @@
}, 2000)
},
methods: {
gernalFeature(){
this.pdfLoading = true;
let tcid = this.$route.query.tcid;
let UploadUrl = this.domainManager().UploadUrl
$.ajax({
url: UploadUrl + '/Upload/RemoveImage?fileType=1&fileLimit=5&&filePath=Feature/' + tcid,
type: "POST",
datatype:"jsonP",
success: function (data) {
// console.log("上传成功",data);
},
error: function () {
// console.log("上传失败");
}
});
if (this.showType===4 || this.showType===5) {
document.querySelector("#gernalCanvas").querySelectorAll('img').forEach(x => {
let src = x.src
src = src.replace('https:','http:')
if(src.indexOf('http')!=-1){
x.setAttribute('crossOrigin','anonymous')
}
x.src = src
});
let cName=''
if(this.showType==4){
cName='.feature-box'
}else if(this.showType==5){
cName='.travle_page'
}
if(cName!=''){
let allNum = 1
document.querySelectorAll(cName).forEach((x, index) => {
html2Canvas(x,{
useCORS:true,
scale:0.7,
backgroundColor:'#FFFFFF',
}).then((canvas) => {
if(canvas){
var context = canvas.getContext('2d')
context.mozImageSmoothingEnabled = false
context.webkitImageSmoothingEnabled = false
context.msImageSmoothingEnabled = false
context.imageSmoothingEnabled = false
var image = new Image();
image.src = canvas.toDataURL("image/png");
// document.body.appendChild(image) upload.oytour.com
$.ajax({
url: UploadUrl + '/Upload/UploadBase64?fileType=1&fileLimit=5&&filePath=Feature/' + tcid,
type: "POST",
data: {
myfile: image.src,
fileIndex: index
},
datatype:"jsonP",
success: function (data) {
// console.log("上传成功",data);
},
error: function () {
// console.log("上传失败");
}
});
// this.uploadImg(tcid,{'myfile': image.src}, res=>{
// console.log(res)
// }, err=>{
// console.log("GHJK",err);
// })
if (allNum!==document.querySelectorAll(cName).length) {
allNum += 1
} else {
this.ToWord(this.orderMsg.startDate + this.orderMsg.lineteamName + this.orderMsg.dayNum + '日游')
}
}
});
});
}
}else {
this.ToWord(this.orderMsg.startDate + this.orderMsg.lineteamName + this.orderMsg.dayNum + '日游')
}
},
//保存基础数据
submitForm: function () {
this.editForm.travelOrderFlightList.forEach(x => {
......@@ -826,9 +906,36 @@
cityId: this.$route.query.cityId,
tcid: this.$route.query.tcid,
orderId: this.$route.query.orderId,
FileName:title
FileName:title,
//是否显示基础信息
isShowBase:this.vshowA?1:0,
//是否显示航班
isShowFlight:this.vshowB?1:0,
//是否显示行程特色
isShowFeature:this.vshowC?1:0,
//自费、费用包含、费用不含
isShowFee:this.vshowE?1:0,
//购物说明,购物安排
isShowShop:this.vshowF?1:0,
//重要提示、温馨提示
isShowTip:this.vshowG?1:0,
//是否显示同行备注
isShowB2B:this.vshowI?1:0,
//是否显示行程
isShowTrip:this.vshowK?1:0,
//是否显示标题
isShowTitle:this.vshowL?1:0,
//是否显示旅客名单
isShowGuest:this.vshowM?1:0,
//是否显示紧急联系人
isShowMan:this.vshowLLR?1:0,
//是否显示团号
isShowTCNUM:this.vshowTCNUM?1:0
};
this.GetLocalFile("DownLoadTripWord", msg,title+ ".doc");
this.GetLocalFile("DownLoadTripWord", msg,title+ ".doc", res=>{
this.pdfLoading = false
});
},
DateDiff(sDate1, sDate2) { //sDate1和sDate2是2002-12-18格式
var aDate, oDate1, oDate2, iDays
......
......@@ -1354,7 +1354,7 @@
let deleteDataList = JSON.parse(JSON.stringify(this.FeatureData.FeatureHtmlJsonDelete));
this.deleteArray = deleteDataList==="" ? this.deleteArray : deleteDataList;
console.log("dataList",dataList,!this.$route.query.configId,dataList.switch4or5)
if (!this.$route.query.configId || (this.$route.query.configId && dataList.switch4or5) ){
if (!this.$route.query.configId || (this.$route.query.configId && dataList.switch4or5) || (this.FeatureData.FeatureType !== 4 || this.FeatureData.FeatureType !== 5) ){
for (let i = 0; i < dataList.DayList.length; i++) { //组装数据
let restaurantObj = travelFeatureTwo.DinnerInit(i, dataList.DayList) // 餐饮
let hotelObj = travelFeatureTwo.HotelInit(i, dataList.DayList) // 酒店
......
......@@ -10,8 +10,8 @@
border-left: 1px solid #d1d1d1;
border-right: 1px solid #d1d1d1;
font-size: 14px;
/* width:100%; */
min-width: 5752px;
width:100%;
min-width: 1500px;
padding-bottom: 5px;
}
......@@ -24,29 +24,12 @@
border-right: 1px solid #d1d1d1;
position: relative;
background-color: #E6E6E6;
width:250px;
}
th[class=first]:before {
content: "";
position: absolute;
width: 1px;
height: 252px;
/*这里需要自己调整,根据td的宽度和高度*/
top: 0;
left: 0;
background-color: #d1d1d1;
display: block;
transform: rotate(-81deg);
/*这里需要自己调整,根据线的位置*/
transform-origin: top;
}
.LP_table td {
border-bottom: 1px solid #d1d1d1;
border-right: 1px solid #d1d1d1;
text-align: center;
padding: 5px;
min-width: 250px;
padding: 5px 0;
}
.LP_table .el-button--primary {
......@@ -64,51 +47,88 @@
right: 30px;
top: 5px;
}
.comLessDiv{
width:100%;
height:40px;
margin-top:5px;
padding-bottom:5px;
border-bottom:1px solid #d1d1d1;
}
.comLessDiv:last-child{
border:0;
padding-bottom:0;
}
.addLessPrice{
margin-left:10px;
color:seagreen;
cursor: pointer;
}
.lessBtn{
margin-top:5px;
}
</style>
<template>
<div>
<div class="query-box">
<ul>
<li>
<input type='button' class="normalBtn" @click="AddItem()" value="新增"></input>
</li>
</ul>
</div>
<div class="LM_mainDiv">
<!--保存-->
<table border="0" cellspacing="0" cellpadding="0" class="LP_table" v-loading="this.loading">
<tr>
<th class="first">
<span class="Lp_role">岗位</span>
<span class="Lp_company">公司</span>
</th>
<template v-for="item in BranchList">
<th>
{{item.BName}}
</th>
</template>
<th>
操作
</th>
<th width="200">公司</th>
<th width="350">线路/系列</th>
<th>所有人</th>
<th>部门主管</th>
<th>分公司总经理</th>
<th>当团op</th>
<th width="200">操作</th>
</tr>
<tr v-for="(item,index) in PageData">
<tr v-for="(item,index) in dataList">
<td>
{{item.BName}} <i class="iconfont icon-bumenguanli-tianjia addLessPrice" @click="addLessPrice(item)"></i>
</td>
<td>
<el-select :placeholder="$t('pub.pleaseSel')" class="w150" v-model="item.RoleId">
<el-option label="不限" :value="0"></el-option>
<el-option v-for="item in RoleList" :label="item.PostName" :value="item.PostId" :key="item.PostId"></el-option>
<div v-for="subItem in item.LessPriceList" class="comLessDiv">
<el-select class='w150' v-model="subItem.LineId" filterable :placeholder="$t('pub.pleaseSel')" @change="getLineTeamList(subItem),resetLineTeamId(subItem)">
<el-option label="不限" :value='commonSelect'></el-option>
<el-option v-for="item in LineList" :label='item.LineName' :value='item.LineID' :key='item.LineID'>
</el-option>
</el-select>
<el-select class='w150' v-model="subItem.LineTeamId" filterable :placeholder="$t('pub.pleaseSel')">
<el-option label="不限" :value='commonSelect'></el-option>
<el-option v-for="sitem in subItem.LineTeamList" :label='sitem.LtName' :value='sitem.LtID' :key='sitem.LtID'>
</el-option>
</el-select>
</div>
</td>
<template v-for="subItem in item.DetailExtList">
<td>
<el-input class="w80" placeholder="少价金額" v-model="subItem.LessMoney"></el-input>
<el-input class="w80" placeholder="减少提成百分比" v-model="subItem.LessPercent"></el-input>
<div v-for="subItem in item.LessPriceList" class="comLessDiv">
<el-input class="w80" placeholder="少价金額" v-model="subItem.LessMoney" @keyup.native="checkPrice(subItem,'LessMoney')"></el-input>
<el-input class="w80" placeholder="减少提成百分比" v-model="subItem.LessPercent" @keyup.native="checkPrice(subItem,'LessPercent')"></el-input>
</div>
</td>
</template>
<td>
<input type='button' class="normalBtn" @click="SaveLessPrice(item)" value="保存"></input>
<input type='button' class="normalBtn" @click="RemoveItem(item,index)" value="删除"></input>
<div v-for="subItem in item.LessPriceList" class="comLessDiv">
<el-input class="w80" placeholder="少价金額" v-model="subItem.DeptLessMoney" @keyup.native="checkPrice(subItem,'DeptLessMoney')"></el-input>
<el-input class="w80" placeholder="减少提成百分比" v-model="subItem.DeptLessPercent" @keyup.native="checkPrice(subItem,'DeptLessPercent')"></el-input>
</div>
</td>
<td>
<div v-for="subItem in item.LessPriceList" class="comLessDiv">
<el-input class="w80" placeholder="少价金額" v-model="subItem.FilialeLessMoney" @keyup.native="checkPrice(subItem,'FilialeLessMoney')"></el-input>
<el-input class="w80" placeholder="减少提成百分比" v-model="subItem.FilialeLessPercent" @keyup.native="checkPrice(subItem,'FilialeLessPercent')"></el-input>
</div>
</td>
<td>
<div v-for="subItem in item.LessPriceList" class="comLessDiv">
<el-input class="w80" placeholder="少价金額" v-model="subItem.OPLessMoney" @keyup.native="checkPrice(subItem,'OPLessMoney')"></el-input>
<el-input class="w80" placeholder="减少提成百分比" v-model="subItem.OPLessPercent" @keyup.native="checkPrice(subItem,'OPLessPercent')"></el-input>
</div>
</td>
<td>
<div v-for="(subItem,subIndex) in item.LessPriceList" class="comLessDiv">
<input type='button' class="normalBtn lessBtn" @click="SaveLessPrice(subItem,index)" value="保存"></input>
<input type='button' class="normalBtn lessBtn" @click="RemoveItem(item,subItem,subIndex)" value="删除"></input>
</div>
</td>
</tr>
</table>
......@@ -120,47 +140,25 @@
data() {
return {
//分公司列表
BranchList: [],
qMsg: {
PageIndex: 1,
PageSize: 100
},
PageData: [],
dataList: [],
//角色列表
RoleList: [],
loading:false
loading:false,
LineList: [],
commonSelect:0,
};
},
methods: {
AddItem() {
var obj = {
Id: 0,
RoleId: 0,
DetailExtList: [],
};
this.BranchList.forEach(item => {
obj.DetailExtList.push({
Id: 0,
ManagerId: 0,
RB_Branch_Id: item.Id,
LessMoney: 0,
LessPercent: 0
});
});
if (this.PageData == null) {
this.PageData = [];
}
this.PageData.push(obj);
},
//保存少价管理
SaveLessPrice(item) {
SaveLessPrice(subItem) {
subItem.LineTeamList=[];
this.apipost(
"lessprice_post_Set", item,
"lessprice_post_Set", subItem,
res => {
if (res.data.resultCode == 1) {
this.Success("操作成功!");
this.GetList();
} else {
this.Success(res.data.message);
this.getList();
}else{
this.Error(res.data.message);
}
},
......@@ -168,61 +166,103 @@
);
},
//获取列表
GetList() {
getList() {
this.loading = true;
this.apipost(
"lessprice_get_GetPageList", this.qMsg,
var that=this;
that.apipost(
"lessprice_get_GetPageList", {},
res => {
this.loading = false;
that.loading = false;
if (res.data.resultCode == 1) {
this.BranchList = res.data.data.branchList;
this.PageData = res.data.data.DataList.pageData;
var data = res.data.data;
data.forEach(x=>{
x.LessPriceList.forEach(y=>{
that.getLineTeamList(y);
})
})
that.dataList=data;
}else{
that.Error(res.data.message);
}
},
err => {}
);
},
//获取列表
GetRoleList() {
let userInfo=this.getLocalStorage();
this.apipost(
"admin_get_PostGetList", {"RB_Group_Id":userInfo.RB_Group_id},
res => {
if (res.data.resultCode == 1) {
this.RoleList = res.data.data;
RemoveItem(item,subItem, index) {
if(subItem.Id==0){
item.LessPriceList.splice(index,1);
return;
}
},
err => {}
);
},
//获取列表
RemoveItem(item, index) {
var that = this;
this.Confirm("是否删除此少价信息?", function () {
if (item.Id > 0) {
if (subItem.Id > 0) {
that.apipost(
"lessprice_post_Remove", {
ID: item.Id
ID: subItem.Id
},
res => {
if (res.data.resultCode == 1) {
that.Success("操作成功!");
that.GetList();
that.getList();
} else {
that.Error(res.data.message);
}
},
err => {}
);
} else {
that.PageData.splice(index, 1);
}
});
},
//获取线路列表
getLineList() {
this.apipost("line_post_GetAllList", {}, res => {
if (res.data.resultCode == 1) {
this.LineList = res.data.data;
}
});
},
//获取系列列表
getLineTeamList(subItem) {
this.apipost("team_post_GetList", {
lineID: subItem.LineId,
isTOOP: 1
}, res => {
if (res.data.resultCode == 1) {
subItem.LineTeamList = res.data.data;
}
});
},
//系列重置默认不限
resetLineTeamId(subItem){
subItem.LineTeamId = 0;
},
//点击添加
addLessPrice(item){
var obj = {
DeptLessMoney:0,
DeptLessPercent:0,
DetailExtList:'',
FilialeLessMoney:0,
FilialeLessPercent:0,
Id:0,
LessMoney:0,
LessPercent:0,
LineId:0,
LineTeamId:0,
OPLessMoney:0,
OPLessPercent:0,
RB_Branch_Id:item.Id,
RB_Group_Id:0,
LineTeamList:[],
}
item.LessPriceList.push(obj);
}
},
mounted() {
this.GetRoleList();
this.GetList();
this.getLineList();
this.getList();
},
};
......
......@@ -115,13 +115,14 @@ export default {
Vue.prototype.domainManager = function () {
let domainUrl = '';
let locationName = window.location.hostname;
// domainUrl = "http://192.168.2.214:8082"; //214主域名
domainUrl = "http://127.0.0.1"; //214主域名
// 127.0.0.12
// domainUrl = "http://192.168.2.88"; //王悦主域名
// domainUrl = "http://127.0.0.1"; //214主域名
// domainUrl = "http://192.168.2.16:8083"; //王悦主域名
// domainUrl = "http://127.0.0.1"; //214主域名
// domainUrl = "http://192.168.2.65:8025"; //吴春主域名
domainUrl = "http://192.168.2.106:8082"; //罗超主域名
// domainUrl = "http://192.168.2.106:8082"; //罗超主域名
if (locationName.indexOf('oytour')!==-1) {
domainUrl = "https://reborn.oytour.com";
}else if (locationName.indexOf('viitto')!==-1) {
......@@ -147,7 +148,8 @@ export default {
//google地图Url
GoogleMapUrl: "http://ditu.google.cn/maps/api/js?key=AIzaSyAZ5MIfzicStzKbIkbI3RcBBeZBjQFKsp0&sensor=false&language=zh-CN",
//google地图图片地址
GoogleMapImageUrl: "http://super.oytour.com"
GoogleMapImageUrl: "http://super.oytour.com",
UploadUrl: "http://upload.oytour.com"
};
return obj;
},
......@@ -213,6 +215,15 @@ export default {
window.open('http://' + URL, '_blank');
}
}
Vue.prototype.uploadImg = function (tcID, msg, successCall, faildCall) {
var apiurl = this.domainManager().Upload + '/Upload/UploadBase64?fileType=1&fileLimit=5&&filePath=Freature/TCID' + tcID;
this.$http.post(apiurl, msg, {
datatype:"jsonP",
}).then(res => {
successCall(res);
}, faildCall)
}
//HTTP提交数据
Vue.prototype.apipost = function (cmd, msg, successCall, faildCall) {
if (msg == null || msg == "") {
......@@ -267,7 +278,7 @@ export default {
},
//下载文件
Vue.prototype.GetLocalFile = function (cmd, msg, fileName) {
Vue.prototype.GetLocalFile = function (cmd, msg, fileName, successCall) {
var apiurl = this.domainManager().LocalFileStreamDownLoadUrl;
var timestamp = (new Date()).valueOf();
if (!localStorage.userInfo && localStorage.userInfo != "" && this.$route.path.toLowerCase() != "/login") {
......@@ -302,6 +313,7 @@ export default {
link.setAttribute("download", fileName);
document.body.appendChild(link);
link.click();
successCall(res);
}).catch(function (res) {});
},
Vue.prototype.getCookieItem = function () {
......
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