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.

220 lines
5.6 KiB

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