|
|
@@ -370,7 +370,7 @@ export default { |
|
|
|
// 1.大于0 - 录入本月工资金额的数值必须大于外判工时金额数值 |
|
|
|
// 2.等于0 - 录入本月工资金额的数值必须与外判工时金额数值相等 |
|
|
|
if (item.shijiTotal > 0) { |
|
|
|
if (ee > item.assign_money) { |
|
|
|
if (ee > parseFloat(item.assign_money)) { |
|
|
|
let newitem = JSON.parse(JSON.stringify(item)); |
|
|
|
newitem.wages_money = ee.toFixed(2).replace(/[^0-9.]/g, ""); |
|
|
|
this.gongzi.splice(idx, 1, newitem); |
|
|
@@ -388,7 +388,7 @@ export default { |
|
|
|
this.edit_idx = -1; |
|
|
|
} |
|
|
|
} else { |
|
|
|
if (ee == item.assign_money) { |
|
|
|
if (ee == parseFloat(item.assign_money)) { |
|
|
|
let newitem = JSON.parse(JSON.stringify(item)); |
|
|
|
newitem.wages_money = ee.toFixed(2).replace(/[^0-9.]/g, ""); |
|
|
|
this.gongzi.splice(idx, 1, newitem); |
|
|
@@ -573,7 +573,7 @@ export default { |
|
|
|
// 2.等于0 - 录入本月工资金额的数值必须与外判工时金额数值相等 |
|
|
|
if (item.shijiTotal > 0) { |
|
|
|
if (item.assign_money == "") { |
|
|
|
if (item.wages_money <= 0) { |
|
|
|
if (parseFloat(item.wages_money) <= 0) { |
|
|
|
this.$Message["error"]({ |
|
|
|
content: |
|
|
|
item.user_name +" 本月工资金额必须大于外判工资", |
|
|
@@ -581,7 +581,8 @@ export default { |
|
|
|
}); |
|
|
|
gongziLock = false; |
|
|
|
} |
|
|
|
} else if (item.wages_money <= item.assign_money) { |
|
|
|
} else if (parseFloat(item.wages_money) <=parseFloat(item.assign_money) ) { |
|
|
|
|
|
|
|
this.$Message["error"]({ |
|
|
|
content: item.user_name +" 本月工资金额必须大于外判工资", |
|
|
|
duration: 5, |
|
|
@@ -591,7 +592,7 @@ export default { |
|
|
|
} else if (item.shijiTotal == 0) { |
|
|
|
// 如果外判工资等于空,则本月工资必须为0,否则本月工资等于外判工资 |
|
|
|
if (item.assign_money == "") { |
|
|
|
if (item.wages_money != 0) { |
|
|
|
if ( parseFloat(item.wages_money)!= 0) { |
|
|
|
this.$Message["error"]({ |
|
|
|
content: |
|
|
|
item.user_name +" 本月工资金额必须等于外判工资", |
|
|
@@ -599,7 +600,7 @@ export default { |
|
|
|
}); |
|
|
|
gongziLock = false; |
|
|
|
} |
|
|
|
} else if (item.wages_money != item.assign_money) { |
|
|
|
} else if (parseFloat(item.wages_money) !=parseFloat(item.assign_money) ) { |
|
|
|
this.$Message["error"]({ |
|
|
|
content: item.user_name +" 本月工资金额必须等于外判工资", |
|
|
|
duration: 5, |