Commit 62accedc authored by 黄奎's avatar 黄奎

页面修改

parent 634eb097
......@@ -650,6 +650,17 @@ export function CreateEmpBonus(data) {
});
}
/**
* 设置人头奖励未已发放
*/
export function saveEmployeeBounsIssue(data) {
return request({
url: '/Bonus/SetEmployeeBounsIssue',
method: 'post',
data
});
}
/**
* 获取人头奖励分页列表
*/
......
......@@ -16,7 +16,6 @@
cursor: pointer;
outline: none;
}
</style>
<template>
<div class="page-body empBonus">
......@@ -80,8 +79,8 @@
</el-table-column>
<el-table-column prop="IsGiveOut" label="是否已发放">
<template slot-scope="scope">
<span v-if='scope.row.IsGiveOut==1'>已发放</span>
<span v-if='scope.row.IsGiveOut==2'>未发放</span>
<span v-if='scope.row.IsIssue==1'>已发放</span>
<span v-if='scope.row.IsIssue==0'>未发放</span>
</template>
</el-table-column>
</el-table>
......@@ -96,6 +95,7 @@
<script>
import {
CreateEmpBonus,
saveEmployeeBounsIssue,
queryPersonnelPeriodPage
} from '../../../api/finance/index'
......@@ -134,11 +134,9 @@
generalFinancacls(item) {
this.CheckID = item.Id;
this.SendEmployeeList = item.BonusList;
console.log(item, '数据');
console.log(this.SendEmployeeList, '11111111');
this.tishi('3.6', this.CheckID);
this.tishi();
},
tishi(Money, Id) {
tishi() {
let that = this
this.$q.dialog({
title: "销售制单",
......@@ -196,28 +194,19 @@
let EmpIds = '';
let data = []
this.multipleSelection.forEach(x => {
data.push(x.EmployeeId)
data.push(x.Id)
})
EmpIds = data.join(',')
this.goaddFinancial(this.totalAmount, this.CheckID, EmpIds)
// let EmpIds = '';
// let data = []
// this.multipleSelection.forEach(x => {
// data.push(x.UserId)
// })
// EmpIds = data.join(',')
// setSellAchievementsSendEmployee({
// PeriodId: this.CheckID,
// EmpIds: EmpIds
// }).then(res => {
// this.goaddFinancial(this.totalAmount, this.CheckID, EmpIds)
// this.$message.success('设置成功');
// }).catch(() => {
saveEmployeeBounsIssue({
Ids: EmpIds
}).then(res => {
this.goaddFinancial(this.totalAmount, this.CheckID, EmpIds)
this.$message.success('设置成功');
}).catch(() => {
// })
})
});
},
goaddFinancial(Money, Id, EmpIds) {
let School_Id = 0;
let obj = {
......@@ -281,22 +270,20 @@
let Num = Number(Obj.ClueNumSalary + Obj.CurRewardMoney + Obj.OpenBonus) - Number(Obj.BeforeMoney);
return Num;
},
getFrnancialArr(Financials){
if(Financials){
getFrnancialArr(Financials) {
if (Financials) {
let FinanArr = Financials.split(',');
return FinanArr
}
},
gocaiwuxiangq(id){
gocaiwuxiangq(id) {
this.OpenNewUrl("/financial/financalDocument/FinancialDocumentsDetail", {
id: id
});
}
},
}
</script>
<style lang="sass">
@import url('~assets/css/table.sass')
</style>
</style>
\ No newline at end of file
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