Commit 8dd8627a by zhangxw

工资绩效本月预计提成字段更换

1 parent 1c3edc33
......@@ -156,8 +156,8 @@ Page({
// console.log(Boolean(item.minimumWage && item.minimumWage > item.finalWage));
let currentMonthYear = wx.$util.tsFormatTime(new Date(), 'Y-M')
// 获取当前月份
if (currentMonthYear == item.performanceMonth) { // 当月预计工资
data.finalWage = item.staffDataList?.[0]?.finalWage + item.staffDataList?.[0]?.performanceWage
if (currentMonthYear == item.performanceMonth) { // 当月预计工资提成
data.finalWage = item.staffDataList?.[0]?.performanceWage
}
item.staffDataList = item.staffDataList.map((childItem) => {
// if (Boolean(childItem.minimumWage && childItem.minimumWage > childItem.finalWage)) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!