finished customer pages
This commit is contained in:
478
plugins/vuex.js
478
plugins/vuex.js
@ -24,6 +24,10 @@ const store = createStore({
|
||||
attachmentsIcon: false,
|
||||
sellIcon: false,
|
||||
archiveIcon: false,
|
||||
departmentsIcon: false,
|
||||
addEmployeeIcon: false,
|
||||
addDepartmentIcon: false,
|
||||
employeesIcon: false,
|
||||
editIcon: false,
|
||||
editUserIcon: false,
|
||||
deleteIcon: false,
|
||||
@ -149,6 +153,16 @@ const store = createStore({
|
||||
newCityEmp: '',
|
||||
newPostcodeEmp: '',
|
||||
|
||||
onCustomerlist: true,
|
||||
onCustomer: false,
|
||||
onCustomerEmployeelist: false,
|
||||
onCustomerEmployee: false,
|
||||
onDepartmentlist: false,
|
||||
onDepartment: false,
|
||||
chosenCustomerId: -1,
|
||||
chosenCustomerEmployeeId: -1,
|
||||
chosenDepartmentId: -1,
|
||||
|
||||
loggedInUserId: '',
|
||||
loggedInUserUsername: '',
|
||||
loggedInUserRegistered: '',
|
||||
@ -262,6 +276,10 @@ const store = createStore({
|
||||
state.sellIcon = false
|
||||
state.archiveIcon = false
|
||||
state.editIcon = false
|
||||
state.departmentsIcon = false
|
||||
state.addDepartmentIcon = false
|
||||
state.addEmployeeIcon = false
|
||||
state.employeesIcon = false
|
||||
state.editUserIcon = false
|
||||
state.deleteIcon = false
|
||||
state.notAllInstancesIcon = false
|
||||
@ -282,6 +300,10 @@ const store = createStore({
|
||||
state.sellIcon = false
|
||||
state.archiveIcon = false
|
||||
state.editIcon = false
|
||||
state.departmentsIcon = false
|
||||
state.addDepartmentIcon = false
|
||||
state.addEmployeeIcon = false
|
||||
state.employeesIcon = false
|
||||
state.editUserIcon = false
|
||||
state.deleteIcon = false
|
||||
state.notAllInstancesIcon = false
|
||||
@ -302,6 +324,10 @@ const store = createStore({
|
||||
state.sellIcon = false
|
||||
state.archiveIcon = false
|
||||
state.editIcon = true
|
||||
state.departmentsIcon = false
|
||||
state.addDepartmentIcon = false
|
||||
state.addEmployeeIcon = false
|
||||
state.employeesIcon = false
|
||||
state.editUserIcon = false
|
||||
state.deleteIcon = true
|
||||
state.notAllInstancesIcon = false
|
||||
@ -322,6 +348,10 @@ const store = createStore({
|
||||
state.sellIcon = false
|
||||
state.archiveIcon = false
|
||||
state.editIcon = false
|
||||
state.departmentsIcon = false
|
||||
state.addDepartmentIcon = false
|
||||
state.addEmployeeIcon = false
|
||||
state.employeesIcon = false
|
||||
state.editUserIcon = false
|
||||
state.deleteIcon = false
|
||||
state.notAllInstancesIcon = false
|
||||
@ -345,6 +375,10 @@ const store = createStore({
|
||||
state.sellIcon = false
|
||||
state.archiveIcon = false
|
||||
state.editIcon = false
|
||||
state.departmentsIcon = false
|
||||
state.addDepartmentIcon = false
|
||||
state.addEmployeeIcon = false
|
||||
state.employeesIcon = false
|
||||
state.editUserIcon = false
|
||||
state.deleteIcon = false
|
||||
state.notAllInstancesIcon = false
|
||||
@ -366,6 +400,10 @@ const store = createStore({
|
||||
state.sellIcon = false
|
||||
state.archiveIcon = false
|
||||
state.editIcon = false
|
||||
state.departmentsIcon = false
|
||||
state.addDepartmentIcon = false
|
||||
state.addEmployeeIcon = false
|
||||
state.employeesIcon = false
|
||||
state.editUserIcon = false
|
||||
state.deleteIcon = false
|
||||
state.notAllInstancesIcon = false
|
||||
@ -387,6 +425,10 @@ const store = createStore({
|
||||
state.sellIcon = false
|
||||
state.archiveIcon = false
|
||||
state.editIcon = true
|
||||
state.departmentsIcon = false
|
||||
state.addDepartmentIcon = false
|
||||
state.addEmployeeIcon = false
|
||||
state.employeesIcon = false
|
||||
state.editUserIcon = false
|
||||
state.deleteIcon = true
|
||||
state.notAllInstancesIcon = false
|
||||
@ -408,6 +450,10 @@ const store = createStore({
|
||||
state.sellIcon = false
|
||||
state.archiveIcon = false
|
||||
state.editIcon = false
|
||||
state.departmentsIcon = false
|
||||
state.addDepartmentIcon = false
|
||||
state.addEmployeeIcon = false
|
||||
state.employeesIcon = false
|
||||
state.editUserIcon = false
|
||||
state.deleteIcon = false
|
||||
state.notAllInstancesIcon = true
|
||||
@ -429,6 +475,10 @@ const store = createStore({
|
||||
state.sellIcon = false
|
||||
state.archiveIcon = true
|
||||
state.editIcon = true
|
||||
state.departmentsIcon = false
|
||||
state.addDepartmentIcon = false
|
||||
state.addEmployeeIcon = false
|
||||
state.employeesIcon = false
|
||||
state.editUserIcon = false
|
||||
state.deleteIcon = true
|
||||
state.notAllInstancesIcon = true
|
||||
@ -465,6 +515,10 @@ const store = createStore({
|
||||
state.sellIcon = false
|
||||
state.archiveIcon = false
|
||||
state.editIcon = false
|
||||
state.addDepartmentIcon = false
|
||||
state.addEmployeeIcon = false
|
||||
state.departmentsIcon = false
|
||||
state.employeesIcon = false
|
||||
state.editUserIcon = false
|
||||
state.deleteIcon = false
|
||||
state.notAllInstancesIcon = false
|
||||
@ -484,6 +538,10 @@ const store = createStore({
|
||||
state.sellIcon = false
|
||||
state.archiveIcon = false
|
||||
state.editIcon = false
|
||||
state.departmentsIcon = false
|
||||
state.addDepartmentIcon = false
|
||||
state.addEmployeeIcon = false
|
||||
state.employeesIcon = false
|
||||
state.editUserIcon = false
|
||||
state.deleteIcon = false
|
||||
state.notAllInstancesIcon = false
|
||||
@ -503,6 +561,10 @@ const store = createStore({
|
||||
state.sellIcon = false
|
||||
state.archiveIcon = false
|
||||
state.editIcon = true
|
||||
state.departmentsIcon = false
|
||||
state.addDepartmentIcon = false
|
||||
state.addEmployeeIcon = false
|
||||
state.employeesIcon = false
|
||||
state.editUserIcon = false
|
||||
state.deleteIcon = true
|
||||
state.notAllInstancesIcon = false
|
||||
@ -524,6 +586,10 @@ const store = createStore({
|
||||
state.sellIcon = false
|
||||
state.archiveIcon = false
|
||||
state.editIcon = false
|
||||
state.departmentsIcon = false
|
||||
state.addDepartmentIcon = false
|
||||
state.addEmployeeIcon = false
|
||||
state.employeesIcon = false
|
||||
state.editUserIcon = false
|
||||
state.deleteIcon = false
|
||||
state.notAllInstancesIcon = false
|
||||
@ -543,6 +609,10 @@ const store = createStore({
|
||||
state.sellIcon = false
|
||||
state.archiveIcon = false
|
||||
state.editIcon = false
|
||||
state.departmentsIcon = false
|
||||
state.addDepartmentIcon = false
|
||||
state.addEmployeeIcon = false
|
||||
state.employeesIcon = false
|
||||
state.editUserIcon = false
|
||||
state.deleteIcon = false
|
||||
state.notAllInstancesIcon = false
|
||||
@ -562,6 +632,10 @@ const store = createStore({
|
||||
state.sellIcon = false
|
||||
state.archiveIcon = false
|
||||
state.editIcon = true
|
||||
state.departmentsIcon = false
|
||||
state.addDepartmentIcon = false
|
||||
state.addEmployeeIcon = false
|
||||
state.employeesIcon = false
|
||||
state.editUserIcon = false
|
||||
state.deleteIcon = true
|
||||
state.notAllInstancesIcon = false
|
||||
@ -584,6 +658,10 @@ const store = createStore({
|
||||
state.sellIcon = false
|
||||
state.archiveIcon = false
|
||||
state.editIcon = false
|
||||
state.departmentsIcon = false
|
||||
state.addDepartmentIcon = false
|
||||
state.addEmployeeIcon = false
|
||||
state.employeesIcon = false
|
||||
state.editUserIcon = false
|
||||
state.deleteIcon = false
|
||||
state.notAllInstancesIcon = false
|
||||
@ -604,6 +682,10 @@ const store = createStore({
|
||||
state.sellIcon = false
|
||||
state.archiveIcon = true
|
||||
state.editIcon = true
|
||||
state.departmentsIcon = false
|
||||
state.addDepartmentIcon = false
|
||||
state.addEmployeeIcon = false
|
||||
state.employeesIcon = false
|
||||
state.editUserIcon = false
|
||||
state.deleteIcon = true
|
||||
state.notAllInstancesIcon = false
|
||||
@ -624,6 +706,10 @@ const store = createStore({
|
||||
state.sellIcon = true
|
||||
state.archiveIcon = true
|
||||
state.editIcon = true
|
||||
state.departmentsIcon = false
|
||||
state.addDepartmentIcon = false
|
||||
state.addEmployeeIcon = false
|
||||
state.employeesIcon = false
|
||||
state.editUserIcon = false
|
||||
state.deleteIcon = true
|
||||
state.notAllInstancesIcon = false
|
||||
@ -645,6 +731,10 @@ const store = createStore({
|
||||
state.sellIcon = false
|
||||
state.archiveIcon = false
|
||||
state.editIcon = false
|
||||
state.departmentsIcon = false
|
||||
state.addDepartmentIcon = false
|
||||
state.addEmployeeIcon = false
|
||||
state.employeesIcon = false
|
||||
state.editUserIcon = false
|
||||
state.deleteIcon = false
|
||||
state.notAllInstancesIcon = false
|
||||
@ -664,6 +754,174 @@ const store = createStore({
|
||||
state.sellIcon = false
|
||||
state.archiveIcon = false
|
||||
state.editIcon = true
|
||||
state.departmentsIcon = false
|
||||
state.addDepartmentIcon = false
|
||||
state.addEmployeeIcon = false
|
||||
state.employeesIcon = false
|
||||
state.editUserIcon = false
|
||||
state.deleteIcon = true
|
||||
state.notAllInstancesIcon = false
|
||||
},
|
||||
|
||||
// functions to change the customer pages
|
||||
changeToCustomerlist(state) {
|
||||
state.onCustomerlist = true
|
||||
state.onCustomer = false
|
||||
state.onCustomerEmployeelist = false
|
||||
state.onCustomerEmployee = false
|
||||
state.onDepartmentlist = false
|
||||
state.onDepartment = false
|
||||
|
||||
state.addIcon = true
|
||||
state.addSolutionIcon = false
|
||||
state.solutionIcon = false
|
||||
state.addInstanceIcon = false
|
||||
state.filterIcon = false
|
||||
state.searchIcon = true
|
||||
state.instancesIcon = false
|
||||
state.attachmentsIcon = false
|
||||
state.sellIcon = false
|
||||
state.archiveIcon = false
|
||||
state.editIcon = false
|
||||
state.departmentsIcon = false
|
||||
state.addDepartmentIcon = false
|
||||
state.addEmployeeIcon = false
|
||||
state.employeesIcon = false
|
||||
state.editUserIcon = false
|
||||
state.deleteIcon = false
|
||||
state.notAllInstancesIcon = false
|
||||
},
|
||||
changeToCustomer(state) {
|
||||
state.onCustomerlist = false
|
||||
state.onCustomer = true
|
||||
state.onCustomerEmployeelist = false
|
||||
state.onCustomerEmployee = false
|
||||
state.onDepartmentlist = false
|
||||
state.onDepartment = false
|
||||
|
||||
state.addIcon = false
|
||||
state.addSolutionIcon = false
|
||||
state.solutionIcon = false
|
||||
state.addInstanceIcon = false
|
||||
state.filterIcon = false
|
||||
state.searchIcon = false
|
||||
state.instancesIcon = false
|
||||
state.attachmentsIcon = false
|
||||
state.sellIcon = false
|
||||
state.archiveIcon = false
|
||||
state.editIcon = true
|
||||
state.departmentsIcon = true
|
||||
state.addDepartmentIcon = false
|
||||
state.addEmployeeIcon = false
|
||||
state.employeesIcon = true
|
||||
state.editUserIcon = false
|
||||
state.deleteIcon = true
|
||||
state.notAllInstancesIcon = false
|
||||
},
|
||||
changeToCustomerEmployeelist(state) {
|
||||
state.onCustomerlist = false
|
||||
state.onCustomer = false
|
||||
state.onCustomerEmployeelist = true
|
||||
state.onCustomerEmployee = false
|
||||
state.onDepartmentlist = false
|
||||
state.onDepartment = false
|
||||
|
||||
state.addIcon = false
|
||||
state.addSolutionIcon = false
|
||||
state.solutionIcon = false
|
||||
state.addInstanceIcon = false
|
||||
state.filterIcon = true
|
||||
state.searchIcon = true
|
||||
state.instancesIcon = false
|
||||
state.attachmentsIcon = false
|
||||
state.sellIcon = false
|
||||
state.archiveIcon = false
|
||||
state.editIcon = false
|
||||
state.departmentsIcon = false
|
||||
state.addDepartmentIcon = false
|
||||
state.addEmployeeIcon = true
|
||||
state.employeesIcon = false
|
||||
state.editUserIcon = false
|
||||
state.deleteIcon = false
|
||||
state.notAllInstancesIcon = false
|
||||
},
|
||||
changeToCustomerEmployee(state) {
|
||||
state.onCustomerlist = false
|
||||
state.onCustomer = false
|
||||
state.onCustomerEmployeelist = false
|
||||
state.onCustomerEmployee = true
|
||||
state.onDepartmentlist = false
|
||||
state.onDepartment = false
|
||||
|
||||
state.addIcon = false
|
||||
state.addSolutionIcon = false
|
||||
state.solutionIcon = false
|
||||
state.addInstanceIcon = false
|
||||
state.filterIcon = false
|
||||
state.searchIcon = false
|
||||
state.instancesIcon = false
|
||||
state.attachmentsIcon = false
|
||||
state.sellIcon = false
|
||||
state.archiveIcon = false
|
||||
state.editIcon = true
|
||||
state.departmentsIcon = false
|
||||
state.addDepartmentIcon = false
|
||||
state.addEmployeeIcon = false
|
||||
state.employeesIcon = false
|
||||
state.editUserIcon = false
|
||||
state.deleteIcon = true
|
||||
state.notAllInstancesIcon = false
|
||||
},
|
||||
changeToDepartmentlist(state) {
|
||||
state.onCustomerlist = false
|
||||
state.onCustomer = false
|
||||
state.onCustomerEmployeelist = false
|
||||
state.onCustomerEmployee = false
|
||||
state.onDepartmentlist = true
|
||||
state.onDepartment = false
|
||||
|
||||
state.addIcon = false
|
||||
state.addSolutionIcon = false
|
||||
state.solutionIcon = false
|
||||
state.addInstanceIcon = false
|
||||
state.filterIcon = false
|
||||
state.searchIcon = true
|
||||
state.instancesIcon = false
|
||||
state.attachmentsIcon = false
|
||||
state.sellIcon = false
|
||||
state.archiveIcon = false
|
||||
state.editIcon = false
|
||||
state.departmentsIcon = false
|
||||
state.addDepartmentIcon = true
|
||||
state.addEmployeeIcon = false
|
||||
state.employeesIcon = false
|
||||
state.editUserIcon = false
|
||||
state.deleteIcon = false
|
||||
state.notAllInstancesIcon = false
|
||||
},
|
||||
changeToDepartment(state) {
|
||||
state.onCustomerlist = false
|
||||
state.onCustomer = false
|
||||
state.onCustomerEmployeelist = false
|
||||
state.onCustomerEmployee = false
|
||||
state.onDepartmentlist = false
|
||||
state.onDepartment = true
|
||||
|
||||
state.addIcon = false
|
||||
state.addSolutionIcon = false
|
||||
state.solutionIcon = false
|
||||
state.addInstanceIcon = false
|
||||
state.filterIcon = false
|
||||
state.searchIcon = false
|
||||
state.instancesIcon = false
|
||||
state.attachmentsIcon = false
|
||||
state.sellIcon = false
|
||||
state.archiveIcon = false
|
||||
state.editIcon = true
|
||||
state.departmentsIcon = false
|
||||
state.addDepartmentIcon = false
|
||||
state.addEmployeeIcon = false
|
||||
state.employeesIcon = false
|
||||
state.editUserIcon = false
|
||||
state.deleteIcon = true
|
||||
state.notAllInstancesIcon = false
|
||||
@ -681,6 +939,10 @@ const store = createStore({
|
||||
state.sellIcon = false
|
||||
state.archiveIcon = false
|
||||
state.editIcon = false
|
||||
state.departmentsIcon = false
|
||||
state.addDepartmentIcon = false
|
||||
state.addEmployeeIcon = false
|
||||
state.employeesIcon = false
|
||||
state.editUserIcon = true
|
||||
state.deleteIcon = false
|
||||
state.notAllInstancesIcon = false
|
||||
@ -976,6 +1238,17 @@ const store = createStore({
|
||||
state.chosenEmployeeId = id
|
||||
},
|
||||
|
||||
// function to set the chosen customer and its employees and departments
|
||||
setChosenCustomer(state, id) {
|
||||
state.chosenCustomerId = id
|
||||
},
|
||||
setChosenCustomerEmployee(state, id) {
|
||||
state.chosenCustomerEmployeeId = id
|
||||
},
|
||||
setChosenCustomerDepartment(state, id) {
|
||||
state.chosenDepartmentId = id
|
||||
},
|
||||
|
||||
// function to reset the pages
|
||||
resetStore(state) {
|
||||
state.editable = false
|
||||
@ -1128,6 +1401,169 @@ const store = createStore({
|
||||
state.newTypeMVI = ''
|
||||
state.newTimeSpentMVI = ''
|
||||
state.newNotesMVI = ''
|
||||
|
||||
// reset the customer page variables
|
||||
state.chosenCustomerId = -1
|
||||
state.chosenCustomerEmployeeId = -1
|
||||
state.chosenDepartmentId = -1
|
||||
},
|
||||
|
||||
// function to reset the pages except chosen customer id
|
||||
resetStoreNotCustomer(state) {
|
||||
state.editable = false
|
||||
state.editableUser = false
|
||||
state.filtered = false
|
||||
state.searchable = false
|
||||
state.deleteBool = false
|
||||
state.chosenAssetId = -1
|
||||
state.filteredByCustomer = ''
|
||||
state.filteredUserTerm = false
|
||||
state.new = false
|
||||
state.customerChanged = false
|
||||
state.changedCustomerId = -1
|
||||
|
||||
// reset the asset page variables
|
||||
state.newAssetName = ''
|
||||
state.newCustomerID = ''
|
||||
state.newCustomer = ''
|
||||
state.newLocation = ''
|
||||
state.newRemoteLocation = ''
|
||||
state.newType = ''
|
||||
state.newDescription = ''
|
||||
state.newNotes = ''
|
||||
state.newState = ''
|
||||
state.newLastView = ''
|
||||
state.newUser = ''
|
||||
state.hardwareBool = false
|
||||
state.newModel = ''
|
||||
state.newSerialnumber = ''
|
||||
state.newCPU = ''
|
||||
state.newRAM = ''
|
||||
state.newStorageConfiguration = ''
|
||||
state.newMiscellaneous = ''
|
||||
state.softwareBool = false
|
||||
state.newSoftware = ''
|
||||
state.newVersion = ''
|
||||
state.newLicense = ''
|
||||
|
||||
// reset the production order template page variables
|
||||
state.newNamePOT = ''
|
||||
state.newCustomerIDPOT = ''
|
||||
state.newCustomerPOT = ''
|
||||
state.newUserPOT = ''
|
||||
state.newDescriptionPOT = ''
|
||||
state.newNotesPOT = ''
|
||||
state.newLastViewPOT = ''
|
||||
state.chosenPOTId = -1
|
||||
|
||||
// reset the maintenance visit template page variables
|
||||
state.newNameMVT = ''
|
||||
state.newCustomerIDMVT = ''
|
||||
state.newCustomerMVT = ''
|
||||
state.newUserMVT = ''
|
||||
state.newTypeMVT = ''
|
||||
state.newNotesMVT = ''
|
||||
state.newLastViewMVT = ''
|
||||
state.chosenMVTId = -1
|
||||
|
||||
// reset the maintenance visit and production order instance page variables
|
||||
state.chosenMITId = -1
|
||||
state.chosenPOIId = -1
|
||||
|
||||
// reset the solution page variables
|
||||
state.newSolutionNameSol = ''
|
||||
state.newCustomerIDSol = ''
|
||||
state.newCustomerSol = ''
|
||||
state.newAssetNameSol = ''
|
||||
state.newLastViewSol = ''
|
||||
state.newTypeSol = ''
|
||||
state.newDescriptionSol = ''
|
||||
state.newNotesSol = ''
|
||||
state.newUserSol = ''
|
||||
state.chosenSolutionId = -1
|
||||
|
||||
// reset the issue slip page variables
|
||||
state.chosenIssueSlipId = -1
|
||||
state.newCustomerIdIS = ''
|
||||
state.newCustomerIS = ''
|
||||
state.newTicketNoIS = ''
|
||||
state.newNotesIS = ''
|
||||
state.newUserIS = ''
|
||||
state.newOIs = []
|
||||
state.newDeliveryAddressIS = ''
|
||||
state.newSupplierRequestIS = ''
|
||||
state.newSupplierOfferIS = ''
|
||||
state.newClientOfferIS = ''
|
||||
state.newClientOrderIS = ''
|
||||
state.newSupplierOrderIS = ''
|
||||
state.newIngressIS = ''
|
||||
state.newEgressIS = ''
|
||||
state.newIngressBillIS = ''
|
||||
state.newEgressBillIS = ''
|
||||
state.newSupplierRequestDateIS = ''
|
||||
state.newSupplierOfferDateIS = ''
|
||||
state.newClientOfferDateIS = ''
|
||||
state.newClientOrderDateIS = ''
|
||||
state.newSupplierOrderDateIS = ''
|
||||
state.newIngressDateIS = ''
|
||||
state.newEgressDateIS = ''
|
||||
state.newIngressBillDateIS = ''
|
||||
state.newEgressBillDateIS = ''
|
||||
|
||||
// reset the issue page variables
|
||||
state.chosenIssueId = -1
|
||||
state.chosenIssueVariantId = -1
|
||||
state.newNameII = ''
|
||||
state.newTypeII = ''
|
||||
state.newStateII = ''
|
||||
state.newAmountII = ''
|
||||
state.newPropertiesII = ''
|
||||
|
||||
// reset the employee page variables
|
||||
state.chosenEmployeeId = -1
|
||||
state.newUsernameEmp = ''
|
||||
state.newPasswordEmp = ''
|
||||
state.newPasswordRepeatedEmp = ''
|
||||
state.newFullNameEmp = ''
|
||||
state.newEmailEmp = ''
|
||||
state.newPhonenumberEmp = ''
|
||||
state.newAddressEmp = ''
|
||||
state.newCityEmp = ''
|
||||
state.newPostcodeEmp = ''
|
||||
|
||||
// reset the poi page variables
|
||||
state.newNamePOI = ''
|
||||
state.newTemplateIDPOI = ''
|
||||
state.newCustomerIDPOI = ''
|
||||
state.newCustomerPOI = ''
|
||||
state.newAssetPOI = ''
|
||||
state.newStatePOI = ''
|
||||
state.newCreationDatePOI = ''
|
||||
state.newCompletionDatePOI = ''
|
||||
state.newUserPOI = ''
|
||||
state.newTemplateDescriptionPOI = ''
|
||||
state.newTemplateNotesPOI = ''
|
||||
state.newTimeSpentPOI = ''
|
||||
state.newNotesPOI = ''
|
||||
|
||||
// reset the mvi page variables
|
||||
state.newNameMVI = ''
|
||||
state.newTemplateIDMVI = ''
|
||||
state.newMaintenanceTypeMVI = ''
|
||||
state.newStateMVI = ''
|
||||
state.newCreationDateMVI = ''
|
||||
state.newCompletionDateMVI = ''
|
||||
state.newUserMVI = ''
|
||||
state.newCustomerIDMVI = ''
|
||||
state.newCustomerMVI = ''
|
||||
state.newTemplateNotesMVI = ''
|
||||
state.newTypeMVI = ''
|
||||
state.newTimeSpentMVI = ''
|
||||
state.newNotesMVI = ''
|
||||
|
||||
// reset the customer page variables
|
||||
state.chosenCustomerEmployeeId = -1
|
||||
state.chosenDepartmentId = -1
|
||||
},
|
||||
|
||||
// function to logout
|
||||
@ -1195,6 +1631,14 @@ const store = createStore({
|
||||
// set the employee variables
|
||||
state.onEmployeelist = false
|
||||
state.onEmployee = true
|
||||
|
||||
//set the customers variables
|
||||
state.onCustomerlist = false
|
||||
state.onCustomer = true
|
||||
state.onCustomerEmployeelist = false
|
||||
state.onCustomerEmployee = false
|
||||
state.onDepartmentlist = false
|
||||
state.onDepartment = false
|
||||
},
|
||||
|
||||
// function to get to the add page of instances
|
||||
@ -1211,6 +1655,40 @@ const store = createStore({
|
||||
state.onInstancelist = false
|
||||
state.onInstance = true
|
||||
},
|
||||
|
||||
// function to get to the add page of customer employees
|
||||
addEmployee(state) {
|
||||
state.new = true
|
||||
state.editable = false
|
||||
state.editableUser = false
|
||||
state.filtered = false
|
||||
state.searchable = false
|
||||
|
||||
// set the customer employees variables
|
||||
state.onCustomerlist = false
|
||||
state.onCustomer = false
|
||||
state.onCustomerEmployeelist = false
|
||||
state.onCustomerEmployee = true
|
||||
state.onDepartmentlist = false
|
||||
state.onDepartment = false
|
||||
},
|
||||
|
||||
// function to get to the add page of customer departments
|
||||
addDepartment(state) {
|
||||
state.new = true
|
||||
state.editable = false
|
||||
state.editableUser = false
|
||||
state.filtered = false
|
||||
state.searchable = false
|
||||
|
||||
// set the customer departments variables
|
||||
state.onCustomerlist = false
|
||||
state.onCustomer = false
|
||||
state.onCustomerEmployeelist = false
|
||||
state.onCustomerEmployee = false
|
||||
state.onDepartmentlist = false
|
||||
state.onDepartment = true
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user