diff --git a/pc4mobx/hrmSalary/components/pcTemplate/index.js b/pc4mobx/hrmSalary/components/pcTemplate/index.js index b8485277..824722e6 100644 --- a/pc4mobx/hrmSalary/components/pcTemplate/index.js +++ b/pc4mobx/hrmSalary/components/pcTemplate/index.js @@ -24,7 +24,7 @@ export const dealTemplate = (itemTypeList, type) => { const { items, groupName, groupId } = group; if (items.length !== 0) { items.forEach((item) => { - item.salaryItemValue = item.salaryItemValue || "100"; + item.salaryItemValue = !_.isNil(item.salaryItemValue) ? item.salaryItemValue : "100"; }); if (items.length % 2 && type === "pc") items.push({}); // 未分类不展示标题