Ndryshime
This commit is contained in:
@@ -28,6 +28,7 @@ const recordsToJson = () => {
|
||||
let shtrimiNr = 0;
|
||||
let trajtimiNr = 0;
|
||||
let errorNr = 0;
|
||||
let bariNr = 0;
|
||||
let records: any[] = [];
|
||||
|
||||
excelFiles.every((file) => {
|
||||
@@ -56,8 +57,6 @@ const recordsToJson = () => {
|
||||
record["TRAJTIMI SPITALOR Pavion"];
|
||||
if (emer.trim() !== "" && mbiemer.trim() !== "") {
|
||||
pacientiNr++;
|
||||
|
||||
// console.log(trajtimiRaw);
|
||||
try {
|
||||
datelindja = getJsDateFromExcel(datelindja);
|
||||
data_shtrimit = getJsDateFromExcel(data_shtrimit);
|
||||
@@ -75,22 +74,25 @@ const recordsToJson = () => {
|
||||
let obj: any = {};
|
||||
let bariRaw = bar.split(",");
|
||||
if (
|
||||
bariRaw[0] === "" ||
|
||||
bariRaw[0] === "??" ||
|
||||
bariRaw[0] === "???" ||
|
||||
bariRaw[0] === "????" ||
|
||||
bariRaw[0] === "---" ||
|
||||
bariRaw[0] === "----" ||
|
||||
bariRaw[0] === "-----"
|
||||
) {
|
||||
) {
|
||||
return;
|
||||
} else {
|
||||
bariNr++;
|
||||
obj.bari = bariRaw[0];
|
||||
obj.sasia = null;
|
||||
obj.nr = bariNr;
|
||||
console.log(obj.bari);
|
||||
return obj;
|
||||
}
|
||||
});
|
||||
trajtimiNr++;
|
||||
console.log(barnatArr);
|
||||
trajtimi = {
|
||||
nr: trajtimiNr,
|
||||
trajtimi: barnatArr,
|
||||
|
||||
Reference in New Issue
Block a user