details.vue 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. <!-- 物料申请单——详情 -->
  2. <template>
  3. <el-card class="request-details">
  4. 1111111111
  5. <el-row type="flex" justify="space-between">
  6. <el-col :span="6">
  7. <el-button size="small" @click="handleBack">返回</el-button>
  8. </el-col>
  9. <el-col :span="6" style="text-align: right;">
  10. <!-- 附件管理 -->
  11. <el-button-group>
  12. <el-button size="small" icon="el-icon-paperclip"></el-button>
  13. </el-button-group>
  14. <!-- 切换 -->
  15. <el-button-group>
  16. <el-button size="small" icon="el-icon-d-arrow-left"></el-button>
  17. <el-button size="small" icon="el-icon-arrow-left"></el-button>
  18. <el-button size="small" icon="el-icon-arrow-right"></el-button>
  19. <el-button size="small" icon="el-icon-d-arrow-right"></el-button>
  20. </el-button-group>
  21. </el-col>
  22. </el-row>
  23. <div class="rd-content">
  24. <dr-tabs :tabList="detailsTabs">
  25. <template #tabContent>11111</template>
  26. </dr-tabs>
  27. </div>
  28. </el-card>
  29. </template>
  30. <script>
  31. import drTabs from '../components/dr-tabs.vue';
  32. // import detailsTabs from '../config/detailsTabs';
  33. export default {
  34. name: 'material-details',
  35. data() {
  36. return {
  37. detailsTabs: [
  38. {
  39. label: '基本信息',
  40. code: 'material',
  41. isShow: true,
  42. },
  43. {
  44. label: '医药行业',
  45. code: 'material_medcine',
  46. isShow: true,
  47. },
  48. ]
  49. }
  50. },
  51. components: {
  52. drTabs
  53. },
  54. methods: {
  55. // 返回
  56. handleBack() {
  57. this.$emit("actionBar", "requestList")
  58. }
  59. }
  60. }
  61. </script>
  62. <style lang="scss">
  63. .request-details {
  64. height: calc(100vh - 158px);
  65. box-sizing: border-box;
  66. .rd-content {
  67. margin-top: 12px;
  68. }
  69. }
  70. </style>