update

parent e8799d8b
...@@ -170,4 +170,11 @@ export enum API_PATHS { ...@@ -170,4 +170,11 @@ export enum API_PATHS {
// xóa công việc // xóa công việc
workDelete = 'work/delete', workDelete = 'work/delete',
// danh sách ngân hàng
listBank = 'common/bank',
// cập nhật đặt cọc
depositUpdate = 'deposit/update'
} }
...@@ -314,7 +314,7 @@ export type Contract = { ...@@ -314,7 +314,7 @@ export type Contract = {
artistFullName: string; artistFullName: string;
field: string; field: string;
fieldId: number; fieldId: number;
id: number id: number;
}; };
export type ArtistOwnerAdd = { export type ArtistOwnerAdd = {
...@@ -531,7 +531,7 @@ export type ListBooking = { ...@@ -531,7 +531,7 @@ export type ListBooking = {
favoriteScore: number; favoriteScore: number;
performStatus: number; performStatus: number;
fee: string; fee: string;
bookingRandomCode:string bookingRandomCode: string;
}; };
export type ListArrayArtist = { export type ListArrayArtist = {
...@@ -849,3 +849,35 @@ export type AddConfigHotProduct = { ...@@ -849,3 +849,35 @@ export type AddConfigHotProduct = {
imageUrl: string; imageUrl: string;
salientStatus: number; salientStatus: number;
}; };
export type formality = {
code: null;
id: number;
logo: null;
name: string;
numIndex: number;
status: number;
};
export type dataIteam = {
amountMoney: number;
depositDate: string;
id: number;
content: string;
image: string;
moneyDepositDto: string;
accountNumber: number;
bankId: number;
status: number;
accountName: string;
bankDto: listBank;
artistBooking: ListBooking;
formality: formality[];
};
export type listBank = {
code: string;
id: number;
name: string;
status: number;
};
...@@ -37,7 +37,7 @@ export default defineComponent({ ...@@ -37,7 +37,7 @@ export default defineComponent({
{ id: 2, name: 'Sản phẩm nổi bật' }, { id: 2, name: 'Sản phẩm nổi bật' },
]); ]);
const uploadAvatar = (value: FileList) => { const uploadAvatar = (value: FileList) => {
console.log(value, 'value');
dialogCrop.value = true; dialogCrop.value = true;
imageCrop.value = URL.createObjectURL(value[0]); imageCrop.value = URL.createObjectURL(value[0]);
......
...@@ -3,8 +3,9 @@ ...@@ -3,8 +3,9 @@
persistent persistent
:model-value="showDialog" :model-value="showDialog"
@update:model-value="$emit('update:showDialog', $event)" @update:model-value="$emit('update:showDialog', $event)"
> >
<q-card style="min-width: 56rem" bordered> <q-card style="min-width: 60rem" bordered>
<q-form greedy> <q-form greedy>
<q-card-section> <q-card-section>
<q-item> <q-item>
...@@ -71,59 +72,64 @@ ...@@ -71,59 +72,64 @@
<div class="col-4 fs-14 color"> <div class="col-4 fs-14 color">
{{ $t('listBooking.titleColumnsTable.status') }}: {{ $t('listBooking.titleColumnsTable.status') }}:
</div> </div>
<div class="col-8 fs-14"> <div class="col-8 fs-14">
<q-chip <q-chip
size="sm" size="sm"
color="secondary" color="secondary"
v-if="detailInfoBooking.status === 0" v-if="detailInfoBooking.status === 0"
>Chờ nhận</q-chip >Chưa hoàn thành</q-chip
> >
<q-chip <q-chip
size="sm" size="sm"
color="info" color="info"
v-else-if="detailInfoBooking.status === 1" v-else-if="detailInfoBooking.status === 1"
>Đã nhận</q-chip >Đã hoàn thành</q-chip
> >
<q-chip size="sm" color="warning" v-else>Từ chối</q-chip>
</div>
<div class="col-4 fs-14 color">
{{ $t('listBooking.titleColumnsTable.performStatus') }}:
</div>
<div class="col-8 fs-14">
<q-chip <q-chip
size="sm" size="sm"
color="secondary" color="warning"
v-if="detailInfoBooking.performStatus === 0" v-else-if="detailInfoBooking.status === 2"
>Chờ nhận</q-chip >Đã hủy</q-chip
> >
<q-chip <q-chip
size="sm" size="sm"
color="info" color="warning"
v-else-if="detailInfoBooking.performStatus === 1" v-else-if="detailInfoBooking.status === 3"
>Đã thực hiện</q-chip >Hết hạn</q-chip
> >
<q-chip <q-chip
size="sm" size="sm"
color="warning" color="warning"
v-else-if="detailInfoBooking.performStatus === 2" v-else-if="detailInfoBooking.status === 4"
>Chưa thực hiện</q-chip >Chờ hủy</q-chip
> >
</div>
<div class="col-4 fs-14 color">
{{ $t('listBooking.titleColumnsTable.performStatus') }}:
</div>
<div class="col-8 fs-14">
<q-chip <q-chip
size="sm" size="sm"
color="warning" color="secondary"
v-else-if="detailInfoBooking.performStatus === 3" v-if="detailInfoBooking.performStatus === 0"
>Hoãn lịch</q-chip >Chưa xác nhận</q-chip
> >
<q-chip <q-chip
size="sm" size="sm"
color="warning" color="info"
v-else-if="detailInfoBooking.performStatus === 4" v-else-if="detailInfoBooking.performStatus === 1"
>Hủy lịch</q-chip >Đã xác nhận</q-chip
>
<q-chip size="sm" color="secondary" v-else
>Thay đổi lịch</q-chip
> >
<q-chip size="sm" color="warning" v-else>Từ chối</q-chip>
</div> </div>
<div class="col-4 fs-14 color"> <div class="col-4 fs-14 color">
...@@ -133,11 +139,11 @@ ...@@ -133,11 +139,11 @@
</div> </div>
</div> </div>
<!-- <v-row> <v-row>
<v-col> <v-col>
<tableDeposit :id="detailInfoBooking.id"></tableDeposit> <tableDeposit :id="detailInfoBooking.id"></tableDeposit>
</v-col> </v-col>
</v-row> --> </v-row>
</q-card-section> </q-card-section>
<q-separator /> <q-separator />
<q-card-actions align="right"> <q-card-actions align="right">
...@@ -157,10 +163,10 @@ ...@@ -157,10 +163,10 @@
<script lang="ts"> <script lang="ts">
import { defineComponent, PropType, watch } from 'vue'; import { defineComponent, PropType, watch } from 'vue';
import { ListBooking } from 'src/assets/type'; import { ListBooking } from 'src/assets/type';
// import tableDeposit from '../../components/detailBooking/tableDeposit/index.vue'; import tableDeposit from '../../components/detailBooking/tableDeposit/index.vue';
export default defineComponent({ export default defineComponent({
components: { components: {
// tableDeposit, tableDeposit,
}, },
props: { props: {
showDialog: { showDialog: {
......
<template> <template>
<q-dialog persistent :model-value="showDialog"> <q-dialog
persistent
:model-value="showDialog"
@submit.prevent="$emit('click:CloseBtn')"
>
<q-card style="min-width: 900px" bordered> <q-card style="min-width: 900px" bordered>
<q-form greedy> <q-form greedy>
<q-card-section> <q-card-section>
...@@ -82,39 +86,76 @@ ...@@ -82,39 +86,76 @@
</div> </div>
</div> </div>
</div> </div>
<div class="row flex-center" style="padding-top: 10px"> <div class="row" style="padding-top: 10px">
<div class="col-3 text-weight-medium"> <div class="col-6">
<div>Hình thức đặt cọc</div> <q-input
emit-value
label="Tên chủ thẻ"
type="text"
class="q-ma-sm"
outlined
hide-bottom-space
clearable
dense
></q-input>
</div> </div>
<div class="col-6"> <div class="col-6">
<q-select <q-select
emit-value emit-value
map-options map-options
label="Tên ngân hàng"
:options="depositOptions" :options="depositOptions"
option-value="id" option-value="id"
option-label="name" option-label="name"
type="text" type="text"
class="q-my-sm" class="q-ma-sm"
outlined outlined
hide-bottom-space hide-bottom-space
clearable clearable
dense dense
></q-select> ></q-select>
</div> </div>
</div>
<div class="row flex-center"> <div class="col-6">
<div class="col-3 text-weight-medium"> <q-input
<div>Thời gian đặt cọc:</div> emit-value
label="Số tiền đặt cọc"
type="text"
class="q-ma-sm"
outlined
hide-bottom-space
clearable
dense
></q-input>
</div>
<div class="col-6">
<q-select
emit-value
map-options
label="Hình thức đặt cọc"
:options="depositOptions"
option-value="id"
option-label="name"
type="text"
class="q-ma-sm"
outlined
hide-bottom-space
clearable
dense
></q-select>
</div> </div>
<div class="col-6"> <div class="col-6">
<q-input <q-input
:model-value="birthday" :model-value="birthday"
@update:model-value="$emit('update:birthday', $event)" @update:model-value="$emit('update:birthday', $event)"
class="q-my-sm" class="q-ma-sm"
outlined outlined
@click="openDialog = true" @click="openDialog = true"
dense dense
label="Thời gian đặt cọc:"
hide-bottom-space hide-bottom-space
> >
<template v-slot:default> <template v-slot:default>
...@@ -139,17 +180,13 @@ ...@@ -139,17 +180,13 @@
</template> </template>
</q-input> </q-input>
</div> </div>
</div>
<div class="row flex-center">
<div class="col-3 text-weight-medium">
<div>Số tiền đặt cọc:</div>
</div>
<div class="col-6"> <div class="col-6">
<q-input <q-input
type="text" type="text"
class="q-my-sm" class="q-ma-sm"
outlined outlined
label="Số tiền đặt cọc:"
hide-bottom-space hide-bottom-space
clearable clearable
dense dense
......
This diff is collapsed.
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
.sticky-header-table { .sticky-header-table {
// / height or max-height is important / // / height or max-height is important /
max-height: calc(100vh - 13.5rem); max-height: calc(100vh - 13.5rem);
// max-width: 100vw; // max-width: 100vw;
.q-table__top, .q-table__top,
.q-table__bottom, .q-table__bottom,
......
<template> <template>
<div class="row q-col-gutter-sm flex-center q-mt-sm"> <div class="row q-col-gutter-sm flex-center q-mt-sm">
<div class="col-auto text-h6 text-weight-regular flex flex-center q-mr-md"> <div class="col-auto text-h6 text-weight-regular flex flex-center q-mr-md">
{{ $t('configPartner.title') }} 123 {{ $t('configPartner.title') }}
<q-separator vertical spaced /> <q-separator vertical spaced />
</div> </div>
<q-space></q-space> <q-space></q-space>
......
...@@ -381,7 +381,7 @@ export default defineComponent({ ...@@ -381,7 +381,7 @@ export default defineComponent({
const ListStatusBooking = ref([ const ListStatusBooking = ref([
{ id: 0, name: 'Chưa hoàn thành', color: 'secondary' }, { id: 0, name: 'Chưa hoàn thành', color: 'secondary' },
{ id: 1, name: 'Đã hoàn thành', color: 'info' }, { id: 1, name: 'Đã hoàn thành', color: 'info' },
{ id: 2, name: 'Đã hủy', color: 'warning' }, { id: 2, name: 'Đã hủy', color: 'error' },
{ id: 3, name: 'Hết hạn', color: 'warning' }, { id: 3, name: 'Hết hạn', color: 'warning' },
{ id: 4, name: 'Chờ hủy', color: 'warning' }, { id: 4, name: 'Chờ hủy', color: 'warning' },
]); ]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment