-เพิ่มการรองรับ interfaces/dashboard.interface.ts
This commit is contained in:
@@ -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;
|
||||
// }
|
||||
@@ -77,7 +77,13 @@
|
||||
<div class="quick-log__grid">
|
||||
<label>
|
||||
<span>หมวดหมู่</span>
|
||||
<input type="text" placeholder="เลือกหมวดหมู่" />
|
||||
<select>
|
||||
<!-- @for(){
|
||||
<option>
|
||||
{{ country.name }}
|
||||
</option>
|
||||
} -->
|
||||
</select>
|
||||
</label>
|
||||
<label>
|
||||
<span>ยอดเงิน (฿)</span>
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core';
|
||||
import { FormBuilder, FormGroup, Validators, FormControl } from '@angular/forms';
|
||||
import { GeneralService } from '../../services/generalservice';
|
||||
import { IDropAct } from '../interfaces/dashboard.interface'
|
||||
|
||||
@Component({
|
||||
selector: 'app-main-dashboard',
|
||||
@@ -15,7 +16,7 @@ export class MainDashboardComponent implements OnInit {
|
||||
isSubmitting: boolean = false;
|
||||
arrearsForm!: FormGroup;
|
||||
saveFrm!: FormGroup;
|
||||
|
||||
myDropAct!: IDropAct;
|
||||
|
||||
readonly ownerName = 'Nuttakit';
|
||||
|
||||
|
||||
@@ -4,7 +4,8 @@ export const CACHEABLE_URLS = {
|
||||
// e.g., '/api/data'
|
||||
],
|
||||
POST: [
|
||||
'/api/web/accountingSearch'
|
||||
'/api/web/accountingSearch',
|
||||
'/api/nigga'
|
||||
// Add POST URIs here that you want to cache
|
||||
// e.g., '/api/search'
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user