Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
quasar-web-base
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Nguyễn Hải Sơn
quasar-web-base
Commits
e663444e
Commit
e663444e
authored
Apr 07, 2023
by
Nguyễn Đức Thắng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
e8799d8b
Changes
10
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
782 additions
and
169 deletions
+782
-169
configurations.example.ts
src/assets/configurations.example.ts
+7
-0
type.ts
src/assets/type.ts
+34
-2
AddHotProductDialog.ts
...s/artist-information/AddHotProduct/AddHotProductDialog.ts
+1
-1
index.vue
src/components/detailBooking/index.vue
+38
-32
add.vue
src/components/detailBooking/tableDeposit/add.vue
+53
-16
index.vue
src/components/detailBooking/tableDeposit/index.vue
+181
-116
update.vue
src/components/detailBooking/tableDeposit/update.vue
+465
-0
app.scss
src/css/app.scss
+1
-0
index.vue
src/pages/cau-hinh-doi-tac-truyen-thong/index.vue
+1
-1
index.vue
src/pages/danh-sach-booking/index.vue
+1
-1
No files found.
src/assets/configurations.example.ts
View file @
e663444e
...
@@ -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'
}
}
src/assets/type.ts
View file @
e663444e
...
@@ -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
;
};
src/components/artist-information/AddHotProduct/AddHotProductDialog.ts
View file @
e663444e
...
@@ -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
]);
...
...
src/components/detailBooking/index.vue
View file @
e663444e
...
@@ -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:
56
rem"
bordered
>
<q-card
style=
"min-width:
60
rem"
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
:
{
...
...
src/components/detailBooking/tableDeposit/add.vue
View file @
e663444e
<
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-m
y
-sm"
class=
"q-m
a
-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-m
y
-sm"
class=
"q-m
a
-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-m
y
-sm"
class=
"q-m
a
-sm"
outlined
outlined
label=
"Số tiền đặt cọc:"
hide-bottom-space
hide-bottom-space
clearable
clearable
dense
dense
...
...
src/components/detailBooking/tableDeposit/index.vue
View file @
e663444e
This diff is collapsed.
Click to expand it.
src/components/detailBooking/tableDeposit/update.vue
0 → 100644
View file @
e663444e
This diff is collapsed.
Click to expand it.
src/css/app.scss
View file @
e663444e
...
@@ -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
,
...
...
src/pages/cau-hinh-doi-tac-truyen-thong/index.vue
View file @
e663444e
<
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>
...
...
src/pages/danh-sach-booking/index.vue
View file @
e663444e
...
@@ -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'
},
]);
]);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment