|
@@ -563,23 +563,29 @@
|
|
|
<!-- <el-table-column type="selection" width="55"> </el-table-column> -->
|
|
<!-- <el-table-column type="selection" width="55"> </el-table-column> -->
|
|
|
<el-table-column label="货架编号" prop="goodsShelvesCode">
|
|
<el-table-column label="货架编号" prop="goodsShelvesCode">
|
|
|
<template slot-scope="{ row }">
|
|
<template slot-scope="{ row }">
|
|
|
- {{ row.reservoirAreaCode + '-' + row.goodsShelvesCode }}
|
|
|
|
|
|
|
+ {{ row.warehouseAreaCode + '-' + row.warehouseAreaGoodsCode }}
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
- <el-table-column label="货位编号" prop="code" min-width="120">
|
|
|
|
|
|
|
+ <el-table-column
|
|
|
|
|
+ label="货位编号"
|
|
|
|
|
+ prop="goodsAllocationCode"
|
|
|
|
|
+ min-width="120"
|
|
|
|
|
+ >
|
|
|
<template slot-scope="{ row, $index }">
|
|
<template slot-scope="{ row, $index }">
|
|
|
<el-form-item
|
|
<el-form-item
|
|
|
- :prop="'allocationReqList.' + $index + '.code'"
|
|
|
|
|
- :rules="areaLocationRules.code"
|
|
|
|
|
|
|
+ :prop="
|
|
|
|
|
+ 'allocationReqList.' + $index + '.goodsAllocationCode'
|
|
|
|
|
+ "
|
|
|
|
|
+ :rules="areaLocationRules.goodsAllocationCode"
|
|
|
v-if="row.isEdit"
|
|
v-if="row.isEdit"
|
|
|
>
|
|
>
|
|
|
<el-input
|
|
<el-input
|
|
|
placeholder="请输入"
|
|
placeholder="请输入"
|
|
|
clearable
|
|
clearable
|
|
|
- v-model="row.code"
|
|
|
|
|
|
|
+ v-model="row.goodsAllocationCode"
|
|
|
></el-input>
|
|
></el-input>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
- <span v-else>{{ row.code }}</span>
|
|
|
|
|
|
|
+ <span v-else>{{ row.goodsAllocationCode }}</span>
|
|
|
</template></el-table-column
|
|
</template></el-table-column
|
|
|
>
|
|
>
|
|
|
<el-table-column label="货位长(cm)" min-width="120">
|
|
<el-table-column label="货位长(cm)" min-width="120">
|
|
@@ -984,6 +990,7 @@
|
|
|
let hjArr = [];
|
|
let hjArr = [];
|
|
|
for (const key in areaGoodsshelvesList) {
|
|
for (const key in areaGoodsshelvesList) {
|
|
|
hjArr.push({
|
|
hjArr.push({
|
|
|
|
|
+ ...areaGoodsshelvesList[key],
|
|
|
reservoirAreaCode: areaGoodsshelvesList[key].warehouseAreaCode,
|
|
reservoirAreaCode: areaGoodsshelvesList[key].warehouseAreaCode,
|
|
|
code: areaGoodsshelvesList[key].goodsshelvesCode,
|
|
code: areaGoodsshelvesList[key].goodsshelvesCode,
|
|
|
extInfo: [
|
|
extInfo: [
|
|
@@ -1002,6 +1009,7 @@
|
|
|
let hwArr = [];
|
|
let hwArr = [];
|
|
|
for (const key in allocationReqList) {
|
|
for (const key in allocationReqList) {
|
|
|
hwArr.push({
|
|
hwArr.push({
|
|
|
|
|
+ ...allocationReqList[key],
|
|
|
reservoirAreaCode: allocationReqList[key].warehouseAreaCode,
|
|
reservoirAreaCode: allocationReqList[key].warehouseAreaCode,
|
|
|
goodsShelvesCode: allocationReqList[key].goodsAllocationCode,
|
|
goodsShelvesCode: allocationReqList[key].goodsAllocationCode,
|
|
|
code: allocationReqList[key].warehouseAreaCode,
|
|
code: allocationReqList[key].warehouseAreaCode,
|
|
@@ -1244,6 +1252,7 @@
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
generateAllocation(num, obj) {
|
|
generateAllocation(num, obj) {
|
|
|
|
|
+ console.log(obj);
|
|
|
const pre =
|
|
const pre =
|
|
|
this.areaForm.allocationReqList[
|
|
this.areaForm.allocationReqList[
|
|
|
this.areaForm.allocationReqList.length - 1
|
|
this.areaForm.allocationReqList.length - 1
|
|
@@ -1251,6 +1260,9 @@
|
|
|
|
|
|
|
|
for (var i = 0; i < num; i++) {
|
|
for (var i = 0; i < num; i++) {
|
|
|
this.areaForm.allocationReqList.push({
|
|
this.areaForm.allocationReqList.push({
|
|
|
|
|
+ warehouseAreaCode: obj.reservoirAreaCode,
|
|
|
|
|
+ warehouseAreaGoodsCode: obj.code,
|
|
|
|
|
+ goodsAllocationCode: obj.code + '-' + (i + 1),
|
|
|
// allocationBarcode: '',
|
|
// allocationBarcode: '',
|
|
|
code: obj.code + '-' + (i + 1),
|
|
code: obj.code + '-' + (i + 1),
|
|
|
|
|
|
|
@@ -1668,6 +1680,7 @@
|
|
|
// this.handleNewSource(newObj)
|
|
// this.handleNewSource(newObj)
|
|
|
// );
|
|
// );
|
|
|
this.loading = true;
|
|
this.loading = true;
|
|
|
|
|
+ console.log(this.handleNewSource(newObj));
|
|
|
try {
|
|
try {
|
|
|
let res = await warehouseDefinition.warehouseareaSave(
|
|
let res = await warehouseDefinition.warehouseareaSave(
|
|
|
this.handleNewSource(newObj)
|
|
this.handleNewSource(newObj)
|
|
@@ -1745,14 +1758,14 @@
|
|
|
let allocationListArr = this.objExit(allocationList).map((item) => {
|
|
let allocationListArr = this.objExit(allocationList).map((item) => {
|
|
|
return {
|
|
return {
|
|
|
warehouseAreaCode: item.reservoirAreaCode,
|
|
warehouseAreaCode: item.reservoirAreaCode,
|
|
|
- goodsAllocationCode: item.code,
|
|
|
|
|
|
|
+ goodsAllocationCode: item.goodsAllocationCode,
|
|
|
goodsAllocationLength: item.goodsAllocationLength,
|
|
goodsAllocationLength: item.goodsAllocationLength,
|
|
|
goodsAllocationWide: item.goodsAllocationWide,
|
|
goodsAllocationWide: item.goodsAllocationWide,
|
|
|
goodsAllocationHigh: item.goodsAllocationHigh,
|
|
goodsAllocationHigh: item.goodsAllocationHigh,
|
|
|
weightLimit: item.goodsAllocationHigh,
|
|
weightLimit: item.goodsAllocationHigh,
|
|
|
inUseAllocationNumber: item.weightLimit,
|
|
inUseAllocationNumber: item.weightLimit,
|
|
|
volumeUnit: item.volumeUnit,
|
|
volumeUnit: item.volumeUnit,
|
|
|
- warehouseAreaGoodsCode: item.goodsShelvesCode
|
|
|
|
|
|
|
+ warehouseAreaGoodsCode: item.warehouseAreaGoodsCode
|
|
|
};
|
|
};
|
|
|
});
|
|
});
|
|
|
let params = {
|
|
let params = {
|