finishing feature/dashboard-create-claim-request
This commit is contained in:
@@ -33,21 +33,27 @@ export const addClaimRequest = async ( data: MemberListType[] ): Promise<boolean
|
||||
formData.append(`member_id[${index}]`, row.id.toString());
|
||||
formData.append(`service_code[${index}]`, row.patien_type??'');
|
||||
|
||||
if (row.invoice_files != undefined) {
|
||||
row.invoice_files.forEach((file, file_index) => {
|
||||
formData.append(`invoice[${index}][${file_index}]`, file);
|
||||
if (row.file_kondisi != undefined) {
|
||||
row.file_kondisi.forEach((file, file_index) => {
|
||||
console.log(file);
|
||||
|
||||
formData.append(`file_kondisi[member_${row.id}][${file_index}]`, file);
|
||||
});
|
||||
}
|
||||
|
||||
if (row.prescription_files != undefined) {
|
||||
row.prescription_files.forEach((file, file_index) => {
|
||||
formData.append(`prescription[${index}][${file_index}]`, file);
|
||||
if (row.file_diagnosa != undefined) {
|
||||
row.file_diagnosa.forEach((file, file_index) => {
|
||||
console.log(file);
|
||||
|
||||
formData.append(`file_diagnosa[member_${row.id}][${file_index}]`, file);
|
||||
});
|
||||
}
|
||||
|
||||
if (row.laboratorium_files != undefined) {
|
||||
row.laboratorium_files.forEach((file, file_index) => {
|
||||
formData.append(`laboratorium[${index}][${file_index}]`, file);
|
||||
if (row.file_penunjang != undefined) {
|
||||
row.file_penunjang.forEach((file, file_index) => {
|
||||
console.log(file);
|
||||
|
||||
formData.append(`file_penunjang[member_${row.id}][${file_index}]`, file);
|
||||
});
|
||||
}
|
||||
})
|
||||
|
||||
@@ -12,8 +12,8 @@ export type MemberListType = {
|
||||
id : string,
|
||||
member_id : string,
|
||||
name : string,
|
||||
patien_type? : string,
|
||||
invoice_files? : any[],
|
||||
laboratorium_files? : any[],
|
||||
prescription_files? : any[]
|
||||
patien_type? : string,
|
||||
file_kondisi? : any[],
|
||||
file_diagnosa? : any[],
|
||||
file_penunjang? : any[]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user