fillForm.js
812 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
//import Cookies from 'js-cookie'
const state = {
stepStatelist: [],
declareId: "",
fillId: "",
deliveryNo: "",
};
const mutations = {
SET_STEP_STATELIST: (state, list) => {
state.stepStatelist = list;
},
SET_DECLARE_ID: (state, id) => {
state.declareId = id;
},
SET_FILL_ID: (state, id) => {
state.fillId = id;
},
SET_DELIVERY_NO: (state, id) => {
state.deliveryNo = id;
},
};
const actions = {
addStepStatelist({ commit }, list) {
commit("SET_STEP_STATELIST", list);
},
addDeclareId({ commit }, id) {
commit("SET_DECLARE_ID", id);
},
addFillId({ commit }, id) {
commit("SET_FILL_ID", id);
},
addDeliveryNo({ commit }, id) {
commit("SET_DELIVERY_NO", id);
},
};
export default {
namespaced: true,
state,
mutations,
actions,
};