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.

690 lines
32 KiB

2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
1 year ago
2 years ago
1 year ago
2 years ago
1 year ago
2 years ago
2 years ago
2 years ago
1 year ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
1 year ago
2 years ago
1 year ago
2 years ago
1 year ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
1 year ago
2 years ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
1 year ago
1 year ago
1 year ago
1 year ago
2 years ago
1 year ago
1 year ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
1 year ago
1 year ago
1 year ago
1 year ago
2 years ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
1 year ago
2 years ago
2 years ago
2 years ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
1 year ago
2 years ago
2 years ago
2 years ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
2 years ago
2 years ago
1 year ago
1 year ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
1 year ago
2 years ago
1 year ago
2 years ago
1 year ago
2 years ago
2 years ago
2 years ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
  1. import Vue from "vue";
  2. import Vuex from "vuex";
  3. // import { getapi, postapi, putapi, deletapi } from "@/api/api";
  4. // import { arrayReduce } from "@/utlis/proFunc";
  5. Vue.use(Vuex);
  6. export default new Vuex.Store({
  7. state: {
  8. sysConfig: { apiurl: '' }, //
  9. pickerOptions: {
  10. disabledDate(time) {
  11. return time.getTime() > Date.now();
  12. },
  13. shortcuts: [{
  14. text: '今天',
  15. onClick(picker) {
  16. picker.$emit('pick', new Date());
  17. }
  18. }, {
  19. text: '昨天',
  20. onClick(picker) {
  21. const date = new Date();
  22. date.setTime(date.getTime() - 3600 * 1000 * 24);
  23. picker.$emit('pick', date);
  24. }
  25. }, {
  26. text: '一周前',
  27. onClick(picker) {
  28. const date = new Date();
  29. date.setTime(date.getTime() - 3600 * 1000 * 24 * 7);
  30. picker.$emit('pick', date);
  31. }
  32. }, {
  33. text: '半月前',
  34. onClick(picker) {
  35. const date = new Date();
  36. date.setTime(date.getTime() - 3600 * 1000 * 24 * 15);
  37. picker.$emit('pick', date);
  38. }
  39. }, {
  40. text: '一月前',
  41. onClick(picker) {
  42. const date = new Date();
  43. date.setTime(date.getTime() - 3600 * 1000 * 24 * 30);
  44. picker.$emit('pick', date);
  45. }
  46. }, {
  47. text: '三月前',
  48. onClick(picker) {
  49. const date = new Date();
  50. date.setTime(date.getTime() - 3600 * 1000 * 24 * 92);
  51. picker.$emit('pick', date);
  52. }
  53. }, {
  54. text: '半年前',
  55. onClick(picker) {
  56. const date = new Date();
  57. date.setTime(date.getTime() - 3600 * 1000 * 24 * 183);
  58. picker.$emit('pick', date);
  59. }
  60. }, {
  61. text: '一年前',
  62. onClick(picker) {
  63. const date = new Date();
  64. date.setTime(date.getTime() - 3600 * 1000 * 24 * 365);
  65. picker.$emit('pick', date);
  66. }
  67. }, {
  68. text: '三年前',
  69. onClick(picker) {
  70. const date = new Date();
  71. date.setTime(date.getTime() - 3600 * 1000 * 24 * 1096);
  72. picker.$emit('pick', date);
  73. }
  74. }]
  75. },
  76. changepassword: '', //用户密码
  77. set: "qqqq",
  78. importexcel: {
  79. },
  80. router: {
  81. path: '',
  82. },
  83. window: {
  84. pageHeight: 960, //页面高度
  85. pageWidth: 1920, //页面宽度
  86. pageHeaderHeight: 50, //container-header 高度
  87. pageMarginWidth: 10, //container-左右边距和
  88. pageMarginHeight: 10, //container-上下边距和
  89. cardHeaderHeight: 45, //card-header 高度
  90. shift: false, //是否按下 shift键
  91. ctrl: false, //是否按下 ctrl键
  92. export: false //是否导出excel
  93. },
  94. elProgress: { //通用进度条相关参数
  95. display: false, //是否显示
  96. textInside: true,
  97. strokeWidth: 30,
  98. percentage: 0
  99. },
  100. customerOrg: {
  101. //体检单位设置
  102. oprStatus: '', //空,add,edit 三种状态
  103. customerOrgTree: [], //体检单位列表
  104. customerOrgTreeBak: [], //体检单位列表
  105. defaultExpandedKeys: [], //当前选中树的节点
  106. treeCurrentNodekey: '', //当前选中树的节点
  107. treeprops: {
  108. label: "displayName", //displayName
  109. value: "id",
  110. id: "id",
  111. children: "treeChildren",
  112. }, //树形组件的数据结构
  113. customerOrgId: "", //当前单位ID(可根据此值是否为空,判断是新增还是编辑)
  114. customerOrgRd: { id: "", isLock: "N", isActive: "Y", isLockBox: false, isActiveBox: true, }, //单个体检单位记录值
  115. customerOrgRegisterList: [{ id: 'uuid' }], //单位体检次数登记列表
  116. contactPersonList: [], //联系人列表
  117. contactMethodList: [], //联系方式列表
  118. orgEditStyle: '', //编辑表单样式
  119. orgDetailStyle: '', //体检次数样式
  120. orgDetailHeight: 300, //体检次数LIST表格高度
  121. personStyle: '', //联系人样式
  122. },
  123. //体检单位分组
  124. personnelUnit: {
  125. customerOrgGroupId: "",
  126. personnelgrouping: [], //人员分组
  127. id: "", //根据Id选择的数据
  128. form: { id: "" }, //列表每一项
  129. nogroupselected: [], //已选分组
  130. },
  131. //体检人员登记 add by pengjun
  132. patientRegister: {
  133. customerOrgs: [], // 体检单位列表(含个人)列表
  134. customerOrgTreeAll: [], //体检单位列表(含个人)树
  135. patientRegisterId: "", //当前人员ID(可根据此值是否为空,判断是新增还是编辑)
  136. patientRegisterTimes: 0, //体检人员登记窗口显示次数(弃用)
  137. addTimes: 0, //用于触发新增时初始化赋值
  138. saveTimes: 0, //用于体检登记时,触发分组调整保存
  139. photo: "/pic/Photo.jpg", //单独抽出,拍照时会更新
  140. cameraVisble: false, //拍照控件显示
  141. lisRequestVisble: false, //检验条码补打
  142. mergeAsbitemVisble: false, //合并项目
  143. patientRegisterRd: { id: "" }, //体检人员记录
  144. patientRegisterRdInit: {
  145. id: "", //id
  146. patientId: "00000000-0000-0000-0000-000000000000", //档案号ID 选择了档案就传档案号,未选就传00000-0000...
  147. patientNo: "", //档案号
  148. customerOrgId: null, //单位编号
  149. customerOrgGroupId: null, //分组
  150. medicalPackageId: null, //套餐
  151. patientName: "", //姓名
  152. birthDate: "", //字符串 如:2012-01-29
  153. sexId: "U", //性别 默认未知U
  154. age: null, //年龄
  155. jobCardNo: "", //工卡号
  156. medicalCardNo: "", //体检卡号
  157. maritalStatusId: "9", //婚姻状况 默认未知
  158. medicalTypeId: null, //体检类别
  159. personnelTypeId: null, //人员类别
  160. jobPost: "", //职务
  161. jobTitle: "", //职称
  162. photo: "/pic/Photo.jpg", //照片
  163. salesman: "", //介绍人
  164. sexHormoneTermId: null, //性激素期限
  165. isNameHide: "N", //隐藏姓名
  166. isPhoneFollow: "N", //电话随访
  167. isVip: "N", //vip客户
  168. remark: "", //
  169. isLock: "N", //是否锁住
  170. completeFlag: "1", //完成标志 0:预登记,1:未检,2:部份已检,3:已总检 【创建编辑时不操作】
  171. isMedicalStart: "N", //体检开始标志 【创建编辑时不操作】
  172. patientRegisterNo: "", //条码号 【创建编辑时不操作】
  173. medicalTimes: 1, //条码号 【创建编辑时不操作】
  174. medicalCenterId: null, //体检中心
  175. address: "", //地址
  176. email: "", //email
  177. idNo: "", //身份证号
  178. telephone: "", //电话
  179. mobileTelephone: "", //手机号
  180. nationId: null, //民族编号
  181. postalCode: "", //邮编
  182. creatorId: null,
  183. creationTime: "",
  184. lastModificationTime: "",
  185. lastModifierId: null,
  186. }, //体检人员记录(初始值)一般创建用
  187. customerOrgGroupAsb: [], //选中分组所包含的组合项目
  188. medicalPackageAsb: [], //选中套餐所包含的组合项目
  189. customerOrgGroupChange: 0, //控制体检列表记录切换时,0 无需触发更换分组操作
  190. medicalPackageChange: 0, //控制体检列表记录切换时,0 无需触发更换套餐操作
  191. query: {
  192. dateType: 'creationTime', //登记日期
  193. dateRange: null, //日期范围
  194. startDate: null,
  195. endDate: null,
  196. containRefuse: true, //包含弃检项目
  197. times: 0, //触发查询次数
  198. customerOrgId: "", //体检单位ID
  199. CustomerOrgParentId: "", //单位父级ID
  200. customerOrgFlag: true, //单位作为查询条件
  201. customerOrgRegister: { id: '' }, //单位体检次数
  202. customerOrgGroupIds: [], //体检分组
  203. checkAsbs: null,
  204. patientRegisterNo: '',
  205. pacsNo: '',
  206. lisNo: '',
  207. patientName: '', //姓名
  208. sex: '', //性别
  209. idCardNo: '', //身份证号
  210. isSeries: 'N',
  211. isSmsComplete: "N",
  212. isPhoneComplete: "N"
  213. }, //查询条件
  214. customerOrgGroup: [], //分组(针对单位)
  215. patientRegisterAbs: [], //人员已选组合项目
  216. prList: [], //体检登记记录
  217. },
  218. //体检医生诊台
  219. doctorCheck: {
  220. prBase: {
  221. id: '', //体检登记ID
  222. }, //人员体检登记显示基本信息
  223. RegisterCheckEdit: {
  224. id: '',
  225. checkDoctorId: null,
  226. checkDate: '',
  227. completeFlag: '0',
  228. LastModificationTime: '',
  229. LastModifierId: null,
  230. isLock: 'N',
  231. isAudit: 'N',
  232. auditorUserId: null,
  233. auditTime: '',
  234. }, //组合项目详情
  235. doctorCheckDialogVisible: false,
  236. RegisterCheckList: [], //人员体检 组合项目列表
  237. RegisterCheck: {}, //单组合项目记录
  238. RegisterCheckId: '', //
  239. checkItemList: [], //组合项目包含的明细项目
  240. checkItem: {}, //单项目记录
  241. preResult: {}, // 上次结果
  242. checkSummaryList: [], //小结
  243. checkSuggestionList: [], //建议
  244. singleDetailedProject: {}, //单明细项目记录
  245. combinationCriticalValue: true //是否组合项目危急弹窗
  246. },
  247. //总检医生
  248. sumDoctorCheck: {
  249. sumDoctorCheckDialogVisible: false,
  250. sumDiagnosisVisible: false,
  251. sumPREdit: {}, //总检医生时间等相关信息(sumPREditInit)
  252. summaryList: [], //综述
  253. suggestionList: [], //建议
  254. diagnosisList: [], //诊断
  255. },
  256. report: {
  257. dialogCusOrgOCX: false, //通用单位查询控件显示
  258. dataCusOrgOCX: [], //通用单位查询的数据
  259. dialogAsbitemOCX: false,
  260. dataAsbitemOCX: [], //通用组合项目查询的数据
  261. },
  262. diagnosis: {
  263. dialogCusOrgOCX: false, //通用单位查询控件显示
  264. dataCusOrgOCX: [], //通用单位查询的数据
  265. dialogAsbitemOCX: false,
  266. dataAsbitemOCX: [], //通用诊断查询的数据
  267. },
  268. project: {
  269. dialogCusOrgOCX: false, //通用单位查询控件显示
  270. dataCusOrgOCX: [], //通用单位查询的数据
  271. dialogAsbitemOCX: false,
  272. dataAsbitemOCX: [], //通用项目查询的数据
  273. },
  274. //公共字典数据(量大的数据字典推荐用 indexedDB ) add by pengjun
  275. dict: {
  276. personOrgId: "00000000-0000-0000-0000-000000000001", //个人体检单位ID
  277. organization: [], //体检中心
  278. sex: [], //性别(人员档案用)
  279. forSex: [], //适用性别
  280. medicalType: [], //体检类别
  281. personnelType: [], //人员类别
  282. maritalStatus: [], //婚姻状况
  283. forMaritalStatus: [{ id: '0', displayName: '未婚' }, { id: '1', displayName: '已婚' }, { id: 'A', displayName: '全部' }], //适用婚姻
  284. sexHormoneTerm: [], //性激素期
  285. nation: [], //民族
  286. birthPlace: [], //籍惯 ,出生地
  287. completeFlag: [
  288. //体检完成标志
  289. { id: "0", displayName: "预登记" },
  290. { id: "1", displayName: "正式登记" },
  291. { id: "2", displayName: "部份已检" },
  292. { id: "3", displayName: "已总检" },
  293. ],
  294. checkCompleteFlag: [
  295. //体检完成标志
  296. { id: "0", displayName: "未检" },
  297. { id: "1", displayName: "已检" },
  298. { id: "2", displayName: "弃检" },
  299. ],
  300. sumAudit: [
  301. //总检审核
  302. { id: "Y", displayName: "已审核" },
  303. { id: "N", displayName: "未审核" }
  304. ],
  305. payType: [
  306. //支付方式,比如是0自费、2免费、1单位支付
  307. { id: "0", displayName: "个人支付" },
  308. { id: "1", displayName: "单位支付" },
  309. { id: "2", displayName: "免费" },
  310. ],
  311. cardMode: [
  312. { id: "0", displayName: "充值卡" },
  313. { id: "1", displayName: "积分卡" },
  314. ],
  315. cardType: [], //会员卡类别
  316. billFlag: [
  317. { id: "0", displayName: "收费" },
  318. { id: "1", displayName: "退费" },
  319. { id: "2", displayName: "充值" },
  320. ],
  321. checkTypeFlag: [
  322. { id: "0", displayName: "检验" },
  323. { id: "1", displayName: "功能检查" },
  324. ],
  325. menuType: [
  326. { id: "0", displayName: "仅菜单节点" },
  327. { id: "1", displayName: "菜单及页面" },
  328. { id: "2", displayName: "仅页面节点" },
  329. { id: "3", displayName: "按钮或事件" },
  330. ],
  331. lineModeFlag: [
  332. { id: "0", displayName: "不换行" },
  333. { id: "1", displayName: "换行" },
  334. { id: "2", displayName: "继承项目类别换行属性" },
  335. ],
  336. qztlType: [
  337. { id: "0", displayName: "高原" },
  338. { id: "1", displayName: "健康" }
  339. ],
  340. occCheckType: [
  341. { id: "0", displayName: "上岗前" },
  342. { id: "1", displayName: "在岗期间" },
  343. { id: "2", displayName: "离岗时" },
  344. { id: "3", displayName: "离岗后" },
  345. ],
  346. degree: [
  347. { id: "/", displayName: "/" },
  348. { id: "-", displayName: "-" },
  349. { id: "+-", displayName: "+-" },
  350. { id: "+", displayName: "+" },
  351. { id: "++", displayName: "++" },
  352. { id: "+++", displayName: "+++" },
  353. { id: "++++", displayName: "++++" },
  354. { id: "+++++", displayName: "+++++" },
  355. ],
  356. poison: [], //毒害因素
  357. poisonList: [], //毒害因素 不分组
  358. symptom: [], //症状
  359. medicalPackage: [], //所有套餐
  360. customerOrgGroupAll: [], //所有分组,不限单位,不限次数
  361. customerOrg: [], //所有单位,非树结构
  362. payMode: [], //支付方式
  363. itemTypeTree: [], //体检类别 树结构
  364. asbItemAll: [], //所有组合项目
  365. asbItem: [], //显示的 未选组合项目
  366. asbItemQuick: [], //显示的 未选组合项目(供快速选择)
  367. diagnosisLevel: [], //诊断级别
  368. medicalCenter: [], // 体检中心
  369. roomType: [
  370. { id: "0", displayName: "普通" },
  371. { id: "1", displayName: "采血室" }
  372. ],
  373. queueFlag: [
  374. { id: "0", displayName: "候诊" },
  375. { id: "1", displayName: "已呼" },
  376. { id: "2", displayName: "过号" },
  377. ],
  378. },
  379. // 项目特有的对象数据 project private
  380. projPriv: {
  381. idNos: {
  382. Code: "Success", //读取成功/失败
  383. Name: "刘滔",
  384. Sex: "男",
  385. Nation: "汉",
  386. Birthday: "1986-01-22",
  387. Address: "湖南省长沙县春华镇九木村新元组367号",
  388. DepartmentIC: "长沙县公安局",
  389. StartDateIC: "2019-11-25",
  390. EndDateIC: "2039-11-25",
  391. IDCode: "430121198601223693",
  392. Photo: "base64编码字符串"
  393. }, //读取身份证信息
  394. },
  395. // 多层数据传递时使用(统一归结在此,便于管理)
  396. dataTransOpts: {
  397. // 强制刷新(如触发数据刷新的ID值没有变化时,但也想强制刷新数据:
  398. // S--single 单记录刷新,M--more 多记录刷新,D--detail
  399. // 当父子组件都在存在多记录刷新时 父组件用 M,子组件用 D
  400. refresh: {
  401. adp_roles: { S: 0, M: 0 }, // 角色
  402. adp_users: { S: 0, M: 0 }, // 用户
  403. asbitem: { S: 0, M: 0 }, // 组合项目
  404. customer_org: { S: 0, M: 0 }, // 体检单位
  405. contact_method: { S: 0, M: 0 }, // 联系方式
  406. contact_person: { S: 0, M: 0 }, // 体检单位联系人
  407. customer_org_register: { S: 0, M: 0 }, // 单位体检次数
  408. customer_org_group: { S: 0, M: 0 }, // 单位分组
  409. customer_org_group_detail: { S: 0, M: 0 }, // 单位分组包含的组合项目明细
  410. charge: { S: 0, M: 0 }, // 收费
  411. menu_info: { S: 0, M: 0 }, // 菜单与页面
  412. lis_request: { S: 0, M: 0 }, // 检验申请(条码)
  413. patient_register: { S: 0, M: 0 }, // 体检人员记录
  414. register_check_asbitem: { S: 0, M: 0, D: 0, OnlyRefreshAsbitem: 0 }, // 体检人员登记的项目(合并前)
  415. register_check: { S: 0, M: 0 }, // 体检人员登记的项目(合并后)
  416. register_check_item: { S: 0, M: 0 }, // 体检人员登记的明细项目
  417. role_menu_info: { S: 0, M: 0 }, // 角色对应的菜单
  418. sum_diagnosis: { S: 0, M: 0 }, // 总检诊断
  419. sumDoctor: { S: 0, M: 0 }, // 总检--综述 触发强制刷新 (sumDoctor.M 合并包含:综述、建议、对比、历史等,不包含总检诊断)
  420. room: { S: 0, M: 0 }, // 房间
  421. room_detail: { S: 0, M: 0 }, // 房间关联的组合项目
  422. common_table: { S: 0, M: 0 }, // 公共表
  423. common_table_type: { S: 0, M: 0 }, //
  424. third_medical_center: { S: 0, M: 0 }, //
  425. third_medical_center_booking_date: { S: 0, M: 0 }, //
  426. bigtext_result_type: { S: 0, M: 0 }, //
  427. bigtext_result_template: { S: 0, M: 0 },
  428. },
  429. //表当前数据(单条记录 S--single)
  430. tableS: {
  431. adp_roles: { id: '' }, // 角色
  432. adp_users: { id: '' }, // 用户
  433. asbitem: { id: '' }, // 组合项目
  434. customer_org: { id: '', parent_id: '' }, // 体检单位
  435. contact_method: { id: '' }, // 联系方式
  436. contact_person: { id: '' }, // 体检单位联系人
  437. customer_org_register: { id: '' }, // 单位体检次数 pid/单位一级节点
  438. customer_org_group: { id: '' }, // 单位分组
  439. customer_org_group_detail: { id: '' }, // 单位分组包含的组合项目明细
  440. charge: { id: '' }, // 收费
  441. menu_info: { id: '' }, // 菜单与页面
  442. lis_request: { id: '' }, // 检验申请(条码)
  443. patient_register: { id: '', patientRegisterNo: '' }, // 体检人员记录
  444. register_check_asbitem: { id: '' }, // 体检人员登记的项目(合并前)
  445. register_check: { id: '' }, // 体检人员登记的项目(合并后)
  446. register_check_item: { id: '' }, // 体检人员登记的明细项目
  447. role_menu_info: { id: '' }, // 角色对应的菜单
  448. sum_diagnosis: { id: '' }, // 总检诊断
  449. patient_occupational_disease: { id: '', patientRegisterId: '' }, // 职业病基本信息
  450. occModifiable: { //虚拟职业病允许修改表
  451. isPatientOccupationalDiseaseUpdate: "N", //基本信息
  452. isPatientPoisonsUpdate: "N", //接害因素
  453. isPatientPastMedicalHistorysUpdate: "N", // 既往病史
  454. isPatientOccupationalMedicalHistorysUpdate: "N", // 职业病史
  455. isPatientOccupationalHistorysUpdate: "N", // 职业史
  456. isPatientSymptomsUpdate: "N", // 症状
  457. isOccSummary: 'N', // 修改总检结论
  458. },
  459. appoint_patient_register: {}, // 预约登记数据
  460. room: { id: '' }, // 房间
  461. room_detail: { id: '' }, // 房间关联组合项目
  462. common_table: { id: '' }, // 公共表
  463. common_table_type: { id: '' }, // 公共表
  464. third_medical_center: { id: '' }, // 公共表
  465. third_medical_center_booking_date: { id: '' }, // 公共表
  466. bigtext_result_type: { id: '' },
  467. bigtext_result_template: { id: '' }
  468. },
  469. //表当前数据(多条记录 M--more)
  470. tableM: {
  471. adp_roles: [], // 角色
  472. adp_users: [], // 用户
  473. asbitem: [], // 组合项目
  474. customer_org: [], // 体检单位
  475. contact_method: [], // 联系方式
  476. contact_person: [], // 体检单位联系人
  477. customer_org_register: [], // 单位体检次数
  478. customer_org_group: [], // 单位分组
  479. customer_org_group_detail: [], // 单位分组包含的组合项目明细
  480. charge: [], // 收费
  481. menu_info: [], // 菜单与页面
  482. lis_request: [], // 检验申请(条码)
  483. patient_register: [], // 体检人员记录
  484. register_check_asbitem: [], // 体检人员登记的项目(合并前)
  485. register_check: [], // 体检人员登记的项目(合并后)
  486. register_check_item: [], // 体检人员登记的明细项目
  487. role_menu_info: [], // 角色对应的菜单
  488. sum_diagnosis: [], // 总检诊断
  489. patient_poison: [], // 病人毒害因素
  490. patient_occupational_history: [], // 病人职业史
  491. patient_symptom: [], // 病人症状
  492. patient_past_medical_history: [], // 既往病史
  493. patient_occupational_medical_history: [], // 职业病史
  494. appoint_register_asbitem: [], // 预约所选组合项目
  495. room: [], // 房间
  496. room_detail: [], // 房间关联组合项目
  497. common_table: [], // 公共表
  498. },
  499. plus: {
  500. PatientRegisterEditQuery: 0, // 更新查询条件
  501. clearPatientRegisterQuery: 0, // 清空人员登记界面查询条件(重新赋值体检单位)
  502. PatientRegisterEditGroupBatch: 0, // 刷新批量调整分组窗口
  503. PatientRegisterEditItemBatch: 0, // 刷新批量调整项目窗口
  504. PatientRegisterEditDoctorBatch: 0, // 刷新批量调整项目检查医生窗口
  505. PatientRegisterForChoose: 0, // 体检人员查询窗口
  506. OccDisease: 0, // 职业病
  507. WebBooking: 0, // 网上预约
  508. WebBookingMzak: 0, // 人寿预约
  509. ImportOrgData: 0, // 导入企业(青藏公司)数据
  510. queue: 0, // 排队信息
  511. }
  512. },
  513. // 弹窗控制
  514. dialogWin: {
  515. ContactPersonEdit: false, // 联系人
  516. CustomerOrgGroupEdit: false, // 单位分组 新增/编辑
  517. charge: false, // 收费窗口
  518. PatientList: false, // 体检人员档案列表
  519. PatientRegisterEdit: false, // 体检人员登记 新增/编辑
  520. PatientRegisterForChoose: false, // 体检人员登记列表
  521. PatientRegisterEditItemBatch: false, //批量调整项目
  522. PatientRegisterEditGroupBatch: false, //批量调整分组
  523. PatientRegisterEditDoctorBatch: false, // 批量调整检查项目医生
  524. MenuPageSet: false, // 设置角色菜单权限
  525. LocalConfig: false, // 设置窗口
  526. AsbChargeRequest: false, // 收费申请
  527. OccDisease: false, // 职业病
  528. Label: false, // 补打条码
  529. WebBooking: false, // 网上预约
  530. WebBookingMzak: false, // 网上预约--人寿
  531. ImportOrgData: false, // 导入企业(青藏公司)数据
  532. RoomEdit: false, //房间
  533. queue: false, // 排队信息
  534. FollowCriticalCheck: false, // 危急值
  535. CommonTableTypeEdit: false, //公共表类别
  536. CommonTableEdit: false, //公共表
  537. PacsTemplate: false, // pacs结果模版
  538. ThirdMedicalCenterEdit: false,
  539. BigtextResultTypeEdit: false,
  540. BigtextResultTemplateEdit: false,
  541. }
  542. },
  543. getters: {
  544. },
  545. mutations: {
  546. //同步更改状态
  547. //通用设置 state 值 option {key:,value:} add by pengjun
  548. setData(state, option) {
  549. let array = option.key.split(".");
  550. switch (array.length) {
  551. case 1:
  552. state[array[0]] = option.value;
  553. break;
  554. case 2:
  555. state[array[0]][array[1]] = option.value;
  556. break;
  557. case 3:
  558. state[array[0]][array[1]][array[2]] = option.value;
  559. break;
  560. case 4:
  561. state[array[0]][array[1]][array[2]][array[3]] = option.value;
  562. break;
  563. }
  564. },
  565. doctorCheckPrBaseInit(state) {
  566. state.doctorCheck.prBase = {
  567. id: '', //体检登记ID
  568. patientRegisterNo: '', //条码号
  569. patientNo: '', //档案号
  570. patientName: '', //姓名
  571. sexId: '', //性别
  572. medicalTimes: '', //体检次数
  573. maritalStatusId: '', //婚姻
  574. creationTime: '', //体检日期
  575. customerOrgParentName: '', //单位
  576. customerOrgName: '', //部门
  577. medicalTypeId: '', //体检类别
  578. personnelTypeId: '', //人员类别
  579. nationId: '', //民族
  580. mobileTelephone: '', //手机
  581. } //人员体检登记显示基本信息
  582. },
  583. sumPREditInit(state) {
  584. state.dataTransOpts.tableS.patient_register = {
  585. id: '', //体检登记ID
  586. completeFlag: '', //完成状态
  587. summaryDoctor: '', //总检医生
  588. summaryDate: '', //总检日期
  589. isAudit: '', //审核状态
  590. auditDoctor: '', //审核医生
  591. auditDate: '', //审核日期
  592. isLock: '', //锁定状态
  593. patientId: '', //人员档案ID
  594. } //人员体检登记显示基本信息
  595. },
  596. },
  597. actions: {
  598. // //获取体检人员所选组合项目
  599. // getPatientRegisterAbs(context, id) {
  600. // //console.log(`vuex getPatientRegisterAbs /api/app/registerasbitem/getlistinpatientregisterid?PatientRegisterId=${id}`, context.state.dict.asbItemAll)
  601. // if (id) {
  602. // getapi(`/api/app/registerasbitem/getlistinpatientregisterid?PatientRegisterId=${id}`).then(
  603. // (res) => {
  604. // console.log(`/api/app/registerasbitem/getlistinpatientregisterid?PatientRegisterId=${id}`, res)
  605. // if (res.code == 1) {
  606. // let patientRegisterAbs = []
  607. // res.data.forEach(e => {
  608. // e.standTotal = e.amount * e.standardPrice
  609. // e.total = e.amount * e.chargePrice
  610. // patientRegisterAbs.push(e)
  611. // });
  612. // context.commit("setData", {
  613. // key: "patientRegister.patientRegisterAbs",
  614. // value: patientRegisterAbs,
  615. // });
  616. // context.commit("setData", {
  617. // key: "dict.asbItem",
  618. // value: arrayReduce(
  619. // [...context.state.dict.asbItem], [...context.state.patientRegister.patientRegisterAbs],
  620. // "id=asbitemId"
  621. // ),
  622. // });
  623. // context.commit("setData", {
  624. // key: "dict.asbItemQuick",
  625. // value: arrayReduce([...context.state.dict.asbItemAll], [...context.state.patientRegister.patientRegisterAbs], "id=asbitemId"),
  626. // });
  627. // //console.log(`getPatientRegisterAbs ${id}`,context.state.dict.asbItemQuick)
  628. // }
  629. // }
  630. // );
  631. // } else {
  632. // context.commit("setData", {
  633. // key: "patientRegister.patientRegisterAbs",
  634. // value: [],
  635. // });
  636. // context.commit("setData", {
  637. // key: "dict.asbItem",
  638. // value: [...context.state.dict.asbItemAll],
  639. // });
  640. // context.commit("setData", {
  641. // key: "dict.asbItemQuick",
  642. // value: [...context.state.dict.asbItemAll],
  643. // });
  644. // }
  645. // },
  646. // //获取单位分组 /api/app/customer-org-group/in-customer-org-id/3a0c0444-d7a0-871f-4074-19faf1655caf
  647. // getCustomerOrgGroup(context, customerOrgld) {
  648. // console.log(`vuex /api/app/customer-org-group/in-customer-org-id/${customerOrgld}`);
  649. // getapi(`/api/app/customer-org-group/in-customer-org-id/${customerOrgld}`)
  650. // .then((res) => {
  651. // console.log("vuex getCustomerOrgGroup", res.data);
  652. // if (res.code == 1) {
  653. // //this.patientRegister.customerOrgGroup = res.data
  654. // context.commit("setData", {
  655. // key: "patientRegister.customerOrgGroup",
  656. // value: res.data,
  657. // });
  658. // }
  659. // });
  660. // },
  661. },
  662. modules: {},
  663. });