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.

218 lines
5.4 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
  1. <template>
  2. <div style="display: flex;">
  3. <table width="100%">
  4. <tr>
  5. <td colspan="2" width="90%">
  6. <PatientRegisterBase/>
  7. </td>
  8. <td rowspan="4" width="10%">
  9. <ButtonList/>
  10. </td>
  11. </tr>
  12. <tr>
  13. <td rowspan="3" width="15%" >
  14. <RegisterCheckList/>
  15. </td>
  16. <td width="75%">
  17. <CheckItemList/>
  18. </td>
  19. </tr>
  20. <tr>
  21. <td width="75%">
  22. <CheckSumSug/>
  23. </td>
  24. </tr>
  25. <tr>
  26. <td width="75%">
  27. <RegisterCheckEdit/>
  28. </td>
  29. </tr>
  30. </table>
  31. </div>
  32. </template>
  33. <script>
  34. import { mapState } from "vuex";
  35. import { getapi, postapi, putapi, deletapi } from "@/api/api";
  36. import { tcdate } from "../../utlis/proFunc";
  37. import PatientRegisterBase from "../../components/doctorCheck/PatientRegisterBase.vue";
  38. import ButtonList from "../../components/doctorCheck/ButtonList.vue";
  39. import RegisterCheckList from "../../components/doctorCheck/RegisterCheckList.vue";
  40. import CheckItemList from "../../components/doctorCheck/CheckItemList.vue";
  41. import CheckSumSug from "../../components/doctorCheck/CheckSumSug.vue";
  42. import RegisterCheckEdit from "../../components/doctorCheck/RegisterCheckEdit.vue";
  43. export default {
  44. components: {
  45. RegisterCheckList,
  46. PatientRegisterBase,
  47. ButtonList,
  48. CheckItemList,
  49. CheckSumSug,
  50. RegisterCheckEdit
  51. },
  52. data() {
  53. return {
  54. };
  55. },
  56. created() {},
  57. //挂载完成
  58. mounted() {
  59. this.dictInit();
  60. },
  61. computed: {
  62. ...mapState(["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.items;
  97. }
  98. });
  99. //人员类别
  100. getapi("/api/app/personnel-type/in-filter").then((res) => {
  101. if (res.code == 1) {
  102. this.dict.personnelType = res.data.items;
  103. }
  104. });
  105. //婚姻状况
  106. getapi("/api/app/marital-statuses").then((res) => {
  107. if (res.code == 1) {
  108. this.dict.maritalStatus = res.data.items;
  109. }
  110. });
  111. //性激素期
  112. getapi("/api/app/sex-hormone-term/in-filter").then((res) => {
  113. if (res.code == 1) {
  114. this.dict.sexHormoneTerm = res.data.items;
  115. }
  116. });
  117. //民族
  118. getapi("/api/app/nation/in-filter").then((res) => {
  119. if (res.code == 1) {
  120. this.dict.nation = res.data.items;
  121. }
  122. });
  123. //籍惯 ,出生地
  124. getapi("/api/app/birth-place/in-filter").then((res) => {
  125. if (res.code == 1) {
  126. this.dict.birthPlace = res.data.items;
  127. }
  128. });
  129. //套餐
  130. getapi("/api/app/medical-package/in-filter").then((res) => {
  131. if (res.code == 1) {
  132. this.dict.medicalPackage = res.data.items;
  133. }
  134. });
  135. //分组,所有分组,不限单位,不限次数
  136. getapi("/api/app/customer-org-group").then((res) => {
  137. if (res.code == 1) {
  138. this.dict.customerOrgGroupAll = res.data.items;
  139. }
  140. });
  141. //支付方式
  142. getapi("/api/app/pay-mode").then((res) => {
  143. if (res.code == 1) {
  144. this.dict.payMode = res.data;
  145. }
  146. });
  147. //体检类别 树结构
  148. getapi("/api/app/item-type/by-code-all").then((res) => {
  149. if (res.code == 1) {
  150. this.dict.itemTypeTree = res.data;
  151. tcdate(this.dict.itemTypeTree);
  152. }
  153. });
  154. //所有组合项目
  155. getapi("/api/app/asbitem/in-filter?Filter").then((res) => {
  156. if (res.code == 1) {
  157. this.dict.asbItemAll = res.data.items;
  158. }
  159. });
  160. //获取体检单位列表树信息
  161. getapi("/api/app/customer-org/by-code-all").then((res) => {
  162. //customerOrgTree = res.data;
  163. console.log("res.data", res.data);
  164. this.patientRegister.customerOrgTreeAll = res.data;
  165. tcdate(this.patientRegister.customerOrgTreeAll)
  166. });
  167. console.log("dict", this.dict);
  168. },
  169. },
  170. //监听事件()
  171. watch: {
  172. // //1级单位值改变,分组改变
  173. // "patientRegister.query.CustomerOrgParentId"(newVal, oldVal) {
  174. // console.log(
  175. // "watch patientRegister.query.CustomerOrgParentId newVal:",
  176. // newVal,
  177. // " oldVal:",
  178. // oldVal
  179. // );
  180. // if (newVal != oldVal && newVal !== this.dict.personOrgId) {
  181. // this.getCustomerOrgGroup(newVal);
  182. // }
  183. // },
  184. },
  185. };
  186. </script>
  187. <style scoped>
  188. .box {
  189. display: flex;
  190. }
  191. </style>