detailDialog.vue 8.3 KB

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