plan.vue 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. <template>
  2. <div>
  3. <div class="basic-details-title border-none">
  4. <span class="border-span">计划配置</span>
  5. </div>
  6. <el-descriptions
  7. :label-style="labelStyle"
  8. :contentStyle="contentStyle"
  9. title=""
  10. :column="4"
  11. size="medium"
  12. border
  13. >
  14. <el-descriptions-item>
  15. <template slot="label">固定提前期</template>
  16. {{ idata.fixLeadTime }}
  17. </el-descriptions-item>
  18. <el-descriptions-item>
  19. <template slot="label">变动提前期</template>
  20. {{ idata.changeLeadTime }}
  21. </el-descriptions-item>
  22. <el-descriptions-item>
  23. <template slot="label">检验提前期</template>
  24. {{ idata.checkLeadTime }}
  25. </el-descriptions-item>
  26. <el-descriptions-item>
  27. <template slot="label">累计提前期</template>
  28. {{ idata.cumLeadTime }}
  29. </el-descriptions-item>
  30. <el-descriptions-item>
  31. <template slot="label">提前期单位</template>
  32. {{ idata.unit }}
  33. </el-descriptions-item>
  34. <el-descriptions-item>
  35. <template slot="label">订货间隔期</template>
  36. {{ idata.orderIntervalTime ? idata.orderIntervalTime + '/' : null
  37. }}{{ idata.orderIntervalUnit }}
  38. </el-descriptions-item>
  39. </el-descriptions>
  40. </div>
  41. </template>
  42. <script>
  43. import { getDetailInfo } from '@/api/material/list';
  44. import { getUserPage } from '@/api/system/organization';
  45. import { sysDict } from '@/utils/sys';
  46. export default {
  47. data() {
  48. return {
  49. labelStyle: {
  50. width: '200px'
  51. },
  52. contentStyle: {
  53. width: '400px'
  54. },
  55. idata: {}
  56. };
  57. },
  58. methods: {
  59. async getDetailInfoAugr(data) {
  60. this.idata = {
  61. ...data,
  62. orderIntervalUnit: await sysDict(
  63. '提前期单位',
  64. data.orderIntervalUnit
  65. ),
  66. unit: await sysDict('提前期单位', data.unit)
  67. };
  68. }
  69. }
  70. };
  71. </script>
  72. <style lang="scss" scoped>
  73. .baseinfo-container {
  74. background-color: #fff;
  75. padding: 0px 20px 20px;
  76. .content {
  77. padding: 0 20px;
  78. }
  79. .basic-details-title {
  80. font-size: 16px;
  81. margin: 15px 0;
  82. }
  83. .upload-container {
  84. display: flex;
  85. .img-box {
  86. width: 280px;
  87. height: 342px;
  88. border: 1px solid rgba(215, 215, 215, 1);
  89. display: flex;
  90. justify-content: center;
  91. align-items: center;
  92. img {
  93. max-width: 100%;
  94. }
  95. }
  96. .file-list {
  97. margin-left: 50px;
  98. flex: 1;
  99. display: flex;
  100. justify-content: space-between;
  101. flex-wrap: wrap;
  102. justify-items: baseline;
  103. align-content: flex-start;
  104. .file-box {
  105. width: 30%;
  106. margin-bottom: 20px;
  107. height: 57px;
  108. text-align: center;
  109. line-height: 55px;
  110. border: 1px solid #1890ff;
  111. color: #1890ff;
  112. cursor: pointer;
  113. &.disabled {
  114. cursor: not-allowed;
  115. border-color: rgba(215, 215, 215, 1);
  116. color: rgba(215, 215, 215, 1);
  117. }
  118. }
  119. }
  120. }
  121. }
  122. </style>