Added delivery notes. changed waiting/pending
This commit is contained in:
@@ -58,8 +58,8 @@
|
||||
<td>{{ oil['id'] }} </td>
|
||||
<router-link :to="{ name: 'customerProfile', params: { id: oil['id'] } }">
|
||||
<td>
|
||||
<div class="hover:text-accent">{{ oil['customer_name'] }} </div>
|
||||
</td>
|
||||
<div class="hover:text-accent">{{ oil['customer_name'] }} </div>
|
||||
</td>
|
||||
</router-link>
|
||||
<td>
|
||||
<div v-if="oil['delivery_status'] == 0">Waiting</div>
|
||||
@@ -84,22 +84,22 @@
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<div v-if="oil['prime'] == 0">No</div>
|
||||
<div v-else class="text-red-600">Yes</div>
|
||||
</td>
|
||||
<td>
|
||||
<div v-if="oil['same_day'] == 0">No</div>
|
||||
<div v-else class="text-red-600">Yes</div>
|
||||
</td>
|
||||
<td>
|
||||
<div v-if="oil['emergency'] == 0">No</div>
|
||||
<div v-else class="text-red-600">Yes</div>
|
||||
</td>
|
||||
|
||||
<div v-if="oil['prime'] == 0">No</div>
|
||||
<div v-else class="text-red-600">Yes</div>
|
||||
</td>
|
||||
<td>
|
||||
<div v-if="oil['same_day'] == 0">No</div>
|
||||
<div v-else class="text-red-600">Yes</div>
|
||||
</td>
|
||||
<td>
|
||||
<div v-if="oil['emergency'] == 0">No</div>
|
||||
<div v-else class="text-red-600">Yes</div>
|
||||
</td>
|
||||
|
||||
|
||||
|
||||
<td>
|
||||
|
||||
|
||||
<div v-if="oil['payment_type'] == 0">Cash</div>
|
||||
<div v-else-if="oil['payment_type'] == 1">CC</div>
|
||||
<div v-else-if="oil['payment_type'] == 2">Cash/CC</div>
|
||||
@@ -112,32 +112,32 @@
|
||||
|
||||
|
||||
|
||||
<router-link :to="{ name: 'deliveryOrder', params: { id: oil['id'] } }">
|
||||
<button class="btn btn-secondary btn-sm">View Delivery</button>
|
||||
</router-link>
|
||||
<router-link :to="{ name: 'deliveryEdit', params: { id: oil['id'] } }">
|
||||
<button class="btn btn-secondary btn-sm">Edit Delivery</button>
|
||||
</router-link>
|
||||
<router-link :to="{ name: 'deliveryOrder', params: { id: oil['id'] } }">
|
||||
<button class="btn btn-secondary btn-sm">View Delivery</button>
|
||||
</router-link>
|
||||
<router-link :to="{ name: 'deliveryEdit', params: { id: oil['id'] } }">
|
||||
<button class="btn btn-secondary btn-sm">Edit Delivery</button>
|
||||
</router-link>
|
||||
|
||||
<router-link :to="{ name: 'finalizeTicket', params: { id: oil['id'] } }" v-if="oil['delivery_status'] != 10">
|
||||
<router-link :to="{ name: 'finalizeTicket', params: { id: oil['id'] } }"
|
||||
v-if="oil['delivery_status'] != 10">
|
||||
<button class="btn btn-secondary btn-sm">Finalize</button>
|
||||
</router-link>
|
||||
|
||||
|
||||
<router-link :to="{ name: 'Ticket', params: { id: oil['id'] } }">
|
||||
<button class="btn btn-success btn-sm">
|
||||
Print Ticket
|
||||
</button>
|
||||
</router-link>
|
||||
<button class="btn btn-success btn-sm">
|
||||
Print Ticket
|
||||
</button>
|
||||
</router-link>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="flex justify-center" v-if="recordsLength > 1">
|
||||
<pagination @paginate="getPage" :records="recordsLength" v-model="page" :per-page="perPage" :options="options">
|
||||
</pagination>
|
||||
<div class="flex justify-center mb-10"> {{ recordsLength }} items Found</div>
|
||||
</div>
|
||||
</div>
|
||||
<pagination @paginate="getPage" :records="recordsLength" v-model="page" :per-page="25" :options="options" class="mt-10">
|
||||
</pagination>
|
||||
<div class="flex justify-center mb-10"> {{ recordsLength }} items Found</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -186,9 +186,9 @@ export default defineComponent({
|
||||
this.userStatus()
|
||||
},
|
||||
mounted() {
|
||||
this.getPage(this.page)
|
||||
this.today_delivery_count()
|
||||
this.today_delivery_delivered()
|
||||
this.getPage(this.page);
|
||||
this.today_delivery_count();
|
||||
this.today_delivery_delivered();
|
||||
},
|
||||
methods: {
|
||||
getPage: function (page: any) {
|
||||
@@ -196,6 +196,7 @@ export default defineComponent({
|
||||
this.deliveries = [];
|
||||
this.get_oil_orders(page)
|
||||
},
|
||||
|
||||
userStatus() {
|
||||
let path = import.meta.env.VITE_BASE_URL + '/auth/whoami';
|
||||
axios({
|
||||
@@ -221,7 +222,7 @@ export default defineComponent({
|
||||
headers: authHeader(),
|
||||
}).then((response: any) => {
|
||||
this.deliveries = response.data
|
||||
|
||||
|
||||
})
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user