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.

721 lines
33 KiB

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