12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182 |
- import cloneDeep from 'lodash/cloneDeep'
- import pick from 'lodash/pick'
- const stateReset = {
- isShowSeiminModel: false, //是否显示切换科室弹窗
- qucikCreateOrderType: "", //快捷建单类型
- qucikCreateOrderTypeId: "", //快捷建单类型id
- patientBuildTrip: {}, //患者建单的buildTrip
- patientBuildData: {}, //患者建单的请求参数数据
- patientTaskTypeName: '', //患者建单的任务类型名称
- deptDisplay: 1, //护士端科室显示选择(名称还是别名)1是名称,2是别名
- updateTipsForNurses: "", //护士端更新提示
- specimenButton: "", //标本按钮文字
- //护士科室切换提示自动关闭设置
- // (1) 当用户设置为正数时,用户必须查看此窗体指定秒数。
- // (2) 当用户设置为负数时,用户可点击知道了也可倒计时自动关闭。
- // (3) 如果用户填写0则为无自动关闭和强制查看时间。
- nurseDeptSwitchTip: 0,
- // 搜索到的科室-searchDept
- searchDeptResult: {},
- // 搜索到的科室集合-searchDept-选起点科室并且需要选终点科室
- 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.patientTaskTypeName = args.patientTaskTypeName;
- },
- //护士端科室显示选择(名称还是别名)1是名称,2是别名
- changeDeptDisplay(state, args) {
- state.deptDisplay = args;
- },
- //护士端更新提示
- changeUpdateTipsForNurses(state, args) {
- state.updateTipsForNurses = args;
- },
- //标本按钮文字
- changeSpecimenButton(state, args) {
- state.specimenButton = args;
- },
- //护士科室切换提示自动关闭设置
- changeNurseDeptSwitchTip(state, args) {
- state.nurseDeptSwitchTip = args;
- },
- //搜索到的科室-searchDept
- changeSearchDeptResult(state, args) {
- state.searchDeptResult = args || {};
- },
- //搜索到的科室集合-searchDept-选起点科室并且需要选终点科室
- changeSearchDeptResultList(state, args) {
- state.searchDeptResultList = args || {};
- },
- //搜索科室需要传递的参数
- changeSearchDeptParams(state, args) {
- state.searchDeptParams = args;
- },
- };
- const actions = {
- };
- export default {
- namespaced: true,
- state,
- getters,
- mutations,
- actions,
- };
|