mirror of
				https://github.com/crater-invoice/crater.git
				synced 2025-10-27 19:51:09 -04:00 
			
		
		
		
	fix filter issues
This commit is contained in:
		| @ -6,7 +6,6 @@ | ||||
|     value-prop="id" | ||||
|     label="name" | ||||
|     :filter-results="false" | ||||
|     :min-chars="1" | ||||
|     resolve-on-load | ||||
|     :delay="500" | ||||
|     :searchable="true" | ||||
|  | ||||
| @ -179,10 +179,7 @@ | ||||
|         </template> | ||||
|  | ||||
|         <template #cell-name="{ row }"> | ||||
|          <BaseText | ||||
|             :text="row.data.customer.name" | ||||
|             :length="30" | ||||
|           /> | ||||
|           <BaseText :text="row.data.customer.name" :length="30" /> | ||||
|         </template> | ||||
|  | ||||
|         <!-- Invoice Number  --> | ||||
|  | ||||
| @ -50,12 +50,16 @@ | ||||
|       <BaseInputGroup :label="$tc('items.unit')" class="text-left"> | ||||
|         <BaseMultiselect | ||||
|           v-model="filters.unit_id" | ||||
|           :options="itemStore.itemUnits" | ||||
|           label="name" | ||||
|           :placeholder="$t('items.select_a_unit')" | ||||
|           class="w-full" | ||||
|           value-prop="id" | ||||
|           track-by="name" | ||||
|           :filter-results="false" | ||||
|           label="name" | ||||
|           resolve-on-load | ||||
|           :delay="500" | ||||
|           searchable | ||||
|           class="w-full" | ||||
|           :options="searchUnits" | ||||
|         /> | ||||
|       </BaseInputGroup> | ||||
|  | ||||
| @ -298,6 +302,12 @@ function setFilters() { | ||||
|   refreshTable() | ||||
| } | ||||
|  | ||||
| async function searchUnits(search) { | ||||
|   let res = await itemStore.fetchItemUnits({ search }) | ||||
|  | ||||
|   return res.data.data | ||||
| } | ||||
|  | ||||
| async function fetchData({ page, filter, sort }) { | ||||
|   let data = { | ||||
|     search: filters.name, | ||||
|  | ||||
		Reference in New Issue
	
	Block a user