Commit 46512ec8 authored by Tình Trương's avatar Tình Trương

update

parent 89dbfc3b
...@@ -10,8 +10,8 @@ export enum UnitStatus { ...@@ -10,8 +10,8 @@ export enum UnitStatus {
} }
export enum HotProductStatus { export enum HotProductStatus {
active = 1, active = 2,
inactive = 2, inactive = 1,
} }
export enum CustomerRankStatus { export enum CustomerRankStatus {
......
...@@ -72,6 +72,7 @@ export type ArtistInfoType = { ...@@ -72,6 +72,7 @@ export type ArtistInfoType = {
mnFbmess: string | null; mnFbmess: string | null;
mnIns: string | null; mnIns: string | null;
mnWhatsapp: string | null; mnWhatsapp: string | null;
favoriteScore: number;
}; };
export type FieldType = { export type FieldType = {
......
...@@ -21,6 +21,10 @@ export default defineComponent({ ...@@ -21,6 +21,10 @@ export default defineComponent({
const embeddedUrl: Ref<string> = ref(''); const embeddedUrl: Ref<string> = ref('');
const urlFileLocal: Ref<string> = ref(''); const urlFileLocal: Ref<string> = ref('');
const status: Ref<number> = ref(2); const status: Ref<number> = ref(2);
const statusOptions = ref([
{ id: 1, name: 'Sản phẩm khác' },
{ id: 2, name: 'Sản phẩm nổi bật' },
]);
const uploadAvatar = (value: FileList) => { const uploadAvatar = (value: FileList) => {
urlFileLocal.value = URL.createObjectURL(value[0]); urlFileLocal.value = URL.createObjectURL(value[0]);
file.value = value[0]; file.value = value[0];
...@@ -75,6 +79,13 @@ export default defineComponent({ ...@@ -75,6 +79,13 @@ export default defineComponent({
'artist.artistInformation.validateMessages.requireUrlembed' 'artist.artistInformation.validateMessages.requireUrlembed'
), ),
]; ];
const statusRules = [
(val?: number) =>
val !== undefined ||
i18n.global.t(
'artist.artistInformation.validateMessages.requireStatus'
),
];
return { return {
uploadAvatar, uploadAvatar,
...@@ -89,6 +100,8 @@ export default defineComponent({ ...@@ -89,6 +100,8 @@ export default defineComponent({
product_name, product_name,
product_code, product_code,
url_embed, url_embed,
statusRules,
statusOptions,
}; };
}, },
......
...@@ -65,13 +65,26 @@ ...@@ -65,13 +65,26 @@
outlined outlined
clearable clearable
></q-input> ></q-input>
<q-select
v-model="status"
emit-value
label="Loại sản phẩm"
class="q-my-sm"
:options="statusOptions"
option-value="id"
option-label="name"
outlined
map-options
:rules="statusRules"
hide-bottom-space
></q-select>
</div> </div>
<div style="padding-top: 13px; padding-left: 12px"> <!-- <div style="padding-top: 13px; padding-left: 12px">
<span class="text-body1">{{ <span class="text-body1">{{
$t('userPage.dialogLabel.fieldLabels.status') $t('userPage.dialogLabel.fieldLabels.status')
}}</span> }}</span>
<q-toggle v-model="status" :false-value="2" :true-value="1" /> <q-toggle v-model="status" :false-value="2" :true-value="1" />
</div> </div> -->
</div> </div>
</q-card-section> </q-card-section>
<q-card-actions align="right"> <q-card-actions align="right">
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
<q-item> <q-item>
<q-item-section> <q-item-section>
<q-item-label class="text-h6 text-weight-regular">{{ <q-item-label class="text-h6 text-weight-regular">{{
$t('artist.dialogLabel.title.addHotProduct') $t('artist.dialogLabel.title.updateHotProduct')
}}</q-item-label> }}</q-item-label>
</q-item-section> </q-item-section>
</q-item> </q-item>
...@@ -68,13 +68,26 @@ ...@@ -68,13 +68,26 @@
outlined outlined
clearable clearable
></q-input> ></q-input>
<q-select
v-model="status"
emit-value
label="Loại sản phẩm"
class="q-my-sm"
:options="statusOptions"
option-value="id"
option-label="name"
outlined
map-options
:rules="statusRules"
hide-bottom-space
></q-select>
</div> </div>
<div style="padding-top: 13px; padding-left: 12px"> <!-- <div style="padding-top: 13px; padding-left: 12px">
<span class="text-body1">{{ <span class="text-body1">{{
$t('userPage.dialogLabel.fieldLabels.status') $t('userPage.dialogLabel.fieldLabels.status')
}}</span> }}</span>
<q-toggle v-model="status" :false-value="2" :true-value="1" /> <q-toggle v-model="status" :false-value="2" :true-value="1" />
</div> </div> -->
</div> </div>
</q-card-section> </q-card-section>
<q-card-actions align="right"> <q-card-actions align="right">
......
...@@ -30,6 +30,10 @@ export default defineComponent({ ...@@ -30,6 +30,10 @@ export default defineComponent({
const urlFileLocal: Ref<string> = ref(''); const urlFileLocal: Ref<string> = ref('');
const imageAPI: Ref<string | null> = ref(null); const imageAPI: Ref<string | null> = ref(null);
const status: Ref<number> = ref(2); const status: Ref<number> = ref(2);
const statusOptions = ref([
{ id: 1, name: 'Sản phẩm khác' },
{ id: 2, name: 'Sản phẩm nổi bật' },
]);
const id: Ref<number | null> = ref(null); const id: Ref<number | null> = ref(null);
const uploadAvatar = (value: FileList) => { const uploadAvatar = (value: FileList) => {
urlFileLocal.value = URL.createObjectURL(value[0]); urlFileLocal.value = URL.createObjectURL(value[0]);
...@@ -95,6 +99,13 @@ export default defineComponent({ ...@@ -95,6 +99,13 @@ export default defineComponent({
'artist.artistInformation.validateMessages.requireUrlembed' 'artist.artistInformation.validateMessages.requireUrlembed'
), ),
]; ];
const statusRules = [
(val?: number) =>
val !== undefined ||
i18n.global.t(
'artist.artistInformation.validateMessages.requireStatus'
),
];
return { return {
uploadAvatar, uploadAvatar,
...@@ -109,6 +120,8 @@ export default defineComponent({ ...@@ -109,6 +120,8 @@ export default defineComponent({
product_name, product_name,
product_code, product_code,
url_embed, url_embed,
statusRules,
statusOptions,
id, id,
configImg, configImg,
imageAPI, imageAPI,
......
...@@ -221,7 +221,7 @@ ...@@ -221,7 +221,7 @@
color="primary" color="primary"
icon="mdi-pencil-circle-outline" icon="mdi-pencil-circle-outline"
> >
<q-tooltip>Chỉnh sửa Embed</q-tooltip></q-btn <q-tooltip>Cập nhập Embed</q-tooltip></q-btn
> >
<q-btn <q-btn
class="q-py-md" class="q-py-md"
......
...@@ -185,6 +185,7 @@ export default defineComponent({ ...@@ -185,6 +185,7 @@ export default defineComponent({
'update:fields', 'update:fields',
'update:works', 'update:works',
'update:favoriteScore', 'update:favoriteScore',
'update:check_infoBooking',
'update:qualification', 'update:qualification',
'update:artistLevel', 'update:artistLevel',
'update:hidden_img', 'update:hidden_img',
......
...@@ -496,7 +496,11 @@ ...@@ -496,7 +496,11 @@
{{ $t('artist.artistInformation.titleDataField.infoBooking') }} {{ $t('artist.artistInformation.titleDataField.infoBooking') }}
</div> </div>
<div class="col-8"> <div class="col-8">
<q-checkbox v-model="check_infoBooking" class="q-my-sm"></q-checkbox> <q-checkbox
v-model="check_infoBooking"
@update:model-value="$emit('update:check_infoBooking', $event)"
class="q-my-sm"
></q-checkbox>
</div> </div>
</div> </div>
<div class="row flex-center" v-if="check_infoBooking"> <div class="row flex-center" v-if="check_infoBooking">
......
...@@ -28,7 +28,7 @@ export default { ...@@ -28,7 +28,7 @@ export default {
emptyData: 'Không có dữ liệu', emptyData: 'Không có dữ liệu',
crudActions: { crudActions: {
add: 'Thêm', add: 'Thêm',
update: 'Cập nhật', update: 'Cập nhập',
delete: 'Xoá', delete: 'Xoá',
search: 'Tìm kiếm', search: 'Tìm kiếm',
details: 'Chi tiết', details: 'Chi tiết',
...@@ -49,7 +49,7 @@ export default { ...@@ -49,7 +49,7 @@ export default {
actionMessages: { actionMessages: {
addNewSuccess: 'Thêm nhóm người dùng thành công', addNewSuccess: 'Thêm nhóm người dùng thành công',
deleteSuccess: 'Xoá nhóm người dùng thành công', deleteSuccess: 'Xoá nhóm người dùng thành công',
updateSuccess: 'Cập nhật nhóm người dùng thành công', updateSuccess: 'Cập nhập nhóm người dùng thành công',
}, },
fieldLabels: { fieldLabels: {
...@@ -86,7 +86,7 @@ export default { ...@@ -86,7 +86,7 @@ export default {
dialogLabel: { dialogLabel: {
title: { title: {
addUser: 'Thêm người dùng', addUser: 'Thêm người dùng',
updateUser: 'Cập nhật người dùng', updateUser: 'Cập nhập người dùng',
}, },
fieldLabels: { fieldLabels: {
userName: 'Tên đăng nhập *', userName: 'Tên đăng nhập *',
...@@ -132,11 +132,11 @@ export default { ...@@ -132,11 +132,11 @@ export default {
actionMessages: { actionMessages: {
addNewUserAccess: 'Thêm tài khoản thành công', addNewUserAccess: 'Thêm tài khoản thành công',
deleteUserAccess: 'Xoá tài khoản thành công', deleteUserAccess: 'Xoá tài khoản thành công',
updateUserAccess: 'Cập nhật thông tin tài khoản thành công', updateUserAccess: 'Cập nhập thông tin tài khoản thành công',
resetPasswordAccess: 'Reset mật khẩu thành công', resetPasswordAccess: 'Reset mật khẩu thành công',
}, },
toolTipMessage: { toolTipMessage: {
updateUserInfo: 'Cập nhật', updateUserInfo: 'Cập nhập',
resetPassword: 'Reset mật khẩu', resetPassword: 'Reset mật khẩu',
deleteUser: 'Xoá', deleteUser: 'Xoá',
informationUser: 'Thông tin', informationUser: 'Thông tin',
...@@ -163,7 +163,7 @@ export default { ...@@ -163,7 +163,7 @@ export default {
dialogLabel: { dialogLabel: {
title: { title: {
add: 'Thêm đơn vị chủ quản', add: 'Thêm đơn vị chủ quản',
update: 'Cập nhật đơn vị chủ quản', update: 'Cập nhập đơn vị chủ quản',
}, },
fieldLabels: { fieldLabels: {
code: 'Mã đơn vị *', code: 'Mã đơn vị *',
...@@ -177,7 +177,7 @@ export default { ...@@ -177,7 +177,7 @@ export default {
}, },
}, },
toolTipMessage: { toolTipMessage: {
updateInfo: 'Cập nhật', updateInfo: 'Cập nhập',
information: 'Thông tin', information: 'Thông tin',
delete: 'Xóa', delete: 'Xóa',
}, },
...@@ -209,7 +209,7 @@ export default { ...@@ -209,7 +209,7 @@ export default {
addNewManagingUnitsAccess: 'Thêm Đơn vị chủ quản thành công', addNewManagingUnitsAccess: 'Thêm Đơn vị chủ quản thành công',
deleteManagingUnitsAccess: 'Xoá Đơn vị chủ quản thành công', deleteManagingUnitsAccess: 'Xoá Đơn vị chủ quản thành công',
updateManagingUnitsAccess: updateManagingUnitsAccess:
'Cập nhật thông tin Đơn vị chủ quản thành công', 'Cập nhập thông tin Đơn vị chủ quản thành công',
}, },
}, },
...@@ -249,9 +249,9 @@ export default { ...@@ -249,9 +249,9 @@ export default {
dialogLabel: { dialogLabel: {
title: { title: {
add: 'Thêm nghệ sỹ', add: 'Thêm nghệ sỹ',
update: 'Cập nhật nghệ sỹ', update: 'Cập nhập nghệ sỹ',
addBankAccount: 'Thêm ngân hàng thụ hưởng', addBankAccount: 'Thêm ngân hàng thụ hưởng',
updateBankAccount: 'Cập nhật ngân hàng thụ hưởng', updateBankAccount: 'Cập nhập ngân hàng thụ hưởng',
}, },
fieldLabels: { fieldLabels: {
//ds nghệ sỹ //ds nghệ sỹ
...@@ -269,9 +269,9 @@ export default { ...@@ -269,9 +269,9 @@ export default {
}, },
}, },
toolTipMessage: { toolTipMessage: {
updateInfo: 'Cập nhật', updateInfo: 'Cập nhập',
delete: 'Xóa nghệ sỹ', delete: 'Xóa nghệ sỹ',
updateBankAccount: 'Cập nhật', updateBankAccount: 'Cập nhập',
deleteBankAccount: 'Xóa ngân hàng', deleteBankAccount: 'Xóa ngân hàng',
}, },
crudActions: { crudActions: {
...@@ -298,7 +298,7 @@ export default { ...@@ -298,7 +298,7 @@ export default {
}, },
actionMessages: { actionMessages: {
unitAddArtistSuccess: 'Thêm hợp đồng nghệ sỹ thành công', unitAddArtistSuccess: 'Thêm hợp đồng nghệ sỹ thành công',
unitUpdateArtistSuccess: 'Cập nhật hợp đồng nghệ sỹ thành công', unitUpdateArtistSuccess: 'Cập nhập hợp đồng nghệ sỹ thành công',
unitDeleteArtistSuccess: 'Xóa hợp đồng nghệ sỹ thành công', unitDeleteArtistSuccess: 'Xóa hợp đồng nghệ sỹ thành công',
}, },
}, },
...@@ -325,8 +325,8 @@ export default { ...@@ -325,8 +325,8 @@ export default {
dialogLabel: { dialogLabel: {
title: { title: {
addCustomer: 'Thêm khách hàng', addCustomer: 'Thêm khách hàng',
updateCustomer: 'Cập nhật khách hàng', updateCustomer: 'Cập nhập khách hàng',
editCustomer: 'Cập nhật thông tin khách hàng', editCustomer: 'Cập nhập thông tin khách hàng',
}, },
fieldLabels: { fieldLabels: {
userName: 'Tên đăng nhập *', userName: 'Tên đăng nhập *',
...@@ -346,7 +346,7 @@ export default { ...@@ -346,7 +346,7 @@ export default {
}, },
}, },
toolTipMessage: { toolTipMessage: {
updateCustomerInfo: 'Cập nhật', updateCustomerInfo: 'Cập nhập',
informationCustomer: 'Thông tin', informationCustomer: 'Thông tin',
deleteCustomer: 'Xoá', deleteCustomer: 'Xoá',
}, },
...@@ -392,7 +392,7 @@ export default { ...@@ -392,7 +392,7 @@ export default {
actionMessages: { actionMessages: {
addNewUserAccess: 'Thêm khách hàng 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', deleteUserAccess: 'Xoá khách hàng thành công',
updateUserAccess: 'Cập nhật thông tin khách hàng thành công', updateUserAccess: 'Cập nhập thông tin khách hàng thành công',
resetPasswordAccess: 'Reset mật khẩu thành công', resetPasswordAccess: 'Reset mật khẩu thành công',
}, },
}, },
...@@ -416,10 +416,11 @@ export default { ...@@ -416,10 +416,11 @@ export default {
addStory: 'Thêm Story', addStory: 'Thêm Story',
updateStory: 'Chỉnh sửa Story', updateStory: 'Chỉnh sửa Story',
addArtist: 'Thêm nghệ sỹ', addArtist: 'Thêm nghệ sỹ',
updateArtist: 'Cập nhật nghệ sỹ', updateArtist: 'Cập nhập nghệ sỹ',
addAccountBank: 'Thêm tài khoản ngân hàng', addAccountBank: 'Thêm tài khoản ngân hàng',
editAccountBank: 'Cập nhật tài khoản ngân hàng', editAccountBank: 'Cập nhập tài khoản ngân hàng',
addHotProduct: 'Thêm sản phẩm nổi bật', addHotProduct: 'Thêm sản phẩm nổi bật',
updateHotProduct: 'Cập nhập sản phẩm nổi bật',
}, },
fieldLabels: { fieldLabels: {
accountOwner: 'Chủ tài khoản', accountOwner: 'Chủ tài khoản',
...@@ -440,7 +441,7 @@ export default { ...@@ -440,7 +441,7 @@ export default {
requireCardType: 'Vui lòng chọn Loại thẻ', requireCardType: 'Vui lòng chọn Loại thẻ',
errorIsDefault: 'Nghệ sỹ đã có tài khoản ngân hàng mặc định', errorIsDefault: 'Nghệ sỹ đã có tài khoản ngân hàng mặc định',
addAccess: 'Thêm tài khoản ngân hàng thành công', addAccess: 'Thêm tài khoản ngân hàng thành công',
editAccess: 'Cập nhật thông tin tài khoản ngân hàng thành công', editAccess: 'Cập nhập thông tin tài khoản ngân hàng thành công',
deleteAccess: 'Xoá tài khoản ngân hàng thành công', deleteAccess: 'Xoá tài khoản ngân hàng thành công',
deleteStoryAccess: 'Xoá Story thành công', deleteStoryAccess: 'Xoá Story thành công',
}, },
...@@ -454,10 +455,10 @@ export default { ...@@ -454,10 +455,10 @@ export default {
}, },
actionMessages: { actionMessages: {
deleteArtistAccess: 'Xoá nghệ sỹ thành công', deleteArtistAccess: 'Xoá nghệ sỹ thành công',
editArtistAccess: 'Cập nhật thông tin nghệ sỹ thành công', editArtistAccess: 'Cập nhập thông tin nghệ sỹ thành công',
addNewArtistAccess: 'Thêm nghệ sỹ thành công', addNewArtistAccess: 'Thêm nghệ sỹ thành công',
EmbedAddSuccess: 'Thêm link Embed thành công', EmbedAddSuccess: 'Thêm link Embed thành công',
EmbedUpdateSuccess: 'Cập nhập link Embed thành công', EmbedUpdateSuccess: 'Thay đổi link Embed thành công',
EmbedDeleteSuccess: 'Xóa link Embed thành công', EmbedDeleteSuccess: 'Xóa link Embed thành công',
StoryAddSuccess: 'Thêm Story thành công', StoryAddSuccess: 'Thêm Story thành công',
bannerDeleteAccess: 'Xóa banner thành công', bannerDeleteAccess: 'Xóa banner thành công',
...@@ -504,12 +505,12 @@ export default { ...@@ -504,12 +505,12 @@ export default {
whatsappBooking: 'Truy cập whatsapp booking', whatsappBooking: 'Truy cập whatsapp booking',
}, },
validateMessages: { validateMessages: {
requireEmailAdminister: 'Vui lòng nhập Email người quản lý', requireEmailAdminister: 'Vui lòng nhập Email booking',
requirePhoneNumberAdminister: requirePhoneNumberAdminister: 'Vui lòng nhập Số điện thoại booking',
'Vui lòng nhập Số điện thoại người quản lý',
requireProducName: 'Vui lòng nhập Tên sản phẩm', requireProducName: 'Vui lòng nhập Tên sản phẩm',
requireProducCode: 'Vui lòng nhập Mã sản phẩm', requireProducCode: 'Vui lòng nhập Mã sản phẩm',
requireUrlembed: 'Vui lòng nhập Url Embed', requireUrlembed: 'Vui lòng nhập Url Embed',
requireStatus: 'Vui lòng nhập Loại sản phẩm',
requireArtistCode: 'Vui lòng nhập Mã nghệ sỹ', requireArtistCode: 'Vui lòng nhập Mã nghệ sỹ',
requireFullName: 'Vui lòng nhập Họ tên nghệ sỹ', requireFullName: 'Vui lòng nhập Họ tên nghệ sỹ',
requireAccount: 'Vui lòng nhập Tên đăng nhập', requireAccount: 'Vui lòng nhập Tên đăng nhập',
...@@ -551,7 +552,7 @@ export default { ...@@ -551,7 +552,7 @@ export default {
productCode: 'Mã sản phẩm', productCode: 'Mã sản phẩm',
urlEmbed: 'Url embed', urlEmbed: 'Url embed',
productImage: 'Ảnh sản phẩm', productImage: 'Ảnh sản phẩm',
status: 'Trạng thái', status: 'Loại sản phẩm',
action: 'Chức năng', action: 'Chức năng',
}, },
statusLabel: { statusLabel: {
...@@ -591,7 +592,7 @@ export default { ...@@ -591,7 +592,7 @@ export default {
dialogLabel: { dialogLabel: {
title: { title: {
addCustomerRank: 'Thêm danh mục xếp hạng khách hàng', addCustomerRank: 'Thêm danh mục xếp hạng khách hàng',
updateCustomerRank: 'Cập nhật danh mục xếp hạng khách hàng', updateCustomerRank: 'Cập nhập danh mục xếp hạng khách hàng',
}, },
fieldLabels: { fieldLabels: {
code: 'Mã xếp hạng *', code: 'Mã xếp hạng *',
...@@ -601,7 +602,7 @@ export default { ...@@ -601,7 +602,7 @@ export default {
}, },
}, },
toolTipMessage: { toolTipMessage: {
updateCustomerRankInfo: 'Cập nhật', updateCustomerRankInfo: 'Cập nhập',
deleteCustomerRank: 'Xoá', deleteCustomerRank: 'Xoá',
}, },
crudActions: { crudActions: {
...@@ -623,7 +624,7 @@ export default { ...@@ -623,7 +624,7 @@ export default {
addNewCustomerRankAccess: 'Thêm danh mục xếp hạng khách hàng thành công', addNewCustomerRankAccess: 'Thêm danh mục xếp hạng khách hàng thành công',
deleteCustomerRankAccess: 'Xoá danh mục xếp hạng khách hàng thành công', deleteCustomerRankAccess: 'Xoá danh mục xếp hạng khách hàng thành công',
updateCustomerRankAccess: updateCustomerRankAccess:
'Cập nhật danh mục xếp hạng khách hàng thành công', 'Cập nhập danh mục xếp hạng khách hàng thành công',
}, },
}, },
...@@ -644,7 +645,7 @@ export default { ...@@ -644,7 +645,7 @@ export default {
dialogLabel: { dialogLabel: {
title: { title: {
addField: 'Thêm lĩnh vực hoạt động', addField: 'Thêm lĩnh vực hoạt động',
updateField: 'Cập nhật lĩnh vực hoạt động', updateField: 'Cập nhập lĩnh vực hoạt động',
}, },
fieldLabels: { fieldLabels: {
name: 'Tên lĩnh vực *', name: 'Tên lĩnh vực *',
...@@ -653,7 +654,7 @@ export default { ...@@ -653,7 +654,7 @@ export default {
}, },
}, },
toolTipMessage: { toolTipMessage: {
updateField: 'Cập nhật', updateField: 'Cập nhập',
deleteField: 'Xoá', deleteField: 'Xoá',
}, },
crudActions: { crudActions: {
...@@ -673,7 +674,7 @@ export default { ...@@ -673,7 +674,7 @@ export default {
actionMessages: { actionMessages: {
addNewFieldAccess: 'Thêm lĩnh vực hoạt động thành công', addNewFieldAccess: 'Thêm lĩnh vực hoạt động thành công',
deleteFieldAccess: 'Xoá lĩnh vực hoạt động thành công', deleteFieldAccess: 'Xoá lĩnh vực hoạt động thành công',
updateFieldAccess: 'Cập nhật lĩnh vực hoạt động thành công', updateFieldAccess: 'Cập nhập lĩnh vực hoạt động thành công',
}, },
}, },
...@@ -689,7 +690,7 @@ export default { ...@@ -689,7 +690,7 @@ export default {
createBy: 'Người thêm', createBy: 'Người thêm',
createTime: 'Thời gian thêm', createTime: 'Thời gian thêm',
updateBy: 'Người cập nhập', updateBy: 'Người cập nhập',
updateTime: 'Thời gian cập nhật', updateTime: 'Thời gian cập nhập',
status: 'Trạng thái', status: 'Trạng thái',
action: 'Chức năng', action: 'Chức năng',
}, },
...@@ -700,7 +701,7 @@ export default { ...@@ -700,7 +701,7 @@ export default {
dialogLabel: { dialogLabel: {
title: { title: {
addPost: 'Thêm bài viết', addPost: 'Thêm bài viết',
updatePost: 'Cập nhật bài viết', updatePost: 'Cập nhập bài viết',
}, },
postLabels: { postLabels: {
name: 'Tên bài viết *', name: 'Tên bài viết *',
...@@ -711,7 +712,7 @@ export default { ...@@ -711,7 +712,7 @@ export default {
}, },
}, },
toolTipMessage: { toolTipMessage: {
updatePost: 'Cập nhật', updatePost: 'Cập nhập',
deletePost: 'Xoá', deletePost: 'Xoá',
}, },
crudActions: { crudActions: {
...@@ -732,7 +733,7 @@ export default { ...@@ -732,7 +733,7 @@ export default {
actionMessages: { actionMessages: {
addNewPostAccess: 'Thêm bài viết thành công', addNewPostAccess: 'Thêm bài viết thành công',
deletePostAccess: 'Xoá bài viết thành công', deletePostAccess: 'Xoá bài viết thành công',
updatePostAccess: 'Cập nhật bài viết thành công', updatePostAccess: 'Cập nhập bài viết thành công',
}, },
}, },
...@@ -741,7 +742,7 @@ export default { ...@@ -741,7 +742,7 @@ export default {
title: { title: {
postCategory: 'Danh sách danh mục bài viết', postCategory: 'Danh sách danh mục bài viết',
addPost: 'Thêm mới danh mục bài viết', addPost: 'Thêm mới danh mục bài viết',
updatePost: 'Cập nhật danh mục bài viết', updatePost: 'Cập nhập danh mục bài viết',
listPosts: 'Danh sách bài viết', listPosts: 'Danh sách bài viết',
listPostsSelected: 'Danh sách bài viết đã chọn', listPostsSelected: 'Danh sách bài viết đã chọn',
addPostDialog: 'Thêm bài viết', addPostDialog: 'Thêm bài viết',
...@@ -758,7 +759,7 @@ export default { ...@@ -758,7 +759,7 @@ export default {
stt: 'STT', stt: 'STT',
name: 'Tên bài viết', name: 'Tên bài viết',
createBy: 'Người sửa gần nhất', createBy: 'Người sửa gần nhất',
updateTime: 'Thời gian cập nhật gần nhất', updateTime: 'Thời gian cập nhập gần nhất',
status: 'Trạng thái', status: 'Trạng thái',
action: 'Chức năng', action: 'Chức năng',
imageMini: 'Ảnh thu nhỏ', imageMini: 'Ảnh thu nhỏ',
...@@ -773,7 +774,7 @@ export default { ...@@ -773,7 +774,7 @@ export default {
actionMessages: { actionMessages: {
addPostCategoryAccess: 'Thêm danh mục bài viết thành công', addPostCategoryAccess: 'Thêm danh mục bài viết thành công',
deletePostCategoryAccess: 'Xoá danh mục bài viết thành công', deletePostCategoryAccess: 'Xoá danh mục bài viết thành công',
updatePostCategoryAccess: 'Cập nhật danh mục bài viết thành công', updatePostCategoryAccess: 'Cập nhập danh mục bài viết thành công',
}, },
confirmActionsTitle: { confirmActionsTitle: {
confirmDeletePostCategory: confirmDeletePostCategory:
...@@ -802,7 +803,7 @@ export default { ...@@ -802,7 +803,7 @@ export default {
dialogLabel: { dialogLabel: {
title: { title: {
addBanner: 'Thêm banner', addBanner: 'Thêm banner',
updateBanner: 'Cập nhật banner', updateBanner: 'Cập nhập banner',
}, },
bannerLabels: { bannerLabels: {
name: 'Tên banner *', name: 'Tên banner *',
...@@ -814,7 +815,7 @@ export default { ...@@ -814,7 +815,7 @@ export default {
}, },
}, },
toolTipMessage: { toolTipMessage: {
updateBanner: 'Cập nhật', updateBanner: 'Cập nhập',
deleteBanner: 'Xoá', deleteBanner: 'Xoá',
}, },
crudActions: { crudActions: {
...@@ -835,7 +836,7 @@ export default { ...@@ -835,7 +836,7 @@ export default {
actionMessages: { actionMessages: {
addNewBannerAccess: 'Thêm banner thành công', addNewBannerAccess: 'Thêm banner thành công',
deleteBannerAccess: 'Xoá banner thành công', deleteBannerAccess: 'Xoá banner thành công',
updateBannerAccess: 'Cập nhật banner thành công', updateBannerAccess: 'Cập nhập banner thành công',
}, },
}, },
...@@ -863,10 +864,10 @@ export default { ...@@ -863,10 +864,10 @@ export default {
}, },
dialogLabel: { dialogLabel: {
title: { title: {
updateInfoVAB: 'Cập nhật thông tin', updateInfoVAB: 'Cập nhập thông tin',
//ngân hàng //ngân hàng
addBankAccount: 'Thêm ngân hàng thụ hưởng', addBankAccount: 'Thêm ngân hàng thụ hưởng',
updateBankAccount: 'Cập nhật ngân hàng thụ hưởng', updateBankAccount: 'Cập nhập ngân hàng thụ hưởng',
}, },
infoVABLabels: { infoVABLabels: {
comName: 'Tên công ty *', comName: 'Tên công ty *',
...@@ -888,10 +889,10 @@ export default { ...@@ -888,10 +889,10 @@ export default {
}, },
}, },
toolTipMessage: { toolTipMessage: {
updateInfoVAB: 'Cập nhật', updateInfoVAB: 'Cập nhập',
deleteInfoVAB: 'Xoá', deleteInfoVAB: 'Xoá',
//ngân hàng //ngân hàng
updateBankAccount: 'Cập nhật', updateBankAccount: 'Cập nhập',
deleteBankAccount: 'Xóa ngân hàng', deleteBankAccount: 'Xóa ngân hàng',
}, },
crudActions: { crudActions: {
...@@ -919,7 +920,7 @@ export default { ...@@ -919,7 +920,7 @@ export default {
}, },
actionMessages: { actionMessages: {
deleteInfoVABAccess: 'Xoá thông tin thành công', deleteInfoVABAccess: 'Xoá thông tin thành công',
updateInfoVABAccess: 'Cập nhật thông tin thành công', updateInfoVABAccess: 'Cập nhập thông tin thành công',
}, },
}, },
...@@ -967,8 +968,8 @@ export default { ...@@ -967,8 +968,8 @@ export default {
status: 'Trạng thái', status: 'Trạng thái',
createTime: 'Thời gian tạo', createTime: 'Thời gian tạo',
createBy: 'Người tạo', createBy: 'Người tạo',
updateBy: 'Người cập nhật', updateBy: 'Người cập nhập',
updateTime: 'Thời gian cập nhật', updateTime: 'Thời gian cập nhập',
action: 'Chức năng', action: 'Chức năng',
}, },
statusLabel: { statusLabel: {
......
...@@ -61,6 +61,8 @@ ...@@ -61,6 +61,8 @@
v-model:mn-fbmess="mnFbmess" v-model:mn-fbmess="mnFbmess"
v-model:mn-ins="mnIns" v-model:mn-ins="mnIns"
v-model:mn-whatsapp="mnWhatsapp" v-model:mn-whatsapp="mnWhatsapp"
v-model:favorite-score="favoriteScore"
v-model:check_infoBooking="check_infoBooking"
:errorMessmnBookingPhone="errorMessmnBookingPhone" :errorMessmnBookingPhone="errorMessmnBookingPhone"
:errorMessmnBookingEmail="errorMessmnBookingEmail" :errorMessmnBookingEmail="errorMessmnBookingEmail"
:mnBookingEmailRules="mnBookingEmailRules" :mnBookingEmailRules="mnBookingEmailRules"
......
...@@ -103,6 +103,7 @@ export default defineComponent({ ...@@ -103,6 +103,7 @@ export default defineComponent({
numIndex: 1, numIndex: 1,
status: 1, status: 1,
}); });
const favoriteScore: Ref<number | undefined> = ref(undefined);
const mnName: Ref<string | null> = ref(null); const mnName: Ref<string | null> = ref(null);
const mnPhone: Ref<string | null> = ref(null); const mnPhone: Ref<string | null> = ref(null);
const mnEmail: Ref<string | null> = ref(null); const mnEmail: Ref<string | null> = ref(null);
...@@ -146,6 +147,7 @@ export default defineComponent({ ...@@ -146,6 +147,7 @@ export default defineComponent({
const DataUpdateHotProduct: Ref<ProductType | null> = ref(null); const DataUpdateHotProduct: Ref<ProductType | null> = ref(null);
//sate error input thong-tin-ca-nhan //sate error input thong-tin-ca-nhan
const check_infoBooking = ref(false);
const artistCodeRules = ref(false); const artistCodeRules = ref(false);
const fullNameRules = ref(false); const fullNameRules = ref(false);
const artistNameRules = ref(false); const artistNameRules = ref(false);
...@@ -355,6 +357,7 @@ export default defineComponent({ ...@@ -355,6 +357,7 @@ export default defineComponent({
mnFbmess.value = ArtistInformation.mnFbmess; mnFbmess.value = ArtistInformation.mnFbmess;
mnIns.value = ArtistInformation.mnIns; mnIns.value = ArtistInformation.mnIns;
mnWhatsapp.value = ArtistInformation.mnWhatsapp; mnWhatsapp.value = ArtistInformation.mnWhatsapp;
favoriteScore.value = ArtistInformation.favoriteScore;
nationality.value = ArtistInformation.nationality; nationality.value = ArtistInformation.nationality;
qualification.value = ArtistInformation.qualification; qualification.value = ArtistInformation.qualification;
works.value = ArtistInformation.works; works.value = ArtistInformation.works;
...@@ -727,14 +730,20 @@ export default defineComponent({ ...@@ -727,14 +730,20 @@ export default defineComponent({
); );
} }
if (!mnBookingPhone.value || !mnBookingPhone.value?.trim().length) { if (
(!mnBookingPhone.value || !mnBookingPhone.value?.trim().length) &&
check_infoBooking.value
) {
hasError = true; hasError = true;
mnBookingPhoneRules.value = true; mnBookingPhoneRules.value = true;
errorMessmnBookingPhone.value = i18n.global.t( errorMessmnBookingPhone.value = i18n.global.t(
'artist.artistInformation.validateMessages.requirePhoneNumberAdminister' 'artist.artistInformation.validateMessages.requirePhoneNumberAdminister'
); );
} }
if (!mnBookingEmail.value || !mnBookingEmail.value?.trim().length) { if (
(!mnBookingEmail.value || !mnBookingEmail.value?.trim().length) &&
check_infoBooking.value
) {
hasError = true; hasError = true;
mnBookingEmailRules.value = true; mnBookingEmailRules.value = true;
errorMessmnBookingEmail.value = i18n.global.t( errorMessmnBookingEmail.value = i18n.global.t(
...@@ -860,6 +869,7 @@ export default defineComponent({ ...@@ -860,6 +869,7 @@ export default defineComponent({
mnFbmess: mnFbmess.value, mnFbmess: mnFbmess.value,
mnIns: mnIns.value, mnIns: mnIns.value,
mnWhatsapp: mnWhatsapp.value, mnWhatsapp: mnWhatsapp.value,
favoriteScore: favoriteScore.value,
}, },
})) as AxiosResponse<BaseResponseBody<unknown>>; })) as AxiosResponse<BaseResponseBody<unknown>>;
if (response.data.error.code === config.API_RES_CODE.OK.code) { if (response.data.error.code === config.API_RES_CODE.OK.code) {
...@@ -1011,6 +1021,8 @@ export default defineComponent({ ...@@ -1011,6 +1021,8 @@ export default defineComponent({
errorMessmnBookingPhone, errorMessmnBookingPhone,
mnBookingEmailRules, mnBookingEmailRules,
errorMessmnBookingEmail, errorMessmnBookingEmail,
favoriteScore,
check_infoBooking,
}; };
}, },
}); });
...@@ -36,8 +36,6 @@ import { ...@@ -36,8 +36,6 @@ import {
TypeCardType, TypeCardType,
FileUploadType, FileUploadType,
} from 'src/assets/type'; } from 'src/assets/type';
// import { isEmail } from '../../boot/functions';
// import { isMobilePhone } from '../../boot/functions';
export type AvatarType = { export type AvatarType = {
file?: File; file?: File;
...@@ -106,7 +104,7 @@ export default defineComponent({ ...@@ -106,7 +104,7 @@ export default defineComponent({
numIndex: 1, numIndex: 1,
status: 1, status: 1,
}); });
const favoriteScore: Ref<number | undefined> = ref(undefined);
const mnName: Ref<string | null> = ref(null); const mnName: Ref<string | null> = ref(null);
const mnPhone: Ref<string | null> = ref(null); const mnPhone: Ref<string | null> = ref(null);
const mnEmail: Ref<string | null> = ref(null); const mnEmail: Ref<string | null> = ref(null);
...@@ -149,6 +147,7 @@ export default defineComponent({ ...@@ -149,6 +147,7 @@ export default defineComponent({
const DataUpdateHotProduct: Ref<ProductType | null> = ref(null); const DataUpdateHotProduct: Ref<ProductType | null> = ref(null);
//sate error input thong-tin-ca-nhan //sate error input thong-tin-ca-nhan
const check_infoBooking = ref(false);
const artistCodeRules = ref(false); const artistCodeRules = ref(false);
const fullNameRules = ref(false); const fullNameRules = ref(false);
const artistNameRules = ref(false); const artistNameRules = ref(false);
...@@ -654,14 +653,20 @@ export default defineComponent({ ...@@ -654,14 +653,20 @@ export default defineComponent({
); );
} }
if (!mnBookingPhone.value || !mnBookingPhone.value?.trim().length) { if (
(!mnBookingPhone.value || !mnBookingPhone.value?.trim().length) &&
check_infoBooking.value
) {
hasError = true; hasError = true;
mnBookingPhoneRules.value = true; mnBookingPhoneRules.value = true;
errorMessmnBookingPhone.value = i18n.global.t( errorMessmnBookingPhone.value = i18n.global.t(
'artist.artistInformation.validateMessages.requirePhoneNumberAdminister' 'artist.artistInformation.validateMessages.requirePhoneNumberAdminister'
); );
} }
if (!mnBookingEmail.value || !mnBookingEmail.value?.trim().length) { if (
(!mnBookingEmail.value || !mnBookingEmail.value?.trim().length) &&
check_infoBooking.value
) {
hasError = true; hasError = true;
mnBookingEmailRules.value = true; mnBookingEmailRules.value = true;
errorMessmnBookingEmail.value = i18n.global.t( errorMessmnBookingEmail.value = i18n.global.t(
...@@ -772,6 +777,7 @@ export default defineComponent({ ...@@ -772,6 +777,7 @@ export default defineComponent({
mnFbmess: mnFbmess.value, mnFbmess: mnFbmess.value,
mnIns: mnIns.value, mnIns: mnIns.value,
mnWhatsapp: mnWhatsapp.value, mnWhatsapp: mnWhatsapp.value,
favoriteScore: favoriteScore.value,
}, },
})) as AxiosResponse<BaseResponseBody<unknown>>; })) as AxiosResponse<BaseResponseBody<unknown>>;
if (response.data.error.code === config.API_RES_CODE.OK.code) { if (response.data.error.code === config.API_RES_CODE.OK.code) {
...@@ -919,6 +925,8 @@ export default defineComponent({ ...@@ -919,6 +925,8 @@ export default defineComponent({
errorMessEmail, errorMessEmail,
errorMessPhoneNumber, errorMessPhoneNumber,
confirmChangeIsDefault, confirmChangeIsDefault,
favoriteScore,
check_infoBooking,
}; };
}, },
}); });
...@@ -61,6 +61,8 @@ ...@@ -61,6 +61,8 @@
v-model:mn-fbmess="mnFbmess" v-model:mn-fbmess="mnFbmess"
v-model:mn-ins="mnIns" v-model:mn-ins="mnIns"
v-model:mn-whatsapp="mnWhatsapp" v-model:mn-whatsapp="mnWhatsapp"
v-model:favorite-score="favoriteScore"
v-model:check_infoBooking="check_infoBooking"
:errorMessmnBookingPhone="errorMessmnBookingPhone" :errorMessmnBookingPhone="errorMessmnBookingPhone"
:errorMessmnBookingEmail="errorMessmnBookingEmail" :errorMessmnBookingEmail="errorMessmnBookingEmail"
:mnBookingEmailRules="mnBookingEmailRules" :mnBookingEmailRules="mnBookingEmailRules"
......
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