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.

186 lines
4.6 KiB

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