From cd51de015964f1ad05bef446193f45a09aa2aad4 Mon Sep 17 00:00:00 2001
From: Net <93821485+somnetsak123@users.noreply.github.com>
Date: Tue, 9 Jul 2024 16:18:48 +0700
Subject: [PATCH] =?UTF-8?q?refactor:=20=E0=B8=88=E0=B8=B1=E0=B8=94=20?=
=?UTF-8?q?=E0=B8=82=E0=B9=89=E0=B8=AD=E0=B8=A1=E0=B8=B9=E0=B8=A5=E0=B8=82?=
=?UTF-8?q?=E0=B8=AD=E0=B8=87=20=20=E0=B8=9A=E0=B8=A3=E0=B8=B4=E0=B8=81?=
=?UTF-8?q?=E0=B8=B2=E0=B8=A3=E0=B9=81=E0=B8=A5=E0=B8=B0=E0=B8=AA=E0=B8=B4?=
=?UTF-8?q?=E0=B8=99=E0=B8=84=E0=B9=89=E0=B8=B2?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/pages/04_product-service/MainPage.vue | 74 ++++++++++++++++++++---
1 file changed, 65 insertions(+), 9 deletions(-)
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 () => {