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
69af0307
You need to sign in or sign up before continuing.
Commit
69af0307
authored
Feb 23, 2023
by
Nguyễn Đức Thắng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
93e885ce
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
35 additions
and
18 deletions
+35
-18
type.ts
src/assets/type.ts
+0
-1
add.vue
src/components/danh-sach-san-pham-noi-bat-chua-chon/add.vue
+4
-4
index.vue
...components/units-manager/add-update-unit-dialog/index.vue
+10
-5
index.vue
...components/units-manager/unit-add-update-artist/index.vue
+18
-6
index.vue
src/pages/don-vi-chu-quan/index.vue
+3
-2
No files found.
src/assets/type.ts
View file @
69af0307
...
...
@@ -332,7 +332,6 @@ export type DetailUnit = {
contracts
:
Array
<
Contract
>
;
classification
:
Array
<
ClassificationOptions
>
;
taxCode
:
string
;
classificatonId
:
Array
<
ClassificationOptions
>
;
};
export
type
CustomerType
=
{
...
...
src/components/danh-sach-san-pham-noi-bat-chua-chon/add.vue
View file @
69af0307
...
...
@@ -6,7 +6,7 @@
<q-item
style=
"padding-left: 10px; padding-right: 0px"
>
<q-item-section
><q-item-label
class=
"text-h6 text-weight-regular"
>
Danh sách sản phẩm
Danh sách sản phẩm
123
</q-item-label></q-item-section
>
<q-item-section
style=
"padding-right: 10px"
>
...
...
@@ -139,7 +139,7 @@ export default defineComponent({
(
value
)
=>
{
if
(
value
)
{
selected
.
value
=
[];
keyWord
.
value
=
''
;
keyWord
.
value
=
null
;
void
listProductNotActive
();
}
}
...
...
@@ -201,7 +201,7 @@ export default defineComponent({
const
configImg
=
config
;
const
keyWord
=
ref
(
''
);
const
keyWord
=
ref
(
null
);
const
selected
:
Ref
<
listProductNotActives
[]
>
=
ref
([]);
const
getSelectedString
=
()
=>
{
return
selected
.
value
.
length
===
0
...
...
@@ -272,7 +272,7 @@ export default defineComponent({
pageSize
:
pageSize
.
value
,
name
:
''
,
artistName
:
''
,
keyWord
:
keyWord
.
value
===
''
?
''
:
keyWord
.
value
.
trim
()
,
keyWord
:
keyWord
.
value
===
null
?
null
:
keyWord
.
value
,
},
}))
as
AxiosResponse
<
BaseResponseBody
<
...
...
src/components/units-manager/add-update-unit-dialog/index.vue
View file @
69af0307
...
...
@@ -9,11 +9,14 @@
<q-card-section
class=
"q-pa-none"
>
<q-item>
<q-item-section>
<q-item-label
class=
"text-h6 text-weight-regular"
>
{{
isUpdate
?
$t
(
'managingUnit.dialogLabel.title.add'
)
:
$t
(
'managingUnit.dialogLabel.title.update'
)
}}
</q-item-label>
<q-item-label
class=
"text-h6 text-weight-regular"
>
{{
isUpdate
?
$t
(
'managingUnit.dialogLabel.title.add'
)
:
$t
(
'managingUnit.dialogLabel.title.update'
)
}}
123
</q-item-label>
</q-item-section>
</q-item>
</q-card-section>
...
...
@@ -841,6 +844,7 @@ export default defineComponent({
};
const
addNewArtist
=
()
=>
{
console
.
log
(
artistField
.
value
,
'artistField.value'
);
const
newArtistList
=
[...
props
.
artistList
];
newArtistList
.
push
({
...
...
@@ -853,6 +857,7 @@ export default defineComponent({
artistFullName
:
artistName
.
value
?.
fullName
,
field
:
artistField
.
value
?.
name
,
fieldId
:
artistField
.
value
?.
id
,
fieldNames
:
artistField
.
value
?.
name
,
});
context
.
emit
(
'update:artistList'
,
[...
newArtistList
]);
console
.
log
(
newArtistList
,
'newArtistList'
);
...
...
src/components/units-manager/unit-add-update-artist/index.vue
View file @
69af0307
...
...
@@ -15,11 +15,13 @@
<q-card-section
class=
"q-pa-none"
>
<q-item>
<q-item-section>
<q-item-label
class=
"text-h6 text-weight-regular"
>
{{
isUpdate
?
$t
(
'managingUnitAdd.dialogLabel.title.add'
)
:
$t
(
'managingUnitAdd.dialogLabel.title.update'
)
}}
</q-item-label>
<q-item-label
class=
"text-h6 text-weight-regular"
>
{{
isUpdate
?
$t
(
'managingUnitAdd.dialogLabel.title.add'
)
:
$t
(
'managingUnitAdd.dialogLabel.title.update'
)
}}
</q-item-label>
</q-item-section>
</q-item>
</q-card-section>
...
...
@@ -217,16 +219,26 @@ export default defineComponent({
const
artistListOptions
:
Ref
<
ArtistInfoType
[]
>
=
ref
([]);
const
filteredOptions
:
Ref
<
ArtistInfoType
[]
>
=
ref
([]);
const
fieldsAddOptions
:
Ref
<
FieldType
[]
>
=
ref
([]);
watch
(
()
=>
props
.
isOpened
,
(
value
)
=>
{
if
(
value
)
{
void
getFieldOptions
();
}
}
);
watch
(
()
=>
props
.
artistField
,
(
value
)
=>
{
if
(
value
)
{
isId
.
value
=
value
.
id
;
// void getFieldOptions();
void
getArrayArtist
();
}
}
);
const
getArrayArtist
=
async
()
=>
{
artistListOptions
.
value
=
[];
const
response
=
(
await
api
({
...
...
src/pages/don-vi-chu-quan/index.vue
View file @
69af0307
...
...
@@ -476,7 +476,8 @@ export default defineComponent({
unitStatus
.
value
=
response
.
data
.
data
.
status
;
unitArtistList
.
value
=
response
.
data
.
data
.
contracts
;
unitField
.
value
=
response
.
data
.
data
.
classificatonId
;
unitField
.
value
=
response
.
data
.
data
.
classification
;
unitUserName
.
value
=
response
.
data
.
data
.
userName
;
unitPassword
.
value
=
response
.
data
.
data
.
password
;
}
...
...
@@ -599,7 +600,7 @@ export default defineComponent({
email
:
unitEmail
.
value
,
phoneNumber
:
unitPhoneNumber
.
value
,
status
:
unitStatus
.
value
,
classification
:
unitField
.
value
.
length
=
==
0
?
null
:
unitField
.
value
,
classification
:
unitField
.
value
.
length
!
==
0
?
null
:
unitField
.
value
,
userName
:
unitUserName
.
value
,
password
:
unitPassword
.
value
,
contracts
:
unitArtistList
.
value
,
...
...
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