调差保存默认
This commit is contained in:
parent
506490116f
commit
755ef54c21
|
|
@ -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];
|
||||
|
|
|
|||
|
|
@ -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
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue