chore: adjust column width in Material_RPM.vue and PencarianData.vue
This commit is contained in:
parent
c11d45ed0c
commit
bbbb566f24
@ -15,7 +15,6 @@
|
|||||||
:row-alternation-enabled="true"
|
:row-alternation-enabled="true"
|
||||||
:hover-state-enabled="true"
|
:hover-state-enabled="true"
|
||||||
@selection-changed="onSelectionChanged"
|
@selection-changed="onSelectionChanged"
|
||||||
:column-width="100"
|
|
||||||
@exporting="onExporting"
|
@exporting="onExporting"
|
||||||
:allow-column-resizing="true"
|
:allow-column-resizing="true"
|
||||||
column-resizing-mode="widget"
|
column-resizing-mode="widget"
|
||||||
@ -56,7 +55,7 @@
|
|||||||
/>
|
/>
|
||||||
<DxColumn
|
<DxColumn
|
||||||
css-class="custom-table-column"
|
css-class="custom-table-column"
|
||||||
:width="170"
|
:width="250"
|
||||||
alignment="center"
|
alignment="center"
|
||||||
data-field="nama_material"
|
data-field="nama_material"
|
||||||
caption="Nama Material"
|
caption="Nama Material"
|
||||||
@ -81,7 +80,7 @@
|
|||||||
<DxColumn css-class="custom-table-column" alignment="center" caption="Tanggal">
|
<DxColumn css-class="custom-table-column" alignment="center" caption="Tanggal">
|
||||||
<DxColumn
|
<DxColumn
|
||||||
v-for="i in 31"
|
v-for="i in 31"
|
||||||
:width="150"
|
:width="50"
|
||||||
alignment="center"
|
alignment="center"
|
||||||
:data-field="`tgl${i}`"
|
:data-field="`tgl${i}`"
|
||||||
data-type="number"
|
data-type="number"
|
||||||
@ -147,12 +146,20 @@
|
|||||||
|
|
||||||
<div class="flex flex-row items-center justify-between w-full" v-for="i in 31">
|
<div class="flex flex-row items-center justify-between w-full" v-for="i in 31">
|
||||||
<h3 class="text-sm font-medium w-[170px] text-gray-800">Tgl {{ i }}:</h3>
|
<h3 class="text-sm font-medium w-[170px] text-gray-800">Tgl {{ i }}:</h3>
|
||||||
<InputText :readonly="true" :value="dataSelected[`tgl${i}`]" class-name="flex-1" />
|
<InputText
|
||||||
|
:readonly="true"
|
||||||
|
:value="formatNumber(dataSelected[`tgl${i}`])"
|
||||||
|
class-name="flex-1"
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="flex flex-row items-center justify-between w-full">
|
<div class="flex flex-row items-center justify-between w-full">
|
||||||
<h3 class="text-sm font-medium w-[170px] text-gray-800">Jumlah:</h3>
|
<h3 class="text-sm font-medium w-[170px] text-gray-800">Jumlah:</h3>
|
||||||
<InputText :readonly="true" :value="dataSelected?.total" class-name="flex-1" />
|
<InputText
|
||||||
|
:readonly="true"
|
||||||
|
:value="formatNumber(dataSelected?.total)"
|
||||||
|
class-name="flex-1"
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</DetailDialog>
|
</DetailDialog>
|
||||||
@ -166,7 +173,6 @@ import { DxDataGrid } from 'devextreme-vue'
|
|||||||
import {
|
import {
|
||||||
DxColumn,
|
DxColumn,
|
||||||
DxExport,
|
DxExport,
|
||||||
DxLoadPanel,
|
|
||||||
DxPager,
|
DxPager,
|
||||||
DxPaging,
|
DxPaging,
|
||||||
DxSearchPanel,
|
DxSearchPanel,
|
||||||
@ -174,8 +180,6 @@ import {
|
|||||||
} from 'devextreme-vue/data-grid'
|
} from 'devextreme-vue/data-grid'
|
||||||
import { Type14 } from '@/components/Form/FiltersType'
|
import { Type14 } from '@/components/Form/FiltersType'
|
||||||
import Filters from '@/components/Form/Filters.vue'
|
import Filters from '@/components/Form/Filters.vue'
|
||||||
import { useQuery } from '@vue/apollo-composable'
|
|
||||||
import gql from 'graphql-tag'
|
|
||||||
import { queries, requestGraphQl } from '@/utils/api/api.graphql'
|
import { queries, requestGraphQl } from '@/utils/api/api.graphql'
|
||||||
import BufferDialog from '@/components/Dialogs/BufferDialog.vue'
|
import BufferDialog from '@/components/Dialogs/BufferDialog.vue'
|
||||||
import { formatNumber, formatPercentage, isNumber } from '@/utils/numbers'
|
import { formatNumber, formatPercentage, isNumber } from '@/utils/numbers'
|
||||||
|
@ -89,6 +89,14 @@
|
|||||||
caption="No Tlp Pelapor"
|
caption="No Tlp Pelapor"
|
||||||
cell-template="formatText"
|
cell-template="formatText"
|
||||||
/>
|
/>
|
||||||
|
<DxColumn
|
||||||
|
css-class="custom-table-column"
|
||||||
|
:width="250"
|
||||||
|
alignment="center"
|
||||||
|
data-field="keterangan_pelapor"
|
||||||
|
caption="Keterangan Pelapor"
|
||||||
|
cell-template="formatText"
|
||||||
|
/>
|
||||||
<DxColumn
|
<DxColumn
|
||||||
css-class="custom-table-column"
|
css-class="custom-table-column"
|
||||||
:width="170"
|
:width="170"
|
||||||
@ -139,14 +147,7 @@
|
|||||||
caption="Petugas"
|
caption="Petugas"
|
||||||
cell-template="formatText"
|
cell-template="formatText"
|
||||||
/>
|
/>
|
||||||
<DxColumn
|
|
||||||
css-class="custom-table-column"
|
|
||||||
:width="170"
|
|
||||||
alignment="center"
|
|
||||||
data-field="keterangan_pelapor"
|
|
||||||
caption="Keterangan Pelapor"
|
|
||||||
cell-template="formatText"
|
|
||||||
/>
|
|
||||||
|
|
||||||
<template #formatTime="{ data }">
|
<template #formatTime="{ data }">
|
||||||
<p class="cursor-pointer !text-right">
|
<p class="cursor-pointer !text-right">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user