feature/2.9.9.2312.01-社保核算以及薪资账套查询优化

This commit is contained in:
黎永顺 2023-11-30 09:10:59 +08:00
parent 84d4df6d3d
commit 9949df47fb
1 changed files with 4 additions and 7 deletions

View File

@ -91,12 +91,11 @@ class SupplementarySlide extends Component {
_.map(inputPaymentAmount[item], child => {
const key = child.insuranceId, valuePer = child[`${child.insuranceId}_per`],
valueCom = child[`${child.insuranceId}_com`];
console.log(child);
if (!_.isNil(valuePer) && valuePer !== "") {
_.assign(payload[`${item}PerString`], { [key]: toDecimal_n(valuePer, 2) });
if (!_.isNil(valuePer) && !child.perDisabled) {
_.assign(payload[`${item}PerString`], { [key]: toDecimal_n(valuePer, 2) || "0" });
}
if (!_.isNil(valueCom) && valuePer !== "") {
_.assign(payload[`${item}ComString`], { [key]: toDecimal_n(valueCom, 2) });
if (!_.isNil(valueCom) && !child.comDisabled) {
_.assign(payload[`${item}ComString`], { [key]: toDecimal_n(valueCom, 2) || "0" });
}
});
});
@ -133,8 +132,6 @@ class SupplementarySlide extends Component {
...this.convertBusinessAccounting(),
...this.convertInputPaymentAmount()
};
console.log(payload);
return;
this.setState({ loading: true });
siaccountSupplementarySave(payload).then(({ status, errormsg }) => {
this.setState({ loading: false });