Commit 0e13038a authored by 黄奎's avatar 黄奎
parents 23c0d0c7 85662a20
...@@ -331,4 +331,7 @@ ...@@ -331,4 +331,7 @@
.width100-float-l+.width100-float-l{ .width100-float-l+.width100-float-l{
margin-left: 10px; margin-left: 10px;
} }
.c059FF6 {
color: #059ff6;
}
</style> </style>
...@@ -26,7 +26,14 @@ ...@@ -26,7 +26,14 @@
<div class="flexOne domesticCommissionUser"> <div class="flexOne domesticCommissionUser">
<div> <div>
<ul class="opUl"> <ul class="opUl">
<li>
<em>期数</em>
<el-select v-model="msg.PeriodId" size="mini" @change="handleCurrentChange(1)">
<el-option label="不限" :value="0"></el-option>
<el-option v-for="(item,index) in PeriodsList" :key="item.index" :label="item.Name" :value="item.Id">
</el-option>
</el-select>
</li>
<li> <li>
<em>人员</em> <em>人员</em>
<el-select v-model="msg.UserId" size="mini" @change="handleCurrentChange(1)" filterable :disabled='disabled'> <el-select v-model="msg.UserId" size="mini" @change="handleCurrentChange(1)" filterable :disabled='disabled'>
...@@ -143,7 +150,7 @@ ...@@ -143,7 +150,7 @@
} }
this.msg.PeriodId = this.$route.query.PeriodId?Number(this.$route.query.PeriodId):0 this.msg.PeriodId = this.$route.query.PeriodId?Number(this.$route.query.PeriodId):0
this.getList(); this.getList();
// this.getqishilist() this.getqishilist()
this.getCompanyList()//获取公司 this.getCompanyList()//获取公司
this.getEmployee()//人员 this.getEmployee()//人员
this.getDerpartMent()//部门 this.getDerpartMent()//部门
...@@ -209,7 +216,7 @@ ...@@ -209,7 +216,7 @@
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.PeriodsList = res.data.data; this.PeriodsList = res.data.data;
if (this.PeriodsList && this.PeriodsList.length > 0) { if (this.PeriodsList && this.PeriodsList.length > 0) {
// this.msg.Periods = Number(this.PeriodsList[0].Id) this.msg.PeriodId = Number(this.PeriodsList[0].Id)
} }
} else { } else {
...@@ -229,7 +236,7 @@ ...@@ -229,7 +236,7 @@
this.$router.push({ this.$router.push({
path: path, path: path,
query: { query: {
PeriodId: this.$route.query.PeriodId, PeriodId: this.msg.PeriodId,
UserId:item.UserId, UserId:item.UserId,
RB_Branch_Id:item.RB_Branch_Id, RB_Branch_Id:item.RB_Branch_Id,
RB_Department_Id:item.RB_Department_Id, RB_Department_Id:item.RB_Department_Id,
......
...@@ -282,13 +282,14 @@ ...@@ -282,13 +282,14 @@
); );
}, },
getqishilist() { getqishilist() {
// opcommission_GetGNOPCommissionPeriodsList
this.apipost( this.apipost(
"opcommission_GetGNOPCommissionPeriodsList", {}, "sellcommission_GetGNCommissionPeriodsList", {},
res => { res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.PeriodsList = res.data.data; this.PeriodsList = res.data.data;
if (this.PeriodsList && this.PeriodsList.length > 0) { if (!this.msg.PeriodId&&this.PeriodsList && this.PeriodsList.length > 0) {
// this.msg.Periods = Number(this.PeriodsList[0].Id) this.msg.PeriodId = Number(this.PeriodsList[0].Id)
} }
} else { } else {
......
...@@ -485,7 +485,9 @@ ...@@ -485,7 +485,9 @@
<div class="productQueryList" v-loading="loading"> <div class="productQueryList" v-loading="loading">
<div style="margin-bottom: 10px"> <div style="margin-bottom: 10px">
<el-checkbox v-model="allCheck" @change="changeSelect">全选</el-checkbox> <el-checkbox v-model="allCheck" @change="changeSelect">全选</el-checkbox>
<el-button style="margin-left: 10px" type="primary" size="small" @click="eidtItems">批量操作</el-button> <el-button class="normalBtn" style="margin-left: 10px" type="primary" size="small" @click="eidtItems">批量操作</el-button>
<el-button class="hollowFixedBtn" style="margin-left: 10px" type="" size="small" @click="setDefaultOp"
:loading="loadingOP">设置默认OP</el-button>
</div> </div>
<ul v-if="list.length != 0"> <ul v-if="list.length != 0">
<li v-for="(item, index) in list" :key="index"> <li v-for="(item, index) in list" :key="index">
...@@ -608,9 +610,10 @@ ...@@ -608,9 +610,10 @@
</template> </template>
<script> <script>
export default { export default {
props: ["loading", "list", "pagesTitle", "isVisa"], props: ["msg","loading", "list", "pagesTitle", "isVisa"],
data() { data() {
return { return {
loadingOP: false,
editNum: false, editNum: false,
showDialog: false, showDialog: false,
queryData: {}, queryData: {},
...@@ -682,6 +685,34 @@ export default { ...@@ -682,6 +685,34 @@ export default {
}, },
}, },
methods: { methods: {
setDefaultOp(){
this.dataDui()
if(!this.msg.StartTime||!this.msg.EndTime){
this.$message.info('请选择出发日期开始时间、结束时间!')
return
}
this.loadingOP = true
this.apipost(
"travel_post_UpdateTravelPriceOPInfo",
this.msg,
(res) => {
if (res.data.resultCode == 1) {
this.Success(res.data.message);
this.loadingOP = false
}else{
this.Error(res.data.message)
this.loadingOP = false
}
},err=>{this.loadingOP = false})
},
// 结束日期不能大于开始日期
dataDui() {
if (this.msg.StartTime > this.msg.EndTime && this.msg.EndTime !== "") {
this.$message.error("结束日期不能大于开始日期");
this.msg.EndTime = "";
return
}
},
changeSelect() { changeSelect() {
this.list.forEach((element) => { this.list.forEach((element) => {
element.check = this.allCheck; element.check = this.allCheck;
......
...@@ -311,6 +311,7 @@ ...@@ -311,6 +311,7 @@
resetPageIndex(); resetPageIndex();
" "
/> />
</li> </li>
</ul> </ul>
</div> </div>
...@@ -318,7 +319,7 @@ ...@@ -318,7 +319,7 @@
layout="total,prev, pager, next, jumper" :page-size="msg.pageSize" :total="total"> layout="total,prev, pager, next, jumper" :page-size="msg.pageSize" :total="total">
</el-pagination> </el-pagination>
<!-- 产品列表 --> <!-- 产品列表 -->
<productOrderList :loading="loading" :list="list" :isVisa="isVisa" @success="reSearchPage" :pagesTitle="pagesTitle"></productOrderList> <productOrderList :msg="msg" :loading="loading" :list="list" :isVisa="isVisa" @success="reSearchPage" :pagesTitle="pagesTitle"></productOrderList>
<el-pagination background @current-change="handleCurrentChange" :current-page.sync="currentPage" <el-pagination background @current-change="handleCurrentChange" :current-page.sync="currentPage"
layout="total,prev, pager, next, jumper" :page-size="msg.pageSize" :total="total"> layout="total,prev, pager, next, jumper" :page-size="msg.pageSize" :total="total">
</el-pagination> </el-pagination>
......
...@@ -1753,7 +1753,6 @@ ...@@ -1753,7 +1753,6 @@
} }
this.CurrentUserInfo = userInfo this.CurrentUserInfo = userInfo
this.$route.query.tcmun = this.$route.query.tcmun
if (this.$route.query.tcmun) { if (this.$route.query.tcmun) {
this.queryMsg.TCNUM = this.$route.query.tcmun this.queryMsg.TCNUM = this.$route.query.tcmun
} }
......
...@@ -35,6 +35,10 @@ ...@@ -35,6 +35,10 @@
} }
.CommissionLadder.Line{ .CommissionLadder.Line{
margin: 0 0 10px 0; margin: 0 0 10px 0;
}
.border-bottom{
border-bottom: 1px dashed #BDBDBD;
} }
.CommissionLadder .title{ .CommissionLadder .title{
font-size: 16px; font-size: 16px;
...@@ -164,7 +168,7 @@ ...@@ -164,7 +168,7 @@
</div> </div>
</div> </div>
<div style="display: flex;"> <div style="display: flex;">
<div class="CommissionLadder Line" style="margin: 0 0 0 0;"> <div class="CommissionLadder Line border-bottom" style="margin: 0 0 0 0;">
<div class="title"> <div class="title">
<span>日本线小包团、落地团以及单项提成</span> <span>日本线小包团、落地团以及单项提成</span>
</div> </div>
...@@ -190,7 +194,7 @@ ...@@ -190,7 +194,7 @@
<progressComm :commissionratioList="JapaneseProfit"></progressComm> <progressComm :commissionratioList="JapaneseProfit"></progressComm>
</div> </div>
</div> </div>
<div class="CommissionLadder Line" style="margin: 0 10px 0 10px;"> <div class="CommissionLadder Line border-bottom" style="margin: 0 10px 0 10px;">
<div class="title"> <div class="title">
<span>欧洲线小包团、落地团以及单项提成</span> <span>欧洲线小包团、落地团以及单项提成</span>
</div> </div>
...@@ -216,7 +220,7 @@ ...@@ -216,7 +220,7 @@
<progressComm :commissionratioList="EuropeProfit"></progressComm> <progressComm :commissionratioList="EuropeProfit"></progressComm>
</div> </div>
</div> </div>
<div class="CommissionLadder Line" style="margin: 0 0 0 0;"> <div class="CommissionLadder Line border-bottom" style="margin: 0 0 0 0;">
<div class="title"> <div class="title">
<span>其他线小包团、落地团以及单项提成</span> <span>其他线小包团、落地团以及单项提成</span>
</div> </div>
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
<el-table-column width="200" prop="CreateTimeStr" label="订单Id" show-overflow-tooltip> <el-table-column width="200" prop="CreateTimeStr" label="订单Id" show-overflow-tooltip>
<template slot-scope="scope"> <template slot-scope="scope">
<div> <div>
<p class="cursor-pointer c059FF6 fz18 row-c" @click="goDetails(scope.row)"> <p class="cursor-p c059FF6 fz18 row-c" @click="goDetails(scope.row,1)">
<el-tag style="margin-right: 5px;" size="mini">{{scope.row.OrderTypeName}}</el-tag> <el-tag style="margin-right: 5px;" size="mini">{{scope.row.OrderTypeName}}</el-tag>
<span>{{scope.row.OrderId}}</span> <span>{{scope.row.OrderId}}</span>
</p> </p>
...@@ -17,8 +17,9 @@ ...@@ -17,8 +17,9 @@
<el-table-column width="200" prop="CreateTimeStr" label="团号" show-overflow-tooltip> <el-table-column width="200" prop="CreateTimeStr" label="团号" show-overflow-tooltip>
<template slot-scope="scope"> <template slot-scope="scope">
<div> <div>
<p class=" fz14" :class="{'cursor-pointer c059FF6':scope.row.OrderType==2}" <p class=" fz14" :style="{'color': scope.row.OrderType==2?'#059FF6':'',
@click="scope.row.OrderType==2?goTuanDetails(scope.row):''">{{scope.row.TCNUM}}</p> 'cursor': scope.row.OrderType==2?'pointer':''}"
@click="scope.row.OrderType==2?goDetails(scope.row,2):''">{{scope.row.TCNUM}}</p>
<p>出发日期:{{scope.row.StartDate}}</p> <p>出发日期:{{scope.row.StartDate}}</p>
</div> </div>
</template> </template>
...@@ -106,7 +107,35 @@ ...@@ -106,7 +107,35 @@
}, },
methods: { methods: {
goDetails(row,type){
let name
if(type==1) {
name = 'erpCustomerOrderDay'
this.$router.push({
path: name,
query: {
OrderId: row.OrderId,
blank: 'y',
tab: ''
}
});
}else if(type==2){
if (row.IsOneDayOrder == 1) {
name = 'groupTourOrderByTuanOne'
} else {
name = 'groupTourOrderByTuan'
}
this.$router.push({
name: name,
query: {
id: row.TCID,
tcmun: row.TCNUM,
blank: "y",
}
});
}
}
} }
}; };
......
...@@ -3,35 +3,26 @@ ...@@ -3,35 +3,26 @@
<el-table border ref="multipleTable" :data="OrderList" <el-table border ref="multipleTable" :data="OrderList"
:default-sort="{prop: 'null', order: 'null'}" :default-sort="{prop: 'null', order: 'null'}"
:sort-by="['Money','Income','PreferTipAmount','PlatformTax','Refund','CostMoney','OrderProfit','DueInMoney']"> :sort-by="['Money','Income','PreferTipAmount','PlatformTax','Refund','CostMoney','OrderProfit','DueInMoney']">
<el-table-column prop="Title" label="团名"> <el-table-column width="200" prop="CreateTimeStr" label="团号" show-overflow-tooltip>
</el-table-column> <template slot-scope="scope">
<el-table-column width="200" prop="CreateTimeStr" label="团号" show-overflow-tooltip> <div>
<template slot-scope="scope"> <p class="cursor-pointer fz14" style="color: #059FF6;cursor: pointer;"
<div> @click="goDetails(scope.row)">{{scope.row.TCNUM}}({{scope.row.TCID}})</p>
<p class=" fz14" :class="{'cursor-pointer c059FF6':scope.row.OrderType==2}" </div>
@click="scope.row.OrderType==2?goTuanDetails(scope.row):''">{{scope.row.TCNUM}}({{scope.row.TCID}})</p> </template>
<p>出团日期:{{scope.row.StartDate}}</p> </el-table-column>
</div> <el-table-column prop="StartDate" label="出团日期"></el-table-column>
</template> <el-table-column label="类型">
</el-table-column> <template slot-scope="scope">
<el-table-column prop="GuestNum" label="收客人数"> {{scope.row.TeamTypeName}}/{{scope.row.PriceTeamTypeName}}
</el-table-column> </template>
<el-table-column label="类型"> </el-table-column>
<template slot-scope="scope"> <el-table-column prop="LineName" label="线路" show-overflow-tooltip></el-table-column>
{{scope.row.TeamTypeName}}/{{scope.row.PriceTeamTypeName}} <el-table-column prop="LtName" label="系列" show-overflow-tooltip></el-table-column>
</template> <el-table-column prop="Title" label="团名" show-overflow-tooltip></el-table-column>
</el-table-column> <el-table-column prop="GuestNum" label="收客人数"></el-table-column>
<el-table-column label="线路/系列" show-overflow-tooltip> <el-table-column prop="Status" label="状态"></el-table-column>
<template slot-scope="scope"> </el-table>
{{scope.row.LineName}}/{{scope.row.LtName}}
</template>
</el-table-column>
<el-table-column prop="StateName" label="状态" show-overflow-tooltip>
<template slot-scope="scope">
<span>{{scope.row.Status}}</span>
</template>
</el-table-column>
</el-table>
</div> </div>
</template> </template>
<script> <script>
...@@ -63,7 +54,26 @@ ...@@ -63,7 +54,26 @@
}, },
methods: { methods: {
goDetails(row){
let name
if(row.TeamType==0){
name = 'TravelControlList'
}else if(row.TeamType==1){
name = 'TravelControlListSale'
}else if(row.TeamType==2){
name = 'oneDayTrip'
}
this.$router.push({
path: name,
query: {
TCID: row.TCID,
id: row.TCID,
tcmun: row.TCNUM,
blank: 'y',
tab: ''
}
});
}
} }
}; };
......
...@@ -136,7 +136,7 @@ ...@@ -136,7 +136,7 @@
} }
}else if(this.type==1){ }else if(this.type==1){
return () => { return () => {
return `${row.EndValue>999?'>'+row.StartValue:row.StartValue+' - '+row.EndValue}` return `${row.EndValue>999?'>'+row.StartValue:row.StartValue+' - '+row.EndValue}`
} }
} }
......
...@@ -193,6 +193,7 @@ ...@@ -193,6 +193,7 @@
.ladder-list{ .ladder-list{
flex: 1; flex: 1;
min-width: 460px; min-width: 460px;
max-width: 460px;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
justify-content: space-between; justify-content: space-between;
...@@ -225,12 +226,12 @@ ...@@ -225,12 +226,12 @@
<el-col :span="12" style="padding-right: 0;"> <el-col :span="12" style="padding-right: 0;">
<div class="el-col-div ownScrollbarStyle PersonalData_l" style="height: auto;background: #fff;"> <div class="el-col-div ownScrollbarStyle PersonalData_l" style="height: auto;background: #fff;">
<div class="l_top" style="position: relative;"> <div class="l_top" style="position: relative;">
<img v-if="data.icon !=null && data.icon !='' " :src="data.icon" alt="" class="tx_img" <img v-if="userInfo.Icon !=null && userInfo.Icon !='' " :src="userInfo.Icon" alt="" class="tx_img"
:onerror='defaultHeadImg'> :onerror='defaultHeadImg'>
<img v-else src="../../assets/img/default_head_img.jpg" alt="" alt="" class="tx_img"> <img v-else src="../../assets/img/default_head_img.jpg" alt="" alt="" class="tx_img">
<div class="p_name" style="margin-top:20px"> <div class="p_name" style="margin-top:20px">
<span>{{data.emName}}</span> <span>{{userInfo.emName}}</span>
<span>{{data.postName}}</span> <span>{{userInfo.PostName}}</span>
</div> </div>
<div style="display: flex;justify-content: space-between;"> <div style="display: flex;justify-content: space-between;">
<div style="cursor: pointer;cursor: pointer;position: relative;" class="royalty" @click="goAnticipate(1)"> <div style="cursor: pointer;cursor: pointer;position: relative;" class="royalty" @click="goAnticipate(1)">
...@@ -278,7 +279,8 @@ ...@@ -278,7 +279,8 @@
</div> </div>
</el-col> </el-col>
<el-col :span="12" style="padding-right: 0;"> <el-col :span="12" style="padding-right: 0;">
<div class="el-col-div ownScrollbarStyle PersonalData_l" style="height: 158px;background: #fff;"> <div class="el-col-div ownScrollbarStyle PersonalData_l"
style="height: 158px;background: #fff;position: relative;">
<div class="title-Month"> <div class="title-Month">
<template v-for="(item ,index) in MonthList"> <template v-for="(item ,index) in MonthList">
<input type="button" :key="index" <input type="button" :key="index"
...@@ -295,7 +297,8 @@ ...@@ -295,7 +297,8 @@
<p><span>总预期奖金:</span><span>{{CommissionJJ}}</span></p> <p><span>总预期奖金:</span><span>{{CommissionJJ}}</span></p>
<p><span>总预期提成:</span><span>{{CommissionTC}}</span></p> <p><span>总预期提成:</span><span>{{CommissionTC}}</span></p>
</div> </div>
<p style="color: red;font-size: 14px;text-align: right;">注:操作提成需已结团后方可发放提成,以下预期提成均为已结团统计</p> <p style="color: red;font-size: 14px;text-align: right;position: absolute;bottom: 10px;
right: 20px;">注:操作提成需已结团后方可发放提成,以下预期提成均为已结团统计</p>
</div> </div>
</div> </div>
</el-col> </el-col>
...@@ -328,18 +331,19 @@ ...@@ -328,18 +331,19 @@
</div> </div>
</template> </template>
<div class="border-bottom" v-if="isVisa"> <div class="border-bottom" v-if="isVisa">
<p style="font-size: 16px;font-weight: bold;color: black;padding: 10px 0 0 0;">小包团{{!isBranchCompany?'、落地团':''}}以及单项提成</p> <p style="font-size: 16px;font-weight: bold;color: black;padding: 10px 0 0 0;"
v-if="item.BranchList[0].GradeRuleList.length>0">小包团{{!isBranchCompany?'、落地团':''}}以及单项提成</p>
<div class="ladder-form" style="margin-top: 3px;"> <div class="ladder-form" style="margin-top: 3px;">
<div class="ladder-form-box"> <div class="ladder-form-box">
<template v-for="(s,indexs) in item.BranchList"> <template v-if="item.BranchList[0].GradeRuleList.length>0">
<div class="ladder-list"> <div class="ladder-list" v-for="(s,indexs) in item.BranchList">
<div class="ladder-title">{{s.BranchName}}</div> <div class="ladder-title">{{s.BranchName}}</div>
<div class="CommissionInfor"> <div class="CommissionInfor">
<span> <span>
当月团数:<span>{{s.TravelNum}}</span> 团数:<span>{{s.TravelNum}}</span>
</span> </span>
<span> <span>
单项单数:<span>{{s.SingleOrderNum}}</span> 单项单数:<span>{{s.SingleOrderNum}}</span>
</span> </span>
<span> <span>
预期利润:<span>{{s.Profit}}</span> 预期利润:<span>{{s.Profit}}</span>
...@@ -356,10 +360,10 @@ ...@@ -356,10 +360,10 @@
</div> </div>
</template> </template>
<div class="ladder-list"> <div class="ladder-list">
<div class="ladder-title">额外奖励 (不含落地团)</div> <div class="ladder-title">额外奖励 {{isBranchCompany?'(需独立成团、不含落地团)':''}}</div>
<div class="CommissionInfor"> <div class="CommissionInfor">
<span> <span>
当月团数:<span>{{item.TravelAward.TravelNum}}</span> 团数:<span>{{item.TravelAward.TravelNum}}</span>
</span> </span>
<span> <span>
奖励:<span>{{item.TravelAward.AwardMoney}}</span> 奖励:<span>{{item.TravelAward.AwardMoney}}</span>
...@@ -402,7 +406,7 @@ ...@@ -402,7 +406,7 @@
</div> </div>
</div> </div>
<div class="commissionProject" style="display: flex;flex-wrap: wrap;border: 0;" <div class="commissionProject" style="display: flex;flex-wrap: wrap;border: 0;"
v-if="(isVisa||!isBranchCompany)&&!index"> v-if="(isVisa&&!isBranchCompany)&&!index">
<div> <div>
<div style="display: flex;"> <div style="display: flex;">
<div> <div>
...@@ -410,7 +414,7 @@ ...@@ -410,7 +414,7 @@
<span class="ProjectTitle">助理奖励 <span class="ProjectTitle">助理奖励
</span> </span>
</div> </div>
<p>系列团助理op人头提成</p> <p>系列团、小包团助理op人头奖励</p>
<div class="groupTourOrder"> <div class="groupTourOrder">
<span>报名人数:<span>{{ZLOPAward.TravelPeopleNum}}</span></span> <span>报名人数:<span>{{ZLOPAward.TravelPeopleNum}}</span></span>
<span>单价:<span>{{ZLOPAward.TravelUnitPrice}}元/人</span></span> <span>单价:<span>{{ZLOPAward.TravelUnitPrice}}元/人</span></span>
...@@ -435,7 +439,7 @@ ...@@ -435,7 +439,7 @@
</div> </div>
</div> </div>
</template> </template>
<div style="display: flex;margin: 10px 0 10px 0;"> <div style="display: flex;margin: 10px 0 10px 0;" v-if="isVisa">
<div class="CommissionLadder Line" style="width: 100%;margin: 0 0 0 0;padding: 16px 20px 0 20px;flex-shrink: 0;"> <div class="CommissionLadder Line" style="width: 100%;margin: 0 0 0 0;padding: 16px 20px 0 20px;flex-shrink: 0;">
<div style="display: flex;justify-content: space-between;"> <div style="display: flex;justify-content: space-between;">
<span style="font-weight: bold;font-size: 16px;">国内提成 <span style="font-weight: bold;font-size: 16px;">国内提成
...@@ -554,6 +558,7 @@ ...@@ -554,6 +558,7 @@
export default { export default {
data (){ data (){
return{ return{
userInfo: {},
isBranchCompany: false, isBranchCompany: false,
isVisa: false, isVisa: false,
jianjin: 0, jianjin: 0,
...@@ -740,7 +745,7 @@ ...@@ -740,7 +745,7 @@
this.apipost('opcommission_GetOPNotGroupOutTravelList', {}, this.apipost('opcommission_GetOPNotGroupOutTravelList', {},
res => { res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
let data = res.data.data.pageData?res.data.data.pageData:[] let data = res.data.data?res.data.data:[]
if(data&&data.length>5){ if(data&&data.length>5){
for(let i=0;i<5;i++){ for(let i=0;i<5;i++){
this.OrderList.push(data[i]) this.OrderList.push(data[i])
...@@ -758,24 +763,9 @@ ...@@ -758,24 +763,9 @@
}, },
// 近期提成 // 近期提成
iWorkbench() { iWorkbench() {
let Info this.apipost('opcommission_GetLatelyOPCommission', {}, res => {
this.apipost('customerIndex_post_GetMySelfSellInfo', {}, res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.data = res.data.data; this.data = res.data.data;
Info = res.data.data
if(Info.postName.indexOf('签证')==-1){
this.isVisa = true
}
this.apipost('opcommission_GetLatelyOPCommission', {}, res => {
if (res.data.resultCode == 1) {
this.data = res.data.data;
this.data.icon = Info.icon
this.data.emName = Info.emName
this.data.postName = Info.postName
} else {
this.$message.error(res.data.message)
}
}, err => {})
} else { } else {
this.$message.error(res.data.message) this.$message.error(res.data.message)
} }
...@@ -814,6 +804,10 @@ ...@@ -814,6 +804,10 @@
} }
let userInfo = this.getLocalStorage(); let userInfo = this.getLocalStorage();
this.userInfo = userInfo
if(userInfo.PostName.indexOf('签证')==-1){
this.isVisa = true
}
if(userInfo.RB_Branch_id>0){ if(userInfo.RB_Branch_id>0){
this.isBranchCompany = true this.isBranchCompany = true
} }
......
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