|
|
@@ -11,7 +11,7 @@
|
|
|
>
|
|
|
<el-row :gutter="20">
|
|
|
<!-- 左侧:物品清单 -->
|
|
|
- <el-col :span="10">
|
|
|
+ <el-col v-if="!initDimension" :span="10">
|
|
|
<div class="section-title">物品清单</div>
|
|
|
<div class="dimension-tabs">
|
|
|
<span class="dimension-label">维度:</span>
|
|
|
@@ -76,7 +76,7 @@
|
|
|
</el-col>
|
|
|
|
|
|
<!-- 右侧:上架信息 -->
|
|
|
- <el-col :span="14">
|
|
|
+ <el-col :span="initDimension ? 24 : 14">
|
|
|
<div class="section-title">上架信息</div>
|
|
|
<el-form :model="formData" label-width="100px">
|
|
|
<el-row>
|
|
|
@@ -151,7 +151,7 @@
|
|
|
</div>
|
|
|
<el-table :data="shelvingList" max-height="400" style="width: 100%; margin-top: 8px;" border>
|
|
|
<el-table-column label="序号" type="index" width="50" align="center" />
|
|
|
- <el-table-column label="货位位置" min-width="320" align="center">
|
|
|
+ <el-table-column :label="locationType === 'shelf' ? '货架位置' : '货位位置'" prop="cargoSpaceId" min-width="320" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
<el-select
|
|
|
v-model="scope.row.cargoSpaceId"
|
|
|
@@ -277,7 +277,9 @@
|
|
|
shelvingList: [],
|
|
|
confirmLoading: false,
|
|
|
mode: 'edit',
|
|
|
- // 'edit' | 'detail' 区分当前操作的是编辑还是详情
|
|
|
+ // 'edit' | 'detail' | 'down' 区分当前操作的是编辑还是详情,下架
|
|
|
+ initDimension: '',
|
|
|
+
|
|
|
};
|
|
|
},
|
|
|
|
|
|
@@ -327,11 +329,12 @@
|
|
|
|
|
|
methods: {
|
|
|
// ==================== 打开/关闭 ====================
|
|
|
- async open(row, type, mode) {
|
|
|
+ async open(row, type, mode, initDimension) {
|
|
|
console.log('open', row, type, mode);
|
|
|
this.mode = mode;
|
|
|
this.rowData = row;
|
|
|
this.dimension = type === 'package' ? 2 : 1;
|
|
|
+ this.initDimension = initDimension;
|
|
|
this.type = type;
|
|
|
this.selection = [];
|
|
|
this.shelvingList = [];
|
|
|
@@ -383,11 +386,18 @@
|
|
|
|
|
|
async getDetail() {
|
|
|
try {
|
|
|
- const data = await storageApi.getStorageRecordPage({
|
|
|
+ const params = {
|
|
|
pageNum: 1,
|
|
|
size: -1,
|
|
|
- outInId: this.rowData.outInId || this.rowData.id
|
|
|
- });
|
|
|
+ }
|
|
|
+ if (this.initDimension == 2) {
|
|
|
+ params.outInDetailId = this.rowData.id;
|
|
|
+ } else if (this.initDimension == 3) {
|
|
|
+ params.outInDetailRecordId = this.rowData.id;
|
|
|
+ } else {
|
|
|
+ params.outInId = this.rowData.outInId || this.rowData.id;
|
|
|
+ }
|
|
|
+ const data = await storageApi.getStorageRecordPage(params);
|
|
|
if (data?.list?.length) {
|
|
|
this.dimension = +data?.list[0].levelType;
|
|
|
this.storageRecords = data.list;
|
|
|
@@ -695,7 +705,7 @@
|
|
|
},
|
|
|
|
|
|
checkSelectable(row) {
|
|
|
- if(this.isDetail) return false;
|
|
|
+ if(this.mode === 'down' || this.isDetail) return false;
|
|
|
return !this.shelvedItemKeys.includes(this._getRowKey(row));
|
|
|
},
|
|
|
|