出勤样式调整,食堂标准取数优化
This commit is contained in:
parent
0d73440d89
commit
7b45f175c2
|
@ -1388,28 +1388,24 @@ export default {
|
|||
})
|
||||
}).then(({data}) => {
|
||||
if (data && data.code == 0) {
|
||||
data.page.forEach((item) => {
|
||||
this.dateSTBZList.push(item);
|
||||
this.pjMoney += item.money;
|
||||
this.pjDay += item.day;
|
||||
this.pjStDay += item.stday;
|
||||
})
|
||||
// this.dateSTBZListCommons = [];
|
||||
// if(this.dateSTBZList.length>10){
|
||||
// this.dateSTBZListCommons = this.dateSTBZList.slice(0,10)
|
||||
// }else {
|
||||
// this.dateSTBZList.forEach(e =>{
|
||||
// this.dateSTBZListCommons.push(e)
|
||||
// })
|
||||
// data.page.forEach((item) => {
|
||||
// this.dateSTBZList.push(item);
|
||||
// this.pjMoney += item.money;
|
||||
// this.pjDay += item.day;
|
||||
// this.pjStDay += item.stday;
|
||||
// })
|
||||
// if(this.pjDay !== 0 || this.pjStDay !== 0){
|
||||
// this.bzJz = (this.pjMoney / (this.pjDay+this.pjStDay)).toFixed(2)
|
||||
// } else {
|
||||
// this.bzJz = 0
|
||||
// }
|
||||
// console.log(this.pjDay);
|
||||
if(this.pjDay !== 0 || this.pjStDay !== 0){
|
||||
this.bzJz = (this.pjMoney / (this.pjDay+this.pjStDay)).toFixed(2)
|
||||
} else {
|
||||
this.bzJz = 0
|
||||
}
|
||||
this.pjMoney = this.pjMoney.toFixed(2);
|
||||
this.pjDay = this.pjDay.toFixed(2);
|
||||
// this.pjMoney = this.pjMoney.toFixed(2);
|
||||
// this.pjDay = this.pjDay.toFixed(2);
|
||||
this.dateSTBZList = data.page.list;
|
||||
this.pjMoney = data.page.pjMoney;
|
||||
this.pjDay = data.page.pjDay;
|
||||
this.pjStDay = data.page.pjStDay;
|
||||
this.bzJz = data.page.bzJz;
|
||||
}
|
||||
})
|
||||
},
|
||||
|
|
|
@ -34,7 +34,7 @@
|
|||
<div style="padding: 0 0 10% 4%;width: 92%">
|
||||
<div style="background-color: white;border-radius: 10px;padding: 2% 1% 2% 1%;min-height: 75vh">
|
||||
<div style="overflow: auto;">
|
||||
<div v-if="buttonIndex==2" style="width: 600px;font-size: 12px;" class="TBclass">
|
||||
<div v-if="buttonIndex==2" style="width: 800px;font-size: 12px;" class="TBclass">
|
||||
<tr style="display: flex;font-weight: bold;border: 2px solid #FF0000">
|
||||
<th class="tableCQXH">序号</th>
|
||||
<th class="tableCQTd">姓名</th>
|
||||
|
|
Loading…
Reference in New Issue