diff --git a/resources/assets/vue/components/general/sections/AdminWorkFlowSectionComponent.vue b/resources/assets/vue/components/general/sections/AdminWorkFlowSectionComponent.vue index bd75c002..ade11bf4 100644 --- a/resources/assets/vue/components/general/sections/AdminWorkFlowSectionComponent.vue +++ b/resources/assets/vue/components/general/sections/AdminWorkFlowSectionComponent.vue @@ -3,10 +3,22 @@

{{ currentQuestion.text }}

-
- +
+
+
+

{{ order }}

+
+
+ + + +
+
+
+ +
@@ -43,11 +55,12 @@ export default { ] }, '1688': { text: 'Q1-A1', answers: [{ text: 'A1-A1', next: 'q1-a1-a1' }, { text: 'A1-A2', next: 'q1-a1-a2' }] }, - 'approve_po': { text: 'Q1-A2', answers: [] }, + 'approve_po': { text: 'Order Numbers', answers: [] }, 'fill_po': { text: 'Q1-A3', answers: [] }, }, currentQuestionId: null, - readyToWork: true + readyToWork: true, + orderNumbers: ['Order 123', 'Order 456', 'Order 789'] }; }, computed: { @@ -61,6 +74,15 @@ export default { }, selectAnswer(nextQuestionId) { this.currentQuestionId = nextQuestionId; + }, + selectOrder(order, action) { + if (action === 'approve') { + alert(`${order} has been approved.`); + } else if (action === 'edit') { + alert(`Editing ${order}.`); + } else if (action === 'reject') { + alert(`${order} has been rejected.`); + } } } }; @@ -74,4 +96,15 @@ export default { .btn { margin: 5px; } - \ No newline at end of file + +.box { + border: 1px solid #ddd; + padding: 20px; + margin-top: 20px; + border-radius: 8px; +} + +.order { + margin-bottom: 15px; +} +