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.

202 lines
5.4 KiB

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