Commit 2a4ddb5d authored by youjie's avatar youjie

发票详情

parent 7061f027
......@@ -518,6 +518,8 @@
export default {
data() {
return {
crmOrderObj:null,
InvoiceApplyType: 0,
detail: {},
orderList: {},
loading: true,
......@@ -652,13 +654,13 @@
blank: 'y',
tab: ''
}
if(this.$route.query.InvoiceApplyType){
if(this.$route.query.InvoiceApplyType == 1) query2.OrderType = 2 // 团队
if(this.$route.query.InvoiceApplyType == 2) query2.OrderType = 6 // 签证
if(this.$route.query.InvoiceApplyType == 4) query2.OrderType = 1 // 机票
if(this.$route.query.InvoiceApplyType == 5) query2.OrderType = 5 // 车
if(this.$route.query.InvoiceApplyType == 6) query2.OrderType = 3 // 酒店
if(this.$route.query.InvoiceApplyType == 7) query2.OrderType = 4 // 门票
if(this.InvoiceApplyType){
if(this.InvoiceApplyType == 1) query2.OrderType = 2 // 团队
if(this.InvoiceApplyType == 2) query2.OrderType = 6 // 签证
if(this.InvoiceApplyType == 4) query2.OrderType = 1 // 机票
if(this.InvoiceApplyType == 5) query2.OrderType = 5 // 车
if(this.InvoiceApplyType == 6) query2.OrderType = 3 // 酒店
if(this.InvoiceApplyType == 7) query2.OrderType = 4 // 门票
}else{
query2.OrderType = 2
}
......@@ -673,7 +675,7 @@
blank: 'y',
tab: '报名统计'
}
if(this.$route.query.InvoiceApplyType&&this.$route.query.InvoiceApplyType == 4){
if(this.InvoiceApplyType&&this.InvoiceApplyType == 4){
query.tab = '单机票详情'
this.$router.push({
name: 'CRMTicketOrderOP',
......@@ -697,7 +699,7 @@
})
},
goSaleFinacial: function () { // 跳转销售财务单据
if (this.$route.query.InvoiceApplyType && this.$route.query.InvoiceApplyType == 4) {
if (this.InvoiceApplyType && this.InvoiceApplyType == 4) {
this.$router.push({
name: 'CRMTicketOrderOP',
query: {
......@@ -750,7 +752,7 @@
}, null)
},
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', {
ID: id,
InvoiceApplyType: InvoiceApplyType
......@@ -775,15 +777,15 @@
done();
},
getOrderDetail: function () { // 获取交易信息详情
// let OrderResource = this.$route.query.InvoiceApplyType ? 10 : 8
// let OrderResource = this.InvoiceApplyType ? 10 : 8
let OrderResource = 8 //团队订
if(this.$route.query.InvoiceApplyType){
if(this.$route.query.InvoiceApplyType == 1) OrderResource = 8 // 团队
if(this.$route.query.InvoiceApplyType == 2) OrderResource = 10 // 签证
if(this.$route.query.InvoiceApplyType == 4) OrderResource = 12 // 机票
if(this.$route.query.InvoiceApplyType == 5) OrderResource = 5 // 车
if(this.$route.query.InvoiceApplyType == 6) OrderResource = 1 // 酒店
if(this.$route.query.InvoiceApplyType == 7) OrderResource = 3 // 门票
if(this.InvoiceApplyType){
if(this.InvoiceApplyType == 1) OrderResource = 8 // 团队
if(this.InvoiceApplyType == 2) OrderResource = 10 // 签证
if(this.InvoiceApplyType == 4) OrderResource = 12 // 机票
if(this.InvoiceApplyType == 5) OrderResource = 5 // 车
if(this.InvoiceApplyType == 6) OrderResource = 1 // 酒店
if(this.InvoiceApplyType == 7) OrderResource = 3 // 门票
}
this.apipost(
'InvoiceApply_get_GetOrderFinanceList', {
......@@ -817,7 +819,18 @@
mounted() {
let userInfo = this.getLocalStorage();
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.msg.ID = id
......
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