1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677 |
- import cloneDeep from 'lodash/cloneDeep'
- import pick from 'lodash/pick'
- const stateReset = {
- isShowSeiminModel: false,
- qucikCreateOrderType: "",
- qucikCreateOrderTypeId: "",
- deptDisplay: 1,
- updateTipsForNurses: "",
- specimenButton: "",
-
-
-
-
- nurseDeptSwitchTip: 0,
-
- searchDeptResult: {},
-
- searchDeptResultList: {},
-
- searchDeptParams: {},
- };
- const state = cloneDeep(stateReset);
- const getters = {};
- const mutations = {
-
- resetVxOther(state,args = {}) {
- Object.assign(state, cloneDeep(stateReset),pick(args,Object.keys(cloneDeep(stateReset))));
- },
-
- changeSeiminModel(state, args) {
- state.isShowSeiminModel = args;
- },
-
- changeQucikCreateOrderType(state, args) {
- state.qucikCreateOrderType = args.type;
- state.qucikCreateOrderTypeId = args.taskTypeId;
- },
-
- changeDeptDisplay(state, args) {
- state.deptDisplay = args;
- },
-
- changeUpdateTipsForNurses(state, args) {
- state.updateTipsForNurses = args;
- },
-
- changeSpecimenButton(state, args) {
- state.specimenButton = args;
- },
-
- changeNurseDeptSwitchTip(state, args) {
- state.nurseDeptSwitchTip = args;
- },
-
- changeSearchDeptResult(state, args) {
- state.searchDeptResult = args || {};
- },
-
- changeSearchDeptResultList(state, args) {
- state.searchDeptResultList = args || {};
- },
-
- changeSearchDeptParams(state, args) {
- state.searchDeptParams = args;
- },
- };
- const actions = {
- };
- export default {
- namespaced: true,
- state,
- getters,
- mutations,
- actions,
- };
|