fix: 结算单报错 (#515)
<!-- Note --> <!-- This is a template for submitting a new feature. Use the bug fix template if you're submitting a bug fix pull request by adding `template=bug_fix.md` to your pull request URL. --> # Description <!-- Describe the new feature or modification to an existing feature clearly and consciously. --> # Motivation <!-- Explain the reason for adding or modifying this feature. --> # Key changes <!-- Provide a technically detailed description of the key changes made. --> - Frontend - Backend # Test plan ## Suggestions <!-- Provide any suggestions or recommendations for improvements in the testing plan. --> ## Underlying risk <!-- Identify any potential risks or issues that may arise from the new feature or modification. --> # Showcase <!-- Including any screenshots of the new feature or modification. --> Reviewed-on: daoyoucloud/tachycode#515 Co-authored-by: wjh <wwwjh0710@163.com> Co-committed-by: wjh <wwwjh0710@163.com>
This commit is contained in:
parent
08adf2fe40
commit
75b3148521
@ -758,7 +758,6 @@ export class SettlementService {
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
calc.list.forEach((value) => {
|
||||
const productDate = converDate(value.date, 'YYYY-MM-DD');
|
||||
if ((value.name as string).includes('-')) {
|
||||
@ -766,7 +765,9 @@ export class SettlementService {
|
||||
const valueItem = calc.list.filter(
|
||||
(item) => converDate(item.date, 'YYYY-MM-DD') === productDate && item.name === name,
|
||||
)[0];
|
||||
value.date = dayjs(valueItem.date).add(1, 'seconds');
|
||||
if (valueItem) {
|
||||
value.date = dayjs(valueItem.date).add(1, 'seconds');
|
||||
}
|
||||
}
|
||||
});
|
||||
calc.list?.sort((a, b) => {
|
||||
|
Loading…
Reference in New Issue
Block a user