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
e8799d8b
Commit
e8799d8b
authored
Apr 06, 2023
by
Nguyễn Đức Thắng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
ff80f9b6
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
52 additions
and
72 deletions
+52
-72
index.vue
src/pages/danh-sach-booking-cho-duyet/index.vue
+36
-29
index.vue
src/pages/danh-sach-booking-cho-huy/index.vue
+5
-32
index.vue
src/pages/danh-sach-booking/index.vue
+11
-11
No files found.
src/pages/danh-sach-booking-cho-duyet/index.vue
View file @
e8799d8b
...
@@ -29,7 +29,7 @@
...
@@ -29,7 +29,7 @@
clearable
clearable
></q-select>
></q-select>
</div>
</div>
<div
class=
"col-2 sreach"
>
<
!--
<
div
class=
"col-2 sreach"
>
<q-select
<q-select
v-model=
"sreachStatus"
v-model=
"sreachStatus"
:options=
"ListStatusBooking"
:options=
"ListStatusBooking"
...
@@ -40,8 +40,8 @@
...
@@ -40,8 +40,8 @@
:label=
"$t('listBooking.titleColumnsTable.status')"
:label=
"$t('listBooking.titleColumnsTable.status')"
clearable
clearable
></q-select>
></q-select>
</div>
</div>
-->
<div
class=
"col-2 sreach"
>
<
!--
<
div
class=
"col-2 sreach"
>
<q-select
<q-select
v-model=
"sreachPerformStatus"
v-model=
"sreachPerformStatus"
:options=
"ListPerformStatus"
:options=
"ListPerformStatus"
...
@@ -52,7 +52,7 @@
...
@@ -52,7 +52,7 @@
:label=
"$t('listBooking.titleColumnsTable.performStatus')"
:label=
"$t('listBooking.titleColumnsTable.performStatus')"
clearable
clearable
></q-select>
></q-select>
</div>
</div>
-->
<div
class=
"col-2 sreach"
>
<div
class=
"col-2 sreach"
>
<q-input
<q-input
...
@@ -157,7 +157,7 @@
...
@@ -157,7 +157,7 @@
v-if=
"rowData.row.approvalStatus === 0"
v-if=
"rowData.row.approvalStatus === 0"
flat
flat
round
round
size=
"
1
em"
size=
"
0.9
em"
color=
"primary"
color=
"primary"
icon=
"mdi-block-helper"
icon=
"mdi-block-helper"
@
click=
"confirmRefusedBrowserCustomer(rowData.row.id)"
@
click=
"confirmRefusedBrowserCustomer(rowData.row.id)"
...
@@ -389,24 +389,24 @@ export default defineComponent({
...
@@ -389,24 +389,24 @@ export default defineComponent({
// align: 'center',
// align: 'center',
// sortable: false,
// sortable: false,
// },
// },
{
//
{
name
:
'status'
,
//
name: 'status',
field
:
'status'
,
//
field: 'status',
required
:
true
,
//
required: true,
label
:
i18n
.
global
.
t
(
'listBooking.titleColumnsTable.status'
),
//
label: i18n.global.t('listBooking.titleColumnsTable.status'),
headerStyle
:
'text-align: center !important; width: 8%'
,
//
headerStyle: 'text-align: center !important; width: 8%',
align
:
'center'
,
//
align: 'center',
sortable
:
false
,
//
sortable: false,
},
//
},
{
//
{
name
:
'performStatus'
,
//
name: 'performStatus',
field
:
'performStatus'
,
//
field: 'performStatus',
required
:
true
,
//
required: true,
label
:
i18n
.
global
.
t
(
'listBooking.titleColumnsTable.performStatus'
),
//
label: i18n.global.t('listBooking.titleColumnsTable.performStatus'),
headerStyle
:
'text-align: center !important; width: 8%'
,
//
headerStyle: 'text-align: center !important; width: 8%',
align
:
'center'
,
//
align: 'center',
sortable
:
false
,
//
sortable: false,
},
//
},
{
{
name
:
'approvalStatus'
,
name
:
'approvalStatus'
,
field
:
'approvalStatus'
,
field
:
'approvalStatus'
,
...
@@ -458,6 +458,9 @@ export default defineComponent({
...
@@ -458,6 +458,9 @@ export default defineComponent({
const
sreachPerformStatus
:
Ref
<
const
sreachPerformStatus
:
Ref
<
{
id
:
number
;
name
:
string
;
color
:
string
}
|
undefined
{
id
:
number
;
name
:
string
;
color
:
string
}
|
undefined
>
=
ref
(
undefined
);
>
=
ref
(
undefined
);
const
date
=
ref
([
''
,
''
]);
const
changePageSize
=
()
=>
{
const
changePageSize
=
()
=>
{
pageIndex
.
value
=
1
;
pageIndex
.
value
=
1
;
void
getListBooking
();
void
getListBooking
();
...
@@ -504,10 +507,7 @@ export default defineComponent({
...
@@ -504,10 +507,7 @@ export default defineComponent({
}
catch
(
error
)
{}
}
catch
(
error
)
{}
};
};
const
date
=
ref
([
moment
(
new
Date
()).
format
(
'DD/MM/YYYY'
),
moment
(
new
Date
()).
add
(
7
,
'days'
).
format
(
'DD/MM/YYYY'
),
]);
const
changeTime
=
()
=>
{
const
changeTime
=
()
=>
{
const
startTime
=
Number
(
const
startTime
=
Number
(
moment
(
date
.
value
[
0
],
'DD/MM/YYYY'
).
format
(
'YYYYMMDD'
)
moment
(
date
.
value
[
0
],
'DD/MM/YYYY'
).
format
(
'YYYYMMDD'
)
...
@@ -557,8 +557,15 @@ export default defineComponent({
...
@@ -557,8 +557,15 @@ export default defineComponent({
custId
:
sreachUserName
.
value
?.
id
,
custId
:
sreachUserName
.
value
?.
id
,
status
:
sreachStatus
.
value
?.
id
,
status
:
sreachStatus
.
value
?.
id
,
performStatus
:
sreachPerformStatus
.
value
?.
id
,
performStatus
:
sreachPerformStatus
.
value
?.
id
,
fromTime
:
moment
(
date
.
value
[
0
],
'DD/MM/YYYY'
).
format
(
'DD/MM/YYYY'
),
toTime
:
moment
(
date
.
value
[
1
],
'DD/MM/YYYY'
).
format
(
'DD/MM/YYYY'
),
fromTime
:
date
.
value
[
0
]
===
''
?
''
:
moment
(
date
.
value
[
0
],
'DD/MM/YYYY'
).
format
(
'DD/MM/YYYY'
),
toTime
:
date
.
value
[
1
]
===
''
?
''
:
moment
(
date
.
value
[
1
],
'DD/MM/YYYY'
).
format
(
'DD/MM/YYYY'
),
},
},
}))
as
AxiosResponse
<
BaseResponseBody
<
PaginationResponse
<
ListBooking
>>>
;
}))
as
AxiosResponse
<
BaseResponseBody
<
PaginationResponse
<
ListBooking
>>>
;
if
(
response
.
data
.
error
.
code
===
config
.
API_RES_CODE
.
OK
.
code
)
{
if
(
response
.
data
.
error
.
code
===
config
.
API_RES_CODE
.
OK
.
code
)
{
...
...
src/pages/danh-sach-booking-cho-huy/index.vue
View file @
e8799d8b
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<q-separator
vertical
spaced
/>
<q-separator
vertical
spaced
/>
</div>
-->
</div>
-->
<q-space></q-space>
<q-space></q-space>
<
!--
<
div
class=
"col-2 sreach"
>
<div
class=
"col-2 sreach"
>
<q-select
<q-select
v-model=
"sreachArtist"
v-model=
"sreachArtist"
:options=
"artistOptions"
:options=
"artistOptions"
...
@@ -29,30 +29,6 @@
...
@@ -29,30 +29,6 @@
clearable
clearable
></q-select>
></q-select>
</div>
</div>
<div
class=
"col-2 sreach"
>
<q-select
v-model=
"sreachStatus"
:options=
"ListStatusBooking"
option-label=
"name"
option-value=
"id"
dense
outlined
:label=
"$t('listBooking.titleColumnsTable.status')"
clearable
></q-select>
</div>
<div
class=
"col-2 sreach"
>
<q-select
v-model=
"sreachPerformStatus"
:options=
"ListPerformStatus"
option-label=
"name"
option-value=
"id"
dense
outlined
:label=
"$t('listBooking.titleColumnsTable.performStatus')"
clearable
></q-select>
</div>
<div
class=
"col-2 sreach"
>
<div
class=
"col-2 sreach"
>
<q-input
<q-input
...
@@ -113,9 +89,9 @@
...
@@ -113,9 +89,9 @@
</q-icon>
</q-icon>
</
template
>
</
template
>
</q-input>
</q-input>
</div>
-->
</div>
<
!-- <
div class="col-auto">
<div
class=
"col-auto"
>
<q-btn
<q-btn
class=
"q-mr-sm"
class=
"q-mr-sm"
color=
"primary"
color=
"primary"
...
@@ -125,7 +101,7 @@
...
@@ -125,7 +101,7 @@
style=
"width: 100px"
style=
"width: 100px"
>
>
</q-btn>
</q-btn>
</div>
-->
</div>
<div
class=
"col-12 q-mt-sm"
>
<div
class=
"col-12 q-mt-sm"
>
<q-table
<q-table
...
@@ -473,10 +449,7 @@ export default defineComponent({
...
@@ -473,10 +449,7 @@ export default defineComponent({
}
catch
(
error
)
{}
}
catch
(
error
)
{}
};
};
const
date
=
ref
([
const
date
=
ref
([
''
,
''
]);
moment
(
new
Date
()).
format
(
'DD/MM/YYYY'
),
moment
(
new
Date
()).
add
(
7
,
'days'
).
format
(
'DD/MM/YYYY'
),
]);
const
changeTime
=
()
=>
{
const
changeTime
=
()
=>
{
const
startTime
=
Number
(
const
startTime
=
Number
(
moment
(
date
.
value
[
0
],
'DD/MM/YYYY'
).
format
(
'YYYYMMDD'
)
moment
(
date
.
value
[
0
],
'DD/MM/YYYY'
).
format
(
'YYYYMMDD'
)
...
...
src/pages/danh-sach-booking/index.vue
View file @
e8799d8b
...
@@ -62,7 +62,7 @@
...
@@ -62,7 +62,7 @@
option-value=
"id"
option-value=
"id"
dense
dense
outlined
outlined
:label=
"
$t('listBooking.titleColumnsTable.performStatus')
"
:label=
"
'T.T Nghệ sĩ xác nhận'
"
clearable
clearable
></q-select>
></q-select>
</div>
</div>
...
@@ -362,7 +362,7 @@ export default defineComponent({
...
@@ -362,7 +362,7 @@ export default defineComponent({
name
:
'performStatus'
,
name
:
'performStatus'
,
field
:
'performStatus'
,
field
:
'performStatus'
,
required
:
true
,
required
:
true
,
label
:
i18n
.
global
.
t
(
'listBooking.titleColumnsTable.performStatus'
)
,
label
:
'T.T Nghệ sĩ xác nhận'
,
headerStyle
:
'text-align: center !important; width: 8%'
,
headerStyle
:
'text-align: center !important; width: 8%'
,
align
:
'center'
,
align
:
'center'
,
sortable
:
false
,
sortable
:
false
,
...
@@ -379,18 +379,18 @@ export default defineComponent({
...
@@ -379,18 +379,18 @@ export default defineComponent({
];
];
const
ListStatusBooking
=
ref
([
const
ListStatusBooking
=
ref
([
{
id
:
0
,
name
:
'Chờ nhận'
,
color
:
'secondary'
},
{
id
:
0
,
name
:
'Chưa hoàn thành'
,
color
:
'secondary'
},
{
id
:
1
,
name
:
'Đã nhận'
,
color
:
'info'
},
{
id
:
1
,
name
:
'Đã hoàn thành'
,
color
:
'info'
},
{
id
:
2
,
name
:
'Từ chối'
,
color
:
'warning'
},
{
id
:
2
,
name
:
'Đã hủy'
,
color
:
'warning'
},
{
id
:
3
,
name
:
'Hết hạn'
,
color
:
'warning'
},
{
id
:
4
,
name
:
'Chờ hủy'
,
color
:
'warning'
},
]);
]);
const
ListPerformStatus
=
ref
([
const
ListPerformStatus
=
ref
([
{
id
:
0
,
name
:
'Chờ nhận'
,
color
:
'secondary'
},
{
id
:
0
,
name
:
'Chưa xác nhận'
,
color
:
'secondary'
},
{
id
:
1
,
name
:
'Đã thực hiện'
,
color
:
'info'
},
{
id
:
1
,
name
:
'Đã xác nhận'
,
color
:
'info'
},
{
id
:
2
,
name
:
'Chưa thực hiện'
,
color
:
'warning'
},
{
id
:
2
,
name
:
'Từ chối'
,
color
:
'warning'
},
{
id
:
3
,
name
:
'Hoãn lịch'
,
color
:
'warning'
},
{
id
:
4
,
name
:
'Hủy lịch'
,
color
:
'warning'
},
{
id
:
5
,
name
:
'Thay đổi lịch'
,
color
:
'secondary'
},
]);
]);
const
showDialog
=
ref
(
false
);
const
showDialog
=
ref
(
false
);
...
...
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