detailDialog.vue 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253
  1. <template>
  2. <div class="content-height p20">
  3. <div>
  4. <div class="content-detail mt40">
  5. <div class="basic-details">
  6. <HeaderTitle title="基本信息" size="16px"></HeaderTitle>
  7. </div>
  8. <div class="mt20">
  9. <el-form label-width="110px">
  10. <el-col :span="8">
  11. <el-form-item label="调拨名称">
  12. <span>{{ infoData.name }}</span>
  13. </el-form-item>
  14. </el-col>
  15. <el-col :span="8">
  16. <el-form-item label="调拨单号">
  17. <span>{{ infoData.id }}</span>
  18. </el-form-item>
  19. </el-col>
  20. <el-col :span="8">
  21. <el-form-item label="创建人">
  22. <span>{{ infoData.allotName }}</span>
  23. </el-form-item>
  24. </el-col>
  25. <el-col :span="8">
  26. <el-form-item label="创建时间">
  27. <span>{{ infoData.createTime }}</span>
  28. </el-form-item>
  29. </el-col>
  30. <el-col :span="8">
  31. <el-form-item label="调拨类型">
  32. <span>{{
  33. allocationType.filter((item) => item.code == infoData.type)[0]
  34. ?.label
  35. }}</span>
  36. </el-form-item>
  37. </el-col>
  38. <el-col :span="8">
  39. <el-form-item label="调出库">
  40. <span>{{ infoData.sourceWarehouse }}</span>
  41. </el-form-item>
  42. </el-col>
  43. <el-col :span="8">
  44. <el-form-item label="调入库">
  45. <span>{{ infoData.targetWarehouse }}</span>
  46. </el-form-item>
  47. </el-col>
  48. </el-form>
  49. </div>
  50. </div>
  51. <div class="content-detail mt20">
  52. <HeaderTitle title="调拨明细" size="16px"></HeaderTitle>
  53. <div class="mt20">
  54. <!-- <AssetsCell
  55. v-for="(item, index) in detailList"
  56. :key="index"
  57. :item="item"
  58. type="detail"
  59. /> -->
  60. <el-table
  61. ref="table"
  62. :data="detailList"
  63. tooltip-effect="dark"
  64. :max-height="500"
  65. border
  66. >
  67. <el-table-column label="序号" type="index" width="50">
  68. </el-table-column>
  69. <el-table-column
  70. label="物品编码"
  71. prop="categoryCode"
  72. :show-overflow-tooltip="true"
  73. ></el-table-column>
  74. <el-table-column
  75. label="物品名称"
  76. prop="categoryName"
  77. :show-overflow-tooltip="true"
  78. ></el-table-column>
  79. <el-table-column
  80. label="调出仓库"
  81. prop="warehouseName"
  82. :show-overflow-tooltip="true"
  83. >
  84. </el-table-column>
  85. <el-table-column
  86. label="调出库区"
  87. prop="areaName"
  88. :show-overflow-tooltip="true"
  89. >
  90. </el-table-column>
  91. <el-table-column
  92. label="调出货架"
  93. prop="goodsShelfName"
  94. :show-overflow-tooltip="true"
  95. >
  96. </el-table-column>
  97. <el-table-column
  98. label="调出货位"
  99. prop="goodsAllocationName"
  100. :show-overflow-tooltip="true"
  101. >
  102. </el-table-column>
  103. <el-table-column
  104. label="调入仓库"
  105. prop="targetWarehouseName"
  106. :show-overflow-tooltip="true"
  107. >
  108. </el-table-column>
  109. <el-table-column
  110. label="调入库区"
  111. prop="targetAreaName"
  112. :show-overflow-tooltip="true"
  113. >
  114. </el-table-column>
  115. <el-table-column
  116. label="调入货架"
  117. prop="targetGoodsShelfName"
  118. :show-overflow-tooltip="true"
  119. >
  120. </el-table-column>
  121. <el-table-column
  122. label="调入货位"
  123. prop="targetGoodsAllocationName"
  124. :show-overflow-tooltip="true"
  125. >
  126. </el-table-column>
  127. <el-table-column
  128. label="牌号"
  129. prop="brandNum"
  130. :show-overflow-tooltip="true"
  131. ></el-table-column>
  132. <el-table-column
  133. label="型号"
  134. prop="categoryModel"
  135. :show-overflow-tooltip="true"
  136. ></el-table-column>
  137. <el-table-column
  138. label="规格"
  139. prop="specification"
  140. :show-overflow-tooltip="true"
  141. ></el-table-column>
  142. <el-table-column
  143. label="包装编码"
  144. prop="packageNo"
  145. :show-overflow-tooltip="true"
  146. ></el-table-column>
  147. <el-table-column
  148. label="包装数量"
  149. prop="packingQuantity"
  150. :show-overflow-tooltip="true"
  151. ></el-table-column>
  152. <el-table-column
  153. label="单位"
  154. prop="packingUnit"
  155. :show-overflow-tooltip="true"
  156. ></el-table-column>
  157. <el-table-column
  158. label="计量数量"
  159. prop="measureQuantity"
  160. :show-overflow-tooltip="true"
  161. ></el-table-column>
  162. <el-table-column
  163. label="计量单位"
  164. prop="measureUnit"
  165. :show-overflow-tooltip="true"
  166. ></el-table-column>
  167. <el-table-column
  168. label="重量"
  169. prop="weight"
  170. :show-overflow-tooltip="true"
  171. >
  172. </el-table-column>
  173. <el-table-column
  174. label="重量单位"
  175. prop="weightUnit"
  176. :show-overflow-tooltip="true"
  177. >
  178. </el-table-column>
  179. </el-table>
  180. </div>
  181. </div>
  182. </div>
  183. </div>
  184. </template>
  185. <script>
  186. import storageApi from '@/api/warehouseManagement/index.js';
  187. import { allocationType } from '@/utils/dict/warehouse';
  188. export default {
  189. props: {
  190. businessId: {
  191. default: ''
  192. },
  193. taskDefinitionKey: {
  194. default: ''
  195. }
  196. },
  197. data() {
  198. return {
  199. allocationType,
  200. detailList: [],
  201. infoData: {}
  202. };
  203. },
  204. created() {
  205. console.log(this.taskDefinitionKey);
  206. console.log(this.allocationType);
  207. this._getDetail();
  208. },
  209. methods: {
  210. async _getDetail() {
  211. const res = await storageApi.getAllotDetailList({
  212. applyId: this.businessId
  213. });
  214. const data = await storageApi.getAllotDetail(this.businessId);
  215. this.infoData = data;
  216. console.log('this.infoData-------', this.infoData);
  217. // 库内调拨
  218. this.detailList = res.map((item) => {
  219. return {
  220. ...item,
  221. categoryCode: this.infoData.categoryCode,
  222. categoryName: this.infoData.categoryName,
  223. brandNum: this.infoData.brandNum,
  224. categoryModel: this.infoData.model,
  225. specification: this.infoData.specification
  226. };
  227. });
  228. }
  229. }
  230. };
  231. </script>
  232. <style lang="scss" scoped>
  233. .p20 {
  234. padding: 20px;
  235. }
  236. .mt40 {
  237. margin-top: 40px;
  238. }
  239. .mt20 {
  240. margin-top: 20px;
  241. }
  242. .content-detail {
  243. overflow: hidden;
  244. }
  245. .content-height {
  246. height: auto;
  247. background: #fff;
  248. }
  249. </style>