const template = {
  namespaced: true,
  state: {
    templateData: {},//模板数据
    //浓度单位
    mgOptions: [
      { label: "mg", value: "mg" },
      { label: "ng", value: "ng" },
    ],
    //体积单位
    volumeOptions: [
      { label: "ul", value: "ul" },
      { label: "ml", value: "ml" },
      { label: "l", value: "l" },
    ],
    //试验配制条件
    conditionOptions: [
      { label: "条件1", value: "1" },
      { label: "条件2", value: "2" },
      { label: "条件3", value: "3" },
      { label: "其他", value: "-1" },
    ],
    //有效周期单位
    effectivePeriodOptions: [
								{ label: "小时", value: "hours" },
								{ label: "天", value: "days" },
							],
     containerMaterialOptions: [
      { label: "容器材质1", value: "1" },
      { label: "容器材质2", value: "2" },
      { label: "容器材质3", value: "3" },
      { label: "其他", value: "-1" },
    ],       
  },
  mutations: {

    SET_TEMPLATE_DATA: (state, data) => {
      state.templateData = data
    },
  },
  actions: {
    setTemplateStatus({ commit }, status) {
      commit('SET_TEMPLATE_STATUS', status)
    },
    setTemplateData({ commit }, data) {
      commit('SET_TEMPLATE_DATA', data)
    },
  }
}
export default template