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
cb728696
Commit
cb728696
authored
May 12, 2021
by
Võ Quang Thành Đạt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
8c6922be
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
67 additions
and
37 deletions
+67
-37
AddAccountBankDialog.ts
...count/add-new-bank-account-dialog/AddAccountBankDialog.ts
+29
-13
index.vue
...mation/bank-account/add-new-bank-account-dialog/index.vue
+1
-1
EditBankAcc.ts
...information/bank-account/edit-bank-account/EditBankAcc.ts
+29
-13
index.ts
src/i18n/vi/index.ts
+6
-5
updateInformationArtist.ts
...ges/cap-nhat-thong-tin-nghe-sy/updateInformationArtist.ts
+0
-3
customer.ts
src/pages/khach-hang/customer.ts
+2
-2
No files found.
src/components/artist-information/bank-account/add-new-bank-account-dialog/AddAccountBankDialog.ts
View file @
cb728696
...
...
@@ -23,7 +23,6 @@ export default defineComponent({
required
:
true
,
},
},
setup
(
props
,
context
)
{
watch
(
()
=>
props
.
isOpenAddAccountBankDialog
,
...
...
@@ -60,23 +59,33 @@ export default defineComponent({
i18n
.
global
.
t
(
'artist.dialogLabel.validateMessages.requireCardType'
),
];
const
confirmAddAccBank
=
()
=>
{
Notify
.
create
({
type
:
'positive'
,
message
:
i18n
.
global
.
t
(
'artist.dialogLabel.validateMessages.addAccess'
),
});
let
bankFilter
=
{};
props
.
cardBankOptions
.
map
((
item
)
=>
{
if
(
item
.
id
===
bank
.
value
)
{
bankFilter
=
item
;
}
});
let
typeCardFilter
=
{};
props
.
typeBankOptions
.
map
((
item
)
=>
{
if
(
item
.
id
===
cardType
.
value
)
{
typeCardFilter
=
item
;
}
});
let
hasError
=
false
;
if
(
props
.
bankAccounts
.
filter
(
(
item
)
=>
item
.
accountNumber
===
accountNumber
.
value
).
length
)
{
hasError
=
true
;
Notify
.
create
({
type
:
'negative'
,
message
:
i18n
.
global
.
t
(
'artist.dialogLabel.validateMessages.accountNumberExits'
),
});
}
if
(
!
hasError
)
{
context
.
emit
(
'addNewBankAccount'
,
{
accountNumber
:
accountNumber
.
value
,
cardNumber
:
cardNumber
.
value
,
...
...
@@ -84,6 +93,13 @@ export default defineComponent({
cardType
:
typeCardFilter
,
isDefault
:
isDefault
.
value
,
});
Notify
.
create
({
type
:
'positive'
,
message
:
i18n
.
global
.
t
(
'artist.dialogLabel.validateMessages.addAccess'
),
});
}
};
const
accountNumber
:
Ref
<
string
>
=
ref
(
''
);
...
...
src/components/artist-information/bank-account/add-new-bank-account-dialog/index.vue
View file @
cb728696
...
...
@@ -27,7 +27,7 @@
:label=
"$t('artist.dialogLabel.fieldLabels.accountNumber')"
:rules=
"accountNumberRules"
hide-bottom-space
type=
"
text
"
type=
"
number
"
class=
"q-my-sm"
outlined
></q-input>
...
...
src/components/artist-information/bank-account/edit-bank-account/EditBankAcc.ts
View file @
cb728696
...
...
@@ -69,12 +69,6 @@ export default defineComponent({
i18n
.
global
.
t
(
'artist.dialogLabel.validateMessages.requireCardType'
),
];
const
confirmEditAccBank
=
()
=>
{
Notify
.
create
({
type
:
'positive'
,
message
:
i18n
.
global
.
t
(
'artist.dialogLabel.validateMessages.editAccess'
),
});
let
bankFilter
=
{};
props
.
cardBankOptions
.
map
((
item
)
=>
{
if
(
item
.
id
===
bank
.
value
)
{
...
...
@@ -88,6 +82,21 @@ export default defineComponent({
typeCardFilter
=
item
;
}
});
let
hasError
=
false
;
if
(
props
.
bankAccounts
.
filter
(
(
item
)
=>
item
.
accountNumber
===
accountNumber
.
value
).
length
)
{
hasError
=
true
;
Notify
.
create
({
type
:
'negative'
,
message
:
i18n
.
global
.
t
(
'artist.dialogLabel.validateMessages.accountNumberExits'
),
});
}
if
(
!
hasError
)
{
context
.
emit
(
'editBankAccount'
,
{
accountNumber
:
accountNumber
.
value
,
cardNumber
:
cardNumber
.
value
,
...
...
@@ -95,6 +104,13 @@ export default defineComponent({
cardType
:
typeCardFilter
,
isDefault
:
isDefault
.
value
,
});
Notify
.
create
({
type
:
'positive'
,
message
:
i18n
.
global
.
t
(
'artist.dialogLabel.validateMessages.editAccess'
),
});
}
};
const
accountNumber
:
Ref
<
string
>
=
ref
(
''
);
const
cardNumber
:
Ref
<
string
>
=
ref
(
''
);
...
...
src/i18n/vi/index.ts
View file @
cb728696
...
...
@@ -374,9 +374,9 @@ export default {
'Bạn có muốn reset mật khẩu của người dùng này không ?'
,
},
actionMessages
:
{
addNewUserAccess
:
'Thêm
tài khoản
thành công'
,
addNewUserAccess
:
'Thêm
khách hàng
thành công'
,
deleteUserAccess
:
'Xoá khách hàng thành công'
,
updateUserAccess
:
'Cập nhật thông tin
tài khoản
thành công'
,
updateUserAccess
:
'Cập nhật thông tin
khách hàng
thành công'
,
resetPasswordAccess
:
'Reset mật khẩu thành công'
,
},
},
...
...
@@ -403,14 +403,15 @@ export default {
addHotProduct
:
'Thêm sản phẩm nổi bật'
,
},
fieldLabels
:
{
accountNumber
:
'
Mã thẻ
'
,
accountNumber
:
'
Số tài khoản
'
,
cardNumber
:
'Số ghi trên thẻ'
,
bankName
:
'Ngân hàng'
,
cardType
:
'Loại thẻ'
,
isDefault
:
'Mặc định'
,
},
validateMessages
:
{
requireAccountNumber
:
'Vui lòng nhập mã thẻ'
,
requireAccountNumber
:
'Vui lòng nhập số tài khoản'
,
accountNumberExits
:
'Số tài khoản đã tồn tại'
,
requireCardNumber
:
'Vui lòng nhập số ghi trên thẻ'
,
requireBankName
:
'Vui lòng chọn ngân hàng'
,
requireCardType
:
'Vui lòng chọn loại thẻ'
,
...
...
@@ -483,7 +484,7 @@ export default {
},
bankAccount
:
{
tableColumnsBank
:
{
idCard
:
'
Mã thẻ
'
,
idCard
:
'
Số tài khoản
'
,
numberCard
:
'Số ghi trên thẻ'
,
bankName
:
'Ngân hàng'
,
cardType
:
'Loại thẻ'
,
...
...
src/pages/cap-nhat-thong-tin-nghe-sy/updateInformationArtist.ts
View file @
cb728696
...
...
@@ -433,7 +433,6 @@ export default defineComponent({
rowDataAccBank
.
value
=
itemData
;
rowBankAccIdx
.
value
=
itemIdx
;
console
.
log
(
rowBankAccIdx
.
value
);
isOpenEditAccountBankDialog
.
value
=
true
;
};
...
...
@@ -509,8 +508,6 @@ export default defineComponent({
const
addStory
=
(
value
:
StoriesType
)
=>
{
stories
.
value
.
push
(
value
);
console
.
log
(
stories
,
"storiesstoriesstories"
);
};
const
deleteStory
=
(
idx
:
number
)
=>
{
...
...
src/pages/khach-hang/customer.ts
View file @
cb728696
...
...
@@ -227,7 +227,7 @@ export default defineComponent({
if
(
response
.
data
.
error
.
code
===
config
.
API_RES_CODE
.
OK
.
code
)
{
Notify
.
create
({
type
:
'positive'
,
message
:
i18n
.
global
.
t
(
'
artist.actionMessages.addNewArtist
Access'
),
message
:
i18n
.
global
.
t
(
'
customer.actionMessages.addNewUser
Access'
),
});
void
getListCustomers
();
showDialog
.
value
=
false
;
...
...
@@ -301,7 +301,7 @@ export default defineComponent({
if
(
response
.
data
.
error
.
code
===
config
.
API_RES_CODE
.
OK
.
code
)
{
Notify
.
create
({
type
:
'positive'
,
message
:
i18n
.
global
.
t
(
'
artist.actionMessages.editArtist
Access'
),
message
:
i18n
.
global
.
t
(
'
customer.actionMessages.updateUser
Access'
),
});
void
getListCustomers
();
showDialogUpdate
.
value
=
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