diff --git a/src/components/ComplaintInfo.vue b/src/components/ComplaintInfo.vue new file mode 100644 index 0000000..9454659 --- /dev/null +++ b/src/components/ComplaintInfo.vue @@ -0,0 +1,110 @@ + + + + Complaint Info : {{ complaint.id }} + + + + + {{ complaint.customer.acc_no }} - {{ complaint.customer.name }} + {{ formatDate(complaint.complaint_date,"DD/MM/YYYY") }} + + + Reason: {{ complaint.reason }} + Driver: {{ complaint.driver.name }} + Delivery Date {{ formatDate(complaint.delivery_date,"DD/MM/YYYY") }} + Order : {{ complaint.sop.doc_no }} + + + + + Comments + + + {{ complaint.info.comments }} + + + Info + + + + + + + + + + + + + + + + + + + + + diff --git a/src/types/ComplaintInfoType.vue b/src/types/ComplaintInfoType.vue new file mode 100644 index 0000000..8450cd4 --- /dev/null +++ b/src/types/ComplaintInfoType.vue @@ -0,0 +1,9 @@ + diff --git a/src/types/ComplaintType.vue b/src/types/ComplaintType.vue new file mode 100644 index 0000000..f53850b --- /dev/null +++ b/src/types/ComplaintType.vue @@ -0,0 +1,16 @@ + diff --git a/src/views/complaints/ComplaintsList.vue b/src/views/complaints/ComplaintsList.vue index 20f6726..2668eec 100644 --- a/src/views/complaints/ComplaintsList.vue +++ b/src/views/complaints/ComplaintsList.vue @@ -1,116 +1,71 @@ Complaints - + - - + + - - - - + Add - - - - - Comp No - Date - Order - Acc No - Name - Reason - Active - - - - - - - - - - - - {{ complaint.id }} - {{ complaint.complaint_date }} - {{ complaint.sop.doc_no }} - {{ complaint.customer.acc_no }} - {{ complaint.customer.name }} - - {{ complaint.reason }} - - - - - - - Hide - - - View - - - - - - - - - {{ complaint.info.comments }} - - - {{ complaint.info.added_by }} - - - - - - - - - - - - - - - - - - - - Edit - - - - - - - - - - - - - + + + Add + + + + + + Complaint : {{ item.id }} + + Complaint Date : {{ item.complaint_date }} + Sales Order: {{ item.sop.doc_no }} + + + + {{ item.customer.acc_no }} - {{ item.customer.name }} + Reason : {{ item.reason }} + Driver : {{ item.driver.name }} + + + + + + + + View + Edit + + + + + + + + + + +