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.

209 lines
5.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
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
3 years ago
3 years ago
3 years ago
3 years ago
  1. <template>
  2. <div>
  3. <el-card style="display: block; ">
  4. <div style="display: flex;">
  5. <div :style="'width:' + (window.pageWidth - 120 - 70) + 'px;'">
  6. <div>
  7. <PatientRegisterBase/>
  8. </div>
  9. <div style="display: flex;">
  10. <div style="width: 200px;">
  11. <RegisterCheckList/>
  12. </div>
  13. <div>
  14. <div :style="'margin-left: 2px;width:' + (window.pageWidth - 200 - 120 - 70) + 'px;'"><CheckItemList/></div>
  15. <div :style="'margin-top: 2px;margin-left: 2px;width:' + (window.pageWidth - 200 - 120 - 70) + 'px;'"><CheckSumSug/></div>
  16. <div :style="'margin-top: 2px;width:' + (window.pageWidth - 200 - 120 - 70) + 'px;'"><RegisterCheckEdit/></div>
  17. </div>
  18. </div>
  19. </div>
  20. <div style="width:120px;">
  21. <ButtonList/>
  22. </div>
  23. </div>
  24. </el-card>
  25. </div>
  26. </template>
  27. <script>
  28. import { mapState } from "vuex";
  29. import { getapi, postapi, putapi, deletapi } from "@/api/api";
  30. import { tcdate } from "../../utlis/proFunc";
  31. import PatientRegisterBase from "../../components/doctorCheck/PatientRegisterBase.vue";
  32. import ButtonList from "../../components/doctorCheck/ButtonList.vue";
  33. import RegisterCheckList from "../../components/doctorCheck/RegisterCheckList.vue";
  34. import CheckItemList from "../../components/doctorCheck/CheckItemList.vue";
  35. import CheckSumSug from "../../components/doctorCheck/CheckSumSug.vue";
  36. import RegisterCheckEdit from "../../components/doctorCheck/RegisterCheckEdit.vue";
  37. export default {
  38. components: {
  39. RegisterCheckList,
  40. PatientRegisterBase,
  41. ButtonList,
  42. CheckItemList,
  43. CheckSumSug,
  44. RegisterCheckEdit
  45. },
  46. data() {
  47. return {
  48. };
  49. },
  50. created() {},
  51. //挂载完成
  52. mounted() {
  53. this.dictInit();
  54. },
  55. computed: {
  56. ...mapState(["window","dict", "patientRegister", "customerOrg"]),
  57. },
  58. methods: {
  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. //所有组合项目
  149. getapi("/api/app/asbitem/in-filter?Filter").then((res) => {
  150. if (res.code == 1) {
  151. this.dict.asbItemAll = res.data.items;
  152. }
  153. });
  154. //获取体检单位列表树信息
  155. getapi("/api/app/customer-org/by-code-all").then((res) => {
  156. //customerOrgTree = res.data;
  157. console.log("res.data", res.data);
  158. this.patientRegister.customerOrgTreeAll = res.data;
  159. tcdate(this.patientRegister.customerOrgTreeAll)
  160. });
  161. console.log("dict", this.dict);
  162. },
  163. },
  164. //监听事件()
  165. watch: {
  166. // //1级单位值改变,分组改变
  167. // "patientRegister.query.CustomerOrgParentId"(newVal, oldVal) {
  168. // console.log(
  169. // "watch patientRegister.query.CustomerOrgParentId newVal:",
  170. // newVal,
  171. // " oldVal:",
  172. // oldVal
  173. // );
  174. // if (newVal != oldVal && newVal !== this.dict.personOrgId) {
  175. // this.getCustomerOrgGroup(newVal);
  176. // }
  177. // },
  178. },
  179. };
  180. </script>
  181. <style scoped>
  182. </style>