Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- parseCAW(caw) {
- caw.id = caw.social_office_transaction_id;
- caw.selected = false;
- caw.workDate = caw.work_date ? new Date(caw.work_date) : null;
- caw.workDateWithTimeZone = caw.work_date_with_time_zone
- ? new Date(caw.work_date_with_time_zone)
- : null;
- caw.creationDate = caw.creation_date ? new Date(caw.creation_date) : null;
- caw.creationDateWithTimeZone = caw.creation_date_with_time_zone
- ? new Date(caw.creation_date_with_time_zone)
- : null;
- caw.cancelDate = caw.cancel_date ? new Date(caw.cancel_date) : null;
- caw.cancelDateWithTimeZone = caw.cancel_date_with_time_zone
- ? new Date(caw.cancel_date_with_time_zone)
- : null;
- if (caw.sot_admin_remark_translation) {
- caw.remarkArray = caw.sot_admin_remark_translation
- .split('\n')
- .filter((value) => value !== '')
- .map((value) => {
- return { remark: value };
- });
- // if (caw.remarkArray.length > 0) {
- // caw.remarkArray = caw.remarkArray.filter(
- // (value) => value.remark.length > 1
- // );
- // }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement