implemented accounting pages
This commit is contained in:
187
plugins/vuex.js
187
plugins/vuex.js
@ -77,6 +77,47 @@ const store = createStore({
|
||||
newUserSol: '',
|
||||
newDescriptionSol: '',
|
||||
newNotesSol: '',
|
||||
|
||||
onIssueSliplist: true,
|
||||
onCustomerIssueSliplist: false,
|
||||
onIssueSlip: false,
|
||||
chosenIssueSlipId: -1,
|
||||
newTicketNoIS: '',
|
||||
newCustomerIdIS: '',
|
||||
newCustomerIS: '',
|
||||
newNotesIS: '',
|
||||
newUserIS: '',
|
||||
newDeliveryAddressIS: '',
|
||||
newOIs: [],
|
||||
newSupplierRequestDateIS: '',
|
||||
newSupplierRequestIS: '',
|
||||
newSupplierOfferDateIS: '',
|
||||
newSupplierOfferIS: '',
|
||||
newClientOfferDateIS: '',
|
||||
newClientOfferIS: '',
|
||||
newClientOrderDateIS: '',
|
||||
newClientOrderIS: '',
|
||||
newSupplierOrderDateIS: '',
|
||||
newSupplierOrderIS: '',
|
||||
newIngressDateIS: '',
|
||||
newIngressIS: '',
|
||||
newEgressDateIS: '',
|
||||
newEgressIS: '',
|
||||
newIngressBillDateIS: '',
|
||||
newIngressBillIS: '',
|
||||
newEgressBillDateIS: '',
|
||||
newEgressBillIS: '',
|
||||
|
||||
onIssueItemList: true,
|
||||
onIssueItem: false,
|
||||
onIssueItemVariant: false,
|
||||
chosenIssueId: -1,
|
||||
newNameII: '',
|
||||
newTypeII: '',
|
||||
newStateII: '',
|
||||
newAmountII: '',
|
||||
newPropertiesII: '',
|
||||
chosenIssueVariantId: -1,
|
||||
};
|
||||
},
|
||||
mutations: {
|
||||
@ -189,6 +230,40 @@ const store = createStore({
|
||||
state.onSolution = true
|
||||
},
|
||||
|
||||
// functions to change the issue slip pages
|
||||
changeToIssueSliplist(state) {
|
||||
state.onIssueSliplist = true
|
||||
state.onCustomerIssueSliplist = false
|
||||
state.onIssueSlip = false
|
||||
},
|
||||
changeToCustomerIssueSliplist(state) {
|
||||
state.onIssueSliplist = false
|
||||
state.onCustomerIssueSliplist = true
|
||||
state.onIssueSlip = false
|
||||
},
|
||||
changeToIssueSlip(state) {
|
||||
state.onIssueSliplist = false
|
||||
state.onCustomerIssueSliplist = false
|
||||
state.onIssueSlip = true
|
||||
},
|
||||
|
||||
// functions to change the issue pages
|
||||
changeToIssueItemList(state) {
|
||||
state.onIssueItemList = true
|
||||
state.onIssueItem = false
|
||||
state.onIssueItemVariant = false
|
||||
},
|
||||
changeToIssueItem(state) {
|
||||
state.onIssueItemList = false
|
||||
state.onIssueItem = true
|
||||
state.onIssueItemVariant = false
|
||||
},
|
||||
changeToIssueItemVariant(state) {
|
||||
state.onIssueItemList = false
|
||||
state.onIssueItem = false
|
||||
state.onIssueItemVariant = true
|
||||
},
|
||||
|
||||
// functions to update the asset
|
||||
updateAssetComponent(state, asset) {
|
||||
state.newAssetName = asset.assetName
|
||||
@ -250,6 +325,52 @@ const store = createStore({
|
||||
state.newUserSol = sol.user
|
||||
},
|
||||
|
||||
// functions to update the issue slip component
|
||||
updateIssueSlipComponent(state, is) {
|
||||
state.newTicketNoIS = is.ticketNo
|
||||
state.newCustomerIdIS = is.customerId
|
||||
state.newCustomerIS = is.customer
|
||||
state.newNotesIS = is.notes
|
||||
state.newUserIS = is.user
|
||||
state.newDeliveryAddressIS = is.deliveryAddress
|
||||
},
|
||||
|
||||
// functions to update the accounting info component
|
||||
updateOrderingInfoComponent(state, o) {
|
||||
state.newOIs = o.ois
|
||||
},
|
||||
|
||||
// functions to update the accounting component
|
||||
updateAccountingComponent(state, is) {
|
||||
state.newSupplierRequestDateIS = is.supplierRequestDate
|
||||
state.newSupplierRequestIS = is.supplierRequest
|
||||
state.newSupplierOfferDateIS = is.supplierOfferDate
|
||||
state.newSupplierOfferIS = is.supplierOffer
|
||||
state.newClientOfferDateIS = is.clientOfferDate
|
||||
state.newClientOfferIS = is.clientOffer
|
||||
state.newClientOrderDateIS = is.clientOrderDate
|
||||
state.newClientOrderIS = is.clientOrder
|
||||
state.newSupplierOrderDateIS = is.supplierOrderDate
|
||||
state.newSupplierOrderIS = is.supplierOrder
|
||||
state.newIngressDateIS = is.ingressDate
|
||||
state.newIngressIS = is.ingress
|
||||
state.newEgressDateIS = is.egressDate
|
||||
state.newEgressIS = is.egress
|
||||
state.newIngressBillDateIS = is.ingressBillDate
|
||||
state.newIngressBillIS = is.ingressBill
|
||||
state.newEgressBillDateIS = is.egressBillDate
|
||||
state.newEgressBillIS = is.egressBill
|
||||
},
|
||||
|
||||
// functions to update the issue component
|
||||
updateIssueComponent(state, is) {
|
||||
state.newNameII = is.name
|
||||
state.newTypeII = is.type
|
||||
state.newStateII = is.state
|
||||
state.newAmountII = is.amount
|
||||
state.newPropertiesII = is.properties
|
||||
},
|
||||
|
||||
// function to set the chosen asset
|
||||
setChosenAsset(state, id) {
|
||||
state.chosenAssetId = id
|
||||
@ -265,11 +386,26 @@ const store = createStore({
|
||||
state.chosenMVTId = id
|
||||
},
|
||||
|
||||
// function to set the chosen solution
|
||||
setChosenSolution(state, id) {
|
||||
// function to set the chosen solution
|
||||
setChosenSolution(state, id) {
|
||||
state.chosenSolutionId = id
|
||||
},
|
||||
|
||||
// function to set the chosen issue slip
|
||||
setChosenIssueSlip(state, id) {
|
||||
state.chosenIssueSlipId = id
|
||||
},
|
||||
|
||||
// function to set the chosen issue
|
||||
setChosenIssue(state, id) {
|
||||
state.chosenIssueId = id
|
||||
},
|
||||
|
||||
// function to set the chosen issue variant
|
||||
setChosenIssueVariant(state, id) {
|
||||
state.chosenIssueVariantId = id
|
||||
},
|
||||
|
||||
// function to reset the pages
|
||||
resetStore(state) {
|
||||
state.editable = false
|
||||
@ -337,6 +473,43 @@ const store = createStore({
|
||||
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 = ''
|
||||
},
|
||||
|
||||
// functions to (undo) delete an asset
|
||||
@ -376,6 +549,16 @@ const store = createStore({
|
||||
state.onSolutionlist = false
|
||||
state.onCustomerSolutionlist = false
|
||||
state.onSolution = true
|
||||
|
||||
// set the issue slips variables
|
||||
state.onIssueSliplist = false
|
||||
state.onCustomerIssueSliplist = false
|
||||
state.onIssueSlip = true
|
||||
|
||||
// set the issue variables
|
||||
state.onIssueItemList = false
|
||||
state.onIssueItemVariant = false
|
||||
state.onIssueItem = true
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user