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