|
|
@@ -467,10 +467,10 @@ export default window.$crudCommon({
|
|
|
name: 'yfCostManage/basicDataSetting/workHoursRecords',
|
|
|
res: ({ data }) => {
|
|
|
let newList = [];
|
|
|
- data.records.forEach((item) => {
|
|
|
+ data.records.forEach((item, idx) => {
|
|
|
let objData = {
|
|
|
...item,
|
|
|
- id: item.unicode+'_'+item.xmId,
|
|
|
+ id: (item.unicode || idx)+'_'+item.xmId,
|
|
|
monthlyHours: (item.monthlyHours || 0).toFixed(1),
|
|
|
monthlyDays: (item.monthlyDays || 0).toFixed(1)
|
|
|
};
|