diff --git a/src/components/ui/VnStockValueDisplay.vue b/src/components/ui/VnStockValueDisplay.vue index d8f43323b..b94639603 100644 --- a/src/components/ui/VnStockValueDisplay.vue +++ b/src/components/ui/VnStockValueDisplay.vue @@ -1,5 +1,5 @@ {{ statusConditionalValue(row) }}% @@ -294,6 +358,9 @@ async function handleTicketConfig(data) { {{ row.value7 }} + + {{ row.value8 }} + - - {{ + + + {{ $t('proposal.price2') }}: {{ toCurrency(row.price2) }} + + {{ $t('proposal.itemOldPrice') }}: + {{ toCurrency(sales[0]?.price) }} + + + + + {{ toCurrency(row.price2) }} @@ -323,12 +399,37 @@ async function handleTicketConfig(data) { margin-right: 2px; flex: 2 0 5px; } -.match { + +/* Removed old .match / .not-match specific to price */ +/* .match { color: $negative; } .not-match { color: inherit; +} */ + +/* Added classes for price status */ +.price-alert { + color: $negative; /* Alert text color */ + &.q-tooltip { + background-color: $negative; /* Alert tooltip background */ + color: white; /* Ensure tooltip text is readable */ + } } + +.price-ok { + color: inherit; /* Default text color */ + &.q-tooltip { + /* Keep default tooltip background or set a specific 'ok' color */ + background-color: $positive; /* Example: green background for OK price */ + color: white; /* Ensure tooltip text is readable */ + } +} + +.match { + color: $negative; +} + .proposal-warning { background-color: $warning; } diff --git a/src/pages/Item/components/ItemProposalProxy.vue b/src/pages/Item/components/ItemProposalProxy.vue index 27edd3670..43af6945d 100644 --- a/src/pages/Item/components/ItemProposalProxy.vue +++ b/src/pages/Item/components/ItemProposalProxy.vue @@ -23,33 +23,32 @@ const $props = defineProps({ default: () => [], }, }); -const { dialogRef } = useDialogPluginComponent(); + +const { dialogRef, onDialogHide, onDialogOK, onDialogCancel } = + useDialogPluginComponent(); const emit = defineEmits([ 'onDialogClosed', + 'onDialogOk', 'itemReplaced', ...useDialogPluginComponent.emits, ]); defineExpose({ show: () => dialogRef.value.show(), hide: () => dialogRef.value.hide() }); +const itemReplaced = (data) => { + onDialogOK(data); + dialogRef.value.hide(); +}; - {{ $t('itemProposal') }} + - { - emit('itemReplaced', data); - dialogRef.hide(); - } - " - > + diff --git a/src/pages/Item/locale/en.yml b/src/pages/Item/locale/en.yml index 017f6b11f..50afca975 100644 --- a/src/pages/Item/locale/en.yml +++ b/src/pages/Item/locale/en.yml @@ -231,6 +231,11 @@ proposal: value6: value6 value7: value7 value8: value8 + tag5: Tag5 + tag6: Tag6 + tag7: Tag7 + tag8: Tag8 + advanceable: Advanceable available: Available minQuantity: minQuantity price2: Price diff --git a/src/pages/Item/locale/es.yml b/src/pages/Item/locale/es.yml index a06695fe9..4b82cedd4 100644 --- a/src/pages/Item/locale/es.yml +++ b/src/pages/Item/locale/es.yml @@ -237,11 +237,16 @@ proposal: value6: value6 value7: value7 value8: value8 + tag5: Tag5 + tag6: Tag6 + tag7: Tag7 + tag8: Tag8 available: Disponible minQuantity: Min. cantidad price2: Precio located: Ubicado counter: Contador + advanceable: Adelantable difference: Diferencial groupingPrice: Precio Grouping itemOldPrice: Precio itemOld