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.

201 lines
5.0 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
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
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="middlebox">
  5. <div class="contenttitle">
  6. 体检登记 /
  7. <span class="contenttitleBold"
  8. >弃检登记</span
  9. >
  10. </div>
  11. </div>
  12. <div style=" width: 100%;margin-top:7px">
  13. <!-- 查询条件 -->
  14. <PatientRegisterQuery orgEnable="Y"/>
  15. <!-- 人员列表信息 -->
  16. <PatientRegisterRefuseList />
  17. </div>
  18. </div>
  19. </div>
  20. </template>
  21. <script>
  22. import { mapState, mapActions } from "vuex";
  23. import { getapi, postapi, putapi, deletapi } from "@/api/api";
  24. import { tcdate } from "../../utlis/proFunc";
  25. import PatientRegisterQuery from "../../components/patientRegister/patientRegisterQuery.vue";
  26. import PatientRegisterRefuseList from "../../components/patientRegister/PatientRegisterRefuseList.vue";
  27. export default {
  28. components: {
  29. PatientRegisterQuery,
  30. PatientRegisterRefuseList,
  31. },
  32. data() {
  33. return {
  34. tabChoosed: "1",
  35. };
  36. },
  37. created() {
  38. // console.log("this.$route.query", this.$route.query)
  39. if (this.$route.query.patient_register) {
  40. this.dataTransOpts.tableS.patient_register = this.$route.query.patient_register
  41. } else {
  42. this.dataTransOpts.tableS.patient_register = { id: '', patientRegisterNo: '' }
  43. }
  44. },
  45. //挂载完成
  46. mounted() {
  47. this.dictInit();
  48. },
  49. computed: {
  50. ...mapState(["window","dataTransOpts","dict", "patientRegister", "customerOrg"]),
  51. },
  52. methods: {
  53. ...mapActions(["getCustomerOrgGroup"]),
  54. //数据初始化
  55. dictInit() {
  56. //性别(仅档案用)
  57. getapi("/api/app/sex").then((res) => {
  58. if (res.code == 1) {
  59. this.dict.sex = res.data;
  60. }
  61. });
  62. //性别(查询)
  63. getapi("/api/app/for-sex").then((res) => {
  64. if (res.code == 1) {
  65. this.dict.forSex = res.data;
  66. }
  67. });
  68. //体检单位
  69. getapi("/api/app/customerorg/getbycodeall").then((res) => {
  70. this.patientRegister.customerOrgTreeAll = res.data;
  71. tcdate(this.patientRegister.customerOrgTreeAll)
  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;
  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. postapi("/api/app/CustomerOrgGroup/GetBasicList").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_card.css';
  175. </style>