fillForm.js 812 Bytes
//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,
};