Commit 490e77d1 authored by huangyuanyuan's avatar huangyuanyuan
parents 742779b8 f8a155c9
...@@ -87,16 +87,19 @@ ...@@ -87,16 +87,19 @@
{{item.GuideName}} {{item.GuideName}}
</td> </td>
<td class="more_td" :rowspan="2*outItem.StaticsReportList.length" v-if='index==0'> <td class="more_td" :rowspan="2*outItem.StaticsReportList.length" v-if='index==0'>
<div v-for="subItem in item.CommonReport.PriceShopList">{{ subItem.ShopDetailsList!=null && subItem.ShopDetailsList.length>0? subItem.ShopDetailsList[0].ShopNum:""}}</div> <div v-for="subItem in item.CommonReport.PriceShopList">{{ subItem.ShopDetailsList!=null &&
subItem.ShopDetailsList.length>0? subItem.ShopDetailsList[0].ShopNum:""}}</div>
</td> </td>
<td class="more_td" :rowspan="2*outItem.StaticsReportList.length" v-if='index==0'> <td class="more_td" :rowspan="2*outItem.StaticsReportList.length" v-if='index==0'>
<div v-for="subItem in item.CommonReport.PriceShopList">{{subItem.ShopName}}</div> <div v-for="subItem in item.CommonReport.PriceShopList">{{subItem.ShopName}}</div>
</td> </td>
<td class="more_td" :rowspan="2*outItem.StaticsReportList.length" v-if='index==0'> <td class="more_td" :rowspan="2*outItem.StaticsReportList.length" v-if='index==0'>
<div v-for="subItem in item.CommonReport.PriceShopList">{{ subItem.ShopDetailsList!=null && subItem.ShopDetailsList.length>0? subItem.ShopDetailsList[0].EnterTimeStr:""}}</div> <div v-for="subItem in item.CommonReport.PriceShopList">{{ subItem.ShopDetailsList!=null &&
subItem.ShopDetailsList.length>0? subItem.ShopDetailsList[0].EnterTimeStr:""}}</div>
</td> </td>
<td class="more_td" :rowspan="2*outItem.StaticsReportList.length" v-if='index==0'> <td class="more_td" :rowspan="2*outItem.StaticsReportList.length" v-if='index==0'>
<div v-for="subItem in item.CommonReport.PriceShopList">{{subItem.ShopDetailsList!=null && subItem.ShopDetailsList.length>0? subItem.ShopDetailsList[0].EnterNum:""}}</div> <div v-for="subItem in item.CommonReport.PriceShopList">{{subItem.ShopDetailsList!=null &&
subItem.ShopDetailsList.length>0? subItem.ShopDetailsList[0].EnterNum:""}}</div>
</td> </td>
<td class="more_td" :rowspan="2*outItem.StaticsReportList.length" v-if='index==0'> <td class="more_td" :rowspan="2*outItem.StaticsReportList.length" v-if='index==0'>
<template v-for="subItem in item.CommonReport.PriceShopList"> <template v-for="subItem in item.CommonReport.PriceShopList">
...@@ -110,7 +113,8 @@ ...@@ -110,7 +113,8 @@
</td> </td>
<td class="more_td" :rowspan="2*outItem.StaticsReportList.length" v-if='index==0'> <td class="more_td" :rowspan="2*outItem.StaticsReportList.length" v-if='index==0'>
<!--佣金领取状况--> <!--佣金领取状况-->
<div v-for="subItem in item.CommonReport.PriceShopList">{{subItem.ShopDetailsList!=null && subItem.ShopDetailsList.length>0? subItem.ShopDetailsList[0].CommissionStatusStr:""}}</div> <div v-for="subItem in item.CommonReport.PriceShopList">{{subItem.ShopDetailsList!=null &&
subItem.ShopDetailsList.length>0? subItem.ShopDetailsList[0].CommissionStatusStr:""}}</div>
</td> </td>
<td class="more_td" :rowspan="2*outItem.StaticsReportList.length" v-if='index==0'> <td class="more_td" :rowspan="2*outItem.StaticsReportList.length" v-if='index==0'>
<!--凭证上传--> <!--凭证上传-->
...@@ -127,7 +131,8 @@ ...@@ -127,7 +131,8 @@
</td> </td>
<td class="more_td" :rowspan="2*outItem.StaticsReportList.length" v-if='index==0'> <td class="more_td" :rowspan="2*outItem.StaticsReportList.length" v-if='index==0'>
<!--导游佣金调整--> <!--导游佣金调整-->
<div v-for="subItem in item.CommonReport.PriceShopList">{{subItem.ShopDetailsList!=null && subItem.ShopDetailsList.length>0? subItem.ShopDetailsList[0].GuideCommission:""}}</div> <div v-for="subItem in item.CommonReport.PriceShopList">{{subItem.ShopDetailsList!=null &&
subItem.ShopDetailsList.length>0? subItem.ShopDetailsList[0].GuideCommission:""}}</div>
</td> </td>
<td class="more_td" :rowspan="2*outItem.StaticsReportList.length" v-if='index==0'> <td class="more_td" :rowspan="2*outItem.StaticsReportList.length" v-if='index==0'>
<template v-for="subItem in item.CommonReport.PriceShopList"> <template v-for="subItem in item.CommonReport.PriceShopList">
...@@ -137,15 +142,18 @@ ...@@ -137,15 +142,18 @@
</td> </td>
<td class="more_td" :rowspan="2*outItem.StaticsReportList.length" v-if='index==0'> <td class="more_td" :rowspan="2*outItem.StaticsReportList.length" v-if='index==0'>
<!--其余扣除(返佣余额)--> <!--其余扣除(返佣余额)-->
<div v-for="subItem in item.CommonReport.PriceShopList">{{subItem.ShopDetailsList!=null && subItem.ShopDetailsList.length>0? subItem.ShopDetailsList[0].OtherDeduct:""}}</div> <div v-for="subItem in item.CommonReport.PriceShopList">{{subItem.ShopDetailsList!=null &&
subItem.ShopDetailsList.length>0? subItem.ShopDetailsList[0].OtherDeduct:""}}</div>
</td> </td>
<td class="more_td" :rowspan="2*outItem.StaticsReportList.length" v-if='index==0'> <td class="more_td" :rowspan="2*outItem.StaticsReportList.length" v-if='index==0'>
<!--返佣总计(返佣余额)--> <!--返佣总计(返佣余额)-->
<div v-for="subItem in item.CommonReport.PriceShopList">{{subItem.ShopDetailsList!=null && subItem.ShopDetailsList.length>0? subItem.ShopDetailsList[0].BackTotalMoney:""}}</div> <div v-for="subItem in item.CommonReport.PriceShopList">{{subItem.ShopDetailsList!=null &&
subItem.ShopDetailsList.length>0? subItem.ShopDetailsList[0].BackTotalMoney:""}}</div>
</td> </td>
<td class="more_td" :rowspan="2*outItem.StaticsReportList.length" v-if='index==0'> <td class="more_td" :rowspan="2*outItem.StaticsReportList.length" v-if='index==0'>
<!--汇率--> <!--汇率-->
<div v-for="subItem in item.CommonReport.PriceShopList">{{subItem.ShopDetailsList!=null && subItem.ShopDetailsList.length>0? subItem.ShopDetailsList[0].DMCRate:""}}</div> <div v-for="subItem in item.CommonReport.PriceShopList">{{subItem.ShopDetailsList!=null &&
subItem.ShopDetailsList.length>0? subItem.ShopDetailsList[0].DMCRate:""}}</div>
</td> </td>
<td class="more_td" :rowspan="2*outItem.StaticsReportList.length" v-if='index==0'> <td class="more_td" :rowspan="2*outItem.StaticsReportList.length" v-if='index==0'>
<!--地接OP凭证--> <!--地接OP凭证-->
...@@ -154,8 +162,8 @@ ...@@ -154,8 +162,8 @@
v-if="img !== ''" style="cursor: pointer;">{{ '凭证' + (imgIndex + 1)}}</p> v-if="img !== ''" style="cursor: pointer;">{{ '凭证' + (imgIndex + 1)}}</p>
</div> </div>
</td> </td>
<td class="more_td" :rowspan="2*outItem.StaticsReportList.length" v-if='index==0' > <td class="more_td" :rowspan="2*outItem.StaticsReportList.length" v-if='index==0'>
<template v-for="subItem in item.CommonReport.PriceShopList" > <template v-for="subItem in item.CommonReport.PriceShopList">
<div> <div>
<!--subItem.ShopDetailsList--> <!--subItem.ShopDetailsList-->
<p style="cursor: pointer;color:blue;" @click="CreateBill(subItem.ShopDetailsList,outItem.StaticsReportList)">生成单据</p> <p style="cursor: pointer;color:blue;" @click="CreateBill(subItem.ShopDetailsList,outItem.StaticsReportList)">生成单据</p>
...@@ -313,7 +321,9 @@ ...@@ -313,7 +321,9 @@
}, },
//生成单据 //生成单据
CreateBill(ShopDetailsList, outItem) { CreateBill(ShopDetailsList, outItem) {
this.loading = true; var that = this;
this.Confirm('是否生成财务单据?', function () {
that.loading = true;
var array = []; var array = [];
outItem.forEach(subItem => { outItem.forEach(subItem => {
var obj = { var obj = {
...@@ -330,14 +340,16 @@ ...@@ -330,14 +340,16 @@
ShopDetailsList: ShopDetailsList, ShopDetailsList: ShopDetailsList,
LeaderGuide: array LeaderGuide: array
}; };
this.apipost('dmcstatistics_post_ShopCreateBill', billMsg, res => { that.apipost('dmcstatistics_post_ShopCreateBill', billMsg, res => {
this.loading = false; that.loading = false;
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.Success(res.data.message); that.Success(res.data.message);
} else { } else {
this.$message.error(res.data.message) that.Error(res.data.message);
} }
}, err => {}) }, err => {})
});
}, },
}, },
mounted() { mounted() {
......
...@@ -577,7 +577,7 @@ ...@@ -577,7 +577,7 @@
<div class="btmAddStore" :class="{'fillShow':fillShow}"> <div class="btmAddStore" :class="{'fillShow':fillShow}">
<div class="btmTitle">导入营销数据<span class="litTip">(红色边框代表未匹配到的数据)</span></div> <div class="btmTitle">导入营销数据<span class="litTip">(红色边框代表未匹配到的数据)</span></div>
<div style="height:250px;overflow-y: auto;"> <div style="height:250px;overflow-y: auto;">
<table class="impoTable" style="border-spacing: 0px 1px;"> <table class="impoTable" style="border-spacing: 0px 1px;" v-loading="tabLoading">
<thead> <thead>
<tr> <tr>
<th width="200">团号</th> <th width="200">团号</th>
...@@ -616,10 +616,10 @@ ...@@ -616,10 +616,10 @@
</el-option> </el-option>
</el-select> </el-select>
</td> </td>
<td>{{item.NowTotalPrice}}({{item.TotalPrice}}*{{item.Rate}})</td> <td>{{item.TotalPrice}}</td>
<td>{{item.NowGroupExtract}}({{item.GroupExtract}}*{{item.Rate}})</td> <td>{{item.GroupExtract}}</td>
<td>{{item.NowLeaderExtract}}({{item.LeaderExtract}}*{{item.Rate}})</td> <td>{{item.LeaderExtract}}</td>
<td>{{item.NowGuideExtract}}({{item.GuideExtract}}*{{item.Rate}})</td> <td>{{item.GuideExtract}}</td>
<td>{{item.Rate}}</td> <td>{{item.Rate}}</td>
<td :class="{'redType':item.CurrencyExist==-1}">{{item.Currency}}</td> <td :class="{'redType':item.CurrencyExist==-1}">{{item.Currency}}</td>
<td><span class="delInfo" @click="delInfo(index)">删除</span></td> <td><span class="delInfo" @click="delInfo(index)">删除</span></td>
...@@ -690,6 +690,8 @@ ...@@ -690,6 +690,8 @@
AddMsgProvinceList: [], AddMsgProvinceList: [],
//城市列表 //城市列表
AddMsgCityList: [], AddMsgCityList: [],
//表格Loading
tabLoading:false,
msg: { msg: {
pageIndex: 1, pageIndex: 1,
pageSize: 14, pageSize: 14,
...@@ -751,7 +753,6 @@ ...@@ -751,7 +753,6 @@
var imgUrl = this.domainManager().AliUrl + str; var imgUrl = this.domainManager().AliUrl + str;
this.imgArray.push(imgUrl); this.imgArray.push(imgUrl);
this.PicPathArray.push(str); this.PicPathArray.push(str);
// this.updatePic();
}); });
}, },
//更新购物店图片 //更新购物店图片
...@@ -773,7 +774,6 @@ ...@@ -773,7 +774,6 @@
delImg(index) { delImg(index) {
this.PicPathArray.splice(index, 1); this.PicPathArray.splice(index, 1);
this.imgArray.splice(index, 1); this.imgArray.splice(index, 1);
// this.updatePic();
}, },
handleCurrentChange(val) { handleCurrentChange(val) {
this.msg.pageIndex = val; this.msg.pageIndex = val;
...@@ -931,7 +931,6 @@ ...@@ -931,7 +931,6 @@
this.addMsg.BusinessHours = ""; this.addMsg.BusinessHours = "";
} }
this.addMsg.PicPath = this.PicPathArray.toString(); this.addMsg.PicPath = this.PicPathArray.toString();
// console.log("addMsg",this.addMsg);
this.apipost( this.apipost(
"Shopping_Post_Set", "Shopping_Post_Set",
this.addMsg, this.addMsg,
...@@ -953,7 +952,7 @@ ...@@ -953,7 +952,7 @@
ID: ID ID: ID
}; };
this.imgArray = []; this.imgArray = [];
this.PicPathArray=[]; this.PicPathArray = [];
this.titleInfo = "修改购物店"; this.titleInfo = "修改购物店";
this.apipost( this.apipost(
"Shopping_Post_Get", "Shopping_Post_Get",
...@@ -1051,35 +1050,35 @@ ...@@ -1051,35 +1050,35 @@
this.importData[index].infoShow = true; this.importData[index].infoShow = true;
}, },
delInfo(index) { delInfo(index) {
this.$confirm("是否删除?", "提示", { var that = this;
confirmButtonText: "确定", this.Confirm('是否删除?删除后将不能恢复', function () {
cancelButtonText: "取消", that.Success("删除成功!");
type: "warning" that.importData.splice(index, 1);
})
.then(() => {
this.Success("删除成功!");
this.importData.splice(index, 1);
})
.catch(() => {
this.Info("已取消删除");
}); });
}, },
//导入数据
importInfo() { importInfo() {
let msg = this.importData; var that = this;
this.apipost( this.Confirm('是否导入此数据?', function () {
that.tabLoading = true;
let msg = that.importData;
that.apipost(
"ShoppingInfo_Post_Set", "ShoppingInfo_Post_Set",
msg, msg,
res => { res => {
that.tabLoading = false;
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.fillShow = false; that.fillShow = false;
this.Success("导入成功"); that.Success("导入成功");
this.getList(); that.getList();
} else { } else {
this.Error(res.data.message); that.Error(res.data.message);
} }
}, },
err => {} err => {}
); );
});
}, },
getDownList() { getDownList() {
let msg = {}; let msg = {};
...@@ -1110,29 +1109,22 @@ ...@@ -1110,29 +1109,22 @@
// this.addMsg.Address = msg.address; // this.addMsg.Address = msg.address;
}, },
delShoppingStore(ID) { delShoppingStore(ID) {
this.$confirm("是否删除?", "提示", { var that = this;
confirmButtonText: "确定", this.Confirm('是否删除?删除后将不能恢复', function () {
cancelButtonText: "取消", that.Success("删除成功!");
type: "warning"
})
.then(() => {
this.Success("删除成功!");
var msg = { var msg = {
ID: ID ID: ID
}; };
this.apipost( that.apipost(
"Shopping_Post_Remove", "Shopping_Post_Remove",
msg, msg,
res => { res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.getList(); that.getList();
} }
}, },
null null
); );
})
.catch(() => {
this.Info("已取消删除!");
}); });
} }
}, },
......
...@@ -10,6 +10,8 @@ ...@@ -10,6 +10,8 @@
<input type="button" style="width: auto !important;" class="travelControlTripBtn" value="下载电脑版PDF" @click="toPDF(orderMsg.startDate + orderMsg.lineteamName+orderMsg.dayNum+'日游')" /> <input type="button" style="width: auto !important;" class="travelControlTripBtn" value="下载电脑版PDF" @click="toPDF(orderMsg.startDate + orderMsg.lineteamName+orderMsg.dayNum+'日游')" />
<input type="button" style="width: auto !important;" class="travelControlTripBtn" value="下载手机版WORD" @click="gernalFeature(0)" /> <input type="button" style="width: auto !important;" class="travelControlTripBtn" value="下载手机版WORD" @click="gernalFeature(0)" />
<input type="button" style="width: auto !important;" class="travelControlTripBtn" value="下载电脑版WORD" @click="gernalFeature(1)" /> <input type="button" style="width: auto !important;" class="travelControlTripBtn" value="下载电脑版WORD" @click="gernalFeature(1)" />
<a class="travelControlTripBtn" v-if="priceList!=null&& priceList[0].wordPath!=''" style="display:inline-block;text-decoration:none;
width:135px;text-align:center;line-height:30px;font-size:13px;position:relative;top:2px;" :href="domainManager().ViittoFileUrl+priceList[0].wordPath">下载WORD行程</a>
<!-- ToWord(orderMsg.startDate + orderMsg.lineteamName+orderMsg.dayNum+'日游') --> <!-- ToWord(orderMsg.startDate + orderMsg.lineteamName+orderMsg.dayNum+'日游') -->
<!--&&isopOperation HK 注释 可以让销售修改基本信息--> <!--&&isopOperation HK 注释 可以让销售修改基本信息-->
<input type="button" v-if="orderId>0" class="travelControlTripBtn" value="修改信息" @click="editMsgShow=true" /> <input type="button" v-if="orderId>0" class="travelControlTripBtn" value="修改信息" @click="editMsgShow=true" />
......
...@@ -149,11 +149,10 @@ export default { ...@@ -149,11 +149,10 @@ export default {
GoogleMapUrl: "http://ditu.google.cn/maps/api/js?key=AIzaSyAZ5MIfzicStzKbIkbI3RcBBeZBjQFKsp0&sensor=false&language=zh-CN", GoogleMapUrl: "http://ditu.google.cn/maps/api/js?key=AIzaSyAZ5MIfzicStzKbIkbI3RcBBeZBjQFKsp0&sensor=false&language=zh-CN",
//google地图图片地址 //google地图图片地址
GoogleMapImageUrl: "http://super.oytour.com", GoogleMapImageUrl: "http://super.oytour.com",
// "http://upload.oytour.com" //上传站点
UploadUrl: locationName.indexOf('oytour') !== -1 ? "http://upload.oytour.com" : "http://127.0.0.1:8120", UploadUrl: locationName.indexOf('oytour') !== -1||locationName.indexOf('viitto')!==-1 ? "http://upload.oytour.com" : "http://192.168.2.214:8120",
// 读取文件 //文件站点
ViittoFileUrl:'http://imgfile.oytour.com' ViittoFileUrl: locationName.indexOf('oytour') !== -1 || locationName.indexOf('viitto')!==-1 ? "http://imgfile.oytour.com" : 'http://192.168.2.214:8130'
// UploadUrl: "http://upload.oytour.com"
}; };
return obj; return obj;
}, },
...@@ -228,6 +227,7 @@ export default { ...@@ -228,6 +227,7 @@ export default {
successCall(res); successCall(res);
}, faildCall) }, faildCall)
} }
//HTTP提交数据 //HTTP提交数据
Vue.prototype.apipost = function (cmd, msg, successCall, faildCall) { Vue.prototype.apipost = function (cmd, msg, successCall, faildCall) {
if (msg == null || msg == "") { if (msg == null || msg == "") {
...@@ -320,9 +320,7 @@ export default { ...@@ -320,9 +320,7 @@ export default {
successCall(res); successCall(res);
}).catch(function (res) {}); }).catch(function (res) {});
}, },
Vue.prototype.getCookieItem = function () {
return JSON.parse(this.getCookie("userInfo"))
},
Vue.prototype.getLocalStorage = function () { Vue.prototype.getLocalStorage = function () {
var localStorageData = window.localStorage["userInfo"]; var localStorageData = window.localStorage["userInfo"];
if (localStorageData !== undefined && localStorageData!='undefined') { if (localStorageData !== undefined && localStorageData!='undefined') {
...@@ -331,23 +329,7 @@ export default { ...@@ -331,23 +329,7 @@ export default {
return null; return null;
} }
}, },
Vue.prototype.getCookie = function (cookieName) {
var strCookie = document.cookie;
var arrCookie = strCookie.split("; ");
for (var i = 0; i < arrCookie.length; i++) {
var arr = arrCookie[i].split("=");
if (cookieName == arr[0]) {
return arr[1];
}
}
return "";
},
Vue.prototype.getLoginUser = function () {
return this.loginUser
},
Vue.prototype.setLoginUser = function (user) {
this.loginUser = user
}
//PDF预览 //PDF预览
Vue.prototype.previewPDF = function (url) { Vue.prototype.previewPDF = function (url) {
...@@ -470,6 +452,32 @@ export default { ...@@ -470,6 +452,32 @@ export default {
}); });
} }
}, },
//上传文件到本地服务器
Vue.prototype.UploadSelfFile=function(path,files,successCall)
{
if (files && files.length > 0) {
let nameList = new Array()
for (let index = 0; index < files.length; index++) {
nameList.push(this.random_string());
}
let that = this;
co(function* () {
for (let index = 0; index < files.length; index++) {
let fileName = nameList[index]
fileName = path + fileName + "." + files[index].name.split('.').pop()
var formData = new FormData();
var uploadUrl=that.domainManager().UploadUrl+"/Upload?filePath="+path;
formData.append("myfile", files[index]);
that.$http.post(uploadUrl, formData, {})
.then(res => {
successCall(res);
})
}
}).catch(function (err) {
console.log("上传文件出错"+err);
});
}
}
Vue.prototype.uploadBlob = function (path, files, successCall) { Vue.prototype.uploadBlob = function (path, files, successCall) {
if (files && files.length > 0) { if (files && files.length > 0) {
......
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