diff --git a/src/components/ComplaintInfo.vue b/src/components/ComplaintInfo.vue index f64de7a..068795f 100644 --- a/src/components/ComplaintInfo.vue +++ b/src/components/ComplaintInfo.vue @@ -10,7 +10,7 @@ {{ formatDate(complaint.complaint_date,"DD/MM/YYYY") }} - Reason: {{ complaint.reason }}
+ Reason: {{ complaint.reason.reason }}
Driver: {{ complaint.driver.name }}
Delivery Date {{ formatDate(complaint.delivery_date,"DD/MM/YYYY") }}
Order : {{ complaint.sop.doc_no }}
diff --git a/src/views/complaints/ComplaintsList.vue b/src/views/complaints/ComplaintsList.vue index 59db244..db46af5 100644 --- a/src/views/complaints/ComplaintsList.vue +++ b/src/views/complaints/ComplaintsList.vue @@ -40,7 +40,7 @@ {{ item.customer.acc_no }} - {{ item.customer.name }}
- Reason : {{ item.reason }}
+ Reason : {{ item.reason.reason }}
Driver : {{ item.driver.name }}
@@ -105,7 +105,7 @@ export default { q.customer.name.toLowerCase().includes(query) || q.customer.acc_no.includes(query) || q.id == query || - q.reason.toLowerCase().includes(query) + q.reason.reason.toLowerCase().includes(query) ) if (this.showActive) { clist = clist.filter(q =>