-เพิ่มการรองรับ interfaces/dashboard.interface.ts

This commit is contained in:
2025-11-13 14:20:15 +07:00
parent 78ce686f97
commit 37ca45701b
4 changed files with 55 additions and 3 deletions

View File

@@ -0,0 +1,44 @@
export interface IDropAct {
dtlnam?: string,
dtlcod?: string
}
// ข้อมูลสินค้าหลัก
// export interface IProduct {
// id: string;
// name: string;
// price: number;
// category: string;
// inStock: boolean;
// description?: string; // optional
// imageUrl?: string;
// tags: string[];
// createdAt: Date;
// updatedAt: Date;
// }
// // ข้อมูลสินค้าแบบย่อ (ใช้ในรายการ)
// export interface IProductSummary {
// id: string;
// name: string;
// price: number;
// imageUrl?: string;
// inStock: boolean;
// }
// // ข้อมูลสำหรับฟอร์ม
// export interface IProductForm {
// name: string;
// price: number;
// category: string;
// description?: string;
// inStock: boolean;
// }
// // ข้อมูลการจัดหมวดหมู่
// export interface IProductCategory {
// id: string;
// name: string;
// parentId?: string;
// productCount: number;
// }

View File

@@ -77,7 +77,13 @@
<div class="quick-log__grid"> <div class="quick-log__grid">
<label> <label>
<span>หมวดหมู่</span> <span>หมวดหมู่</span>
<input type="text" placeholder="เลือกหมวดหมู่" /> <select>
<!-- @for(){
<option>
{{ country.name }}
</option>
} -->
</select>
</label> </label>
<label> <label>
<span>ยอดเงิน (฿)</span> <span>ยอดเงิน (฿)</span>

View File

@@ -1,6 +1,7 @@
import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core'; import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core';
import { FormBuilder, FormGroup, Validators, FormControl } from '@angular/forms'; import { FormBuilder, FormGroup, Validators, FormControl } from '@angular/forms';
import { GeneralService } from '../../services/generalservice'; import { GeneralService } from '../../services/generalservice';
import { IDropAct } from '../interfaces/dashboard.interface'
@Component({ @Component({
selector: 'app-main-dashboard', selector: 'app-main-dashboard',
@@ -15,7 +16,7 @@ export class MainDashboardComponent implements OnInit {
isSubmitting: boolean = false; isSubmitting: boolean = false;
arrearsForm!: FormGroup; arrearsForm!: FormGroup;
saveFrm!: FormGroup; saveFrm!: FormGroup;
myDropAct!: IDropAct;
readonly ownerName = 'Nuttakit'; readonly ownerName = 'Nuttakit';

View File

@@ -4,7 +4,8 @@ export const CACHEABLE_URLS = {
// e.g., '/api/data' // e.g., '/api/data'
], ],
POST: [ POST: [
'/api/web/accountingSearch' '/api/web/accountingSearch',
'/api/nigga'
// Add POST URIs here that you want to cache // Add POST URIs here that you want to cache
// e.g., '/api/search' // e.g., '/api/search'
] ]