Commit aa750e66 authored by youjie's avatar youjie

单据 提成详情跳转优化

parent d852e1d4
...@@ -844,8 +844,8 @@ ...@@ -844,8 +844,8 @@
@click="goassets(GetDetail.ReFinanceId,GetDetail.OtherType)"> 电商出库单:{{GetDetail.ReFinanceId}}</span> @click="goassets(GetDetail.ReFinanceId,GetDetail.OtherType)"> 电商出库单:{{GetDetail.ReFinanceId}}</span>
<span class="fr" style="text-decoration: underline;cursor: pointer;" v-if="GetDetail.OtherType==17" <span class="fr" style="text-decoration: underline;cursor: pointer;" v-if="GetDetail.OtherType==17"
@click="lookbreakage(GetDetail.ReFinanceId)"> 报损/报溢单:{{GetDetail.ReFinanceId}}</span> @click="lookbreakage(GetDetail.ReFinanceId)"> 报损/报溢单:{{GetDetail.ReFinanceId}}</span>
<!-- (GetDetail.TemplateId==28 || GetDetail.TemplateId==30) && GetDetail.OtherType!=63 && GetDetail.OtherType!=64 -->
<span <!--<span
v-if="GetDetail.OtherType==48" v-if="GetDetail.OtherType==48"
@click="GoOPurl('OPsalesCommissiondetails',GetDetail)" @click="GoOPurl('OPsalesCommissiondetails',GetDetail)"
style="cursor: pointer;float: right;color: #000;font-size: 14px;text-decoration: underline;">国内提成详情</span> style="cursor: pointer;float: right;color: #000;font-size: 14px;text-decoration: underline;">国内提成详情</span>
...@@ -853,7 +853,6 @@ ...@@ -853,7 +853,6 @@
v-if="GetDetail.OtherType==43" v-if="GetDetail.OtherType==43"
@click="GoOPurl('domesticCommissiondetails',GetDetail)" @click="GoOPurl('domesticCommissiondetails',GetDetail)"
style="cursor: pointer;float: right;color: #000;font-size: 14px;text-decoration: underline;">国内提成详情</span> style="cursor: pointer;float: right;color: #000;font-size: 14px;text-decoration: underline;">国内提成详情</span>
<!-- (GetDetail.TemplateId==29 || GetDetail.TemplateId==31) && OPState && GetDetail.OtherType!=63 && GetDetail.OtherType!=64 -->
<span <span
v-if="GetDetail.OtherType==73" v-if="GetDetail.OtherType==73"
@click="GoOPurl('OpComPersonDetails',GetDetail)" @click="GoOPurl('OpComPersonDetails',GetDetail)"
...@@ -862,6 +861,15 @@ ...@@ -862,6 +861,15 @@
v-if="GetDetail.OtherType==72" v-if="GetDetail.OtherType==72"
@click="GoOPurl('TradeTicketDetails',GetDetail)" @click="GoOPurl('TradeTicketDetails',GetDetail)"
style="cursor: pointer;float: right;color: #000;font-size: 14px;text-decoration: underline;">出境提成详情</span> style="cursor: pointer;float: right;color: #000;font-size: 14px;text-decoration: underline;">出境提成详情</span>
-->
<!-- 排除机票订单、票务提成、单项订单 -->
<span v-if="GetDetail.OtherType!=55 && GetDetail.OtherType!=56 && GetDetail.OtherType!=57
&& GetDetail.OtherType!=61 && GetDetail.OtherType!=62 && GetDetail.OtherType!=66
&& GetDetail.OtherType!=67 && GetDetail.OtherType!=68"
@click="GoRoyaltyUrl(GetDetail)"
style="cursor: pointer;float: right;color: #000;font-size: 14px;text-decoration: underline;">
提成详情
</span>
<span v-if="CostTypeState" @click="GourlCostType('VisitRecord',1)" <span v-if="CostTypeState" @click="GourlCostType('VisitRecord',1)"
style="margin:0 10px;cursor: pointer;float: right;color: #000;font-size: 14px;text-decoration: underline;">拜访记录</span> style="margin:0 10px;cursor: pointer;float: right;color: #000;font-size: 14px;text-decoration: underline;">拜访记录</span>
<span v-if="CostTypeState" @click="GourlCostType('yingyanMap',2)" <span v-if="CostTypeState" @click="GourlCostType('yingyanMap',2)"
...@@ -896,10 +904,11 @@ ...@@ -896,10 +904,11 @@
<div v-if="GetDetail.OtherType==67||GetDetail.OtherType==68" class="illustrate-right fygsbumen-box-right" <div v-if="GetDetail.OtherType==67||GetDetail.OtherType==68" class="illustrate-right fygsbumen-box-right"
@click="ImpressionSingleDetails('CharterOrderListOP')">{{'单项车订单:'+GetDetail.ReFinanceId}}</div> @click="ImpressionSingleDetails('CharterOrderListOP')">{{'单项车订单:'+GetDetail.ReFinanceId}}</div>
<div v-if="GetDetail.OtherType==63" class="illustrate-right fygsbumen-box-right"
<!-- <div v-if="GetDetail.OtherType==63" class="illustrate-right fygsbumen-box-right"
@click="ImpressionSingleCommissionDetails('ServiceCommissiondetails',1)">{{'单项销售提成详情'}}</div> @click="ImpressionSingleCommissionDetails('ServiceCommissiondetails',1)">{{'单项销售提成详情'}}</div>
<div v-if="GetDetail.OtherType==64" class="illustrate-right fygsbumen-box-right" <div v-if="GetDetail.OtherType==64" class="illustrate-right fygsbumen-box-right"
@click="ImpressionSingleCommissionDetails('ServiceCommissiondetails',2)">{{'单项OP提成详情'}}</div> @click="ImpressionSingleCommissionDetails('ServiceCommissiondetails',2)">{{'单项OP提成详情'}}</div> -->
</div> </div>
<table border="1" bordercolor="#D2D2D2" style="border-collapse:collapse;margin-top:15px;" width="100%" <table border="1" bordercolor="#D2D2D2" style="border-collapse:collapse;margin-top:15px;" width="100%"
...@@ -1792,83 +1801,48 @@ ...@@ -1792,83 +1801,48 @@
query: obj query: obj
}); });
}, },
Gourl(GetDetail) { // 提成明细详情
if (GetDetail.OtherType == 43) { //9月9号新增 如果是43 就跳转到国内的详情 反之按之前的来用 GoRoyaltyUrl(GetDetail) {
this.$router.push({ let obj = {
name: 'domesticCommissiondetails',
query: {
PeriodId: GetDetail.ReFinanceId,
blank: "y",
tab: "国内销售提成详情"
}
});
} else if (GetDetail.OtherType == 69) { //跳转台湾提成的三级详情
this.$router.push({
name: 'domesticCommissiondetailsTW',
query: {
PeriodId: GetDetail.ReFinanceId, PeriodId: GetDetail.ReFinanceId,
OutBranchId: GetDetail.RB_Branch_Id, RB_Branch_Id: null,
OutBranchId: String(GetDetail.RB_Branch_Id),
blank: "y", blank: "y",
tab: "台湾销售提成详情" tab: "",
Type: null,
} }
}); let path = ''
if (GetDetail.OtherType == 43) { //9月9号新增 如果是43 就跳转到国内的详情 反之按之前的来用
obj.tab = "国内提成详情"
path = 'domesticCommissiondetails'
}else if(GetDetail.OtherType==48){ }else if(GetDetail.OtherType==48){
this.$router.push({ obj.tab = "国内OP提成详情"
name: 'OPsalesCommissiondetails', path = 'OPsalesCommissiondetails'
query: { } else if (GetDetail.OtherType == 63 || GetDetail.OtherType == 64) {//单项提成详情
PeriodId: GetDetail.ReFinanceId, obj.tab = GetDetail.OtherType == 63?"单项提成详情":"单项OP提成详情"
OutBranchId: GetDetail.RB_Branch_Id, path = 'ServiceCommissiondetails'
blank: "y" obj.Type = GetDetail.OtherType == 63?1:2
} }else if (GetDetail.OtherType == 69) { //跳转台湾提成的三级详情 老版本
}); obj.tab = "台湾提成详情"
}else if(GetDetail.OtherType==73){ path = 'domesticCommissiondetailsTW'
this.$router.push({ }else if (GetDetail.OtherType == 70) { //跳转台湾提成的三级详情 新版本
name: 'OpComPersonDetails', obj.tab = "台湾销售提成详情"
query: { path = 'domesticCommissiondetailsTW'
PeriodId: GetDetail.ReFinanceId, // if (GetDetail.ReFinanceId2 == 1) {
OutBranchId: GetDetail.RB_Branch_Id, // urlName = 'domesticCommissiondetailsTW'
blank: "y" // }
} // if (GetDetail.ReFinanceId2 == 2) {
}); // urlName = 'domesticCommissionUserTW'
} else if (GetDetail.OtherType == 70) { //跳转台湾提成的三级详情 // }
let urlName } else if (GetDetail.OtherType == 72) {//出境提成详情
if (GetDetail.ReFinanceId2 == 1) { obj.tab = "出境提成详情"
urlName = 'domesticCommissiondetailsTW' path = 'TradeTicketDetails'
} obj.RB_Branch_Id = String(GetDetail.RB_Branch_Id)
if (GetDetail.ReFinanceId2 == 2) { obj.OutBranchId = null
urlName = 'domesticCommissionUserTW'
}
this.$router.push({
name: urlName,
query: {
PeriodId: GetDetail.ReFinanceId,
OutBranchId: GetDetail.RB_Branch_Id,
blank: "y",
tab: "台湾销售提成详情"
}
});
} else if (GetDetail.OtherType == 72) {//同业提成详情
this.$router.push({
name: 'TradeTicketDetails',
query: {
PeriodId: GetDetail.ReFinanceId,
// OutBranchId: GetDetail.RB_Branch_Id,
RB_Branch_Id: GetDetail.RB_Branch_Id,
blank: "y",
tab: "同业提成详情"
}
});
} else if (GetDetail.OtherType == 73) {//OP提成详情 } else if (GetDetail.OtherType == 73) {//OP提成详情
this.$router.push({ obj.tab = "出境OP提成详情"
name: 'OpComPersonDetails', path = 'OpComPersonDetails'
query: { }else {
PeriodId: GetDetail.ReFinanceId,
OutBranchId: GetDetail.RB_Branch_Id,
blank: "y",
tab: "同业提成明细"
}
});
} else {
this.$router.push({ this.$router.push({
name: 'CommissionDetail', name: 'CommissionDetail',
query: { query: {
...@@ -1879,6 +1853,12 @@ ...@@ -1879,6 +1853,12 @@
} }
}); });
} }
if(path){
this.$router.push({
name: path,
query: obj
});
}
}, },
......
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