fixes ui order page

This commit is contained in:
rakesh 2023-05-19 12:15:05 +05:30
parent 36ed3aeec1
commit 9af28417d7
2 changed files with 24 additions and 14 deletions

View File

@ -87,7 +87,6 @@
isHovering ? ' bg-white text-primary' : 'bg-primary' isHovering ? ' bg-white text-primary' : 'bg-primary'
" "
class="text-uppercase ls-0 body productpage-button" class="text-uppercase ls-0 body productpage-button"
@click="addToCart(product.sku, product.mq)" @click="addToCart(product.sku, product.mq)"
> >
<v-progress-circular <v-progress-circular
@ -186,7 +185,7 @@ export default {
async addToCart(sku, qty) { async addToCart(sku, qty) {
if (sku) { if (sku) {
if (this.userAuth) { if (this.userAuth) {
debugger debugger;
await this.$store await this.$store
.dispatch("userCartProduct/addToCart", { .dispatch("userCartProduct/addToCart", {
sku: sku, sku: sku,
@ -390,8 +389,6 @@ export default {
.filter-component-width .v-expansion-panels { .filter-component-width .v-expansion-panels {
display: inline-block; display: inline-block;
} }
// .v-text-field__details {
// display: none;
// }
</style> </style>
<style src="./RetailerSearchProducts.scss" lang="scss" scoped /> <style src="./RetailerSearchProducts.scss" lang="scss" scoped />

View File

@ -63,7 +63,20 @@
<div class="pt-7">-</div> <div class="pt-7">-</div>
<v-col cols="12" sm="12" md="6" lg="5"> <v-col cols="12" sm="12" md="6" lg="5">
<v-menu
<v-text-field
type="date"
v-model="createdTo"
placeholder="To"
density="compact"
variant="outlined"
label="To"
color="primary pt-0"
>
</v-text-field>
<!-- <v-menu
v-model="menu2" v-model="menu2"
:close-on-content-click="false" :close-on-content-click="false"
:nudge-right="40" :nudge-right="40"
@ -90,7 +103,7 @@
v-model="createdTo" v-model="createdTo"
@input="menu2 = false" @input="menu2 = false"
></v-date-picker> ></v-date-picker>
</v-menu> </v-menu>-->
</v-col> </v-col>
<!-- <v-col cols="12" sm="12" md="12" lg="12"> <!-- <v-col cols="12" sm="12" md="12" lg="12">
@ -161,7 +174,7 @@
:headers="headers" :headers="headers"
:items="OrderHistory" :items="OrderHistory"
:items-per-page="10" :items-per-page="10"
class="elevation-1 pt-5" class="elevation-1"
> >
<template v-slot:item.date="{ item }"> <template v-slot:item.date="{ item }">
<span>{{ isoStringToNormalDate(item.value.updatedAt) }}</span> <span>{{ isoStringToNormalDate(item.value.updatedAt) }}</span>
@ -223,12 +236,12 @@ export default {
dateAtFormatted:"", dateAtFormatted:"",
dateToFormatted:"", dateToFormatted:"",
headers: [ headers: [
{ title: "Date", key: "date" }, { title: "Date", key: "date" , sortable: false },
{ title: "Order #", key: "order" }, { title: "Order #", key: "order" , sortable: false},
{ title: "Sales Rep Name", key: "salesrepname" }, { title: "Sales Rep Name", key: "salesrepname" , sortable: false},
{ title: "Status", key: "status" }, { title: "Status", key: "status" , sortable: false},
{ title: "PO Number", key: "POnumber" }, { title: "PO Number", key: "POnumber" , sortable: false},
{ title: "Action", key: "actions" }, { title: "Action", key: "actions" , sortable: false},
], ],
}), }),
computed: { computed: {