Initial commit, repo migration
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
import axios from '../../lib/axios'
|
||||
|
||||
export const NoSPPListGet = async (params) => {
|
||||
const response = await axios.post('integrasi/list_no_SPP', params)
|
||||
return response.data
|
||||
}
|
||||
|
||||
export const DetailSPPGet = async (params) => {
|
||||
const response = await axios.post('integrasi/get_detail_spp', params)
|
||||
return response.data
|
||||
}
|
||||
@@ -0,0 +1,49 @@
|
||||
import axios from '../../lib/axios'
|
||||
|
||||
const headers = {
|
||||
headers: { 'Content-Type': 'multipart/form-data' },
|
||||
}
|
||||
|
||||
export const TagihanList = async (params) => {
|
||||
const response = await axios.post('tagihan/list', params, headers)
|
||||
return response.data
|
||||
}
|
||||
|
||||
export const TagihanGetOne = async (data) => {
|
||||
const response = await axios.post('tagihan/get', data, headers)
|
||||
return response.data
|
||||
}
|
||||
|
||||
export const TagihanUpdate = async (data) => {
|
||||
const response = await axios.post('tagihan/update', data, headers)
|
||||
return response.data
|
||||
}
|
||||
|
||||
// UNTUK MINTA TAGIHAN ID
|
||||
export const TagihanCreate = async (data) => {
|
||||
const response = await axios.post('tagihan/create', data)
|
||||
return response.data
|
||||
}
|
||||
|
||||
export const TagihanDelete = async (data) => {
|
||||
const response = await axios.post('tagihan/delete', data, headers)
|
||||
return response.data
|
||||
}
|
||||
|
||||
// ADD DETAIL
|
||||
export const TagihanAddDetail = async (data) => {
|
||||
const response = await axios.post('tagihan/add_detail', data, { headers: { 'Content-Type': 'application/json' } })
|
||||
return response.data
|
||||
}
|
||||
|
||||
// ADD TAGIHAN SUBMIT
|
||||
export const TagihanSubmit = async (data) => {
|
||||
const response = await axios.post('tagihan/submit', data, { headers: { 'Content-Type': 'application/json' } })
|
||||
return response.data
|
||||
}
|
||||
|
||||
// RESUBMIT
|
||||
export const TagihanResubmit = async (data) => {
|
||||
const response = await axios.post('tagihan/update_detail', data, { headers: { 'Content-Type': 'application/json' } })
|
||||
return response.data
|
||||
}
|
||||
Reference in New Issue
Block a user