materialsDistributionView.vue 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. <template>
  2. <div class="app-container p-2">
  3. <el-row :gutter="20">
  4. <el-col :span="20">
  5. <h2>详情</h2>
  6. <div class="report-info">
  7. <p class="report-amount">调度目的:应对高州泰利台风前置</p>
  8. <p class="approval-status">审批情况:{{ approvalStatus }}</p>
  9. </div>
  10. </el-col>
  11. <el-col :lg="24" :xs="24">
  12. <el-table :data="tableData" border height="400">
  13. <el-table-column label="序号" prop="seqNo" width="80">
  14. <template #default="{ $index }">
  15. <span>{{ $index + 1 }}</span>
  16. </template>
  17. </el-table-column>
  18. <el-table-column label="物资类型" prop="materialType"></el-table-column>
  19. <el-table-column label="物资名称" prop="materialName"></el-table-column>
  20. <el-table-column label="物资数量(件)" prop="quantity"></el-table-column>
  21. <el-table-column label="物资用途" prop="purpose"></el-table-column>
  22. </el-table>
  23. </el-col>
  24. <div class="common-dialog-footer" style="width: 100%; justify-content: center; display: flex">
  25. <el-row :span="24" :gutter="10" class="mb8">
  26. <el-col :span="1.5">
  27. <el-button type="danger" @click="handleReturn">返回</el-button>
  28. </el-col>
  29. </el-row>
  30. </div>
  31. </el-row>
  32. </div>
  33. </template>
  34. <script setup lang="ts">
  35. import { ref } from 'vue';
  36. import { ElTable, ElButton, ElCol, ElRow, ElTableColumn } from 'element-plus';
  37. import { defineProps, defineEmits } from 'vue';
  38. const props = defineProps({
  39. eventId: String
  40. });
  41. const emits = defineEmits(['close']);
  42. // 静态数据
  43. const tableData = ref([
  44. { materialType: '三防物资', materialName: '雨衣', quantity: '100', purpose: '高州泰利台风前置' },
  45. { materialType: '三防物资', materialName: '水鞋', quantity: '10', purpose: '高州泰利台风前置' },
  46. { materialType: '三防物资', materialName: '雨伞', quantity: '50', purpose: '高州泰利台风前置' }
  47. ]);
  48. const approvalStatus = ref('待审批');
  49. const handleReturn = () => {
  50. emits('close');
  51. };
  52. </script>
  53. <style scoped>
  54. .app-container {
  55. font-family: Avenir, Helvetica, Arial, sans-serif;
  56. -webkit-font-smoothing: antialiased;
  57. -moz-osx-font-smoothing: grayscale;
  58. text-align: center;
  59. color: #2c3e50;
  60. }
  61. .report-info {
  62. display: flex;
  63. justify-content: space-between;
  64. align-items: center;
  65. margin-top: 10px;
  66. }
  67. .report-amount,
  68. .approval-status {
  69. font-size: 14px;
  70. color: #606266;
  71. }
  72. </style>