bug修复
This commit is contained in:
parent
cf1f12451e
commit
ef7e7d4ae5
|
|
@ -49,7 +49,7 @@ class Index extends Component {
|
|||
importPayload: {
|
||||
visible: false,
|
||||
importOpts: {
|
||||
declareMonth: moment(new Date()).format("YYYY-MM")
|
||||
taxYearMonth: moment(new Date()).format("YYYY-MM")
|
||||
},
|
||||
importFormComponent: null,
|
||||
step: 0,
|
||||
|
|
|
|||
|
|
@ -90,7 +90,7 @@ export default class LedgerSalaryItemAddModal extends React.Component {
|
|||
if (item.id === key) {
|
||||
item.salaryItemId = item.id;
|
||||
item.key = item.id;
|
||||
item.sortedIndex = (!_.isEmpty(_.maxBy(arrItems, it => it.sortedIndex)) ? _.maxBy(arrItems, it => it.sortedIndex).sortedIndex : 0) + keyIdx + 1 ;
|
||||
item.sortedIndex = (!_.isEmpty(_.maxBy(arrItems, it => it.sortedIndex)) ? _.maxBy(arrItems, it => it.sortedIndex).sortedIndex : 0) + keyIdx + 1;
|
||||
selectItems.push(item);
|
||||
}
|
||||
});
|
||||
|
|
@ -139,7 +139,7 @@ export default class LedgerSalaryItemAddModal extends React.Component {
|
|||
/>
|
||||
</div>
|
||||
<WeaTable
|
||||
rowKey="id"
|
||||
rowKey={record => record.id || record.key}
|
||||
rowSelection={rowSelection}
|
||||
dataSource={dataSource}
|
||||
pagination={pagination}
|
||||
|
|
|
|||
|
|
@ -125,7 +125,7 @@ class LedgerSlide extends Component {
|
|||
};
|
||||
}),
|
||||
items: _.map(_.find(itemGroups, it => it.name === "未分类").items, child => {
|
||||
if (child.id && child.id.length > 4) delete child.id;
|
||||
// if (child.id && child.id.length > 4) delete child.id;
|
||||
return { ...child };
|
||||
}) || [],
|
||||
salarySobId: salarySobId || saveSalarySobId
|
||||
|
|
|
|||
Loading…
Reference in New Issue