Commit 2a4ddb5d authored by youjie's avatar youjie

发票详情

parent 7061f027
...@@ -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
......
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