Check ulang integrasi api dan master data, master config dan drp
This commit is contained in:
@@ -132,7 +132,7 @@ const dataSource = new CustomStore({
|
||||
key: "id",
|
||||
|
||||
load: () => {
|
||||
return fetch(URL + "?size=100")
|
||||
return fetch(URL+process.env.VUE_APP_PAGE_SIZE)
|
||||
.then((response) => response.json())
|
||||
.then((response) => {
|
||||
console.log("drp:", response.data);
|
||||
|
||||
@@ -108,7 +108,7 @@ const dataSource = new CustomStore({
|
||||
key: 'id',
|
||||
|
||||
load: () => {
|
||||
return fetch(URL+'?size=100')
|
||||
return fetch(URL+process.env.VUE_APP_PAGE_SIZE)
|
||||
.then(response => response.json())
|
||||
.then(response => {
|
||||
return {
|
||||
|
||||
@@ -171,7 +171,7 @@ const dataSource = new CustomStore({
|
||||
key: "id",
|
||||
|
||||
load: () => {
|
||||
return fetch(URL + "?size=100")
|
||||
return fetch(URL+process.env.VUE_APP_PAGE_SIZE)
|
||||
.then((response) => response.json())
|
||||
.then((response) => {
|
||||
console.log("drp pengadaan:", response.data);
|
||||
|
||||
@@ -9,8 +9,7 @@
|
||||
:data-source="dataSource"
|
||||
key-expr="id"
|
||||
:allow-column-reordering="true"
|
||||
:column-auto-width="true"
|
||||
@exporting="onExporting">
|
||||
:column-auto-width="true">
|
||||
<DxEditing
|
||||
:allow-adding="true"
|
||||
:allow-updating="true"
|
||||
@@ -27,18 +26,50 @@
|
||||
></DxTexts>
|
||||
<DxForm label-location="top">
|
||||
<DxItem dataField="nomor">
|
||||
<DxRequiredRule message="Nomor PRK" />
|
||||
<DxRequiredRule message="Masukan Nomor PRK" />
|
||||
</DxItem>
|
||||
<DxItem dataField="metodePenyampaianId">
|
||||
<DxRequiredRule message="Pilih Metode Penyampaian Dokumen Penawaran" />
|
||||
</DxItem>
|
||||
<DxItem dataField="metodePenyampaianId"/>
|
||||
<DxItem dataField="namaPengadaan">
|
||||
<DxRequiredRule message="Nama Pengadaan" />
|
||||
<DxRequiredRule message="Masukan Nama Pengadaan" />
|
||||
</DxItem>
|
||||
<DxItem dataField="supplyPositioningMatrixId">
|
||||
<DxRequiredRule message="Pilih Supply Positioning Matrix" />
|
||||
</DxItem>
|
||||
<DxItem dataField="unitInisiatorId">
|
||||
<DxRequiredRule message="Pilih Nama Divisi/Inisiator Pengadaan" />
|
||||
</DxItem>
|
||||
<DxItem dataField="jenisKontrakId">
|
||||
<DxRequiredRule message="Pilih Jenis Perjanjian / Kontrak" />
|
||||
</DxItem>
|
||||
<DxItem dataField="lokasiId">
|
||||
<DxRequiredRule message="Pilih Lokasi Pengadaan" />
|
||||
</DxItem>
|
||||
<DxItem dataField="sumberDanaId">
|
||||
<DxRequiredRule message="Pilih Sumber Dana" />
|
||||
</DxItem>
|
||||
<DxItem dataField="jenisPengadaanId">
|
||||
<DxRequiredRule message="Pilih Jenis Pengadaan" />
|
||||
</DxItem>
|
||||
<DxItem dataField="rencanaTanggal">
|
||||
<DxRequiredRule message="Masukan Tanggal Rencana" />
|
||||
</DxItem>
|
||||
<DxItem dataField="targetTanggal">
|
||||
<DxRequiredRule message="Masukan Tanggak COD" />
|
||||
</DxItem>
|
||||
<DxItem dataField="metodePengadaanId">
|
||||
<DxRequiredRule message="Pilih Metode Pengadaan" />
|
||||
</DxItem>
|
||||
<DxItem dataField="pagu">
|
||||
<DxRequiredRule message="Masukkan Nilai Pagu Anggaran" />
|
||||
</DxItem>>
|
||||
<DxItem dataField="strategiPengadaanId">
|
||||
<DxRequiredRule message="Pilih Strategi Pengadaan" />
|
||||
</DxItem>
|
||||
<DxItem dataField="hpe">
|
||||
<DxRequiredRule message="Masukkan Nilai HPE" />
|
||||
</DxItem>
|
||||
<DxItem dataField="supplyPositioningMatrixId"/>
|
||||
<DxItem dataField="unitInisiatorId"/>
|
||||
<DxItem dataField="jenisKontrakId"/>
|
||||
<DxItem dataField="sumberDanaId"/>
|
||||
<DxItem dataField="jenisPengadaanId"/>
|
||||
<DxItem dataField="metodePengadaanId"/>
|
||||
</DxForm>
|
||||
<DxPopup
|
||||
:hide-on-outside-click="true"
|
||||
@@ -69,6 +100,10 @@
|
||||
<DxFilterRow :visible="false" />
|
||||
<DxColumn cell-template="row-cell-template" caption="No" :width="45"></DxColumn>
|
||||
<DxColumn data-field="nomor" caption="Nomor PRK"></DxColumn>
|
||||
<DxColumn data-field="metodePenyampaianId" caption="Metode Penyampaian Dokumen Penawaran"></DxColumn>
|
||||
|
||||
|
||||
|
||||
<DxColumn data-field="namaPengadaan" caption="Nama Pengadaan"></DxColumn>
|
||||
<DxColumn data-field="lokasiId" caption="Lokasi Pengadaan">
|
||||
<DxLookup display-expr="instansi" value-expr="id" :data-source="instansis" :search-enabled="true" />
|
||||
@@ -78,7 +113,6 @@
|
||||
<DxColumn data-field="sumberDanaId" caption="Sumber Dana"></DxColumn>
|
||||
<DxColumn data-field="supplyPositioningMatrixId" caption="Supply Positioning Matrix"></DxColumn>
|
||||
<DxColumn data-field="metodePengadaanId" caption="Metode Pengadaan"></DxColumn>
|
||||
<DxColumn data-field="metodePenyampaianId" caption="Metode Penyampaian Dokumen Penawaran"></DxColumn>
|
||||
<DxColumn data-field="jenisKontrakId" caption="Jenis Perjanjian/Kontrak"></DxColumn>
|
||||
<DxColumn data-field="strategiPengadaanId" caption="Strategi Pengadaan"></DxColumn>
|
||||
<DxColumn data-field="rencanaTanggal" caption="Rencana Pelaksanaan Pengadaan"></DxColumn>
|
||||
@@ -123,11 +157,6 @@ import DxDataGrid, {
|
||||
DxColumnFixing
|
||||
} from "devextreme-vue/data-grid";
|
||||
import CustomStore from "devextreme/data/custom_store";
|
||||
import { Workbook } from 'exceljs';
|
||||
import { saveAs } from 'file-saver-es';
|
||||
import { exportDataGrid as exportDataGridToExcel } from 'devextreme/excel_exporter';
|
||||
import { jsPDF } from 'jspdf';
|
||||
import { exportDataGrid as exportDataGridToPDF } from 'devextreme/pdf_exporter';
|
||||
|
||||
//const URL = process.env.VUE_APP_ROOT_API+'/drp/pengadaan';
|
||||
const URL = process.env.VUE_APP_ROOT_API+'/jenisanggaran';
|
||||
@@ -137,7 +166,7 @@ const instansiOptions = new CustomStore({
|
||||
key: 'id',
|
||||
|
||||
load:() => {
|
||||
return fetch(URL_instansi+'?size=1000')
|
||||
return fetch(URL_instansi+process.env.VUE_APP_PAGE_SIZE)
|
||||
.then((response) => response.json())
|
||||
.then(response => {
|
||||
console.log(response.data);
|
||||
@@ -168,7 +197,7 @@ const dataSource = new CustomStore({
|
||||
key: 'id',
|
||||
|
||||
load: () => {
|
||||
return fetch(URL+'?size=100')
|
||||
return fetch(URL+process.env.VUE_APP_PAGE_SIZE)
|
||||
.then(response => response.json())
|
||||
.then(response => {
|
||||
return {
|
||||
@@ -224,45 +253,6 @@ export default {
|
||||
DxLookup,
|
||||
DxColumnFixing
|
||||
},
|
||||
methods: {
|
||||
onExporting(e) {
|
||||
e.cancel = true;
|
||||
|
||||
switch (e.format) {
|
||||
case "pdf": {
|
||||
const doc = new jsPDF();
|
||||
exportDataGridToPDF({
|
||||
jsPDFDocument: doc,
|
||||
component: e.component,
|
||||
indent: 5,
|
||||
}).then(() => {
|
||||
doc.save('Jenispengadaan.pdf');
|
||||
});
|
||||
}
|
||||
break;
|
||||
|
||||
case "xlsx": {
|
||||
const workbook = new Workbook();
|
||||
const worksheet = workbook.addWorksheet('DRP Pengadaan');
|
||||
|
||||
exportDataGridToExcel({
|
||||
component: e.component,
|
||||
worksheet: worksheet,
|
||||
autoFilterEnabled: true,
|
||||
}).then(() => {
|
||||
workbook.xlsx.writeBuffer().then((buffer) => {
|
||||
saveAs(new Blob([buffer], { type: 'application/octet-stream' }), 'DataGrid.xlsx');
|
||||
});
|
||||
});
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
},
|
||||
cloneIconClick(e) {
|
||||
e.event.preventDefault();
|
||||
}
|
||||
},
|
||||
|
||||
data() {
|
||||
return {
|
||||
|
||||
@@ -278,7 +278,7 @@ const dataSource = new CustomStore({
|
||||
key: "id",
|
||||
|
||||
load: () => {
|
||||
return fetch(URL + "?size=100")
|
||||
return fetch(URL+process.env.VUE_APP_PAGE_SIZE)
|
||||
.then((response) => response.json())
|
||||
.then((response) => {
|
||||
return {
|
||||
|
||||
@@ -138,7 +138,7 @@ const dataSource = new CustomStore({
|
||||
key: "id",
|
||||
|
||||
load: () => {
|
||||
return fetch(URL + "?size=100")
|
||||
return fetch(URL+process.env.VUE_APP_PAGE_SIZE)
|
||||
.then((response) => response.json())
|
||||
.then((response) => {
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user