diff --git a/src/components/04_product-service/FormServiceWork.vue b/src/components/04_product-service/FormServiceWork.vue index dcae360a..0df814f1 100644 --- a/src/components/04_product-service/FormServiceWork.vue +++ b/src/components/04_product-service/FormServiceWork.vue @@ -75,6 +75,7 @@ async function addWork() { id: '', name: '', attributes: { + workflowName: '', additional: [], showTotalPrice: false, stepProperties: [], diff --git a/src/components/04_product-service/WorkManagementComponent.vue b/src/components/04_product-service/WorkManagementComponent.vue index 8c627c6e..9489fab8 100644 --- a/src/components/04_product-service/WorkManagementComponent.vue +++ b/src/components/04_product-service/WorkManagementComponent.vue @@ -580,75 +580,97 @@ watch( > {{ $t('flow.noProcessStep') }} - - - {{ $t('flow.stepNo', { msg: stepIndex + 1 }) }}: - {{ mapStepName(step.id) }} - - -
-
+ {{ $t('flow.stepNo', { msg: stepIndex + 1 }) }}: + {{ mapStepName(step.id) }} + + +
- - {{ optionStore.mapOption(att.fieldName ?? '') }} - -
-
- {{ $t('productService.service.noProperties') }} -
-
- - -
- - {{ - $t('general.select', { - msg: $t('productService.product.title'), - }) - }} - - -
-
- - {{ product.name }} + + {{ optionStore.mapOption(att.fieldName ?? '') }} +
-
- - {{ $t('productService.product.noProduct') }} - -
+
+ {{ $t('productService.service.noProperties') }} +
+ + + +
+ + {{ + $t('general.select', { + msg: $t('productService.product.title'), + }) + }} + + +
+
+ + {{ product.name }} +
+
+ + {{ $t('productService.product.noProduct') }} + +
+
+ + + + {{ $t('productService.service.noPropertiesYet') }} diff --git a/src/i18n/eng.ts b/src/i18n/eng.ts index 4e7f2e47..fcb66c54 100644 --- a/src/i18n/eng.ts +++ b/src/i18n/eng.ts @@ -653,6 +653,7 @@ export default { addWork: 'Add Work', workAlreadyExist: 'Work already exist', splitPay: 'Split Payment', + noPropertiesYet: 'No properties have been selected yet', }, product: { title: 'Products and Services', diff --git a/src/i18n/tha.ts b/src/i18n/tha.ts index 941d3ed8..46d1f729 100644 --- a/src/i18n/tha.ts +++ b/src/i18n/tha.ts @@ -649,6 +649,7 @@ export default { addWork: 'เพิ่มงาน', workAlreadyExist: 'งานนี้มีอยู่แล้ว', splitPay: 'แบ่งจ่าย', + noPropertiesYet: 'ยังไม่ได้เลือกคุณสมบัติต่องาน', }, product: { title: 'สินค้าและบริการ', diff --git a/src/pages/04_product-service/MainPage.vue b/src/pages/04_product-service/MainPage.vue index f857509b..32ce4028 100644 --- a/src/pages/04_product-service/MainPage.vue +++ b/src/pages/04_product-service/MainPage.vue @@ -273,6 +273,7 @@ const formDataProductService = ref({ showTotalPrice: false, additional: [], workflowId: '', + workflowName: '', stepProperties: [], }, detail: '', @@ -899,6 +900,7 @@ const prevService = ref({ work: [], attributes: { showTotalPrice: false, + workflowName: '', workflowId: '', stepProperties: [], additional: [], @@ -1057,6 +1059,7 @@ function clearFormService() { name: '', detail: '', attributes: { + workflowName: '', workflowId: '', stepProperties: [], additional: [], @@ -1285,6 +1288,7 @@ function triggerConfirmCloseWork() { const tempValueProperties = ref({ showTotalPrice: false, + workflowName: '', workflowId: '', stepProperties: [], additional: [],