better buttons on contracts

This commit is contained in:
Paul Wilde 2023-03-17 16:12:47 +00:00
parent 6991d1adfd
commit 92fc782ca5

View file

@ -58,64 +58,60 @@
= {{ formatNumber(item.tonnage_per_month * item.remaining_duration,2) }} remaining<br/> = {{ formatNumber(item.tonnage_per_month * item.remaining_duration,2) }} remaining<br/>
</v-col> </v-col>
<v-col> <v-col>
<v-row> <div class="d-flex justify-space-around align-center flex-column flex-sm-row fill-height">
<v-col cols="12"> <v-btn color="info">
<v-btn color="info"> More
More <v-overlay activator="parent" class="align-center justify-center">
<v-overlay activator="parent" class="align-center justify-center"> <v-card title="Info" width="600">
<v-card title="Info" width="600"> <v-card-subtitle>Comments</v-card-subtitle>
<v-card-subtitle>Comments</v-card-subtitle> <v-card-text>{{ item.comments}} </v-card-text>
<v-card-text>{{ item.comments}} </v-card-text> <v-card-subtitle>Office</v-card-subtitle>
<v-card-subtitle>Office</v-card-subtitle> <v-card-text>{{ item.office_comments}}</v-card-text>
<v-card-text>{{ item.office_comments}}</v-card-text> <v-card-subtitle>Agreed</v-card-subtitle>
<v-card-subtitle>Agreed</v-card-subtitle> <v-card-text>{{ formatDate(item.agree_date,"DD/MM/YYYY") }}</v-card-text>
<v-card-text>{{ formatDate(item.agree_date,"DD/MM/YYYY") }}</v-card-text> <v-card-subtitle>Products</v-card-subtitle>
<v-card-subtitle>Products</v-card-subtitle> <v-card-text>
<v-card-text> <template v-for="p in item.products" :key="p.code">
<template v-for="p in item.products" :key="p.code"> <span v-if="p.code != ''">
<span v-if="p.code != ''"> {{ p.code }} - {{ p.name }} @ {{ p.price }}<br/>
{{ p.code }} - {{ p.name }} @ {{ p.price }}<br/> </span>
</span> </template>
</template> </v-card-text>
</v-card-text> <v-card-actions>
<v-card-actions> <v-btn color="info"
target="blank"
@click="getContractPrint(item.no)"
class="ma-2 pa-2"
:loading="item.multiloading"
>
Multi
</v-btn>
<v-btn color="info" <v-btn color="info"
target="blank" target="blank"
@click="getContractPrint(item.no)" @click="getContractPrint(item.no,true)"
:loading="item.totalloading"
class="ma-2 pa-2" class="ma-2 pa-2"
:loading="item.multiloading"
> >
Multi Total
</v-btn> </v-btn>
<v-btn color="warning"
<v-btn color="info" v-if="site_info.features.editcontract"
target="blank" @click="showEditContract(item)"
@click="getContractPrint(item.no,true)"
:loading="item.totalloading"
class="ma-2 pa-2"
> >
Total Edit
</v-btn> </v-btn>
<v-btn color="warning" </v-card-actions>
v-if="site_info.features.editcontract" </v-card>
@click="showEditContract(item)" </v-overlay>
> </v-btn>
Edit <v-btn color="warning"
</v-btn> v-if="site_info.features.editcontract"
</v-card-actions> @click="showEditContract(item)"
</v-card> >
</v-overlay> Edit
</v-btn> </v-btn>
</v-col> </div>
<v-col cols="12">
<v-btn color="warning"
v-if="site_info.features.editcontract"
@click="showEditContract(item)"
>
Edit
</v-btn>
</v-col>
</v-row>
</v-col> </v-col>
</v-row> </v-row>
</RecycleScroller> </RecycleScroller>