|
|
@@ -66,11 +66,10 @@ export const testM18ImportPq = async (data: M18ImportPqForm) => { |
|
|
export const testM18ImportMasterData = async ( |
|
|
export const testM18ImportMasterData = async ( |
|
|
data: M18ImportMasterDataForm, |
|
|
data: M18ImportMasterDataForm, |
|
|
) => { |
|
|
) => { |
|
|
const token = localStorage.getItem("accessToken"); |
|
|
|
|
|
return serverFetchWithNoContent(`${BASE_API_URL}/m18/master-data`, { |
|
|
return serverFetchWithNoContent(`${BASE_API_URL}/m18/master-data`, { |
|
|
method: "POST", |
|
|
method: "POST", |
|
|
body: JSON.stringify(data), |
|
|
body: JSON.stringify(data), |
|
|
headers: { "Content-Type": "application/json", "Authorization": `Bearer ${token}`, }, |
|
|
|
|
|
|
|
|
headers: { "Content-Type": "application/json" }, |
|
|
}); |
|
|
}); |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|
|