Commit 69e450d9 authored by liudong1993's avatar liudong1993
parents b1de4e5e 1d474342
This diff is collapsed.
...@@ -518,6 +518,8 @@ ...@@ -518,6 +518,8 @@
export default { export default {
data() { data() {
return { return {
crmOrderObj:null,
InvoiceApplyType: 0,
detail: {}, detail: {},
orderList: {}, orderList: {},
loading: true, loading: true,
...@@ -652,13 +654,13 @@ ...@@ -652,13 +654,13 @@
blank: 'y', blank: 'y',
tab: '' tab: ''
} }
if(this.$route.query.InvoiceApplyType){ if(this.InvoiceApplyType){
if(this.$route.query.InvoiceApplyType == 1) query2.OrderType = 2 // 团队 if(this.InvoiceApplyType == 1) query2.OrderType = 2 // 团队
if(this.$route.query.InvoiceApplyType == 2) query2.OrderType = 6 // 签证 if(this.InvoiceApplyType == 2) query2.OrderType = 6 // 签证
if(this.$route.query.InvoiceApplyType == 4) query2.OrderType = 1 // 机票 if(this.InvoiceApplyType == 4) query2.OrderType = 1 // 机票
if(this.$route.query.InvoiceApplyType == 5) query2.OrderType = 5 // 车 if(this.InvoiceApplyType == 5) query2.OrderType = 5 // 车
if(this.$route.query.InvoiceApplyType == 6) query2.OrderType = 3 // 酒店 if(this.InvoiceApplyType == 6) query2.OrderType = 3 // 酒店
if(this.$route.query.InvoiceApplyType == 7) query2.OrderType = 4 // 门票 if(this.InvoiceApplyType == 7) query2.OrderType = 4 // 门票
}else{ }else{
query2.OrderType = 2 query2.OrderType = 2
} }
...@@ -673,7 +675,7 @@ ...@@ -673,7 +675,7 @@
blank: 'y', blank: 'y',
tab: '报名统计' tab: '报名统计'
} }
if(this.$route.query.InvoiceApplyType&&this.$route.query.InvoiceApplyType == 4){ if(this.InvoiceApplyType&&this.InvoiceApplyType == 4){
query.tab = '单机票详情' query.tab = '单机票详情'
this.$router.push({ this.$router.push({
name: 'CRMTicketOrderOP', name: 'CRMTicketOrderOP',
...@@ -697,7 +699,7 @@ ...@@ -697,7 +699,7 @@
}) })
}, },
goSaleFinacial: function () { // 跳转销售财务单据 goSaleFinacial: function () { // 跳转销售财务单据
if (this.$route.query.InvoiceApplyType && this.$route.query.InvoiceApplyType == 4) { if (this.InvoiceApplyType && this.InvoiceApplyType == 4) {
this.$router.push({ this.$router.push({
name: 'CRMTicketOrderOP', name: 'CRMTicketOrderOP',
query: { query: {
...@@ -750,7 +752,7 @@ ...@@ -750,7 +752,7 @@
}, null) }, null)
}, },
getDetail: function (id) { // 获取详情 getDetail: function (id) { // 获取详情
let InvoiceApplyType = this.$route.query.InvoiceApplyType ? this.$route.query.InvoiceApplyType : 1 let InvoiceApplyType = this.InvoiceApplyType ? this.InvoiceApplyType : 1
this.apipost('InvoiceApply_get_GetDetails', { this.apipost('InvoiceApply_get_GetDetails', {
ID: id, ID: id,
InvoiceApplyType: InvoiceApplyType InvoiceApplyType: InvoiceApplyType
...@@ -775,15 +777,15 @@ ...@@ -775,15 +777,15 @@
done(); done();
}, },
getOrderDetail: function () { // 获取交易信息详情 getOrderDetail: function () { // 获取交易信息详情
// let OrderResource = this.$route.query.InvoiceApplyType ? 10 : 8 // let OrderResource = this.InvoiceApplyType ? 10 : 8
let OrderResource = 8 //团队订 let OrderResource = 8 //团队订
if(this.$route.query.InvoiceApplyType){ if(this.InvoiceApplyType){
if(this.$route.query.InvoiceApplyType == 1) OrderResource = 8 // 团队 if(this.InvoiceApplyType == 1) OrderResource = 8 // 团队
if(this.$route.query.InvoiceApplyType == 2) OrderResource = 10 // 签证 if(this.InvoiceApplyType == 2) OrderResource = 10 // 签证
if(this.$route.query.InvoiceApplyType == 4) OrderResource = 12 // 机票 if(this.InvoiceApplyType == 4) OrderResource = 12 // 机票
if(this.$route.query.InvoiceApplyType == 5) OrderResource = 5 // 车 if(this.InvoiceApplyType == 5) OrderResource = 5 // 车
if(this.$route.query.InvoiceApplyType == 6) OrderResource = 1 // 酒店 if(this.InvoiceApplyType == 6) OrderResource = 1 // 酒店
if(this.$route.query.InvoiceApplyType == 7) OrderResource = 3 // 门票 if(this.InvoiceApplyType == 7) OrderResource = 3 // 门票
} }
this.apipost( this.apipost(
'InvoiceApply_get_GetOrderFinanceList', { 'InvoiceApply_get_GetOrderFinanceList', {
...@@ -817,7 +819,18 @@ ...@@ -817,7 +819,18 @@
mounted() { mounted() {
let userInfo = this.getLocalStorage(); let userInfo = this.getLocalStorage();
this.EmployeeId = userInfo.EmployeeId; this.EmployeeId = userInfo.EmployeeId;
let id = this.$route.query.id let id
if(this.$route.query.id){
id = this.$route.query.id
}
if(this.$route.query.InvoiceApplyType){
this.InvoiceApplyType = this.InvoiceApplyType
}
if(this.$route.query.crmOrderObj){
this.crmOrderObj = JSON.parse(this.$route.query.crmOrderObj)
this.InvoiceApplyType = this.crmOrderObj.InvoiceApplyType
id = this.crmOrderObj.id
}
//是否显示审核按钮 //是否显示审核按钮
this.noDetail = this.$route.query.noDetail ? true : false this.noDetail = this.$route.query.noDetail ? true : false
this.msg.ID = id this.msg.ID = id
......
...@@ -340,7 +340,7 @@ ...@@ -340,7 +340,7 @@
DueInMoney:item.DueInMoney, DueInMoney:item.DueInMoney,
...item ...item
} }
item.list.push(datas) item.list.push(JSON.parse(JSON.stringify(datas)))
}) })
this.total = res.data.data.count; this.total = res.data.data.count;
}else { }else {
......
...@@ -85,7 +85,7 @@ ...@@ -85,7 +85,7 @@
}, },
}, },
mounted() { mounted() {
this.msg.OrderId = this.CorrelationObj.OrderId this.msg.OrderId = this.CorrelationObj.OrderId?this.CorrelationObj.OrderId:0
this.msg.OpEmpId = this.CorrelationObj.OpEmpId?this.CorrelationObj.OpEmpId:null this.msg.OpEmpId = this.CorrelationObj.OpEmpId?this.CorrelationObj.OpEmpId:null
if(this.CorrelationObj.TypeNum==4 || this.CorrelationObj.TypeNum==5 || this.CorrelationObj.TypeNum==6){ if(this.CorrelationObj.TypeNum==4 || this.CorrelationObj.TypeNum==5 || this.CorrelationObj.TypeNum==6){
this.msg.Money = this.CorrelationObj.Money this.msg.Money = this.CorrelationObj.Money
......
...@@ -222,7 +222,8 @@ ...@@ -222,7 +222,8 @@
机票未绑团查看 机票未绑团查看
<i class="iconfont icon-right1"></i> <i class="iconfont icon-right1"></i>
</el-dropdown-item> </el-dropdown-item>
<el-dropdown-item v-if="ChangeThePriceList.length>0" class="clearfix _dropdown_other" @click.native="GetChangeThePrice(1)"> <el-dropdown-item v-if="ChangeThePriceList.length>0" class="clearfix _dropdown_other"
@click.native="GetChangeThePrice(1),GetExaminePriceOrderPageList(1)">
<i class="iconfont icon-Newspaper" style="color:#f39c12"></i> <i class="iconfont icon-Newspaper" style="color:#f39c12"></i>
订单改价查看 订单改价查看
<i class="iconfont icon-right1"></i> <i class="iconfont icon-right1"></i>
...@@ -1177,7 +1178,7 @@ ...@@ -1177,7 +1178,7 @@
<div class="tsContent"> <div class="tsContent">
<div style="width:100%;height:372px;position:relative"> <div style="width:100%;height:372px;position:relative">
<p style="text-align:center;font-size:14px;z-index:100;">投诉案例</p> <p style="text-align:center;font-size:14px;z-index:100;">投诉案例</p>
<img @click="CloseTs" class="tsClose" style="width:11px;height:11px;pointer" src="../assets/img/tsclose.png" <img @click="CloseTs" class="tsClose" style="width:11px;height:11px;cursor: pointer;" src="../assets/img/tsclose.png"
alt=""> alt="">
<img class="tsbg" style="width:100%;height:100%" src="../assets/img/ts.png" alt=""> <img class="tsbg" style="width:100%;height:100%" src="../assets/img/ts.png" alt="">
</div> </div>
...@@ -1204,9 +1205,12 @@ ...@@ -1204,9 +1205,12 @@
<unbundlingMessage v-if="unbundlingVisible" <unbundlingMessage v-if="unbundlingVisible"
:UnboundDate="UnboundDate" @unbundlingVisible="unbundlingVisible=false"></unbundlingMessage> :UnboundDate="UnboundDate" @unbundlingVisible="unbundlingVisible=false"></unbundlingMessage>
<!-- 改价提醒 --> <!-- 改价提醒/审核改价提醒 -->
<ChangeThePriceMessage v-if="ChangeThePriceVisible" :ChangeThePriceData="ChangeThePriceData" <ChangeThePriceMessage v-if="ChangeThePriceVisible||ExamineThePriceVisible"
@ChangeThePriceVisible="ChangeThePriceVisible=false"></ChangeThePriceMessage> :type="1"
:msg="ExamineThePriceMsg"
:ChangeThePriceObj="ChangeThePriceObj"
@ChangeThePriceVisible="ChangeThePriceVisible=false,ExamineThePriceVisible=false"></ChangeThePriceMessage>
</div> </div>
</template> </template>
...@@ -1243,13 +1247,31 @@ ...@@ -1243,13 +1247,31 @@
commissionDetail, commissionDetail,
Voting, Voting,
unbundlingMessage, unbundlingMessage,
ChangeThePriceMessage ChangeThePriceMessage,
}, },
data() { data() {
return { return {
ExamineThePriceMsg:{
Q_IsCollect: '2',//收款状态
DepartSTime: '', //出发时间
DepartETime: '',
EnterId: 0,//销售
RB_Branch_Id: '-1',//公司
OrderId:"",
TicketStatus:"1",
OrderType:"0",
pageIndex:1,
pageSize:5,
total: 0,
total2: 0,
},
ExamineThePriceVisible: false,//审核改价提醒
ChangeThePriceList: [], ChangeThePriceList: [],
ChangeThePriceData:[],
ChangeThePriceVisible: false,//改价提醒 ChangeThePriceVisible: false,//改价提醒
ChangeThePriceObj:{
ExamineThePriceData:[],
ChangeThePriceData:[],
},
UnboundDate: {}, UnboundDate: {},
unbundlingVisible: false,//未绑团提醒 unbundlingVisible: false,//未绑团提醒
b2bDomain: "", b2bDomain: "",
...@@ -1874,7 +1896,7 @@ ...@@ -1874,7 +1896,7 @@
} }
// 获取改价提醒 每月1到10号提示 // 获取改价及审核提醒 每月1到10号提示
let DateTime = new Date(); let DateTime = new Date();
let Year = DateTime.getFullYear() let Year = DateTime.getFullYear()
let Month = DateTime.getMonth()+1 let Month = DateTime.getMonth()+1
...@@ -1888,21 +1910,37 @@ ...@@ -1888,21 +1910,37 @@
return x==this.getBeforeDate(0, new Date().Format("yyyy-MM-dd")) return x==this.getBeforeDate(0, new Date().Format("yyyy-MM-dd"))
}) })
if(this.ChangeThePriceList.length>0){ if(this.ChangeThePriceList.length>0){
if(!localStorage.getItem("ChangeThePriceDataTime")|| if((!localStorage.getItem("ChangeThePriceDataTime")||
(localStorage.getItem("ChangeThePriceDataTime")!=this.getBeforeDate(0, new Date().Format("yyyy-MM-dd")))){ (localStorage.getItem("ChangeThePriceDataTime")!=this.getBeforeDate(0, new Date().Format("yyyy-MM-dd"))))){
this.GetChangeThePrice() this.GetChangeThePrice()
} }
// 两小时请求一次改价提醒 if((!localStorage.getItem("ExamineThePriceDataTime")||
(localStorage.getItem("ExamineThePriceDataTime")!=this.getBeforeDate(0, new Date().Format("yyyy-MM-dd"))))){
this.GetExaminePriceOrderPageList()
}
// 两小时请求一次改价、审核改价提醒
setInterval(()=>{ setInterval(()=>{
if(!this.ChangeThePriceVisible){ if(!this.ChangeThePriceVisible){
this.GetChangeThePrice() this.GetChangeThePrice()
}else{ }else{
clearInterval() clearInterval()
} }
if(!this.ExamineThePriceVisible){
this.GetExaminePriceOrderPageList()
}else{
clearInterval()
}
},7200000) },7200000)
} }
}, },
created() { created() {
let DateTime = new Date();
let Year = DateTime.getFullYear()
let Month = DateTime.getMonth()
let Months = Month>9?Month:'0'+Month
let day = new Date(Year, Month, 0).getDate()
let DepartETime = Year+'-'+Months+'-'+day
this.ExamineThePriceMsg.DepartETime = DepartETime
if (!localStorage.getItem("tsNumber") || localStorage.getItem("tsNumber") != this.tsNumber) { if (!localStorage.getItem("tsNumber") || localStorage.getItem("tsNumber") != this.tsNumber) {
this.tsState = true; this.tsState = true;
} }
...@@ -1935,17 +1973,34 @@ ...@@ -1935,17 +1973,34 @@
} }
}, },
methods: { methods: {
GetExaminePriceOrderPageList(type){
this.apipost(
"CarSingle_post_GetExaminePriceOrderPageList",this.ExamineThePriceMsg,
res => {
if(res.data.resultCode==1){
if(res.data.data&&res.data.data.count>0&&res.data.data.pageData.length>0){
if(!this.ExamineThePriceMsg.total) this.ExamineThePriceMsg.total = res.data.data.count
// localStorage.setItem("ExamineThePriceData", JSON.stringify(res.data.data.pageData));
localStorage.setItem("ExamineThePriceDataTime", this.getBeforeDate(0, new Date().Format("yyyy-MM-dd")));
this.ChangeThePriceObj.ExamineThePriceData = res.data.data.pageData
this.ExamineThePriceVisible = true
}else{
this.ExamineThePriceVisible = false
if(type==1){
// this.$message.info('暂无订单审核数据')
}
// localStorage.removeItem("ExamineThePriceData");
localStorage.removeItem("ExamineThePriceDataTime");
}
}
}
);
},
// 获取改价提醒的数据 // 获取改价提醒的数据
GetChangeThePrice(type){ GetChangeThePrice(type){
let DateTime = new Date();
let Year = DateTime.getFullYear()
let Month = DateTime.getMonth()
let Months = Month>9?Month:'0'+Month
let day = new Date(Year, Month, 0).getDate()
let DepartETime = Year+'-'+Months+'-'+day
let msg = { let msg = {
pageIndex:1, pageIndex:1,
pagesize:15, pagesize:5,
OrderId:0, OrderId:0,
GuestId:0, GuestId:0,
EnterId:0, EnterId:0,
...@@ -1954,7 +2009,7 @@ ...@@ -1954,7 +2009,7 @@
FinishsTime:"", FinishsTime:"",
FinishETime:"", FinishETime:"",
DepartSTime:"", DepartSTime:"",
DepartETime:DepartETime, DepartETime: this.ExamineThePriceMsg.DepartETime,
TCNUM:"", TCNUM:"",
ProductName: "", ProductName: "",
CustomerWame:"", CustomerWame:"",
...@@ -1974,15 +2029,17 @@ ...@@ -1974,15 +2029,17 @@
res => { res => {
if(res.data.resultCode==1){ if(res.data.resultCode==1){
if(res.data.data&&res.data.data.count>0&&res.data.data.pageData.length>0){ if(res.data.data&&res.data.data.count>0&&res.data.data.pageData.length>0){
localStorage.setItem("ChangeThePriceData", JSON.stringify(res.data.data.pageData)); if(!this.ExamineThePriceMsg.total2) this.ExamineThePriceMsg.total2 = res.data.data.count
// localStorage.setItem("ChangeThePriceData", JSON.stringify(res.data.data.pageData));
localStorage.setItem("ChangeThePriceDataTime", this.getBeforeDate(0, new Date().Format("yyyy-MM-dd"))); localStorage.setItem("ChangeThePriceDataTime", this.getBeforeDate(0, new Date().Format("yyyy-MM-dd")));
this.ChangeThePriceData = res.data.data.pageData this.ChangeThePriceObj.ChangeThePriceData = res.data.data.pageData
this.ChangeThePriceVisible = true this.ChangeThePriceVisible = true
}else{ }else{
this.ChangeThePriceVisible = false
if(type==1){ if(type==1){
this.$message.info('暂无订单改价数据') // this.$message.info('暂无订单改价数据')
} }
localStorage.removeItem("ChangeThePriceData"); // localStorage.removeItem("ChangeThePriceData");
localStorage.removeItem("ChangeThePriceDataTime"); localStorage.removeItem("ChangeThePriceDataTime");
} }
} }
......
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -448,7 +448,7 @@ export default { ...@@ -448,7 +448,7 @@ export default {
let DaiShou let DaiShou
DaiShou = Number(item.Money-item.Income-item.PlatformTax-item.PlatformMoney+item.Refund) DaiShou = Number(item.Money-item.Income-item.PlatformTax-item.PlatformMoney+item.Refund)
item.DaiShou = DaiShou.toFixed(2)==='-0.00'?'0.00':DaiShou.toFixed(2) item.DaiShou = DaiShou.toFixed(2)==='-0.00'?'0.00':DaiShou.toFixed(2)
item.list.push(datas) item.list.push(JSON.parse(JSON.stringify(datas)))
}) })
this.total = res.data.data.count; this.total = res.data.data.count;
} else { } else {
......
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