Lines 32-37
import LeftMenu from "../LeftMenu.vue";
Link Here
|
32 |
import Dialog from "../Dialog.vue"; |
32 |
import Dialog from "../Dialog.vue"; |
33 |
import "vue-select/dist/vue-select.css"; |
33 |
import "vue-select/dist/vue-select.css"; |
34 |
import { storeToRefs } from "pinia"; |
34 |
import { storeToRefs } from "pinia"; |
|
|
35 |
import { APIClient } from "../../fetch/api-client.js"; |
35 |
|
36 |
|
36 |
export default { |
37 |
export default { |
37 |
setup() { |
38 |
setup() { |
Lines 61-78
export default {
Link Here
|
61 |
|
62 |
|
62 |
this.loadAuthorisedValues(this.authorisedValues, this.vendorStore).then( |
63 |
this.loadAuthorisedValues(this.authorisedValues, this.vendorStore).then( |
63 |
() => { |
64 |
() => { |
64 |
this.userPermissions = userPermissions; |
65 |
const client = APIClient.acquisition; |
65 |
this.config.settings.edifact = edifact; |
66 |
client.config.get("vendors").then(config => { |
66 |
this.config.settings.marcOrderAutomation = marcOrderAutomation; |
67 |
this.userPermissions = config.permissions; |
67 |
this.vendorStore.currencies = currencies; |
68 |
this.config.settings.edifact = edifact; |
68 |
this.vendorStore.gstValues = gstValues.map(gv => { |
69 |
this.config.settings.marcOrderAutomation = |
69 |
return { |
70 |
marcOrderAutomation; |
70 |
label: `${Number(gv.option * 100).format_price()}%`, |
71 |
this.vendorStore.currencies = currencies; |
71 |
value: gv.option, |
72 |
this.vendorStore.gstValues = gstValues.map(gv => { |
72 |
}; |
73 |
return { |
|
|
74 |
label: `${Number(gv.option * 100).format_price()}%`, |
75 |
value: gv.option, |
76 |
}; |
77 |
}); |
78 |
this.loaded(); |
79 |
this.initialized = true; |
73 |
}); |
80 |
}); |
74 |
this.loaded(); |
|
|
75 |
this.initialized = true; |
76 |
} |
81 |
} |
77 |
); |
82 |
); |
78 |
}, |
83 |
}, |
79 |
- |
|
|