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.

79 lines
2.3 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
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>
  3. <el-card class="elcard">
  4. <div slot="header">
  5. <span>体检单位设置</span>
  6. </div>
  7. <div style="display: flex;">
  8. <!-- 单位树组件 -->
  9. <div :style="'border: 0px solid #888;width:200px; height:' +
  10. (window.pageHeight < 600 ? 470 : window.pageHeight - 130) +
  11. 'px;'
  12. ">
  13. <CustomerOrgTree />
  14. </div>
  15. <div :style="'display:block;width:' +
  16. (window.pageWidth - 200 - 20) +
  17. 'px;height:' +
  18. (window.pageHeight < 600 ? 470 : window.pageHeight - 130) +
  19. 'px;' +
  20. (window.pageHeight < 600 ? 'overflow-y: scroll;' : '')
  21. ">
  22. <!-- 单位详情 录入与编辑 -->
  23. <div style="height:270px;">
  24. <CustomerOrgEdit :id="customerOrg.customerOrgRd.id" />
  25. </div>
  26. <!-- 体检次数 联系人 -->
  27. <el-tabs :style="'margin-left: 10px;width:' +
  28. (window.pageWidth - 200 - 30) +
  29. 'px;height:' +
  30. (window.pageHeight < 600 ? 202 : window.pageHeight - 398) +
  31. 'px;'
  32. " v-model="tabChoosed">
  33. <!-- 体检次数 -->
  34. <el-tab-pane label="体检次数" name="1">
  35. <CustomerOrgRegister />
  36. </el-tab-pane>
  37. <!-- 联系人 -->
  38. <el-tab-pane label="联系人" name="2">
  39. <ContactPerson :customerOrgId="customerOrg.customerOrgRd.id"/>
  40. </el-tab-pane>
  41. </el-tabs>
  42. </div>
  43. </div>
  44. </el-card>
  45. </div>
  46. </template>
  47. <script>
  48. import { mapState } from "vuex";
  49. import CustomerOrgTree from "../../components/customerOrg/customerOrgTree.vue";
  50. import CustomerOrgEdit from "../../components/customerOrg/customerOrgEdit.vue";
  51. import CustomerOrgRegister from "../../components/customerOrg/customerOrgRegister.vue";
  52. import ContactPerson from "../../components/customerOrg/ContactPerson.vue";
  53. export default {
  54. components: {
  55. CustomerOrgTree,
  56. CustomerOrgEdit,
  57. CustomerOrgRegister,
  58. ContactPerson,
  59. },
  60. data() {
  61. return {
  62. tabChoosed: "1",
  63. };
  64. },
  65. created() { },
  66. //挂载完成
  67. mounted() { },
  68. computed: {
  69. ...mapState(["customerOrg", "window"]),
  70. },
  71. methods: {},
  72. };
  73. </script>
  74. <style scoped>
  75. @import "../../assets/css/global_input.css";
  76. </style>