Commit 17c38bdb authored by youjie's avatar youjie

no message

parents 9780906a 2232bb71
...@@ -2634,6 +2634,7 @@ else if (Type==2) { ...@@ -2634,6 +2634,7 @@ else if (Type==2) {
query: { query: {
PeriodsId: this.GetDetail.ReFinanceId, PeriodsId: this.GetDetail.ReFinanceId,
EmpIds: this.GetDetail.RelevanceFrId, EmpIds: this.GetDetail.RelevanceFrId,
EmpBranchId : this.GetDetail.RB_Branch_Id,
blank: 'y', blank: 'y',
tab: this.$t('FinanDetail.qsxq') tab: this.$t('FinanDetail.qsxq')
} }
......
...@@ -231,6 +231,7 @@ ...@@ -231,6 +231,7 @@
"Type":Type, "Type":Type,
"commissionObj":JSON.stringify(this.commissionObj), "commissionObj":JSON.stringify(this.commissionObj),
'path':this.$route.query.path, 'path':this.$route.query.path,
'companyID':this.$route.query.companyID,
blank:'y', blank:'y',
tab:'新增付款单' tab:'新增付款单'
} }
......
...@@ -1879,6 +1879,7 @@ ...@@ -1879,6 +1879,7 @@
query: { query: {
PeriodsId: this.GetDetail.ReFinanceId, PeriodsId: this.GetDetail.ReFinanceId,
EmpIds: this.GetDetail.RelevanceFrId, EmpIds: this.GetDetail.RelevanceFrId,
EmpBranchId : this.GetDetail.RB_Branch_Id,
blank: 'y', blank: 'y',
tab: this.$t('FinanDetail.qsxq') tab: this.$t('FinanDetail.qsxq')
} }
......
...@@ -32,7 +32,19 @@ ...@@ -32,7 +32,19 @@
<div class="flexOne domesticCommission"> <div class="flexOne domesticCommission">
<div> <div>
<ul class="opUl"> <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> <li>
<em>选择月份</em> <em>选择月份</em>
<el-date-picker v-model="Month" value-format="yyyy-MM" type="month" placeholder="选择月"> <el-date-picker v-model="Month" value-format="yyyy-MM" type="month" placeholder="选择月">
...@@ -50,6 +62,7 @@ ...@@ -50,6 +62,7 @@
<th>期数</th> <th>期数</th>
<th>总追加工资</th> <th>总追加工资</th>
<th>总提成</th> <th>总提成</th>
<th>归属公司提成</th>
<th>总年终</th> <th>总年终</th>
<th>{{$t('hotel.hotel_Order')}}</th> <th>{{$t('hotel.hotel_Order')}}</th>
<th>操作信息</th> <th>操作信息</th>
...@@ -62,6 +75,7 @@ ...@@ -62,6 +75,7 @@
</td> </td>
<td>{{item.SumCommission?item.SumCommission:'-'}}</td> <td>{{item.SumCommission?item.SumCommission:'-'}}</td>
<td>{{item.BranchCommission?item.BranchCommission:'-'}}</td>
<td>{{item.SumBonus?item.SumBonus:'-'}}</td> <td>{{item.SumBonus?item.SumBonus:'-'}}</td>
<td> <td>
<template v-if="item.FrIdList.length>0"> <template v-if="item.FrIdList.length>0">
...@@ -178,10 +192,16 @@ ...@@ -178,10 +192,16 @@
msg: { msg: {
pageIndex: 1, pageIndex: 1,
pageSize: 20, pageSize: 20,
EmBranchId :-1
}, },
loading: false, loading: false,
//数据源 //数据源
dataList: [], dataList: [],
companyList: [],
getCompanyMsg:{
RB_Group_Id:'0',
Status:'0',
},
total: 0, total: 0,
btnShow: false, btnShow: false,
btnLoading: false, btnLoading: false,
...@@ -199,13 +219,22 @@ ...@@ -199,13 +219,22 @@
mounted() { mounted() {
let userInfo = this.getLocalStorage(); let userInfo = this.getLocalStorage();
let ActionMenuCode = userInfo.ActionMenuCode; let ActionMenuCode = userInfo.ActionMenuCode;
this.msg.OutBranchId = userInfo.RB_Branch_id //this.msg.OutBranchId = userInfo.RB_Branch_id
if (ActionMenuCode.indexOf('F_DCommissionSend') != -1) { if (ActionMenuCode.indexOf('F_DCommissionSend') != -1) {
this.btnShow = true; this.btnShow = true;
} }
this.getCompanyMsg.RB_Group_Id=userInfo.RB_Group_id; //集团ID
this.getCompany()
this.getList() this.getList()
}, },
methods: { methods: {
getCompany(){
this.apipost('admin_get_BranchGetList',this.getCompanyMsg,res=>{
if(res.data.resultCode==1){
this.companyList=res.data.data;
}else{}
},err=>{})
},
// 是否已发放 // 是否已发放
checkSelectable (row){ checkSelectable (row){
return row.IsGiveOut != 1 return row.IsGiveOut != 1
...@@ -358,6 +387,8 @@ ...@@ -358,6 +387,8 @@
blank: "y", blank: "y",
tab: "新增付款单据", tab: "新增付款单据",
Type: 2, Type: 2,
searchTitle: '提成',
companyID: this.msg.EmBranchId,
commissionObj: JSON.stringify(this.BillMakingMsg) commissionObj: JSON.stringify(this.BillMakingMsg)
} }
this.$router.push({ this.$router.push({
...@@ -381,6 +412,12 @@ ...@@ -381,6 +412,12 @@
}, },
// 点击制单 // 点击制单
YijianZD(item,type) { YijianZD(item,type) {
if(type==1){
if(this.msg.EmBranchId==-1){
this.Error("请选择提成归属公司!");
return;
}
}
this.outerVisible = true this.outerVisible = true
this.GetCommissionSendEmployeeList(item,type) this.GetCommissionSendEmployeeList(item,type)
}, },
...@@ -390,7 +427,8 @@ ...@@ -390,7 +427,8 @@
this.BillMakingMsg.Type = type this.BillMakingMsg.Type = type
let msg = { let msg = {
PeroidsId: this.BillMakingMsg.PeroidsId, PeroidsId: this.BillMakingMsg.PeroidsId,
Type: this.BillMakingMsg.Type Type: this.BillMakingMsg.Type,
EmBranchId: this.msg.EmBranchId
} }
this.BillMakingLoading = true this.BillMakingLoading = true
this.crmapipost( this.crmapipost(
......
...@@ -28,6 +28,19 @@ ...@@ -28,6 +28,19 @@
<div class="flexOne domesticCommissiondetails"> <div class="flexOne domesticCommissiondetails">
<div style="min-height: 70px;"> <div style="min-height: 70px;">
<ul class="opUl"> <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> <li>
<em>订单类型</em> <em>订单类型</em>
<el-select v-model="msg.OrderType" class="w200 HworkInput" <el-select v-model="msg.OrderType" class="w200 HworkInput"
...@@ -103,9 +116,14 @@ ...@@ -103,9 +116,14 @@
<table v-loading="loading" class="singeRowTable" border="0" cellspacing="0" cellpadding="0" <table v-loading="loading" class="singeRowTable" border="0" cellspacing="0" cellpadding="0"
style="margin-top: 10px;"> style="margin-top: 10px;">
<tr> <tr>
<th>{{$t('salesModule.Type')}}</th> <th>{{$t('salesModule.Type')}}</th>
<!-- <th>公司</th> --> <!-- <th>公司</th> -->
<th>部门</th> <th>部门</th>
<th>提成归属公司</th>
<th>类型</th>
<th>员工部门</th>
<th>岗位</th> <th>岗位</th>
<th>姓名</th> <th>姓名</th>
<th>订单号</th> <th>订单号</th>
...@@ -131,6 +149,7 @@ ...@@ -131,6 +149,7 @@
<!-- <th>{{$t('system.table_operation')}}</th> --> <!-- <th>{{$t('system.table_operation')}}</th> -->
</tr> </tr>
<tr v-for="item in dataList"> <tr v-for="item in dataList">
<td>{{item.EmBranchName}}</td>
<td>{{item.EmpType==1?'销售':item.EmpType==2?'引流':'-'}}</td> <td>{{item.EmpType==1?'销售':item.EmpType==2?'引流':'-'}}</td>
<td style="font-size: 12px;">{{item.BranchName}} <td style="font-size: 12px;">{{item.BranchName}}
<p>{{item.DeptName}}</p> <p>{{item.DeptName}}</p>
...@@ -212,11 +231,17 @@ ...@@ -212,11 +231,17 @@
EmpType: '-1', EmpType: '-1',
OrderId:'', OrderId:'',
OrderType: -1, OrderType: -1,
Way: 0 Way: 0,
EmpBranchId :-1
}, },
loading: false, loading: false,
//数据源 //数据源
dataList: [], dataList: [],
companyList: [],
getCompanyMsg:{
RB_Group_Id:'0',
Status:'0',
},
total: 0, total: 0,
btnShow: false, btnShow: false,
PeroidsList:[], PeroidsList:[],
...@@ -242,6 +267,7 @@ ...@@ -242,6 +267,7 @@
this.msg.PeriodsId = this.$route.query.PeriodsId?Number(this.$route.query.PeriodsId):-1 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.EmpType = this.$route.query.EmpType?this.$route.query.EmpType:'-1'
this.msg.EmpId = this.$route.query.EmpId?this.$route.query.EmpId:-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) { if (ActionMenuCode.indexOf('S_CheckBranchOrder') != -1) {
this.S_CheckBranchOrder = true this.S_CheckBranchOrder = true
...@@ -256,9 +282,18 @@ ...@@ -256,9 +282,18 @@
}else{ }else{
this.disabled = true; this.disabled = true;
} }
this.getCompanyMsg.RB_Group_Id=userInfo.RB_Group_id; //集团ID
this.getCompany()
this.GetOrderTypeEnumList() this.GetOrderTypeEnumList()
}, },
methods: { methods: {
getCompany(){
this.apipost('admin_get_BranchGetList',this.getCompanyMsg,res=>{
if(res.data.resultCode==1){
this.companyList=res.data.data;
}else{}
},err=>{})
},
GetCommissionOrder(msg){ GetCommissionOrder(msg){
this.crmapipost("/api/Commission/GetCommissionOrderDetialStat", msg, (res) => { this.crmapipost("/api/Commission/GetCommissionOrderDetialStat", msg, (res) => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
......
...@@ -126,6 +126,19 @@ ...@@ -126,6 +126,19 @@
<div class="flexOne domesticCommissionUser"> <div class="flexOne domesticCommissionUser">
<div> <div>
<ul class="opUl"> <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> <li>
<em>类型</em> <em>类型</em>
<el-select v-model="msg.EmpType" size="mini" @change="handleCurrentChange(1)" filterable> <el-select v-model="msg.EmpType" size="mini" @change="handleCurrentChange(1)" filterable>
...@@ -213,7 +226,8 @@ ...@@ -213,7 +226,8 @@
<span <span
:class="item.WageReId?'cursor-p':''">{{item.WageType==1?'新员工比例':item.WageType==2?'上季度定档':'-'}}</span> :class="item.WageReId?'cursor-p':''">{{item.WageType==1?'新员工比例':item.WageType==2?'上季度定档':'-'}}</span>
</td> </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.LimitCommission != 0?item.LimitCommission:'-'}}</td>
<!-- <td>{{item.CommissionRate}}%</td> --> <!-- <td>{{item.CommissionRate}}%</td> -->
<td>{{item.EmName!='微途'&&item.BonusMoney?item.BonusMoney:'-'}}</td> <td>{{item.EmName!='微途'&&item.BonusMoney?item.BonusMoney:'-'}}</td>
...@@ -266,11 +280,17 @@ ...@@ -266,11 +280,17 @@
EmpId: -1, EmpId: -1,
PeriodsId: -1, PeriodsId: -1,
EmpType: '-1', EmpType: '-1',
Way: '-1' Way: '-1',
EmBranchId: -1
}, },
loading: false, loading: false,
//数据源 //数据源
dataList: [], dataList: [],
companyList: [],
getCompanyMsg:{
RB_Group_Id:'0',
Status:'0',
},
total: 0, total: 0,
disabled: true, disabled: true,
PeroidsList:[], PeroidsList:[],
...@@ -295,11 +315,21 @@ ...@@ -295,11 +315,21 @@
if (this.$route.query && this.$route.query.EmpIds) { if (this.$route.query && this.$route.query.EmpIds) {
this.msg.EmpIds = 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.getList()
this.getEmployee()//人员 this.getEmployee()//人员
this.GetCommissionPeroidsList()//期数 this.GetCommissionPeroidsList()//期数
}, },
methods: { 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){ clickUrl(item,type,Way){
if(type==2){//线索 if(type==2){//线索
this.clueManagement(item) this.clueManagement(item)
......
...@@ -188,12 +188,14 @@ ...@@ -188,12 +188,14 @@
<el-input v-model="msg.OrderID"></el-input> <el-input v-model="msg.OrderID"></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="4"> <el-col :span="4">
<el-form-item :label="$t('fnc.jine')+':'"> <el-form-item :label="$t('fnc.jine')+':'">
<el-input v-model="msg.sMoney" class="w64d5" @keyup.native="checkPrice(msg,'sMoney')"></el-input>- <el-input v-model="msg.sMoney" class="w64d5" @keyup.native="checkPrice(msg,'sMoney')"></el-input>-
<el-input v-model="msg.eMoney" @keyup.native="checkPrice(msg,'eMoney')" class="w64d5"></el-input> <el-input v-model="msg.eMoney" @keyup.native="checkPrice(msg,'eMoney')" class="w64d5"></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<!-- 发票标识 --> <!-- 发票标识 -->
<el-col :span="4"> <el-col :span="4">
<el-form-item label="发票标识:"> <el-form-item label="发票标识:">
...@@ -204,6 +206,22 @@ ...@@ -204,6 +206,22 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="6">
<el-form-item label="金额:">
<el-switch
v-model="msg.QMoneyType"
active-text="原币"
active-value="1"
active-color="#13ce66"
inactive-color="#ff4949"
inactive-text="本位币"
inactive-value="0">
</el-switch>
<el-input v-model="msg.sMoney" class="w64d5" @keyup.native="checkPrice(msg,'sMoney')"></el-input>-
<el-input v-model="msg.eMoney" @keyup.native="checkPrice(msg,'eMoney')" class="w64d5"></el-input>
</el-form-item>
</el-col>
<el-col :span="4"> <el-col :span="4">
<el-form-item label="金蝶状态:"> <el-form-item label="金蝶状态:">
<el-select v-model='msg.KingdeeMark'> <el-select v-model='msg.KingdeeMark'>
...@@ -891,6 +909,7 @@ ...@@ -891,6 +909,7 @@
ClientID: '', ClientID: '',
sMoney: '', sMoney: '',
eMoney: '', eMoney: '',
QMoneyType:0,
CurrencyId: '0', CurrencyId: '0',
CostTypeID: '', CostTypeID: '',
Conditon: '', Conditon: '',
......
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