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

3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
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 class="elcard" style="border-radius: 15px">
  4. <div class="publiccss">体检人员签到</div>
  5. <div style="display: flex">
  6. <!-- 单位树组件 -->
  7. <div :style="'overflow: scroll;border: 1px solid;width:200px; height:' +
  8. (window.pageHeight < 600 ? 410 : window.pageHeight - 190) +
  9. 'px;'
  10. ">
  11. <CustomerOrgTreeAll />
  12. </div>
  13. <div :style="'display:block;width:' +
  14. (window.pageWidth - 200 - 80) +
  15. 'px;height:' +
  16. (window.pageHeight < 600 ? 410 : window.pageHeight - 190) +
  17. 'px;' +
  18. (window.pageHeight < 600 ? 'overflow-y: scroll;' : '')
  19. ">
  20. <!-- 查询条件 -->
  21. <PatientRegisterQuery />
  22. <!-- 人员列表信息 -->
  23. <PatientRegisterSignList />
  24. </div>
  25. </div>
  26. </el-card>
  27. </div>
  28. </template>
  29. <script>
  30. import { mapState, mapActions } from "vuex";
  31. import { getapi, postapi, putapi, deletapi } from "@/api/api";
  32. import { tcdate } from "../../utlis/proFunc";
  33. import CustomerOrgTreeAll from "../../components/patientRegister/customerOrgTreeAll.vue";
  34. import PatientRegisterQuery from "../../components/patientRegister/patientRegisterQuery.vue";
  35. import PatientRegisterSignList from "../../components/patientRegister/PatientRegisterSignList.vue";
  36. export default {
  37. components: {
  38. CustomerOrgTreeAll,
  39. PatientRegisterQuery,
  40. PatientRegisterSignList,
  41. },
  42. data() {
  43. return {
  44. tabChoosed: "1",
  45. };
  46. },
  47. created() {
  48. this.resize();
  49. },
  50. //挂载完成
  51. mounted() {
  52. this.dictInit();
  53. },
  54. computed: {
  55. ...mapState(["window","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.items;
  91. }
  92. });
  93. //人员类别
  94. getapi("/api/app/personnel-type/in-filter").then((res) => {
  95. if (res.code == 1) {
  96. this.dict.personnelType = res.data.items;
  97. }
  98. });
  99. //婚姻状况
  100. getapi("/api/app/marital-statuses").then((res) => {
  101. if (res.code == 1) {
  102. this.dict.maritalStatus = res.data.items;
  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.items;
  109. }
  110. });
  111. //民族
  112. getapi("/api/app/nation/in-filter").then((res) => {
  113. if (res.code == 1) {
  114. this.dict.nation = res.data.items;
  115. }
  116. });
  117. //籍惯 ,出生地
  118. getapi("/api/app/birth-place/in-filter").then((res) => {
  119. if (res.code == 1) {
  120. this.dict.birthPlace = res.data.items;
  121. }
  122. });
  123. //套餐
  124. getapi("/api/app/medical-package/in-filter").then((res) => {
  125. if (res.code == 1) {
  126. this.dict.medicalPackage = res.data.items;
  127. }
  128. });
  129. //分组,所有分组,不限单位,不限次数
  130. getapi("/api/app/customer-org-group").then((res) => {
  131. if (res.code == 1) {
  132. this.dict.customerOrgGroupAll = res.data.items;
  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. getapi("/api/app/asbitem/in-filter?Filter").then((res) => {
  149. if (res.code == 1) {
  150. this.dict.asbItemAll = res.data.items;
  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. </style>