somewhere

This commit is contained in:
Swift
2023-08-17 13:05:51 +03:30
parent 30c7eb0e7b
commit 53843207cc
429 changed files with 117489 additions and 1 deletions
+31
View File
@@ -0,0 +1,31 @@
export const state = () => ({
sidebarShow: 'responsive',
sidebarMinimize: false,
adminWS: false,
unreadCuMsgs: 0,
unreadTickets: 0,
newCustomers: 0,
newRepresentations: 0,
newPieceRequests: 0,
newOldPieceRequests: 0,
newBufferRequests: 0,
newGuaranteeReports: 0,
verityProducts: [],
panatechProducts: [],
iranProvinces: [],
iranCities: []
})
export const mutations = {
toggleSidebarDesktop(state) {
const sidebarOpened = [true, 'responsive'].includes(state.sidebarShow)
state.sidebarShow = sidebarOpened ? false : 'responsive'
},
toggleSidebarMobile(state) {
const sidebarClosed = [false, 'responsive'].includes(state.sidebarShow)
state.sidebarShow = sidebarClosed ? true : 'responsive'
},
set(state, [variable, value]) {
state[variable] = value
}
}
+108
View File
@@ -0,0 +1,108 @@
export const state = () => ({
mobileMenu: false,
// websockets statuses
userWS: false,
agentWS: false,
// notifications count
unreadTickets: 0,
agentInbox: 0,
draftsCount: 0,
// announcements
newUserAnnosCount: 0,
newAgentAnnosCount: 0,
userAnnouncements: [],
agentAnnouncements: [],
// arpa products
verityProducts: [],
panatechProducts: [],
// agents
agentAssetCategories: [
{
title: 'مدارک عضویت در اتحادیه صنفی:',
description: 'عضویت در اتحادیه صنفی مرتبط یا نمایندگی مجاز خدمات یا ارائه جواز کسب.',
fieldName: 'tradeUnion'
},
{
title: 'تخصص:',
description: 'شایستگی ، حسن شهرت و تجربه کافی در ارائه خدمات پس از فروش کاالی مرتبط.',
fieldName: 'expertise'
},
{
title: 'مالکیت:',
description: 'سرقفلی یا اجاره نامه معتبر مغازه یا دفترکار در شهر.',
fieldName: 'ownership'
},
{
title: 'تعمیرگاه مناسب:',
description: 'دارابودن امکانات و تجهیزات سرویس، تعمیر و نگهداری دستگاه های مرتبط.',
fieldName: 'repairShop'
},
{
title: 'نیروی کار:',
description: 'داشتن کارمند اداری مسلط به امور اداری و کامپیوتر.',
fieldName: 'itEmployee'
},
{
title: 'کارشناس تعمیر:',
description: 'داشتن کارشناس فنی مجرب تعمیر و سرویس دستگاه های مرتبط.',
fieldName: 'itExpert'
},
{
title: 'تضامین مالی:',
description: 'رائه تضامین مالی مورد نظر شرکت آسان سرویس. ',
fieldName: 'financialGuarantees'
}
],
surveyOptions: [
{
title: 'میزان رضایت شما از محصول خریداری شده از شرکت آسان سرویس چقدر است؟',
fieldName: 'purchasedProduct'
},
{
title: 'میزان رضایت شما از سهولت انجام فرآیند ثبت گارانتی و پیگیری محصوالت در سایت آسان سرویس به چه اندازه است؟',
fieldName: 'guaranteeWorkFlow'
},
{
title: 'از پاسخگویی پرسنل واحد گارانتی آسان سرویس تا چه میزان رضایت دارید؟',
fieldName: 'employeeResponsibility'
},
{
title: 'از کیفیت خدماتی که دریافت کردید تا چه میزان رضایت دارید؟',
fieldName: 'serviceQuality'
},
{
title: 'میزان رضایت شما از مدت زمان انجام کارتان تا چه میزان است؟',
fieldName: 'serviceTime'
},
{
title: 'چنانچه کالای شما جز کالاهای تعمیری میباشد، میزان رضایت شما از کیفیت تعمیرات چقدر است؟',
fieldName: 'repairQuality'
},
{
title: 'میزان رضایت شما از اجرت تعمیرات و یا مابه الفتاوت پرداختی کالای تعویضی چقدر است؟',
fieldName: 'coast'
}
],
surveyOptionsValues: new Map().set(1, 'خیلی کم').set(2, 'کم').set(3, 'متوسط').set(4, 'زیاد').set(5, 'خیلی زیاد')
})
export const getters = {
agentAssetCategories(state) {
return state.agentAssetCategories
},
surveyOptions(state) {
return state.surveyOptions
},
surveyOptionsValues(state) {
return state.surveyOptionsValues
}
}
export const mutations = {
toggleMobileMenu(state) {
state.mobileMenu = !state.mobileMenu
},
set(state, [param, payload]) {
state[param] = payload
}
}