Lines 132-143
Link Here
|
132 |
<li> |
132 |
<li> |
133 |
<label for="vendor_type">{{ $__("Vendor type") }}:</label> |
133 |
<label for="vendor_type">{{ $__("Vendor type") }}:</label> |
134 |
<v-select |
134 |
<v-select |
135 |
v-if="authorisedValues.vendor_types.length" |
135 |
v-if="av_vendor_types.length" |
136 |
id="vendor_type" |
136 |
id="vendor_type" |
137 |
v-model="vendor.type" |
137 |
v-model="vendor.type" |
138 |
label="description" |
138 |
label="description" |
139 |
:reduce="av => av.value" |
139 |
:reduce="av => av.value" |
140 |
:options="authorisedValues.vendor_types" |
140 |
:options="av_vendor_types" |
141 |
/> |
141 |
/> |
142 |
<input v-else id="vendor_type" v-model="vendor.type" /> |
142 |
<input v-else id="vendor_type" v-model="vendor.type" /> |
143 |
</li> |
143 |
</li> |
Lines 170-176
Link Here
|
170 |
|
170 |
|
171 |
<script> |
171 |
<script> |
172 |
import { inject } from "vue" |
172 |
import { inject } from "vue" |
173 |
import { storeToRefs } from "pinia" |
|
|
174 |
import ButtonLink from "../ButtonLink.vue" |
173 |
import ButtonLink from "../ButtonLink.vue" |
175 |
|
174 |
|
176 |
export default { |
175 |
export default { |
Lines 179-185
export default {
Link Here
|
179 |
display: Boolean, |
178 |
display: Boolean, |
180 |
}, |
179 |
}, |
181 |
setup() { |
180 |
setup() { |
182 |
|
|
|
183 |
const AVStore = inject("AVStore") |
181 |
const AVStore = inject("AVStore") |
184 |
const { get_lib_from_av, av_vendor_types } = AVStore |
182 |
const { get_lib_from_av, av_vendor_types } = AVStore |
185 |
return { |
183 |
return { |