warehouseConfig.vue 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. <template>
  2. <div>
  3. <div class="basic-details-title border-none">
  4. <span class="border-span">仓储配置</span>
  5. </div>
  6. <el-descriptions title="" :column="4" size="medium" border>
  7. <el-descriptions-item>
  8. <template slot="label"> 启用库存预警</template>
  9. {{ dictType[idata.isWarn] }}
  10. </el-descriptions-item>
  11. <el-descriptions-item>
  12. <template slot="label">允许拆包</template>
  13. {{ dictType[idata.isUnpack] }}
  14. </el-descriptions-item>
  15. <el-descriptions-item>
  16. <template slot="label">安全库存</template>
  17. {{ idata.secureInventory }}
  18. </el-descriptions-item>
  19. <el-descriptions-item>
  20. <template slot="label">最小库存</template>
  21. {{ idata.minInventory }}
  22. </el-descriptions-item>
  23. <el-descriptions-item>
  24. <template slot="label"> 最大库存</template>
  25. {{ idata.maxInventory }}
  26. </el-descriptions-item>
  27. <el-descriptions-item>
  28. <template slot="label">盘点模式</template>
  29. {{ dictPd[idata.inventoryMode] }}
  30. </el-descriptions-item>
  31. <el-descriptions-item>
  32. <template slot="label">质保预警参考</template>
  33. <!-- <DictSelection
  34. dictName="质保预警参考"
  35. clearable
  36. v-model="idata.warrantyWarnRefer"
  37. >
  38. </DictSelection> -->
  39. {{ idata.warrantyWarnRefer }}
  40. </el-descriptions-item>
  41. <el-descriptions-item>
  42. <template slot="label">保质期</template>
  43. {{ idata.warrantyPeriod ? idata.warrantyPeriod + '/' : null
  44. }}{{ idata.warrantyPeriodUnit }}
  45. </el-descriptions-item>
  46. </el-descriptions>
  47. </div>
  48. </template>
  49. <script>
  50. import { getDetailInfo } from '@/api/material/list';
  51. import { getUserPage } from '@/api/system/organization';
  52. import { sysDict } from '@/utils/sys';
  53. export default {
  54. data() {
  55. return {
  56. dictType: {
  57. 1: '是',
  58. 0: '否'
  59. },
  60. dictPd: {
  61. 1: '逐个盘点',
  62. 2: '批量盘点'
  63. },
  64. depInfo: {},
  65. idata: {}
  66. };
  67. },
  68. methods: {
  69. async getDetailInfoAugr(data) {
  70. this.idata = {
  71. ...data,
  72. warrantyPeriodUnit: await sysDict(
  73. '保质期单位',
  74. data.warrantyPeriodUnit
  75. ),
  76. warrantyWarnRefer: await sysDict(
  77. '质保预警参考',
  78. data.warrantyWarnRefer
  79. )
  80. };
  81. }
  82. }
  83. };
  84. </script>
  85. <style lang="scss" scoped>
  86. .baseinfo-container {
  87. background-color: #fff;
  88. padding: 0px 20px 20px;
  89. .content {
  90. padding: 0 20px;
  91. }
  92. .basic-details-title {
  93. font-size: 16px;
  94. margin: 15px 0;
  95. }
  96. .upload-container {
  97. display: flex;
  98. .img-box {
  99. width: 280px;
  100. height: 342px;
  101. border: 1px solid rgba(215, 215, 215, 1);
  102. display: flex;
  103. justify-content: center;
  104. align-items: center;
  105. img {
  106. max-width: 100%;
  107. }
  108. }
  109. .file-list {
  110. margin-left: 50px;
  111. flex: 1;
  112. display: flex;
  113. justify-content: space-between;
  114. flex-wrap: wrap;
  115. justify-items: baseline;
  116. align-content: flex-start;
  117. .file-box {
  118. width: 30%;
  119. margin-bottom: 20px;
  120. height: 57px;
  121. text-align: center;
  122. line-height: 55px;
  123. border: 1px solid #1890ff;
  124. color: #1890ff;
  125. cursor: pointer;
  126. &.disabled {
  127. cursor: not-allowed;
  128. border-color: rgba(215, 215, 215, 1);
  129. color: rgba(215, 215, 215, 1);
  130. }
  131. }
  132. }
  133. }
  134. }
  135. </style>