fix: fixed CustomerConsumption errors when changing customer & downloading pdf #1666
|
@ -18,7 +18,7 @@ import ItemDescriptorProxy from 'src/pages/Item/Card/ItemDescriptorProxy.vue';
|
||||||
import VnSelect from 'components/common/VnSelect.vue';
|
import VnSelect from 'components/common/VnSelect.vue';
|
||||||
import VnInputDate from 'components/common/VnInputDate.vue';
|
import VnInputDate from 'components/common/VnInputDate.vue';
|
||||||
|
|
||||||
const arrayData = useArrayData('Client');
|
const arrayData = useArrayData('Customer');
|
||||||
const { t } = useI18n();
|
const { t } = useI18n();
|
||||||
const route = useRoute();
|
const route = useRoute();
|
||||||
const campaignList = ref();
|
const campaignList = ref();
|
||||||
|
@ -260,7 +260,7 @@ const updateDateParams = (value, params) => {
|
||||||
:label="t('globals.campaign')"
|
:label="t('globals.campaign')"
|
||||||
:filled="true"
|
:filled="true"
|
||||||
class="q-px-sm q-pt-none fit"
|
class="q-px-sm q-pt-none fit"
|
||||||
:option-label="(opt) => t(opt.code)"
|
:option-label="(opt) => t(opt.code ?? '')"
|
||||||
:fields="['id', 'code', 'dated', 'scopeDays']"
|
:fields="['id', 'code', 'dated', 'scopeDays']"
|
||||||
@update:model-value="(data) => updateDateParams(data, params)"
|
@update:model-value="(data) => updateDateParams(data, params)"
|
||||||
dense
|
dense
|
||||||
|
|
|
@ -34,7 +34,7 @@ const columns = computed(() => [
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
align: 'left',
|
align: 'left',
|
||||||
format: (row) => row.type.description,
|
format: (row) => row?.type?.description,
|
||||||
label: t('Description'),
|
label: t('Description'),
|
||||||
name: 'description',
|
name: 'description',
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue