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.

213 lines
5.7 KiB

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
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
  1. <template>
  2. <div style="display: flex;">
  3. <table width="100%">
  4. <tr>
  5. <td width="90%">
  6. <PatientRegisterBase/>
  7. </td>
  8. <td rowspan="2" width="10%">
  9. <ButtonList/>
  10. </td>
  11. </tr>
  12. <tr height="700px">
  13. <td width="90%" style="valign:top;">
  14. <el-tabs style="margin-left: 10px" v-model="tabChoosed">
  15. <el-tab-pane label="综述建议" name="1">
  16. <div>
  17. <SumSug/>
  18. <SumPREdit/>
  19. </div>
  20. </el-tab-pane>
  21. <el-tab-pane label="明细结果" name="2">
  22. <CheckDetails/>
  23. </el-tab-pane>
  24. <el-tab-pane label="危急值" name="3">
  25. </el-tab-pane>
  26. <el-tab-pane label="项目对比" name="4">
  27. <SumItemsType/>
  28. </el-tab-pane>
  29. <el-tab-pane label="横向对比" name="5">
  30. <SumItems/>
  31. </el-tab-pane>
  32. <el-tab-pane label="历次综述" name="6">
  33. <SumHistory/>
  34. </el-tab-pane>
  35. </el-tabs>
  36. </td>
  37. </tr>
  38. </table>
  39. </div>
  40. </template>
  41. <script>
  42. import { mapState, mapActions } from "vuex";
  43. import { getapi, postapi, putapi, deletapi } from "@/api/api";
  44. import { tcdate } from "../../utlis/proFunc";
  45. import PatientRegisterBase from "../../components/doctorCheck/PatientRegisterBase.vue";
  46. import ButtonList from "../../components/sumDoctorCheck/ButtonList.vue";
  47. import SumSug from "../../components/sumDoctorCheck/SumSug.vue";
  48. import SumPREdit from "../../components/sumDoctorCheck/SumPREdit.vue";
  49. import CheckDetails from "../../components/sumDoctorCheck/CheckDetails.vue";
  50. import SumItemsType from "../../components/sumDoctorCheck/SumItemsType.vue";
  51. import SumItems from "../../components/sumDoctorCheck/SumItems.vue";
  52. import SumHistory from "../../components/sumDoctorCheck/SumHistory.vue";
  53. export default {
  54. components: {
  55. PatientRegisterBase,
  56. ButtonList,
  57. SumSug,
  58. SumPREdit,
  59. CheckDetails,
  60. SumItemsType,
  61. SumItems,
  62. SumHistory,
  63. },
  64. data() {
  65. return {
  66. tabChoosed: "1",
  67. };
  68. },
  69. created() {},
  70. //挂载完成
  71. mounted() {
  72. this.dictInit();
  73. },
  74. computed: {
  75. ...mapState(["dict", "patientRegister", "customerOrg"]),
  76. },
  77. methods: {
  78. ...mapActions(["getCustomerOrgGroup"]),
  79. //数据初始化
  80. dictInit() {
  81. //性别
  82. getapi("/api/app/sex").then((res) => {
  83. if (res.code == 1) {
  84. this.dict.sex = res.data;
  85. }
  86. });
  87. //体检中心
  88. getapi("/api/app/organization-units/organization-unit-by-is-peis").then(
  89. (res) => {
  90. if (res.code == 1) {
  91. this.dict.organization = res.data;
  92. }
  93. }
  94. );
  95. //体检单位
  96. getapi("/api/app/customer-org/in-filter").then((res) => {
  97. if (res.code == 1) {
  98. this.dict.customerOrg = res.data.items;
  99. }
  100. });
  101. //体检类别
  102. getapi("/api/app/medical-type/in-filter").then((res) => {
  103. if (res.code == 1) {
  104. this.dict.medicalType = res.data.items;
  105. }
  106. });
  107. //人员类别
  108. getapi("/api/app/personnel-type/in-filter").then((res) => {
  109. if (res.code == 1) {
  110. this.dict.personnelType = res.data.items;
  111. }
  112. });
  113. //婚姻状况
  114. getapi("/api/app/marital-statuses").then((res) => {
  115. if (res.code == 1) {
  116. this.dict.maritalStatus = res.data.items;
  117. }
  118. });
  119. //性激素期
  120. getapi("/api/app/sex-hormone-term/in-filter").then((res) => {
  121. if (res.code == 1) {
  122. this.dict.sexHormoneTerm = res.data.items;
  123. }
  124. });
  125. //民族
  126. getapi("/api/app/nation/in-filter").then((res) => {
  127. if (res.code == 1) {
  128. this.dict.nation = res.data.items;
  129. }
  130. });
  131. //籍惯 ,出生地
  132. getapi("/api/app/birth-place/in-filter").then((res) => {
  133. if (res.code == 1) {
  134. this.dict.birthPlace = res.data.items;
  135. }
  136. });
  137. //套餐
  138. getapi("/api/app/medical-package/in-filter").then((res) => {
  139. if (res.code == 1) {
  140. this.dict.medicalPackage = res.data.items;
  141. }
  142. });
  143. //分组,所有分组,不限单位,不限次数
  144. getapi("/api/app/customer-org-group").then((res) => {
  145. if (res.code == 1) {
  146. this.dict.customerOrgGroupAll = res.data.items;
  147. }
  148. });
  149. //支付方式
  150. getapi("/api/app/pay-mode").then((res) => {
  151. if (res.code == 1) {
  152. this.dict.payMode = res.data;
  153. }
  154. });
  155. //体检类别 树结构
  156. getapi("/api/app/item-type/by-code-all").then((res) => {
  157. if (res.code == 1) {
  158. this.dict.itemTypeTree = res.data;
  159. tcdate(this.dict.itemTypeTree);
  160. }
  161. });
  162. getapi("/api/app/asbitem/in-filter?Filter").then((res) => {
  163. if (res.code == 1) {
  164. this.dict.asbItemAll = res.data.items;
  165. }
  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>