This commit is contained in:
@@ -93,7 +93,7 @@ export const masterDataService = {
|
|||||||
// --- Disciplines Management (Admin / Req 6B) ---
|
// --- Disciplines Management (Admin / Req 6B) ---
|
||||||
|
|
||||||
/** ดึงรายชื่อสาขางาน (มักจะกรองตาม Contract ID) */
|
/** ดึงรายชื่อสาขางาน (มักจะกรองตาม Contract ID) */
|
||||||
getDisciplines: async (contractId?: number) => {
|
getDisciplines: async (contractId?: number | string) => {
|
||||||
const response = await apiClient.get("/master/disciplines", {
|
const response = await apiClient.get("/master/disciplines", {
|
||||||
params: { contractId }
|
params: { contractId }
|
||||||
});
|
});
|
||||||
@@ -115,7 +115,7 @@ export const masterDataService = {
|
|||||||
// --- Sub-Types Management (Admin / Req 6B) ---
|
// --- Sub-Types Management (Admin / Req 6B) ---
|
||||||
|
|
||||||
/** ดึงรายชื่อประเภทย่อย (กรองตาม Contract และ Type) */
|
/** ดึงรายชื่อประเภทย่อย (กรองตาม Contract และ Type) */
|
||||||
getSubTypes: async (contractId?: number, typeId?: number) => {
|
getSubTypes: async (contractId?: number | string, typeId?: number) => {
|
||||||
const response = await apiClient.get("/master/sub-types", {
|
const response = await apiClient.get("/master/sub-types", {
|
||||||
params: { contractId, correspondenceTypeId: typeId }
|
params: { contractId, correspondenceTypeId: typeId }
|
||||||
});
|
});
|
||||||
@@ -131,7 +131,7 @@ export const masterDataService = {
|
|||||||
// --- RFA Types Management (Admin) ---
|
// --- RFA Types Management (Admin) ---
|
||||||
|
|
||||||
/** ดึงประเภท RFA ทั้งหมด */
|
/** ดึงประเภท RFA ทั้งหมด */
|
||||||
getRfaTypes: async (contractId?: number) => {
|
getRfaTypes: async (contractId?: number | string) => {
|
||||||
const response = await apiClient.get("/master/rfa-types", {
|
const response = await apiClient.get("/master/rfa-types", {
|
||||||
params: { contractId }
|
params: { contractId }
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user