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.

743 lines
34 KiB

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