Initial commit, repo migration
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
import axios from '../lib/axios'
|
||||
|
||||
const headers = {
|
||||
headers: { 'Content-Type': 'multipart/form-data' },
|
||||
}
|
||||
|
||||
export const LoginPost = async (data) => {
|
||||
const response = await axios.post('login', data, headers)
|
||||
return response.data
|
||||
}
|
||||
|
||||
export const LogoutGet = async () => {
|
||||
const response = await axios.get('logout')
|
||||
return response.data
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
import axios from '../lib/axios'
|
||||
|
||||
export const CekTagihan = async (params) => {
|
||||
const response = await axios.get(`tagihan/tracking/${params}`, {
|
||||
headers: { 'Content-Type': 'application/json' },
|
||||
})
|
||||
return response.data
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
import axios from '../lib/axios'
|
||||
|
||||
export const Chart1 = async () => {
|
||||
const response = await axios.get('chart/approval', {
|
||||
headers: { 'Content-Type': 'application/json' },
|
||||
})
|
||||
return response.data
|
||||
}
|
||||
|
||||
export const Chart2 = async () => {
|
||||
const response = await axios.get('chart/kriteria-catatan', {
|
||||
headers: { 'Content-Type': 'application/json' },
|
||||
})
|
||||
return response.data
|
||||
}
|
||||
|
||||
export const ChartJenisKegiatan = async () => {
|
||||
const response = await axios.get('chart/jenis-kegiatan', {
|
||||
headers: { 'Content-Type': 'application/json' },
|
||||
})
|
||||
return response.data
|
||||
}
|
||||
|
||||
export const Chart4 = async () => {
|
||||
const response = await axios.get('chart/jumlah-dokumen', {
|
||||
headers: { 'Content-Type': 'application/json' },
|
||||
})
|
||||
return response.data
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
import axios from '../lib/axios'
|
||||
|
||||
export const DashboardP2k = async (params) => {
|
||||
const response = await axios.get(`dashboard/p2k-verif`, {
|
||||
headers: { 'Content-Type': 'application/json' },
|
||||
params,
|
||||
})
|
||||
return response.data
|
||||
}
|
||||
|
||||
export const DashboardAll = async (params) => {
|
||||
const response = await axios.get('dashboard/all', {
|
||||
headers: { 'Content-Type': 'application/json' },
|
||||
params,
|
||||
})
|
||||
return response.data
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
import axios from '../lib/axios'
|
||||
|
||||
export const HomepageGet = async () => {
|
||||
const response = await axios.get(`homepage`)
|
||||
return response.data
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
import axios from '../../lib/axios'
|
||||
|
||||
export const Laporan11 = async (data) => {
|
||||
const response = await axios.post('report/harian-user', data)
|
||||
return response.data
|
||||
}
|
||||
|
||||
export const Laporan21 = async (data) => {
|
||||
const response = await axios.post('report/rekap-bulanan', data)
|
||||
return response.data
|
||||
}
|
||||
|
||||
export const Laporan31 = async (data) => {
|
||||
const response = await axios.post('report/rekap-verifikasi-bulanan', data)
|
||||
return response.data
|
||||
}
|
||||
|
||||
export const Laporan32 = async (data) => {
|
||||
const response = await axios.post('report/rekap-verifikasi-unit', data)
|
||||
return response.data
|
||||
}
|
||||
|
||||
export const Laporan33 = async (data) => {
|
||||
const response = await axios.post('report/rekap-verifikasi-jenis-belanja', data)
|
||||
return response.data
|
||||
}
|
||||
|
||||
export const DDUserVerifKasub = async () => {
|
||||
const response = await axios.post('user/dd-users', { role: ['Verifikator', 'Kasub'] })
|
||||
return response.data
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
import axios from '../../lib/axios'
|
||||
|
||||
export const JamKerjaGet = async () => {
|
||||
const response = await axios.get('config/get')
|
||||
return response.data
|
||||
}
|
||||
|
||||
export const JamKerjaCreate = async (data) => {
|
||||
const response = await axios.post('config/save', data)
|
||||
return response.data
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
import axios from '../../lib/axios'
|
||||
|
||||
const headers = {
|
||||
headers: { 'Content-Type': 'multipart/form-data' },
|
||||
}
|
||||
|
||||
export const RoleList = async (data) => {
|
||||
const response = await axios.post('role/list', data, headers)
|
||||
return response.data
|
||||
}
|
||||
|
||||
export const RoleGetOne = async (data) => {
|
||||
const response = await axios.post('role/get', data, headers)
|
||||
return response.data
|
||||
}
|
||||
|
||||
export const RoleUpdate = async (data) => {
|
||||
const response = await axios.post('role/update', data, headers)
|
||||
return response.data
|
||||
}
|
||||
|
||||
export const RoleCreate = async (data) => {
|
||||
const response = await axios.post('role/create', data, headers)
|
||||
return response.data
|
||||
}
|
||||
|
||||
export const RoleDelete = async (data) => {
|
||||
const response = await axios.post('role/delete', data, headers)
|
||||
return response.data
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
import axios from '../../lib/axios'
|
||||
|
||||
const headers = {
|
||||
headers: { 'Content-Type': 'multipart/form-data' },
|
||||
}
|
||||
|
||||
export const UserList = async (data) => {
|
||||
const response = await axios.post('user/list', data, headers)
|
||||
return response.data
|
||||
}
|
||||
|
||||
export const UserGetOne = async (data) => {
|
||||
const response = await axios.post('user/get', data, headers)
|
||||
return response.data
|
||||
}
|
||||
|
||||
export const UserUpdate = async (data) => {
|
||||
const response = await axios.post('user/update', data, headers)
|
||||
return response.data
|
||||
}
|
||||
|
||||
export const UserCreate = async (data) => {
|
||||
const response = await axios.post('user/create', data, headers)
|
||||
return response.data
|
||||
}
|
||||
|
||||
export const UserDelete = async (data) => {
|
||||
const response = await axios.post('user/delete', data, headers)
|
||||
return response.data
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
import axios from '../../lib/axios'
|
||||
|
||||
const headers = {
|
||||
headers: { 'Content-Type': 'multipart/form-data' },
|
||||
}
|
||||
|
||||
export const SPMList = async (data) => {
|
||||
const response = await axios.post('verifikasi/list-spm', data, headers)
|
||||
return response.data
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
import axios from '../../lib/axios'
|
||||
|
||||
const headers = {
|
||||
headers: { 'Content-Type': 'multipart/form-data' },
|
||||
}
|
||||
|
||||
export const VerifikasiList = async (data) => {
|
||||
const response = await axios.post('verifikasi/list', data, headers)
|
||||
return response.data
|
||||
}
|
||||
|
||||
export const VerifikasiGetOne = async (data) => {
|
||||
const response = await axios.post('verifikasi/get', data, headers)
|
||||
return response.data
|
||||
}
|
||||
|
||||
export const VerifikasiUpdate = async (data) => {
|
||||
const response = await axios.post('verifikasi/update', data, headers)
|
||||
return response.data
|
||||
}
|
||||
|
||||
export const VerifikasiDelete = async (data) => {
|
||||
const response = await axios.post('verifikasi/delete', data, headers)
|
||||
return response.data
|
||||
}
|
||||
|
||||
export const TagihanGet = async (data) => {
|
||||
const response = await axios.post('tagihan/get', data, headers)
|
||||
return response.data
|
||||
}
|
||||
|
||||
export const VerifikasiSave = async (data) => {
|
||||
const response = await axios.post('verifikasi/save', data, { headers: { 'Content-Type': 'Application/json' } })
|
||||
return response.data
|
||||
}
|
||||
@@ -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
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
import axios from '../../lib/axios'
|
||||
|
||||
const headers = {
|
||||
headers: { 'Content-Type': 'multipart/form-data' },
|
||||
}
|
||||
|
||||
export const AkunList = async (data) => {
|
||||
const response = await axios.post('akun/list', data, headers)
|
||||
return response.data
|
||||
}
|
||||
|
||||
export const AkunGetOne = async (data) => {
|
||||
const response = await axios.post('akun/get', data, headers)
|
||||
return response.data
|
||||
}
|
||||
|
||||
export const AkunUpdate = async (data) => {
|
||||
const response = await axios.post('akun/update', data, headers)
|
||||
return response.data
|
||||
}
|
||||
|
||||
export const AkunCreate = async (data) => {
|
||||
const response = await axios.post('akun/create', data, headers)
|
||||
return response.data
|
||||
}
|
||||
|
||||
export const AkunDelete = async (data) => {
|
||||
const response = await axios.post('akun/delete', data, headers)
|
||||
return response.data
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
import axios from '../../lib/axios'
|
||||
|
||||
const headers = {
|
||||
headers: { 'Content-Type': 'multipart/form-data' },
|
||||
}
|
||||
|
||||
export const JenisBelanjaList = async (data) => {
|
||||
const response = await axios.post('jenis-belanja/list', data, headers)
|
||||
return response.data
|
||||
}
|
||||
|
||||
export const JenisBelanjaGetOne = async (data) => {
|
||||
const response = await axios.post('jenis-belanja/get', data, headers)
|
||||
return response.data
|
||||
}
|
||||
|
||||
export const JenisBelanjaUpdate = async (data) => {
|
||||
const response = await axios.post('jenis-belanja/update', data, headers)
|
||||
return response.data
|
||||
}
|
||||
|
||||
export const JenisBelanjaCreate = async (data) => {
|
||||
const response = await axios.post('jenis-belanja/create', data, headers)
|
||||
return response.data
|
||||
}
|
||||
|
||||
export const JenisBelanjaDelete = async (data) => {
|
||||
const response = await axios.post('jenis-belanja/delete', data, headers)
|
||||
return response.data
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
import axios from '../../lib/axios'
|
||||
|
||||
const headers = {
|
||||
headers: { 'Content-Type': 'multipart/form-data' },
|
||||
}
|
||||
|
||||
export const JenisKegiatanList = async (data) => {
|
||||
const response = await axios.post('jenis-kegiatan/list', data, headers)
|
||||
return response.data
|
||||
}
|
||||
|
||||
export const JenisKegiatanGetOne = async (data) => {
|
||||
const response = await axios.post('jenis-kegiatan/get', data, headers)
|
||||
return response.data
|
||||
}
|
||||
|
||||
export const JenisKegiatanUpdate = async (data) => {
|
||||
const response = await axios.post('jenis-kegiatan/update', data, headers)
|
||||
return response.data
|
||||
}
|
||||
|
||||
export const JenisKegiatanCreate = async (data) => {
|
||||
const response = await axios.post('jenis-kegiatan/create', data, headers)
|
||||
return response.data
|
||||
}
|
||||
|
||||
export const JenisKegiatanDelete = async (data) => {
|
||||
const response = await axios.post('jenis-kegiatan/delete', data, headers)
|
||||
return response.data
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
import axios from '../../lib/axios'
|
||||
|
||||
const headers = {
|
||||
headers: { 'Content-Type': 'multipart/form-data' },
|
||||
}
|
||||
|
||||
export const JenisTagihanList = async (data) => {
|
||||
const response = await axios.post('jenis-tagihan/list', data, headers)
|
||||
return response.data
|
||||
}
|
||||
|
||||
export const JenisTagihanGetOne = async (data) => {
|
||||
const response = await axios.post('jenis-tagihan/get', data, headers)
|
||||
return response.data
|
||||
}
|
||||
|
||||
export const JenisTagihanUpdate = async (data) => {
|
||||
const response = await axios.post('jenis-tagihan/update', data, headers)
|
||||
return response.data
|
||||
}
|
||||
|
||||
export const JenisTagihanCreate = async (data) => {
|
||||
const response = await axios.post('jenis-tagihan/create', data, headers)
|
||||
return response.data
|
||||
}
|
||||
|
||||
export const JenisTagihanDelete = async (data) => {
|
||||
const response = await axios.post('jenis-tagihan/delete', data, headers)
|
||||
return response.data
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
import axios from '../../lib/axios'
|
||||
|
||||
const headers = {
|
||||
headers: { 'Content-Type': 'multipart/form-data' },
|
||||
}
|
||||
|
||||
export const PersyaratanList = async (data) => {
|
||||
const response = await axios.post('persyaratan/list', data, headers)
|
||||
return response.data
|
||||
}
|
||||
|
||||
export const PersyaratanGetOne = async (data) => {
|
||||
const response = await axios.post('persyaratan/get', data, headers)
|
||||
return response.data
|
||||
}
|
||||
|
||||
export const PersyaratanUpdate = async (data) => {
|
||||
const response = await axios.post('persyaratan/update', data, headers)
|
||||
return response.data
|
||||
}
|
||||
|
||||
export const PersyaratanCreate = async (data) => {
|
||||
const response = await axios.post('persyaratan/create', data, { headers: { 'Content-Type': 'application/json' } })
|
||||
return response.data
|
||||
}
|
||||
|
||||
export const PersyaratanDelete = async (data) => {
|
||||
const response = await axios.post('persyaratan/delete', data, headers)
|
||||
return response.data
|
||||
}
|
||||
|
||||
export const PersyaratanSearch = async (data) => {
|
||||
const response = await axios.post('persyaratan/search', data, headers)
|
||||
return response.data
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
import axios from '../../lib/axios'
|
||||
|
||||
const headers = {
|
||||
headers: { 'Content-Type': 'multipart/form-data' },
|
||||
}
|
||||
|
||||
export const UnitKerjaList = async (data) => {
|
||||
const response = await axios.post('unit/list', data, headers)
|
||||
return response.data
|
||||
}
|
||||
|
||||
export const UnitKerjaGetOne = async (data) => {
|
||||
const response = await axios.post('unit/get', data, headers)
|
||||
return response.data
|
||||
}
|
||||
|
||||
export const UnitKerjaUpdate = async (data) => {
|
||||
const response = await axios.post('unit/update', data, headers)
|
||||
return response.data
|
||||
}
|
||||
|
||||
export const UnitKerjaCreate = async (data) => {
|
||||
const response = await axios.post('unit/create', data, headers)
|
||||
return response.data
|
||||
}
|
||||
|
||||
export const UnitKerjaDelete = async (data) => {
|
||||
const response = await axios.post('unit/delete', data, headers)
|
||||
return response.data
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
import axios from '../../lib/axios'
|
||||
|
||||
const headers = {
|
||||
headers: { 'Content-Type': 'multipart/form-data' },
|
||||
}
|
||||
|
||||
export const VerifikatorList = async () => {
|
||||
const response = await axios.get('verifikator/list')
|
||||
return response.data
|
||||
}
|
||||
|
||||
export const VerifikatorGetOne = async (data) => {
|
||||
const response = await axios.post('verifikator/get', data, headers)
|
||||
return response.data
|
||||
}
|
||||
|
||||
export const VerifikatorCreate = async (data) => {
|
||||
const response = await axios.post('verifikator/save_bobot', data, { headers: { 'Content-Type': 'application/json' } })
|
||||
return response.data
|
||||
}
|
||||
|
||||
export const VerifikatorDelete = async (data) => {
|
||||
const response = await axios.post('user/delete', data, headers)
|
||||
return response.data
|
||||
}
|
||||
Reference in New Issue
Block a user