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.

206 lines
5.5 KiB

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. <template>
  2. <div>
  3. <div>
  4. <div class="contenttitle">
  5. 体检登记 /<span class="contenttitleBold">检验条码打印</span>
  6. </div>
  7. <div style="display: flex;">
  8. <!-- 单位树组件 -->
  9. <div :style="'margin-right:5px;background-color: #fff;border-radius: 8px;width:208px; height:' +
  10. (window.pageHeight < 600 ? 450 : window.pageHeight - 100) + 'px;'">
  11. <CustomerOrgTreeAll />
  12. </div>
  13. <div :style="'display:block;width:' + (window.pageWidth - 200 - 35) + 'px;'">
  14. <!-- 查询条件 -->
  15. <PatientRegisterQuery />
  16. <!-- 人员列表信息 -->
  17. <PatientLis />
  18. </div>
  19. </div>
  20. </div>
  21. </div>
  22. </template>
  23. <script>
  24. import { mapState, mapActions } from "vuex";
  25. import { getapi, postapi, putapi, deletapi } from "@/api/api";
  26. import CustomerOrgTreeAll from "../../components/patientRegister/customerOrgTreeAll.vue";
  27. import PatientRegisterQuery from "../../components/patientRegister/patientRegisterQuery.vue";
  28. import PatientLis from "../../components/patientRegister/PatientLis.vue";
  29. export default {
  30. components: {
  31. CustomerOrgTreeAll,
  32. PatientRegisterQuery,
  33. PatientLis,
  34. },
  35. data() {
  36. return {
  37. CustomerOrgTreeStyle: "",
  38. CustomerOrgRightStyle: "margin-left: 10px;",
  39. };
  40. },
  41. //组件创建完成,一般页面初始布局放在这里
  42. created() {
  43. // console.log("this.$route.query", this.$route.query)
  44. if (this.$route.query.patient_register) {
  45. this.dataTransOpts.tableS.patient_register = this.$route.query.patient_register
  46. } else {
  47. this.dataTransOpts.tableS.patient_register = { id: '', patientRegisterNo: '' }
  48. }
  49. },
  50. //页面挂载完成,一般页面渲染数据放在这里
  51. mounted() {
  52. this.dictInit();
  53. },
  54. computed: {
  55. ...mapState(["window","dataTransOpts", "dict", "patientRegister", "customerOrg"]),
  56. },
  57. methods: {
  58. ...mapActions(["getCustomerOrgGroup"]),
  59. //数据初始化
  60. dictInit() {
  61. //性别(仅档案用)
  62. getapi("/api/app/sex").then((res) => {
  63. if (res.code == 1) {
  64. this.dict.sex = res.data;
  65. }
  66. });
  67. //性别(查询)
  68. getapi("/api/app/for-sex").then((res) => {
  69. if (res.code == 1) {
  70. this.dict.forSex = res.data;
  71. }
  72. });
  73. //体检中心
  74. getapi("/api/app/organization-units/organization-unit-by-is-peis").then(
  75. (res) => {
  76. if (res.code == 1) {
  77. this.dict.organization = res.data;
  78. }
  79. }
  80. );
  81. //体检单位
  82. // getapi("/api/app/customer-org/in-filter").then((res) => {
  83. // if (res.code == 1) {
  84. // this.dict.customerOrg = res.data.items;
  85. // }
  86. // });
  87. //体检类别
  88. getapi("/api/app/medical-type/in-filter").then((res) => {
  89. if (res.code == 1) {
  90. this.dict.medicalType = res.data;
  91. }
  92. });
  93. //人员类别
  94. getapi("/api/app/personnel-type/in-filter").then((res) => {
  95. if (res.code == 1) {
  96. this.dict.personnelType = res.data;
  97. }
  98. });
  99. //婚姻状况
  100. getapi("/api/app/MaritalStatus/GetMaritalStatusList").then((res) => {
  101. if (res.code == 1) {
  102. this.dict.maritalStatus = res.data;
  103. }
  104. });
  105. //性激素期
  106. getapi("/api/app/sex-hormone-term/in-filter").then((res) => {
  107. if (res.code == 1) {
  108. this.dict.sexHormoneTerm = res.data;
  109. }
  110. });
  111. //民族
  112. getapi("/api/app/nation/in-filter").then((res) => {
  113. if (res.code != -1) {
  114. this.dict.nation = res.data;
  115. }
  116. });
  117. //籍惯 ,出生地
  118. getapi("/api/app/birth-place/in-filter").then((res) => {
  119. if (res.code == 1) {
  120. this.dict.birthPlace = res.data;
  121. }
  122. });
  123. //套餐
  124. postapi("/api/app/medicalpackage/GetBasicList", {}).then((res) => {
  125. if (res.code == 1) {
  126. this.dict.medicalPackage = res.data;
  127. }
  128. });
  129. //分组,所有分组,不限单位,不限次数
  130. getapi("/api/app/customerorggroup/getlistinfilter").then((res) => {
  131. if (res.code > -1) {
  132. this.dict.customerOrgGroupAll = res.data;
  133. }
  134. });
  135. //支付方式
  136. getapi("/api/app/pay-mode").then((res) => {
  137. if (res.code == 1) {
  138. this.dict.payMode = res.data;
  139. }
  140. });
  141. //项目类别 树结构
  142. // getapi("/api/app/item-type/by-code-all").then((res) => {
  143. // if (res.code != -1) {
  144. // this.dict.itemTypeTree = res.data;
  145. // tcdate(this.dict.itemTypeTree);
  146. // }
  147. // });
  148. // postapi("/api/app/asbitem/GetBasicList",{isFilterActive:'Y'}).then((res) => {
  149. // if (res.code != -1) {
  150. // this.dict.asbItemAll = res.data;
  151. // }
  152. // });
  153. console.log("dict", this.dict);
  154. },
  155. },
  156. //监听事件()
  157. watch: {
  158. //1级单位值改变,分组改变
  159. "patientRegister.query.CustomerOrgParentId"(newVal, oldVal) {
  160. console.log(
  161. "watch patientRegister.query.CustomerOrgParentId newVal:",
  162. newVal,
  163. "oldVal:",
  164. oldVal
  165. );
  166. if (newVal != oldVal && newVal !== this.dict.personOrgId) {
  167. this.getCustomerOrgGroup(newVal);
  168. }
  169. },
  170. },
  171. };
  172. </script>
  173. <style scoped>
  174. @import '../../assets/css/global_button.css';
  175. @import '../../assets/css/global_dialog.css';
  176. @import '../../assets/css/global_form.css';
  177. @import '../../assets/css/global_input.css';
  178. @import '../../assets/css/global_table.css';
  179. @import '../../assets/css/global.css';
  180. .box {
  181. display: flex;
  182. }
  183. </style>