Commit 5b67c4bb authored by liudong1993's avatar liudong1993

1单机票改动

parent c519c8c0
......@@ -2607,6 +2607,7 @@ else if (Type==2) {
query: {
PeriodsId: this.GetDetail.ReFinanceId,
EmpIds: this.GetDetail.RelevanceFrId,
EmpBranchId : this.GetDetail.RB_Branch_Id,
blank: 'y',
tab: '期数详情'
}
......
......@@ -231,6 +231,7 @@
"Type":Type,
"commissionObj":JSON.stringify(this.commissionObj),
'path':this.$route.query.path,
'companyID':this.$route.query.companyID,
blank:'y',
tab:'新增付款单'
}
......
......@@ -1879,6 +1879,7 @@
query: {
PeriodsId: this.GetDetail.ReFinanceId,
EmpIds: this.GetDetail.RelevanceFrId,
EmpBranchId : this.GetDetail.RB_Branch_Id,
blank: 'y',
tab: '期数详情'
}
......
......@@ -32,7 +32,19 @@
<div class="flexOne domesticCommission">
<div>
<ul class="opUl">
<li>
<em>提成归属公司</em>
<el-select filterable v-model='msg.EmBranchId'
@change='handleCurrentChange(1)'>
<el-option label="不限" :value="-1" :key="-1"></el-option>
<el-option
v-for="item in companyList"
:label='item.BName'
:value='item.Id'
:key='item.Id'
></el-option>
</el-select>
</li>
<li>
<em>选择月份</em>
<el-date-picker v-model="Month" value-format="yyyy-MM" type="month" placeholder="选择月">
......@@ -50,6 +62,7 @@
<th>期数</th>
<th>总追加工资</th>
<th>总提成</th>
<th>归属公司提成</th>
<th>总年终</th>
<th>财务单据</th>
<th>操作信息</th>
......@@ -62,6 +75,7 @@
</td>
<td>{{item.SumCommission?item.SumCommission:'-'}}</td>
<td>{{item.BranchCommission?item.BranchCommission:'-'}}</td>
<td>{{item.SumBonus?item.SumBonus:'-'}}</td>
<td>
<template v-if="item.FrIdList.length>0">
......@@ -178,10 +192,16 @@
msg: {
pageIndex: 1,
pageSize: 20,
EmBranchId :-1
},
loading: false,
//数据源
dataList: [],
companyList: [],
getCompanyMsg:{
RB_Group_Id:'0',
Status:'0',
},
total: 0,
btnShow: false,
btnLoading: false,
......@@ -199,13 +219,22 @@
mounted() {
let userInfo = this.getLocalStorage();
let ActionMenuCode = userInfo.ActionMenuCode;
this.msg.OutBranchId = userInfo.RB_Branch_id
//this.msg.OutBranchId = userInfo.RB_Branch_id
if (ActionMenuCode.indexOf('F_DCommissionSend') != -1) {
this.btnShow = true;
}
this.getCompanyMsg.RB_Group_Id=userInfo.RB_Group_id; //集团ID
this.getCompany()
this.getList()
},
methods: {
getCompany(){
this.apipost('admin_get_BranchGetList',this.getCompanyMsg,res=>{
if(res.data.resultCode==1){
this.companyList=res.data.data;
}else{}
},err=>{})
},
// 是否已发放
checkSelectable (row){
return row.IsGiveOut != 1
......@@ -358,6 +387,8 @@
blank: "y",
tab: "新增付款单据",
Type: 2,
searchTitle: '提成',
companyID: this.msg.EmBranchId,
commissionObj: JSON.stringify(this.BillMakingMsg)
}
this.$router.push({
......@@ -381,6 +412,12 @@
},
// 点击制单
YijianZD(item,type) {
if(type==1){
if(this.msg.EmBranchId==-1){
this.Error("请选择提成归属公司!");
return;
}
}
this.outerVisible = true
this.GetCommissionSendEmployeeList(item,type)
},
......@@ -390,7 +427,8 @@
this.BillMakingMsg.Type = type
let msg = {
PeroidsId: this.BillMakingMsg.PeroidsId,
Type: this.BillMakingMsg.Type
Type: this.BillMakingMsg.Type,
EmBranchId: this.msg.EmBranchId
}
this.BillMakingLoading = true
this.crmapipost(
......
......@@ -28,6 +28,19 @@
<div class="flexOne domesticCommissiondetails">
<div style="min-height: 70px;">
<ul class="opUl">
<li>
<em>提成归属公司</em>
<el-select filterable v-model='msg.EmpBranchId'
@change='handleCurrentChange(1)'>
<el-option label="不限" :value="-1" :key="-1"></el-option>
<el-option
v-for="item in companyList"
:label='item.BName'
:value='item.Id'
:key='item.Id'
></el-option>
</el-select>
</li>
<li>
<em>订单类型</em>
<el-select v-model="msg.OrderType" class="w200 HworkInput"
......@@ -103,9 +116,9 @@
<table v-loading="loading" class="singeRowTable" border="0" cellspacing="0" cellpadding="0"
style="margin-top: 10px;">
<tr>
<th>提成归属公司</th>
<th>类型</th>
<!-- <th>公司</th> -->
<th>部门</th>
<th>员工部门</th>
<th>岗位</th>
<th>姓名</th>
<th>订单号</th>
......@@ -131,6 +144,7 @@
<!-- <th>操作</th> -->
</tr>
<tr v-for="item in dataList">
<td>{{item.EmBranchName}}</td>
<td>{{item.EmpType==1?'销售':item.EmpType==2?'引流':'-'}}</td>
<td style="font-size: 12px;">{{item.BranchName}}
<p>{{item.DeptName}}</p>
......@@ -212,11 +226,17 @@
EmpType: '-1',
OrderId:'',
OrderType: -1,
Way: 0
Way: 0,
EmpBranchId :-1
},
loading: false,
//数据源
dataList: [],
companyList: [],
getCompanyMsg:{
RB_Group_Id:'0',
Status:'0',
},
total: 0,
btnShow: false,
PeroidsList:[],
......@@ -242,6 +262,7 @@
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
this.msg.EmpBranchId = this.$route.query.EmpBranchId !=null && this.$route.query.EmpBranchId>=0?this.$route.query.EmpBranchId:-1
// 判断是否销售
if (ActionMenuCode.indexOf('S_CheckBranchOrder') != -1) {
this.S_CheckBranchOrder = true
......@@ -256,9 +277,18 @@
}else{
this.disabled = true;
}
this.getCompanyMsg.RB_Group_Id=userInfo.RB_Group_id; //集团ID
this.getCompany()
this.GetOrderTypeEnumList()
},
methods: {
getCompany(){
this.apipost('admin_get_BranchGetList',this.getCompanyMsg,res=>{
if(res.data.resultCode==1){
this.companyList=res.data.data;
}else{}
},err=>{})
},
GetCommissionOrder(msg){
this.crmapipost("/api/Commission/GetCommissionOrderDetialStat", msg, (res) => {
if (res.data.resultCode == 1) {
......
......@@ -126,6 +126,19 @@
<div class="flexOne domesticCommissionUser">
<div>
<ul class="opUl">
<li>
<em>提成归属公司</em>
<el-select filterable v-model='msg.EmBranchId'
@change='handleCurrentChange(1)'>
<el-option label="不限" :value="-1" :key="-1"></el-option>
<el-option
v-for="item in companyList"
:label='item.BName'
:value='item.Id'
:key='item.Id'
></el-option>
</el-select>
</li>
<li>
<em>类型</em>
<el-select v-model="msg.EmpType" size="mini" @change="handleCurrentChange(1)" filterable>
......@@ -213,7 +226,8 @@
<span
:class="item.WageReId?'cursor-p':''">{{item.WageType==1?'新员工比例':item.WageType==2?'上季度定档':'-'}}</span>
</td>
<td>{{item.Commission?item.Commission:'-'}}</td>
<!-- <td>{{item.Commission?item.Commission:'-'}}</td> -->
<td>{{item.BranchCommission?item.BranchCommission:'-'}}</td>
<td>{{item.LimitCommission != 0?item.LimitCommission:'-'}}</td>
<!-- <td>{{item.CommissionRate}}%</td> -->
<td>{{item.EmName!='微途'&&item.BonusMoney?item.BonusMoney:'-'}}</td>
......@@ -266,11 +280,17 @@
EmpId: -1,
PeriodsId: -1,
EmpType: '-1',
Way: '-1'
Way: '-1',
EmBranchId: -1
},
loading: false,
//数据源
dataList: [],
companyList: [],
getCompanyMsg:{
RB_Group_Id:'0',
Status:'0',
},
total: 0,
disabled: true,
PeroidsList:[],
......@@ -295,11 +315,21 @@
if (this.$route.query && this.$route.query.EmpIds) {
this.msg.EmpIds = this.$route.query.EmpIds
}
this.msg.EmBranchId = this.$route.query.EmpBranchId !=null && this.$route.query.EmpBranchId>=0?Number(this.$route.query.EmpBranchId):-1
this.getCompanyMsg.RB_Group_Id=userInfo.RB_Group_id; //集团ID
this.getCompany()
this.getList()
this.getEmployee()//人员
this.GetCommissionPeroidsList()//期数
},
methods: {
getCompany(){
this.apipost('admin_get_BranchGetList',this.getCompanyMsg,res=>{
if(res.data.resultCode==1){
this.companyList=res.data.data;
}else{}
},err=>{})
},
clickUrl(item,type,Way){
if(type==2){//线索
this.clueManagement(item)
......
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