implemented instance lists and pot, todos still missing
This commit is contained in:
@ -4,6 +4,7 @@ const store = createStore({
|
||||
state() {
|
||||
return {
|
||||
editable: false,
|
||||
editableUser: false,
|
||||
filtered: false,
|
||||
searchable: false,
|
||||
deleteBool: false,
|
||||
@ -23,6 +24,7 @@ const store = createStore({
|
||||
sellIcon: false,
|
||||
archiveIcon: false,
|
||||
editIcon: false,
|
||||
editUserIcon: false,
|
||||
deleteIcon: false,
|
||||
|
||||
onAssetlist: true,
|
||||
@ -76,6 +78,9 @@ const store = createStore({
|
||||
newNotesMVT: '',
|
||||
chosenMVTId: -1,
|
||||
|
||||
chosenMITId: -1,
|
||||
chosenPOIId: -1,
|
||||
|
||||
onSolutionlist: true,
|
||||
onSolution: false,
|
||||
chosenSolutionId: -1,
|
||||
@ -171,6 +176,9 @@ const store = createStore({
|
||||
toggleEditable(state) {
|
||||
state.editable = !state.editable
|
||||
},
|
||||
toggleEditableUser(state) {
|
||||
state.editableUser = !state.editableUser
|
||||
},
|
||||
toggleChangeToSet(state) {
|
||||
state.changeToSet = !state.changeToSet
|
||||
},
|
||||
@ -224,6 +232,7 @@ const store = createStore({
|
||||
state.sellIcon = false
|
||||
state.archiveIcon = false
|
||||
state.editIcon = false
|
||||
state.editUserIcon = false
|
||||
state.deleteIcon = false
|
||||
},
|
||||
changeToCustomerAssetlist(state) {
|
||||
@ -242,6 +251,7 @@ const store = createStore({
|
||||
state.sellIcon = false
|
||||
state.archiveIcon = false
|
||||
state.editIcon = false
|
||||
state.editUserIcon = false
|
||||
state.deleteIcon = false
|
||||
},
|
||||
changeToAsset(state) {
|
||||
@ -260,6 +270,7 @@ const store = createStore({
|
||||
state.sellIcon = false
|
||||
state.archiveIcon = false
|
||||
state.editIcon = true
|
||||
state.editUserIcon = false
|
||||
state.deleteIcon = true
|
||||
},
|
||||
changeToSolutionlistAsset(state) {
|
||||
@ -278,6 +289,7 @@ const store = createStore({
|
||||
state.sellIcon = false
|
||||
state.archiveIcon = false
|
||||
state.editIcon = false
|
||||
state.editUserIcon = false
|
||||
state.deleteIcon = false
|
||||
},
|
||||
|
||||
@ -299,6 +311,7 @@ const store = createStore({
|
||||
state.sellIcon = false
|
||||
state.archiveIcon = false
|
||||
state.editIcon = false
|
||||
state.editUserIcon = false
|
||||
state.deleteIcon = false
|
||||
},
|
||||
changeToCustomerTemplatelist(state) {
|
||||
@ -318,6 +331,7 @@ const store = createStore({
|
||||
state.sellIcon = false
|
||||
state.archiveIcon = false
|
||||
state.editIcon = false
|
||||
state.editUserIcon = false
|
||||
state.deleteIcon = false
|
||||
},
|
||||
changeToTemplate(state) {
|
||||
@ -337,6 +351,7 @@ const store = createStore({
|
||||
state.sellIcon = false
|
||||
state.archiveIcon = false
|
||||
state.editIcon = true
|
||||
state.editUserIcon = false
|
||||
state.deleteIcon = true
|
||||
},
|
||||
changeToInstancelist(state) {
|
||||
@ -356,11 +371,33 @@ const store = createStore({
|
||||
state.sellIcon = false
|
||||
state.archiveIcon = false
|
||||
state.editIcon = false
|
||||
state.editUserIcon = false
|
||||
state.deleteIcon = false
|
||||
},
|
||||
changeToInstance(state) {
|
||||
state.onTemplatelist = false
|
||||
state.onTemplate = false
|
||||
state.onInstancelist = false
|
||||
state.onInstance = true
|
||||
|
||||
state.addIcon = false
|
||||
state.addSolutionIcon = false
|
||||
state.solutionIcon = false
|
||||
state.addInstanceIcon = false
|
||||
state.filterIcon = false
|
||||
state.searchIcon = false
|
||||
state.instancesIcon = false
|
||||
state.attachmentsIcon = true
|
||||
state.sellIcon = false
|
||||
state.archiveIcon = true
|
||||
state.editIcon = true
|
||||
state.editUserIcon = false
|
||||
state.deleteIcon = true
|
||||
},
|
||||
addNewAsset(state) {
|
||||
state.newAsset = true
|
||||
state.editable = false
|
||||
state.editableUser = false
|
||||
state.filtered = false
|
||||
state.searchable = false
|
||||
state.onAssetlist = false
|
||||
@ -384,6 +421,7 @@ const store = createStore({
|
||||
state.sellIcon = false
|
||||
state.archiveIcon = false
|
||||
state.editIcon = false
|
||||
state.editUserIcon = false
|
||||
state.deleteIcon = false
|
||||
},
|
||||
changeToCustomerSolutionlist(state) {
|
||||
@ -401,6 +439,7 @@ const store = createStore({
|
||||
state.sellIcon = false
|
||||
state.archiveIcon = false
|
||||
state.editIcon = false
|
||||
state.editUserIcon = false
|
||||
state.deleteIcon = false
|
||||
},
|
||||
changeToSolution(state) {
|
||||
@ -418,6 +457,7 @@ const store = createStore({
|
||||
state.sellIcon = false
|
||||
state.archiveIcon = false
|
||||
state.editIcon = true
|
||||
state.editUserIcon = false
|
||||
state.deleteIcon = true
|
||||
},
|
||||
|
||||
@ -437,6 +477,7 @@ const store = createStore({
|
||||
state.sellIcon = false
|
||||
state.archiveIcon = false
|
||||
state.editIcon = false
|
||||
state.editUserIcon = false
|
||||
state.deleteIcon = false
|
||||
},
|
||||
changeToCustomerIssueSliplist(state) {
|
||||
@ -454,6 +495,7 @@ const store = createStore({
|
||||
state.sellIcon = false
|
||||
state.archiveIcon = false
|
||||
state.editIcon = false
|
||||
state.editUserIcon = false
|
||||
state.deleteIcon = false
|
||||
},
|
||||
changeToIssueSlip(state) {
|
||||
@ -471,6 +513,7 @@ const store = createStore({
|
||||
state.sellIcon = false
|
||||
state.archiveIcon = false
|
||||
state.editIcon = true
|
||||
state.editUserIcon = false
|
||||
state.deleteIcon = true
|
||||
},
|
||||
|
||||
@ -491,6 +534,7 @@ const store = createStore({
|
||||
state.sellIcon = false
|
||||
state.archiveIcon = false
|
||||
state.editIcon = false
|
||||
state.editUserIcon = false
|
||||
state.deleteIcon = false
|
||||
},
|
||||
changeToIssueItem(state) {
|
||||
@ -509,6 +553,7 @@ const store = createStore({
|
||||
state.sellIcon = false
|
||||
state.archiveIcon = true
|
||||
state.editIcon = true
|
||||
state.editUserIcon = false
|
||||
state.deleteIcon = true
|
||||
},
|
||||
changeToIssueItemVariant(state) {
|
||||
@ -527,6 +572,7 @@ const store = createStore({
|
||||
state.sellIcon = true
|
||||
state.archiveIcon = true
|
||||
state.editIcon = true
|
||||
state.editUserIcon = false
|
||||
state.deleteIcon = true
|
||||
},
|
||||
|
||||
@ -546,6 +592,7 @@ const store = createStore({
|
||||
state.sellIcon = false
|
||||
state.archiveIcon = false
|
||||
state.editIcon = false
|
||||
state.editUserIcon = false
|
||||
state.deleteIcon = false
|
||||
},
|
||||
changeToEmployee(state) {
|
||||
@ -563,6 +610,7 @@ const store = createStore({
|
||||
state.sellIcon = false
|
||||
state.archiveIcon = false
|
||||
state.editIcon = true
|
||||
state.editUserIcon = false
|
||||
state.deleteIcon = true
|
||||
},
|
||||
|
||||
@ -577,7 +625,8 @@ const store = createStore({
|
||||
state.attachmentsIcon = false
|
||||
state.sellIcon = false
|
||||
state.archiveIcon = false
|
||||
state.editIcon = true
|
||||
state.editIcon = false
|
||||
state.editUserIcon = true
|
||||
state.deleteIcon = false
|
||||
},
|
||||
|
||||
@ -782,6 +831,16 @@ const store = createStore({
|
||||
state.chosenMVTId = id
|
||||
},
|
||||
|
||||
// function to set the chosen maintenance visit instance
|
||||
setChosenMIT(state, id) {
|
||||
state.chosenMITId = id
|
||||
},
|
||||
|
||||
// function to set the chosen production order instance
|
||||
setChosenPOI(state, id) {
|
||||
state.chosenPOIId = id
|
||||
},
|
||||
|
||||
// function to set the chosen solution
|
||||
setChosenSolution(state, id) {
|
||||
state.chosenSolutionId = id
|
||||
@ -810,6 +869,7 @@ const store = createStore({
|
||||
// function to reset the pages
|
||||
resetStore(state) {
|
||||
state.editable = false
|
||||
state.editableUser = false
|
||||
state.filtered = false
|
||||
state.searchable = false
|
||||
state.deleteBool = false
|
||||
@ -863,6 +923,10 @@ const store = createStore({
|
||||
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 = ''
|
||||
@ -959,6 +1023,7 @@ const store = createStore({
|
||||
add(state) {
|
||||
state.new = true
|
||||
state.editable = false
|
||||
state.editableUser = false
|
||||
state.filtered = false
|
||||
state.searchable = false
|
||||
|
||||
@ -990,6 +1055,21 @@ const store = createStore({
|
||||
state.onEmployeelist = false
|
||||
state.onEmployee = true
|
||||
},
|
||||
|
||||
// function to get to the add page of instances
|
||||
addInstance(state) {
|
||||
state.new = true
|
||||
state.editable = false
|
||||
state.editableUser = false
|
||||
state.filtered = false
|
||||
state.searchable = false
|
||||
|
||||
// set the production order and maintenance visit variables
|
||||
state.onTemplatelist = false
|
||||
state.onTemplate = false
|
||||
state.onInstancelist = false
|
||||
state.onInstance = true
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user