调差保存默认

This commit is contained in:
黎永顺 2022-12-28 11:40:51 +08:00
parent 506490116f
commit 755ef54c21
2 changed files with 5 additions and 3 deletions

View File

@ -357,14 +357,16 @@ class AdjustTable extends Component {
onOk: () => {
const {
adjustToOptions, categoryTypeOptions, key, target, status,
originId, targetOptions: targetOption,
originId, targetOptions: targetOption, billMonth,
...extraParams
} = record;
const month = getQueryString("billMonth");
const paymentOrg = getQueryString("paymentOrganization");
const tmpObj = { ...extraParams, target };
for (let i in tmpObj) {
Object.assign(tmpObj,{[i]:tmpObj[i].toString()})
if (tmpObj[i]) {
Object.assign(tmpObj, { [i]: tmpObj[i].toString() });
}
}
const bool = _.every(Object.keys({ ...extraParams, target }), child => {
return !!tmpObj[child];

View File

@ -29,7 +29,7 @@ class AdjustmentDefaultSlide extends Component {
paymentOrganization: it.paymentOrganization,
categoryType: it.categoryType,
welfareType: it.welfareType,
target: it.target,
target: it.targetOptions[0].key,
adjustTo: it.adjustTo,
employeeId: it.employeeId
};