123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687 |
- import cloneDeep from 'lodash/cloneDeep'
- import pick from 'lodash/pick'
- const stateReset = {
- isShowSeiminModel: false,
- qucikCreateOrderType: "",
- qucikCreateOrderTypeId: "",
- patientBuildTrip: {},
- patientBuildData: {},
- patientTaskType: '',
- selectedPatient: {},
- deptDisplay: 1,
- 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;
- state.patientBuildTrip = args.patientBuildTrip;
- state.patientTaskType = args.patientTaskType;
- state.selectedPatient = args.selectedPatient;
- },
-
- changePatientBuildData(state, args) {
- state.patientBuildData[args.key] = args.value;
- },
-
- clearPatientBuildData(state, args) {
- state.patientBuildData = {};
- },
-
- changeDeptDisplay(state, args) {
- state.deptDisplay = 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,
- };
|