diff --git a/src/components/04_product-service/FormServiceWork.vue b/src/components/04_product-service/FormServiceWork.vue index 3d8f3ae4..8e581929 100644 --- a/src/components/04_product-service/FormServiceWork.vue +++ b/src/components/04_product-service/FormServiceWork.vue @@ -6,54 +6,17 @@ import { moveItemUp, moveItemDown, deleteItem, dialog } from 'src/stores/utils'; import NoData from 'src/components/NoData.vue'; import WorkManagementComponent from './WorkManagementComponent.vue'; +import useProductServiceStore from 'src/stores/product-service'; + +const productServiceStore = useProductServiceStore(); const { t } = useI18n(); import { WorkItems, ProductList } from 'src/stores/product-service/types'; const serviceName = defineModel('serviceName'); const product = defineModel(); - const workItems = defineModel('workItems', { default: [] }); -// const workItems = ref([ -// { -// id: '1', -// product: [ -// { -// id: '1', -// label: 'ค่าธรรมเนียมใบอนุญาตทำงาน 2 ปี 555', -// labelEn: '2 year work permit fee', -// code: 'AC101', -// price: 1200, -// time: '14', -// }, -// ], -// }, -// { -// id: '2', -// product: [ -// { -// id: '1', -// label: 'ค่าธรรมเนียมใบอนุญาตทำงาน 2 ปี', -// labelEn: '2 year work permit fee', -// code: 'AC101', -// price: 1200, -// time: '14', -// }, -// { -// id: '1', -// label: -// 'ค่าบริการและค่าดำเนินงานยื่นคำร้องขอใบอนุญาตทำงานแทน คนงานต่างด้าว MOU', -// labelEn: -// 'Service and processing fees for submitting a work permit application on behalf of an MOU foreign worker', -// code: 'AC102', -// price: 1200, -// time: '14', -// }, -// ], -// }, -// ]); - defineProps<{ dense?: boolean; outlined?: boolean;