You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

126 lines
4.5 KiB

3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
  1. import Vue from "vue";
  2. import Vuex from "vuex";
  3. Vue.use(Vuex);
  4. export default new Vuex.Store({
  5. state: {
  6. set: 'qqqq',
  7. customerOrg: { //体检单位设置
  8. customerOrgTree: [], //体检单位列表
  9. treeprops: {
  10. label: "displayName",
  11. value: "id",
  12. children: "treeChildren",
  13. }, //树形组件的数据结构
  14. customerOrgId:'',//当前单位ID(可根据此值是否为空,判断是新增还是编辑)
  15. customerOrgRd:{displayName:'单位名称'}, //单个体检单位记录值
  16. customerOrgRegisterList: [], //单位体检次数登记列表
  17. contactPersonList:[], //联系人列表
  18. contactMethodList:[], //联系方式列表
  19. },
  20. personnelUnit:{
  21. customerOrgGroupId:'',
  22. personnelgrouping:[], //人员分组
  23. id:'',//根据Id选择的数据
  24. form:{id:''},//列表每一项
  25. nogroupselected:[],//已选分组
  26. },
  27. //体检人员登记 add by pengjun
  28. patientRegister:{
  29. customerOrgTreeAll: [], //体检单位列表(含个人)
  30. patientRegisterId:'', //当前单位ID(可根据此值是否为空,判断是新增还是编辑)
  31. patientRegisterRd:{}, //体检人员记录
  32. addTimes:0, //用于触发新增时初始化赋值
  33. patientRegisterRdInit: {
  34. id: '', //id
  35. patientId: '00000000-0000-0000-0000-000000000000', //档案号ID 选择了档案就传档案号,未选就传00000-0000...
  36. patientNo:'',//档案号
  37. customerOrgId: null, //单位编号
  38. customerOrgGroupId: null, //分组
  39. medicalPackageId: null,//套餐
  40. patientName: '', //姓名
  41. birthDate: '', //字符串 如:2012-01-29
  42. sexId: 'U', //性别 默认未知U
  43. age: null, //年龄
  44. jobCardNo: '', //工卡号
  45. medicalCardNo: '', //体检卡号
  46. maritalStatusId: 'U', //婚姻状况 默认未知
  47. medicalTypeId: null, //体检类别
  48. personnelTypeId: null, //人员类别
  49. jobPost: '', //职务
  50. jobTitle: '', //职称
  51. photo: '', //照片
  52. salesman: '', //介绍人
  53. sexHormoneTermId: null, //性激素期限
  54. isNameHide: 'N', //隐藏姓名
  55. isPhoneFollow: 'N', //电话随访
  56. isVip: 'N', //vip客户
  57. remark: '', //
  58. isLock: 'N', //是否锁住
  59. completeFlag: '1', //完成标志 0:预登记,1:未检,2:部份已检,3:已总检 【创建编辑时不操作】
  60. isMedicalStart: 'N', //体检开始标志 【创建编辑时不操作】
  61. patientRegisterNo: '', //条码号 【创建编辑时不操作】
  62. medicalTimes: 1, //条码号 【创建编辑时不操作】
  63. organizationUnitId: null, //体检中心
  64. address:'', //地址
  65. email:'', //email
  66. idNo:'', //身份证号
  67. telephone:'', //电话
  68. mobileTelephone:'', //手机号
  69. nationId:null, //民族编号
  70. postalCode:'', //邮编
  71. }, //体检人员记录(初始值)一般创建用
  72. query:{
  73. times:0, //触发查询次数
  74. customerOrgId:'', //体检单位ID
  75. },//查询条件
  76. customerOrgGroup:[], //分组(针对单位)
  77. },
  78. //公共字典数据 add by pengjun
  79. dict:{
  80. personOrgId:'00000000-0000-0000-0000-000000000000', //个人体检单位ID
  81. organization:[], //体检中心
  82. sex:[], //性别
  83. medicalType:[], //体检类别
  84. personnelType:[], //人员类别
  85. maritalStatus:[],//婚姻状况
  86. sexHormoneTerm:[],//性激素期
  87. nation:[], //民族
  88. birthPlace:[], //籍惯 ,出生地
  89. completeFlag:[ //体检完成标志
  90. {id:'0',displayName:'预登记'},{id:'1',displayName:'正式登记'},{id:'2',displayName:'部份已检'},{id:'3',displayName:'已总检'},
  91. ],
  92. medicalPackage:[], //所有套餐
  93. customerOrgGroupAll:[], //所有分组,不限单位,不限次数
  94. customerOrg:[], //所有单位,非树结构
  95. },
  96. },
  97. getters: {},
  98. mutations: {//同步更改状态
  99. //通用设置 state 值 option {key-value} add by pengjun
  100. setData(state, option) {
  101. let array = option.key.split('.')
  102. switch (array.length) {
  103. case 1:
  104. state[array[0]] = option.value; break;
  105. case 2:
  106. state[array[0]][array[1]] = option.value; break;
  107. case 3:
  108. state[array[0]][array[1]][array[2]] = option.value; break;
  109. case 4:
  110. state[array[0]][array[1]][array[2]][array[3]] = option.value; break;
  111. }
  112. }
  113. },
  114. actions: {},
  115. modules: {},
  116. });