basicInfoView.vue 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  1. <template>
  2. <!-- 基本信息 -->
  3. <div class="baseinfo-container" style="padding: 0">
  4. <div class="basic-details-title border-none">
  5. <span class="border-span">基本信息</span>
  6. </div>
  7. <el-descriptions
  8. :label-style="labelStyle"
  9. :contentStyle="contentStyle"
  10. title=""
  11. :column="3"
  12. size="medium"
  13. border
  14. >
  15. <el-descriptions-item>
  16. <template slot="label"> 分类 </template>
  17. {{ idata.categoryLevelPath }}
  18. </el-descriptions-item>
  19. <el-descriptions-item>
  20. <template slot="label"> 编码 </template>
  21. {{ idata.code }}
  22. </el-descriptions-item>
  23. <el-descriptions-item>
  24. <template slot="label"> 名称 </template>
  25. {{ idata.name }}
  26. </el-descriptions-item>
  27. <el-descriptions-item>
  28. <template slot="label"> 牌号</template>
  29. {{ idata.brandNum }}
  30. </el-descriptions-item>
  31. <el-descriptions-item>
  32. <template slot="label"> 型号 </template>
  33. {{ idata.modelType }}
  34. </el-descriptions-item>
  35. <el-descriptions-item>
  36. <template slot="label"> 规格 </template>
  37. {{ idata.specification }}
  38. </el-descriptions-item>
  39. <el-descriptions-item>
  40. <template slot="label"> 计量单位 </template>
  41. {{ idata.measuringUnit }}
  42. </el-descriptions-item>
  43. <el-descriptions-item>
  44. <template slot="label"> 重量单位 </template>
  45. {{ idata.weightUnit }}
  46. </el-descriptions-item>
  47. <el-descriptions-item>
  48. <template slot="label"> 包装单位 </template>
  49. {{ idata.packingUnit }}
  50. </el-descriptions-item>
  51. <el-descriptions-item>
  52. <template slot="label"> 体积 </template>
  53. {{ idata.volume ? idata.volume + '/' : null }}{{ idata.volumeUnit }}
  54. </el-descriptions-item>
  55. <el-descriptions-item>
  56. <template slot="label"> 毛重 </template>
  57. {{ idata.roughWeight }}
  58. </el-descriptions-item>
  59. <el-descriptions-item>
  60. <template slot="label">净重 </template>
  61. {{ idata.netWeight }}
  62. </el-descriptions-item>
  63. <el-descriptions-item>
  64. <template slot="label">所属部门 </template>
  65. {{ idata.groupName }}
  66. </el-descriptions-item>
  67. <el-descriptions-item>
  68. <template slot="label">负责人 </template>
  69. {{ idata.chargePerson }}
  70. </el-descriptions-item>
  71. </el-descriptions>
  72. </div>
  73. </template>
  74. <script>
  75. import { getUserPage } from '@/api/system/organization';
  76. export default {
  77. data() {
  78. return {
  79. labelStyle: {
  80. width: '200px'
  81. },
  82. contentStyle: {
  83. width: '400px'
  84. },
  85. depInfo: {},
  86. idata: {}
  87. };
  88. },
  89. methods: {
  90. async getDetailInfoAugr(data) {
  91. // const dep = await this.getDepUser(data.deptLeaderId, data.deptId);
  92. // this.idata = { ...data, groupName: dep.groupName, name: dep.name };
  93. this.idata = data;
  94. },
  95. async getDepUser(id, depId) {
  96. const res = await getUserPage({
  97. pageNum: 1,
  98. size: -1,
  99. executeGroupId: id ? id : ''
  100. });
  101. const list = res.list;
  102. for (const key in list) {
  103. if (list[key].id == depId) {
  104. return list[key];
  105. } else {
  106. return {};
  107. }
  108. }
  109. }
  110. }
  111. };
  112. </script>
  113. <style lang="scss" scoped>
  114. .baseinfo-container {
  115. background-color: #fff;
  116. padding: 0px 20px 20px;
  117. .content {
  118. padding: 0 20px;
  119. }
  120. .basic-details-title {
  121. font-size: 16px;
  122. margin: 15px 0;
  123. }
  124. .upload-container {
  125. display: flex;
  126. .img-box {
  127. width: 280px;
  128. height: 342px;
  129. border: 1px solid rgba(215, 215, 215, 1);
  130. display: flex;
  131. justify-content: center;
  132. align-items: center;
  133. img {
  134. max-width: 100%;
  135. }
  136. }
  137. .file-list {
  138. margin-left: 50px;
  139. flex: 1;
  140. display: flex;
  141. justify-content: space-between;
  142. flex-wrap: wrap;
  143. justify-items: baseline;
  144. align-content: flex-start;
  145. .file-box {
  146. width: 30%;
  147. margin-bottom: 20px;
  148. height: 57px;
  149. text-align: center;
  150. line-height: 55px;
  151. border: 1px solid #1890ff;
  152. color: #1890ff;
  153. cursor: pointer;
  154. &.disabled {
  155. cursor: not-allowed;
  156. border-color: rgba(215, 215, 215, 1);
  157. color: rgba(215, 215, 215, 1);
  158. }
  159. }
  160. }
  161. }
  162. }
  163. </style>