diff --git a/src/pages/04_product-service/MainPage.vue b/src/pages/04_product-service/MainPage.vue index 235e934f..9ab359be 100644 --- a/src/pages/04_product-service/MainPage.vue +++ b/src/pages/04_product-service/MainPage.vue @@ -30,6 +30,9 @@ import PaginationComponent from 'src/components/PaginationComponent.vue'; import useFlowStore from 'src/stores/flow'; import useMyBranchStore from 'src/stores/my-branch'; +import { dateFormat } from 'src/utils/datetime'; +import {formatNumberDecimal} from 'src/stores/utils'; + const useMyBranch = useMyBranchStore(); const { fetchListOptionBranch } = useMyBranch; @@ -253,7 +256,7 @@ const tbColumn = { }, { name: 'priceInformation', - align: 'left', + align: 'center', label: 'priceInformation', field: 'name', }, @@ -272,6 +275,12 @@ const tbColumn = { label: 'serviceWorkTotal', field: (v) => v.work.length, }, + { + name: 'createdAt', + align: 'left', + label: 'createdAt', + field: 'createdAt', + } ], } satisfies { groupAndType: QTableProps['columns']; @@ -300,8 +309,8 @@ const tbControl = reactive({ ], }, service: { - fieldDisplay: ['serviceName', 'serviceDetail', 'serviceWorkTotal'], - fieldSelected: ['serviceName', 'serviceDetail', 'serviceWorkTotal'], + fieldDisplay: ['serviceName', 'serviceDetail', 'serviceWorkTotal' ,'createdAt'], + fieldSelected: ['serviceName', 'serviceDetail', 'serviceWorkTotal' ,'createdAt'], }, }); @@ -1509,7 +1518,7 @@ watch(inputSearchProductAndService, async () => { - 88585 + {{dateFormat(props.row.createdAt)}} @@ -2320,7 +2329,7 @@ watch(inputSearchProductAndService, async () => { margin-bottom: var(--size-2); " > -
+
{ ) " > - price + +
+
+
{{$t('salePrice')}}
+
{{ formatNumberDecimal(props.row.price || 0 , 2) }}
+ +
+
+
{{$t('agentPrice')}}
+
{{ formatNumberDecimal(props.row.agentPrice || 0 , 2) }}
+ +
+
+
{{$t('processingPrice')}}
+
{{ formatNumberDecimal(props.row.processingPrice || 0 , 2) }}
+ +
+ +
+ + + + + {{ dateFormat(props.row.createdAt) }} { --_color: var(--orange-5-hsl); } -.icon-color-green { +.icon-color-green { --_color: var(--teal-10-hsl); } +.tags-color-green { + --_color-tag: var(--teal-10-hsl); +} + +.dark .tags-color-green { + --_color-tag: var(--teal-8-hsl); +} + .dark .icon-color-purple { --_color: var(--violet-10-hsl); } -.dark .icon-color-green { +.dark .icon-color-green { --_color: var(--teal-8-hsl); } @@ -3327,5 +3374,14 @@ watch(inputSearchProductAndService, async () => { } +.tags { + display: inline-block; + color: hsla(var(--_color-tag) / 1); + background: hsla(var(--_color-tag) / 0.15); + border-radius: var(--radius-2); + padding-inline: var(--size-2); +} + + - toggleStatusGroup(props.row +