Commit 7e166ab2 authored by youjie's avatar youjie

小包团提成明细

parent 556d9765
...@@ -284,6 +284,7 @@ ...@@ -284,6 +284,7 @@
} }
} }
this.msg.TCNUM = this.$route.query.TCNUM?this.$route.query.TCNUM:''
this.msg.PeriodsId = this.$route.query.PeriodId?Number(this.$route.query.PeriodId):-1 this.msg.PeriodsId = this.$route.query.PeriodId?Number(this.$route.query.PeriodId):-1
this.msg.RB_Branch_Id = this.$route.query.OutBranchId?Number(this.$route.query.OutBranchId):-1 this.msg.RB_Branch_Id = this.$route.query.OutBranchId?Number(this.$route.query.OutBranchId):-1
this.msg.EmBranchId = this.$route.query.RB_Branch_Id?Number(this.$route.query.RB_Branch_Id):Number(userInfo.RB_Branch_id) this.msg.EmBranchId = this.$route.query.RB_Branch_Id?Number(this.$route.query.RB_Branch_Id):Number(userInfo.RB_Branch_id)
......
...@@ -276,6 +276,7 @@ ...@@ -276,6 +276,7 @@
} }
} }
this.msg.TCNUM = this.$route.query.TCNUM?this.$route.query.TCNUM:''
this.msg.PeriodId = this.$route.query.PeriodId?Number(this.$route.query.PeriodId):-1 this.msg.PeriodId = this.$route.query.PeriodId?Number(this.$route.query.PeriodId):-1
this.msg.OrderId = this.$route.query.OrderId?this.$route.query.OrderId:'' this.msg.OrderId = this.$route.query.OrderId?this.$route.query.OrderId:''
this.msg.OutBranchId = this.$route.query.OutBranchId?Number(this.$route.query.OutBranchId):-1 this.msg.OutBranchId = this.$route.query.OutBranchId?Number(this.$route.query.OutBranchId):-1
......
...@@ -377,7 +377,7 @@ ...@@ -377,7 +377,7 @@
path: path, path: path,
query: { query: {
PeriodId: this.$route.query.PeriodId, PeriodId: this.$route.query.PeriodId,
OutBranchId: item.RB_Branch_Id, // OutBranchId: item.RB_Branch_Id,
UserId: item.UserId, UserId: item.UserId,
blank: 'y', blank: 'y',
tab: '同业提现详情' tab: '同业提现详情'
......
...@@ -377,6 +377,17 @@ ...@@ -377,6 +377,17 @@
<span class="TC_xiajia" v-if="item.TCState==2">{{$t('visa.v_yxiajia')}}</span> <span class="TC_xiajia" v-if="item.TCState==2">{{$t('visa.v_yxiajia')}}</span>
<span class="TC_xiajia quxiao" v-if="item.TCState==4">{{$t('hotel.hotel_HasBeenCancelled')}}</span> <span class="TC_xiajia quxiao" v-if="item.TCState==4">{{$t('hotel.hotel_HasBeenCancelled')}}</span>
</div> </div>
<div class="TC_TravelSalePlat clearfix" v-if="item.Royalty"
style="display: flex;flex-wrap: wrap;align-items: baseline;">
<span class="TC_neibu"
style="color: red;font-size: 11px;line-height: 25px;">{{item.Royalty?item.Royalty.Periods:''}}
</span>
<span style="cursor: pointer;" v-for="x in item.Royalty.List"
@click="goRoyaltyUrl(item,item.Royalty,x)" class="TC_neibu"
:style="{'background-color':item.Royalty.Type==1?'#ff99cc':item.Royalty.Type==2?'#bcd6ee':'#DDDDDD','color':'#000000','margin-top':'3px'}">
{{x.UserName}}<span>¥{{x.CommissionMoney}}</span>
</span>
</div>
</div> </div>
</div> </div>
<div class="el-col" style="width:200px;"> <div class="el-col" style="width:200px;">
...@@ -817,6 +828,7 @@ ...@@ -817,6 +828,7 @@
}, },
data() { data() {
return { return {
isCommissionDetails: false, //团控提成详情权限
dialog: { dialog: {
show: false, show: false,
ConfigId: '', ConfigId: '',
...@@ -976,6 +988,32 @@ ...@@ -976,6 +988,32 @@
this.$refs.dialog.getPostData() this.$refs.dialog.getPostData()
}) })
}, },
// 查看团详情
goRoyaltyUrl(row, Royalty, item) {
let name
let obj = {
isSearch: true,
blank: "y"
}
if (Royalty.Type == 3) {
name = 'OpComPersonDetails'
obj.EmployeeId = item.UserId
obj.TCNUM = row.TCNUM
} else if (Royalty.Type == 2) {
name = 'OPsalesCommissiondetails'
obj.UserId = item.UserId
obj.TCNUM = row.TCNUM
} else {
name = 'ServiceCommissiondetails'
obj.UserId = item.UserId
obj.TCNUM = row.TCNUM
obj.Type = 2
}
this.$router.push({
name: name,
query: obj
})
},
downloadFile: function (item) { downloadFile: function (item) {
let reg = /^http(s)?:\/\/(.*?)\//; let reg = /^http(s)?:\/\/(.*?)\//;
this.downloadFileRename(item.FullUrl.replace(reg, ""), item.Name); this.downloadFileRename(item.FullUrl.replace(reg, ""), item.Name);
...@@ -1087,11 +1125,38 @@ ...@@ -1087,11 +1125,38 @@
}); });
} }
}); });
if (!this.isCommissionDetails) return
this.getDetailsOfRoyalty()
} }
}, },
err => {} err => {}
); );
}, },
getDetailsOfRoyalty() {
let Ids = this.queryCommonData.dataList.map(x => {
return x.TCID
})
let msg = [...new Set(Ids)]
this.apipost(
"commission_get_GetTravelOPCommissionList", {
TCIDStr: msg.join(',')
},
res => {
if (res.data.resultCode == 1) {
let RoyaltyList = []
RoyaltyList = res.data.data
this.queryCommonData.dataList.forEach(x => {
RoyaltyList.forEach(y => {
if (x.TCID == y.TCID) {
x.Royalty = y
}
})
})
this.$forceUpdate()
}
}
)
},
//验证大小 //验证大小
checkTeamNum(queryMsg) { checkTeamNum(queryMsg) {
...@@ -1557,7 +1622,11 @@ ...@@ -1557,7 +1622,11 @@
//默认显示联运 //默认显示联运
this.queryMsg.IsShowUnion = 1; this.queryMsg.IsShowUnion = 1;
let userInfo = this.getLocalStorage(); let userInfo = this.getLocalStorage();
// 团提成权限
let ActionMenuCode = userInfo.ActionMenuCode;
if (ActionMenuCode.indexOf("isCommissionDetails") != -1) {
this.isCommissionDetails = true;
}
if (this.$route.query.tcmun) { if (this.$route.query.tcmun) {
this.queryMsg.TCNUM = this.$route.query.tcmun; this.queryMsg.TCNUM = this.$route.query.tcmun;
} }
......
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