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

页面修改

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