Lines 122-128
Link Here
|
122 |
import { inject } from "vue" |
122 |
import { inject } from "vue" |
123 |
import Breadcrumb from "../../components/Breadcrumb.vue" |
123 |
import Breadcrumb from "../../components/Breadcrumb.vue" |
124 |
import Dialog from "../../components/Dialog.vue" |
124 |
import Dialog from "../../components/Dialog.vue" |
125 |
import { fetchVendors } from "../../fetch/erm.js" |
125 |
import { APIClient } from "../../fetch/api-client.js" |
126 |
import "vue-select/dist/vue-select.css" |
126 |
import "vue-select/dist/vue-select.css" |
127 |
|
127 |
|
128 |
export default { |
128 |
export default { |
Lines 154-160
export default {
Link Here
|
154 |
} |
154 |
} |
155 |
}, |
155 |
}, |
156 |
beforeCreate() { |
156 |
beforeCreate() { |
157 |
fetchVendors().then(vendors => (this.vendorStore.vendors = vendors)) |
157 |
const client = APIClient.acquisition |
|
|
158 |
client.vendors.getAll().then( |
159 |
vendors => { |
160 |
this.vendors = vendors |
161 |
this.initialized = true |
162 |
}, |
163 |
error => {} |
164 |
) |
158 |
}, |
165 |
}, |
159 |
components: { |
166 |
components: { |
160 |
Breadcrumb, |
167 |
Breadcrumb, |