Price with currency

This commit is contained in:
2024-03-30 07:22:29 +01:00
parent 2d2f639e36
commit ec90bcecb6

View File

@@ -214,13 +214,18 @@ const hrates = ref([
{ text: "Rate", value: "rate", sortable: true },
]);
// { "country": "AT", "code": "50161321", "url": "https://www.ikea.com/at/de/p/hol-aufbewahrungstisch-akazie-50161321/", "name": "HOL", "typeName": "Aufbewahrungstisch", "mainImageUrl": "https://www.ikea.com/at/de/images/products/hol-aufbewahrungstisch-akazie__0104310_pe251255_s5.jpg", "itemNoGlobal": "50161321", "salesPrice": "80.99", "tag": "FAMILY_PRICE", "last_mod": "2023-12-03 16:44:24" },
const tprice = computed(() => {
return `Price / ${settingsStore.currency}`;
})
const hproducts = ref([
{ text: "Country", value: "countryName", sortable: true },
{ text: "Tag", value: "tag", sortable: true },
{ text: "Local Price", value: "salesPrice", sortable: true },
{ text: "Cur", value: "currency", sortable: false },
{ text: "Rate", value: "rate" },
{ text: "Price", value: "calcPrice", sortable: true },
{ text: tprice, value: "calcPrice", sortable: true },
]);
const hresults = ref([
{ text: "Code", value: "code", sortable: true },