Commit f8b56be9 authored by zhengke's avatar zhengke

no message

parent 797e013f
...@@ -130,11 +130,6 @@ ...@@ -130,11 +130,6 @@
<el-table-column <el-table-column
prop="DeptName" prop="DeptName"
label="部门"> label="部门">
</el-table-column>
<el-table-column
prop="EmpId"
label="用户Id"
show-overflow-tooltip>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="EmName" prop="EmName"
...@@ -299,6 +294,19 @@ ...@@ -299,6 +294,19 @@
data.push(item.EmpId) data.push(item.EmpId)
}) })
this.BillMakingMsg.EmpIds = data.join(',') this.BillMakingMsg.EmpIds = data.join(',')
this.$confirm("是否制单? 制单后无法更改制单状态,如需修改请联系管理员", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning"
})
.then(() => {
this.BillMakingFun()
})
.catch(() => {});
},
BillMakingFun(){
this.crmapipost( this.crmapipost(
'/api/Commission/SetCommissionSendEmployee', this.BillMakingMsg, '/api/Commission/SetCommissionSendEmployee', this.BillMakingMsg,
res => { res => {
...@@ -328,7 +336,6 @@ ...@@ -328,7 +336,6 @@
}, },
err => {} err => {}
) )
}, },
// 点击制单 // 点击制单
YijianZD(item,type) { YijianZD(item,type) {
......
...@@ -94,9 +94,9 @@ ...@@ -94,9 +94,9 @@
<td>{{item.OrderId}}</td> <td>{{item.OrderId}}</td>
<td>{{item.OrderProfit}}</td> <td>{{item.OrderProfit}}</td>
<td>{{item.Commission}}</td> <td>{{item.Commission}}</td>
<td>{{item.CommissionRate?item.CommissionRate+'%':'-'}}</td> <td>{{item.CommissionRate}}%</td>
<td>{{item.BonusMoney}}</td> <td>{{item.BonusMoney}}</td>
<td>{{item.BonusRate?item.BonusRate+'%':'-'}}</td> <td>{{item.BonusRate}}%</td>
<td>{{item.Month}}</td> <td>{{item.Month}}</td>
<td>{{item.Remark?item.Remark:'-'}}</td> <td>{{item.Remark?item.Remark:'-'}}</td>
</tr> </tr>
...@@ -137,14 +137,17 @@ ...@@ -137,14 +137,17 @@
disabled: true, disabled: true,
titleList:[ titleList:[
{name:'不限',id:'-1'}, {name:'不限',id:'-1'},
{name:'引流规则',id:'2'}, {name:'引流',id:'2'},
{name:'销售规则',id:'1'} {name:'销售',id:'1'}
], ],
} }
}, },
mounted() { mounted() {
let userInfo = this.getLocalStorage(); let userInfo = this.getLocalStorage();
this.getEmployee() //人员
this.GetCommissionPeroidsList()//期数
let ActionMenuCode = userInfo.ActionMenuCode; let ActionMenuCode = userInfo.ActionMenuCode;
if (this.$route.query) { //不大于0的话用默认值 if (this.$route.query) { //不大于0的话用默认值
if (this.$route.query.PeriodsId && this.$route.query.PeriodsId > 0) { if (this.$route.query.PeriodsId && this.$route.query.PeriodsId > 0) {
...@@ -154,9 +157,6 @@ ...@@ -154,9 +157,6 @@
this.msg.EmpType = this.$route.query.EmpType this.msg.EmpType = this.$route.query.EmpType
} }
} }
this.getList();
this.getEmployee() //人员
this.GetCommissionPeroidsList()//期数
}, },
methods: { methods: {
GetCommissionPeroidsList() { //期数下拉 GetCommissionPeroidsList() { //期数下拉
...@@ -183,6 +183,10 @@ ...@@ -183,6 +183,10 @@
res => { res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.searchList = res.data.data; this.searchList = res.data.data;
if (this.$route.query.EmpId) {
this.msg.EmpId = Number(this.$route.query.EmpId)
this.getList()
}
} }
}, },
err => {} err => {}
......
...@@ -114,9 +114,9 @@ ...@@ -114,9 +114,9 @@
<span class="cursor-p">{{item.WageType!=1?'上季度定档':'新员工比例'}}</span> <span class="cursor-p">{{item.WageType!=1?'上季度定档':'新员工比例'}}</span>
</td> </td>
<td>{{item.Commission}}</td> <td>{{item.Commission}}</td>
<td>{{item.CommissionRate?item.CommissionRate+'%':'-'}}</td> <td>{{item.CommissionRate}}%</td>
<td>{{item.BonusMoney}}</td> <td>{{item.BonusMoney}}</td>
<td>{{item.bonusRate?item.bonusRate+'%':'-'}}</td> <td>{{item.BonusRate}}%</td>
<td>{{item.Month}}</td> <td>{{item.Month}}</td>
<td> <td>
...@@ -266,8 +266,8 @@ ...@@ -266,8 +266,8 @@
departMentList:[], departMentList:[],
titleList:[ titleList:[
{name:'不限',id:'-1'}, {name:'不限',id:'-1'},
{name:'引流规则',id:'2'}, {name:'引流',id:'2'},
{name:'销售规则',id:'1'} {name:'销售',id:'1'}
], ],
} }
}, },
...@@ -345,6 +345,7 @@ ...@@ -345,6 +345,7 @@
query: { query: {
PeriodsId: this.$route.query.PeriodsId, PeriodsId: this.$route.query.PeriodsId,
EmpType:this.msg.EmpType, EmpType:this.msg.EmpType,
EmpId: item.EmpId,
blank: 'y', blank: 'y',
tab: '票务提现详情' tab: '票务提现详情'
} }
......
...@@ -693,8 +693,8 @@ export default { ...@@ -693,8 +693,8 @@ export default {
czmsg:{}, czmsg:{},
czmsgState:false, czmsgState:false,
maxmoneyTips:false, maxmoneyTips:false,
crmOrderObj:{}, crmOrderObj:null,
commissionObj:{} commissionObj:null
} }
}, },
methods:{ methods:{
...@@ -927,7 +927,7 @@ export default { ...@@ -927,7 +927,7 @@ export default {
let totalAmount = this.$commonUtils.addCommas(Math.round(this.commissionObj.totalAmount* 100) / 100) let totalAmount = this.$commonUtils.addCommas(Math.round(this.commissionObj.totalAmount* 100) / 100)
if(this.allPriceTo!=totalAmount){ if(this.allPriceTo!=totalAmount){
this.Error(`实付金额不能大于小${totalAmount}!`) this.Error(`实付金额必须等${totalAmount}!`)
return return
} }
......
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