Commit 19035385 by Nattana Chaiyamat

แก้ไข รายงาน Excel แก้ตัวส่งวันที่ yyyy-mm-dd

parent d0a2c05c
...@@ -243,7 +243,7 @@ export class ExcelReportComponent implements OnInit { ...@@ -243,7 +243,7 @@ export class ExcelReportComponent implements OnInit {
} else if (item.type == 'list' || item.type == 'radio' || item.type == 'text') { } else if (item.type == 'list' || item.type == 'radio' || item.type == 'text') {
body[`val${i}`] = this.select[item.key] body[`val${i}`] = this.select[item.key]
} else if (item.type == 'calendar') { } else if (item.type == 'calendar') {
body[`val${i}`] = this.toDateStringOnly(this.select[item.key]).split('-').reverse().join('-') body[`val${i}`] = this.toDateStringOnly(this.select[item.key])
} }
}); });
forkJoin({ forkJoin({
...@@ -295,7 +295,7 @@ export class ExcelReportComponent implements OnInit { ...@@ -295,7 +295,7 @@ export class ExcelReportComponent implements OnInit {
} else if (item.type == 'list' || item.type == 'radio' || item.type == 'text') { } else if (item.type == 'list' || item.type == 'radio' || item.type == 'text') {
return "__" + item.key + "=" + this.select[item.key] return "__" + item.key + "=" + this.select[item.key]
} else if (item.type == 'calendar') { } else if (item.type == 'calendar') {
return "__" + item.key + "=" + this.toDateStringOnly(this.select[item.key]).split('-').reverse().join('-') return "__" + item.key + "=" + this.toDateStringOnly(this.select[item.key])
} }
return "" return ""
}).join('|') }).join('|')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment