custom/鲁控数字-薪资核算列表页面批量编辑
黎永顺 1 year ago
parent e794d1021f
commit be82684622

@ -165,6 +165,12 @@
}
}
tr:hover .editable-cell {
padding: 4px 11px;
border: 1px solid #d9d9d9;
border-radius: 2px;
}
:global {
.ant-btn-link {
height: inherit !important;
@ -260,7 +266,15 @@
}
th, td {
font-size: 12px
font-size: 12px;
.ant-form-item {
margin-bottom: 0;
.ant-input-number {
width: 100%;
}
}
}
}
}

@ -110,3 +110,16 @@ export const paginationAction = (pageInfo = {}, i18n = {}, onChange, onShowSizeC
showSizeChanger: true
};
};
/*
* Author: 黎永顺
* Description:
* Params: 格式化钱
* Date: 2023/12/6
*/
export const toDecimal_n = (num, decimalPlaces) => {
if (num === null || !isFinite(num)) return null
if (decimalPlaces < 0) return null;
const multiplier = Math.pow(10, decimalPlaces);
const roundedNum = Math.round(num * multiplier) / multiplier;
return roundedNum.toFixed(decimalPlaces);
};

Loading…
Cancel
Save