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.

191 lines
4.7 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
  1. <template>
  2. <div class="box">
  3. <div style="width: 100%">
  4. <el-card>
  5. <div style="display: flex">
  6. <div style="margin-left: 10px; width: 100%">
  7. <!-- 查询条件 -->
  8. <PatientRegisterQuery orgEnable="Y"/>
  9. <!-- 人员列表信息 -->
  10. <PatientRegisterRefuseList />
  11. </div>
  12. </div>
  13. </el-card>
  14. </div>
  15. </div>
  16. </template>
  17. <script>
  18. import { mapState, mapActions } from "vuex";
  19. import { getapi, postapi, putapi, deletapi } from "@/api/api";
  20. import { tcdate } from "../../utlis/proFunc";
  21. import PatientRegisterQuery from "../../components/patientRegister/patientRegisterQuery.vue";
  22. import PatientRegisterRefuseList from "../../components/patientRegister/PatientRegisterRefuseList.vue";
  23. export default {
  24. components: {
  25. PatientRegisterQuery,
  26. PatientRegisterRefuseList,
  27. },
  28. data() {
  29. return {
  30. tabChoosed: "1",
  31. };
  32. },
  33. created() {},
  34. //挂载完成
  35. mounted() {
  36. this.dictInit();
  37. },
  38. computed: {
  39. ...mapState(["dict", "patientRegister", "customerOrg"]),
  40. },
  41. methods: {
  42. ...mapActions(["getCustomerOrgGroup"]),
  43. //数据初始化
  44. dictInit() {
  45. //性别(仅档案用)
  46. getapi("/api/app/sex").then((res) => {
  47. if (res.code == 1) {
  48. this.dict.sex = res.data;
  49. }
  50. });
  51. //性别(查询)
  52. getapi("/api/app/for-sex").then((res) => {
  53. if (res.code == 1) {
  54. this.dict.forSex = res.data;
  55. }
  56. });
  57. //体检单位
  58. getapi("/api/app/customer-org/by-code-all").then((res) => {
  59. this.patientRegister.customerOrgTreeAll = res.data;
  60. tcdate(this.patientRegister.customerOrgTreeAll)
  61. });
  62. //体检中心
  63. getapi("/api/app/organization-units/organization-unit-by-is-peis").then(
  64. (res) => {
  65. if (res.code == 1) {
  66. this.dict.organization = res.data;
  67. }
  68. }
  69. );
  70. //体检单位
  71. getapi("/api/app/customer-org/in-filter").then((res) => {
  72. if (res.code == 1) {
  73. this.dict.customerOrg = res.data.items;
  74. }
  75. });
  76. //体检类别
  77. getapi("/api/app/medical-type/in-filter").then((res) => {
  78. if (res.code == 1) {
  79. this.dict.medicalType = res.data.items;
  80. }
  81. });
  82. //人员类别
  83. getapi("/api/app/personnel-type/in-filter").then((res) => {
  84. if (res.code == 1) {
  85. this.dict.personnelType = res.data.items;
  86. }
  87. });
  88. //婚姻状况
  89. getapi("/api/app/marital-statuses").then((res) => {
  90. if (res.code == 1) {
  91. this.dict.maritalStatus = res.data.items;
  92. }
  93. });
  94. //性激素期
  95. getapi("/api/app/sex-hormone-term/in-filter").then((res) => {
  96. if (res.code == 1) {
  97. this.dict.sexHormoneTerm = res.data.items;
  98. }
  99. });
  100. //民族
  101. getapi("/api/app/nation/in-filter").then((res) => {
  102. if (res.code == 1) {
  103. this.dict.nation = res.data.items;
  104. }
  105. });
  106. //籍惯 ,出生地
  107. getapi("/api/app/birth-place/in-filter").then((res) => {
  108. if (res.code == 1) {
  109. this.dict.birthPlace = res.data.items;
  110. }
  111. });
  112. //套餐
  113. getapi("/api/app/medical-package/in-filter").then((res) => {
  114. if (res.code == 1) {
  115. this.dict.medicalPackage = res.data.items;
  116. }
  117. });
  118. //分组,所有分组,不限单位,不限次数
  119. getapi("/api/app/customer-org-group").then((res) => {
  120. if (res.code == 1) {
  121. this.dict.customerOrgGroupAll = res.data.items;
  122. }
  123. });
  124. //支付方式
  125. getapi("/api/app/pay-mode").then((res) => {
  126. if (res.code == 1) {
  127. this.dict.payMode = res.data;
  128. }
  129. });
  130. //体检类别 树结构
  131. getapi("/api/app/item-type/by-code-all").then((res) => {
  132. if (res.code == 1) {
  133. this.dict.itemTypeTree = res.data;
  134. tcdate(this.dict.itemTypeTree);
  135. }
  136. });
  137. getapi("/api/app/asbitem/in-filter?Filter").then((res) => {
  138. if (res.code == 1) {
  139. this.dict.asbItemAll = res.data.items;
  140. }
  141. });
  142. console.log("dict", this.dict);
  143. },
  144. },
  145. //监听事件()
  146. watch: {
  147. //1级单位值改变,分组改变
  148. "patientRegister.query.CustomerOrgParentId"(newVal, oldVal) {
  149. console.log(
  150. "watch patientRegister.query.CustomerOrgParentId newVal:",
  151. newVal,
  152. " oldVal:",
  153. oldVal
  154. );
  155. if (newVal != oldVal && newVal !== this.dict.personOrgId) {
  156. this.getCustomerOrgGroup(newVal);
  157. }
  158. },
  159. },
  160. };
  161. </script>
  162. <style scoped>
  163. .box {
  164. display: flex;
  165. }
  166. </style>