Commit 96e39d39 authored by wuchun's avatar wuchun
parents cdde2c8c 41678455
......@@ -845,11 +845,13 @@
<span class="cursorpointer text-decoration">{{GetDetail.ComplainID}}</span></span>
<!-- 排除机票单号、票务提成、单项订单、手配费、成本月结 -->
<span
v-if="(GetDetail.OtherType&&(GetDetail.OtherType==43 || GetDetail.OtherType==48 || GetDetail.OtherType==63
|| GetDetail.OtherType==64 || GetDetail.OtherType==69 || GetDetail.OtherType==70
|| GetDetail.OtherType==72 || GetDetail.OtherType==76 || GetDetail.OtherType==73 || GetDetail.OtherType==77
|| GetDetail.OtherType==78))
|| ((GetDetail.TemplateId==28 || GetDetail.TemplateId==30) && GetDetail.OtherType!=63 && GetDetail.OtherType!=64)"
v-if="(GetDetail.OtherType&&(GetDetail.OtherType==43 || GetDetail.OtherType==48
|| GetDetail.OtherType==63 || GetDetail.OtherType==64 || GetDetail.OtherType==69
|| GetDetail.OtherType==70 || GetDetail.OtherType==72 || GetDetail.OtherType==76
|| GetDetail.OtherType==73 || GetDetail.OtherType==77 || GetDetail.OtherType==78))
|| ((GetDetail.TemplateId==28 || GetDetail.TemplateId==30)
&& GetDetail.OtherType!=63 && GetDetail.OtherType!=64&&GetDetail.OtherType!=55&&GetDetail.OtherType!=56
&&GetDetail.OtherType!=57)"
@click="GoRoyaltyUrl(GetDetail)"
style="cursor: pointer;float: right;color: #000;font-size: 14px;text-decoration: underline;">
提成详情
......
......@@ -867,12 +867,14 @@
&& GetDetail.OtherType!=61 && GetDetail.OtherType!=62 && GetDetail.OtherType!=66
&& GetDetail.OtherType!=67 && GetDetail.OtherType!=68&& GetDetail.OtherType!=71&& GetDetail.OtherType!=74&& GetDetail.OtherType!=75)||
((GetDetail.TemplateId==28 || GetDetail.TemplateId==30) && GetDetail.OtherType!=63 && GetDetail.OtherType!=64) -->
<span
v-if="(GetDetail.OtherType&&(GetDetail.OtherType==43 || GetDetail.OtherType==48 || GetDetail.OtherType==63
|| GetDetail.OtherType==64 || GetDetail.OtherType==69 || GetDetail.OtherType==70
|| GetDetail.OtherType==72 || GetDetail.OtherType==76 || GetDetail.OtherType==73 || GetDetail.OtherType==77
|| GetDetail.OtherType==78))
|| ((GetDetail.TemplateId==28 || GetDetail.TemplateId==30) && GetDetail.OtherType!=63 && GetDetail.OtherType!=64)"
<span
v-if="(GetDetail.OtherType&&(GetDetail.OtherType==43 || GetDetail.OtherType==48
|| GetDetail.OtherType==63 || GetDetail.OtherType==64 || GetDetail.OtherType==69
|| GetDetail.OtherType==70 || GetDetail.OtherType==72 || GetDetail.OtherType==76
|| GetDetail.OtherType==73 || GetDetail.OtherType==77 || GetDetail.OtherType==78))
|| ((GetDetail.TemplateId==28 || GetDetail.TemplateId==30)
&& GetDetail.OtherType!=63 && GetDetail.OtherType!=64&&GetDetail.OtherType!=55&&GetDetail.OtherType!=56
&&GetDetail.OtherType!=57)"
@click="GoRoyaltyUrl(GetDetail)"
style="cursor: pointer;float: right;color: #000;font-size: 14px;text-decoration: underline;">
提成详情
......
......@@ -65,15 +65,41 @@
:value="item.Id"></el-option>
</el-select>
</li>
<li>
<em>提成方式</em>
<el-select v-model="msg.Way" size="mini" @change="handleCurrentChange(1)" filterable>
<el-option label="不限" :value="0"></el-option>
<el-option v-for="(item,index) in wayList" :key="item.index" :label="item.Name"
:value="item.Id"></el-option>
</el-select>
</li>
</ul>
</div>
<div style="display: flex;align-items: center;height: 50px;justify-content: space-between;">
<div style="display: flex;align-items: center;">
<!-- 统计版块 -->
<div class="groupTourOrder_count" v-if="Statistics">
<div class="groupTourOrder_count_item HT_total">
<p>
<span>销售额:
{{Statistics.SaleMoney}}
</span>
<span>利润:
<span :style="{'color': Statistics.ProfitMoney>0?'red':''}">{{Statistics.ProfitMoney}}</span>
</span>
<span>提成:
<span style="color:#3a7cf7">{{Statistics.Commission}}</span>
</span>
<!-- <span>订单数:
<span>{{Statistics.OrderNum}}</span>
</span> -->
</p>
</div>
</div>
</div>
<input type="button" class="normalBtn" value="导出" @click="exportExcel">
</div>
<table v-loading="loading" class="singeRowTable" border="0" cellspacing="0" cellpadding="0"
style="margin-top: 10px;">
<tr>
......@@ -170,6 +196,10 @@
},
data() {
return {
wayList:[
{Name:'销售额',Id:1},
{Name:'利润',Id:2},
],
OrderTypeList:[],
objNew:{},
outerVisible:false,
......@@ -181,7 +211,8 @@
PeriodsId: -1,
EmpType: '-1',
OrderId:'',
OrderType: -1
OrderType: -1,
Way: 0
},
loading: false,
//数据源
......@@ -200,22 +231,17 @@
S_CheckBranchOrder:false,
S_CheckAllOrder:false,
disabled: true,
Statistics:null,
}
},
mounted() {
let userInfo = this.getLocalStorage();
this.GetOrderTypeEnumList()
this.getEmployee() //人员
this.GetCommissionPeroidsList()//期数
let ActionMenuCode = userInfo.ActionMenuCode;
if (this.$route.query) { //不大于0的话用默认值
if (this.$route.query.PeriodsId && this.$route.query.PeriodsId > 0) {
this.msg.PeriodsId = Number(this.$route.query.PeriodsId)
}
if (this.$route.query.EmpType) {
this.msg.EmpType = this.$route.query.EmpType
}
}
this.msg.PeriodsId = this.$route.query.PeriodsId?Number(this.$route.query.PeriodsId):-1
this.msg.EmpType = this.$route.query.EmpType?this.$route.query.EmpType:'-1'
this.msg.EmpId = this.$route.query.EmpId?this.$route.query.EmpId:-1
// 判断是否销售
if (ActionMenuCode.indexOf('S_CheckBranchOrder') != -1) {
this.S_CheckBranchOrder = true
......@@ -230,8 +256,18 @@
}else{
this.disabled = true;
}
this.GetOrderTypeEnumList()
},
methods: {
GetCommissionOrder(msg){
this.crmapipost("/api/Commission/GetCommissionOrderDetialStat", msg, (res) => {
if (res.data.resultCode == 1) {
this.Statistics = res.data.data;
} else {
this.$message.error(res.data.message);
}
});
},
GetOrderTypeEnumList() {
this.apipost("CarSingle_post_GetOrderTypeEnumList", {}, (res) => {
if (res.data.resultCode == 1) {
......@@ -334,6 +370,7 @@
if (msg.OrderId == '') {
msg.OrderId = 0
}
this.GetCommissionOrder(msg)
this.loading = true;
this.crmapipost(
"/api/Commission/GetCommissionOrderDetialPageList",
......
......@@ -58,7 +58,7 @@
flex: 1;
display: flex;
flex-direction: row;
}
.relative-position{
flex: 1;
......@@ -89,7 +89,7 @@
display: flex;
flex-wrap: wrap;
justify-content: center;
}
.sanjiao {
width: 0;
......@@ -161,10 +161,10 @@
</div>
<div style="display: flex;align-items: center;height: 50px;justify-content: space-between;">
<div style="display: flex;align-items: center;">
</div>
<input type="button" class="normalBtn" value="导出" @click="exportExcel">
</div>
<table v-loading="loading" class="singeRowTable" border="0" cellspacing="0" cellpadding="0">
<tr>
......@@ -196,11 +196,11 @@
<td>{{item.PostName?item.PostName:'-'}}</td>
<td>{{item.EmName}}</td>
<td>
<span @click="item.ProfitMoney>0?clickUrl(item,1):''"
<span @click="item.ProfitMoney>0?clickUrl(item,1,2):''"
:class="item.ProfitMoney>0&&item.EmName!='微途'?'clickCp':''">{{item.ProfitMoney?item.ProfitMoney:'-'}}</span>
</td>
<td>
<span @click="item.SalesMoney>0?clickUrl(item,1):''"
<span @click="item.SalesMoney>0?clickUrl(item,1,1):''"
:class="item.SalesMoney>0&&item.EmName!='微途'?'clickCp':''">{{item.SalesMoney?item.SalesMoney:'-'}}</span>
</td>
<td>
......@@ -242,7 +242,7 @@
<inAccordanceWith v-if="objNew" :msgNew="objNew"></inAccordanceWith>
<div slot="footer" class="dialog-footer">
<button class="hollowFixedBtn" @click="outerVisible = false">取消</button> &nbsp;
<button class="normalBtn" type="primary" @click="outerVisible = false">确定</button>
<button class="normalBtn" type="primary" @click="outerVisible = false">确定</button>
</div>
</el-dialog>
</div>
......@@ -291,9 +291,7 @@
mounted() {
let userInfo = this.getLocalStorage();
let ActionMenuCode = userInfo.ActionMenuCode;
if (this.$route.query && this.$route.query.PeriodsId) {
this.msg.PeriodsId = Number(this.$route.query.PeriodsId)
}
this.msg.PeriodsId = this.$route.query.PeriodsId?Number(this.$route.query.PeriodsId):-1
if (this.$route.query && this.$route.query.EmpIds) {
this.msg.EmpIds = this.$route.query.EmpIds
}
......@@ -302,15 +300,27 @@
this.GetCommissionPeroidsList()//期数
},
methods: {
clickUrl(item,type){
clickUrl(item,type,Way){
if(type==2){//线索
this.clueManagement(item)
}else{//当月利润成交订单
this.planeTicketOrder(item)
this.planeTicketOrder(item,Way)
}
},
// crm核算统计
planeTicketOrder(item){
planeTicketOrder(item,Way){
this.$router.push({
name: 'ImpressionTicketDetails',
query: {
EmpType: item.EmpType,
PeriodsId: item.PeriodsId,//item.Month
EmName: item.EmName,
EmpId: item.EmpId,
blank: "y",
tab: "提成详情"
}
});
return
let data = [
{
path: "planeTicketOrder",
......@@ -393,7 +403,7 @@
query: {
PeriodsId: this.$route.query.PeriodsId,
EmpType:this.msg.EmpType,
EmpId: item.EmpId,
EmpId: item.EmpId,
blank: 'y',
tab: '票务提现详情'
}
......@@ -424,4 +434,4 @@
}
}
</script>
\ No newline at end of file
</script>
......@@ -353,6 +353,9 @@
});
},
clickUrl(row){
if(row.OrderType==1||row.OrderType==6){
return this.goTuanDetails(row)
}
this.$router.push({
name: 'erpCustomerOrderDayOP',
query: {
......
......@@ -478,6 +478,10 @@
<span>{{$t('Airticket.Air_StartTime')}}</span>
{{item.StartDate}}
</p>
<p class="travelnowrap">
<span>结团日期</span>
<span class="go_date">{{item.OutGroupAuditDate}}</span>
</p>
<p class="travelnowrap">
<span>{{$t('Operation.Op_teamNotice')}}</span>
{{item.OutNotice==1?"OK":"暂定"}}
......
......@@ -442,6 +442,10 @@
<span>{{$t('Airticket.Air_StartTime')}}</span>
<span class="go_date">{{item.StartDate}}</span>
</p>
<p class="travelnowrap">
<span>结团日期</span>
<span class="go_date">{{item.OutGroupAuditDate}}</span>
</p>
<p class="travelnowrap">
<span>{{$t('Operation.Op_teamNotice')}}</span>
{{item.OutNotice==1?'OK':$t('visa.v_zanding')}}
......
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