Added document type
This commit is contained in:
		
							
								
								
									
										1
									
								
								components.d.ts
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										1
									
								
								components.d.ts
									
									
									
									
										vendored
									
									
								
							| @@ -13,7 +13,6 @@ declare module 'vue' { | ||||
|     ConfirmationModal: typeof import('./src/components/ConfirmationModal.vue')['default'] | ||||
|     ConfirmedForm: typeof import('./src/components/ConfirmedForm.vue')['default'] | ||||
|     DataTable: typeof import('primevue/datatable')['default'] | ||||
|     Divider: typeof import('primevue/divider')['default'] | ||||
|     IconCommunity: typeof import('./src/components/icons/IconCommunity.vue')['default'] | ||||
|     IconDocumentation: typeof import('./src/components/icons/IconDocumentation.vue')['default'] | ||||
|     IconEcosystem: typeof import('./src/components/icons/IconEcosystem.vue')['default'] | ||||
|   | ||||
| @@ -76,7 +76,8 @@ function createJSON(event: Event) { | ||||
|     MZN_PodID: contractor.value?.Knt_KntId, | ||||
|     MZN_MZTID: route.value?.MZT_MZTID, | ||||
|     MZN_Uwagi: additionalNotes.value, | ||||
|     MZamElem: new Array<OrderProduct> | ||||
|     MZN_TypDokumentu: order.value.MZN_TypDokumentu === 306 ? 306 : 301, | ||||
|     MZamElem: new Array<OrderProduct>, | ||||
|   }; | ||||
|  | ||||
|   if(categories.value == undefined) { | ||||
| @@ -229,6 +230,7 @@ async function fetchInvoices() { | ||||
|  | ||||
| onMounted(function (){ | ||||
|   document.addEventListener('click', handleClickOutsideDropdown); | ||||
|   console.log(order) | ||||
|   if(contractor.value != undefined) { | ||||
|     fetchInvoices(); | ||||
|   } | ||||
| @@ -292,6 +294,15 @@ onBeforeUnmount( function () { | ||||
|           </DataTable> | ||||
|           <span v-else>Brak nierozliczonych faktur</span> | ||||
|         </div> | ||||
|         <div class="field mb-3"> | ||||
|           <label class="label is-small">Dokument WZ</label> | ||||
|           <input | ||||
|             v-model="order.MZN_TypDokumentu" | ||||
|             type="checkbox" | ||||
|             :true-value="306" | ||||
|             :false-value="301" | ||||
|           > | ||||
|         </div> | ||||
|         <div class="field mb-3"> | ||||
|           <label class="label is-small">Data dostawy</label> | ||||
|           <div class="field is-small"> | ||||
|   | ||||
| @@ -128,7 +128,7 @@ fetchOrders(null); | ||||
|                      :class="{'confirmed' : order.MZN_Bufor == 0 && order.MZN_Anulowane != 1, | ||||
|                       'cancelled' : order.MZN_Anulowane == 1, | ||||
|                       'is-skeleton' : areOrdersLoading}"> | ||||
|                   <label class="label" :class="{'is-invisible': areOrdersLoading}">Zamówienie nr {{order.MZN_MZNID}}</label> | ||||
|                   <label class="label" :class="{'is-invisible': areOrdersLoading}">Zamówienie nr {{order.MZN_MZNID}}, Typ dokumentu {{order.MZN_TypDokumentu}}  </label> | ||||
|                   <label class="label is-small" :class="{'is-invisible': areOrdersLoading}">Klient</label> | ||||
|                   <div class="field is-small mb-3" :class="{'is-invisible': areOrdersLoading}"> | ||||
|                     <input class="input is-small is-static" | ||||
|   | ||||
| @@ -254,7 +254,7 @@ function hasNonEmptyUwagi(item: any): boolean { | ||||
|                        class="pb-4" style="display: block; page-break-inside: avoid;"> | ||||
|                     <p class="is-size-6 px-2">NIP {{order.MZN_PodNipE}}</p> | ||||
|                     <p class="is-size-6 px-2">{{order.MZN_PodNazwa1 + order.MZN_PodNazwa2 + order.MZN_PodNazwa3}}</p> | ||||
|                     <p class="is-size-5 px-2">ZAMÓWIENIE NR {{order.MZN_MZNID}}</p> | ||||
|                     <p class="is-size-5 px-2">ZAMÓWIENIE NR {{order.MZN_MZNID}}, Typ dokumentu {{order.MZN_TypDokumentu}}</p> | ||||
|                     <DataTable :value="order.products" class="mb-3" style="padding:0" scrollable> | ||||
|                       <Column field="kod" header="Indeks" frozen></Column> | ||||
|                       <Column field="nazwa" header="Nazwa"/> | ||||
| @@ -282,7 +282,7 @@ function hasNonEmptyUwagi(item: any): boolean { | ||||
|                       ZAMÓWIENIA NR | ||||
|                       <span | ||||
|                         v-for="(orderByNip, index) in orderByRouteAndNipRef.get(route.MZT_Nazwa1).get(nip).orders">{{ orderByNip.MZN_MZNID | ||||
|                         }} | ||||
|                         }} TYP ZAMÓWIENIA {{orderByNip.MZN_TypDokumentu}} | ||||
|                         <span | ||||
|                           v-if="index !== orderByRouteAndNipRef.get(route.MZT_Nazwa1).get(nip).orders.length - 1">, </span> | ||||
|                       </span> | ||||
| @@ -292,7 +292,7 @@ function hasNonEmptyUwagi(item: any): boolean { | ||||
|                       ZAMÓWIENIE NR | ||||
|                       <span | ||||
|                         v-for="(orderByNip, index) in orderByRouteAndNipRef.get(route.MZT_Nazwa1).get(nip).orders">{{ orderByNip.MZN_MZNID | ||||
|                         }} | ||||
|                         }} TYP ZAMÓWIENIA {{orderByNip.MZN_TypDokumentu}} | ||||
|                         <span | ||||
|                           v-if="index !== orderByRouteAndNipRef.get(route.MZT_Nazwa1).get(nip).orders.length - 1">, </span> | ||||
|                       </span> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user