|
@@ -1369,7 +1369,7 @@
|
|
|
categoryModel: item.modelType, // 物品型号
|
|
categoryModel: item.modelType, // 物品型号
|
|
|
specification: item.specification, // 规格
|
|
specification: item.specification, // 规格
|
|
|
brandNum: item.brandNum, // 牌号
|
|
brandNum: item.brandNum, // 牌号
|
|
|
- batchNo: item.batchNo||batchNo, // 批次号
|
|
|
|
|
|
|
+ batchNo: item.batchNo || batchNo, // 批次号
|
|
|
minPackingQuantity: item.quantity, // 最小包装单元数量
|
|
minPackingQuantity: item.quantity, // 最小包装单元数量
|
|
|
packingQuantity: 1, // 包装数量
|
|
packingQuantity: 1, // 包装数量
|
|
|
packingUnit: item.packingUnit, // 单位
|
|
packingUnit: item.packingUnit, // 单位
|
|
@@ -1446,7 +1446,7 @@
|
|
|
//
|
|
//
|
|
|
packingSpecificationLabel:
|
|
packingSpecificationLabel:
|
|
|
productItem.extField?.packingSpecification?.split(','),
|
|
productItem.extField?.packingSpecification?.split(','),
|
|
|
- batchNo: productItem.batchNo||batchNo, // 批次号
|
|
|
|
|
|
|
+ batchNo: productItem.batchNo || batchNo, // 批次号
|
|
|
warehouseIds: [productItem.warehouseId], // 仓库Id
|
|
warehouseIds: [productItem.warehouseId], // 仓库Id
|
|
|
warehouseNames: [productItem.warehouseName], // 仓库名称
|
|
warehouseNames: [productItem.warehouseName], // 仓库名称
|
|
|
outInDetailRecordRequestList:
|
|
outInDetailRecordRequestList:
|
|
@@ -1460,7 +1460,7 @@
|
|
|
productIndex +
|
|
productIndex +
|
|
|
'-' +
|
|
'-' +
|
|
|
packingIndex, // 包装索引
|
|
packingIndex, // 包装索引
|
|
|
- batchNo:productItem.batchNo|| batchNo, // 批次号
|
|
|
|
|
|
|
+ batchNo: productItem.batchNo || batchNo, // 批次号
|
|
|
parentIndex:
|
|
parentIndex:
|
|
|
this.productList.length + productIndex, // 物品索引
|
|
this.productList.length + productIndex, // 物品索引
|
|
|
categoryName: productItem.categoryName,
|
|
categoryName: productItem.categoryName,
|
|
@@ -1765,7 +1765,9 @@
|
|
|
productItem.materielCode = productItem.materielCode;
|
|
productItem.materielCode = productItem.materielCode;
|
|
|
productItem.categoryModel = productItem.modelType; // 物品型号
|
|
productItem.categoryModel = productItem.modelType; // 物品型号
|
|
|
productItem.specification = productItem.specification; // 规格
|
|
productItem.specification = productItem.specification; // 规格
|
|
|
- productItem.batchNo = productItem.batchNo|| batchNo; // 批次号
|
|
|
|
|
|
|
+ productItem.engrave = productItem.engrave; // 刻码
|
|
|
|
|
+ productItem.clientCode = productItem.clientCode; // 客户代号
|
|
|
|
|
+ productItem.batchNo = productItem.batchNo || batchNo; // 批次号
|
|
|
productItem.warehouseIds = [productItem.warehouseId]; // 仓库Id
|
|
productItem.warehouseIds = [productItem.warehouseId]; // 仓库Id
|
|
|
productItem.warehouseNames = [productItem.warehouseName]; // 仓库名称
|
|
productItem.warehouseNames = [productItem.warehouseName]; // 仓库名称
|
|
|
productItem.packingSpecificationOption =
|
|
productItem.packingSpecificationOption =
|
|
@@ -1782,7 +1784,7 @@
|
|
|
productIndex +
|
|
productIndex +
|
|
|
'-' +
|
|
'-' +
|
|
|
packingIndex, // 包装索引
|
|
packingIndex, // 包装索引
|
|
|
- batchNo: productItem.batchNo|| batchNo, // 批次号
|
|
|
|
|
|
|
+ batchNo: productItem.batchNo || batchNo, // 批次号
|
|
|
parentIndex: this.productList.length + productIndex, // 物品索引
|
|
parentIndex: this.productList.length + productIndex, // 物品索引
|
|
|
categoryName: productItem.categoryName,
|
|
categoryName: productItem.categoryName,
|
|
|
categoryCode: productItem.categoryCode,
|
|
categoryCode: productItem.categoryCode,
|
|
@@ -1819,9 +1821,8 @@
|
|
|
if (item.weight === null || item.weight === undefined) {
|
|
if (item.weight === null || item.weight === undefined) {
|
|
|
item.weight = 0;
|
|
item.weight = 0;
|
|
|
}
|
|
}
|
|
|
- item.supplierListOptions=supplierList[item.categoryId], // 供应商列表
|
|
|
|
|
-
|
|
|
|
|
- item.packingUnit = item.measuringUnit; // 单位
|
|
|
|
|
|
|
+ (item.supplierListOptions = supplierList[item.categoryId]), // 供应商列表
|
|
|
|
|
+ (item.packingUnit = item.measuringUnit); // 单位
|
|
|
item.packingUnitId = item.packingSpecificationOption.find(
|
|
item.packingUnitId = item.packingSpecificationOption.find(
|
|
|
(v) => v.conversionUnit == item.measuringUnit
|
|
(v) => v.conversionUnit == item.measuringUnit
|
|
|
)?.id; // 单位
|
|
)?.id; // 单位
|
|
@@ -2226,7 +2227,7 @@
|
|
|
categoryModel: item.modelType, // 物品型号
|
|
categoryModel: item.modelType, // 物品型号
|
|
|
specification: item.specification, // 规格
|
|
specification: item.specification, // 规格
|
|
|
brandNum: item.brandNum, // 牌号
|
|
brandNum: item.brandNum, // 牌号
|
|
|
- batchNo: item.batchNo|| batchNo, // 批次号
|
|
|
|
|
|
|
+ batchNo: item.batchNo || batchNo, // 批次号
|
|
|
minPackingQuantity: 1, // 最小包装单元数量
|
|
minPackingQuantity: 1, // 最小包装单元数量
|
|
|
packingQuantity: filterArray[0]['数量'], // 包装数量
|
|
packingQuantity: filterArray[0]['数量'], // 包装数量
|
|
|
packingUnit: item.packingUnit, // 单位
|
|
packingUnit: item.packingUnit, // 单位
|
|
@@ -2748,7 +2749,7 @@
|
|
|
colorKey: item.colorKey ? item.colorKey.split(',') : '', // 颜色
|
|
colorKey: item.colorKey ? item.colorKey.split(',') : '', // 颜色
|
|
|
color: item.color,
|
|
color: item.color,
|
|
|
brandNum: item.brandNum, // 牌号
|
|
brandNum: item.brandNum, // 牌号
|
|
|
- batchNo:item.batchNo||batchNo, // 批次号
|
|
|
|
|
|
|
+ batchNo: item.batchNo || batchNo, // 批次号
|
|
|
supplierListOptions: supplierList[item.id], // 供应商列表
|
|
supplierListOptions: supplierList[item.id], // 供应商列表
|
|
|
supplierId: '', // 供应商id
|
|
supplierId: '', // 供应商id
|
|
|
supplierName: '', // 供应商名称
|
|
supplierName: '', // 供应商名称
|
|
@@ -3245,6 +3246,7 @@
|
|
|
} else {
|
|
} else {
|
|
|
measureQuantity = row.packingSpecificationOption[1].packageCell;
|
|
measureQuantity = row.packingSpecificationOption[1].packageCell;
|
|
|
}
|
|
}
|
|
|
|
|
+ console.log('meadasdassureQuantity', row.weight / row.packingQuantity);
|
|
|
let item = {
|
|
let item = {
|
|
|
index: row.index + '-' + index, // 包装索引
|
|
index: row.index + '-' + index, // 包装索引
|
|
|
warehouseId: row.warehouseId, // 仓库id
|
|
warehouseId: row.warehouseId, // 仓库id
|
|
@@ -3254,6 +3256,7 @@
|
|
|
categoryModel: row.categoryModel, // 物品型号
|
|
categoryModel: row.categoryModel, // 物品型号
|
|
|
specification: row.specification, // 规格
|
|
specification: row.specification, // 规格
|
|
|
supplierCode: row.supplierCode, // 供应商编码
|
|
supplierCode: row.supplierCode, // 供应商编码
|
|
|
|
|
+
|
|
|
brandNum: row.brandNum, // 牌号
|
|
brandNum: row.brandNum, // 牌号
|
|
|
parentIndex: row.index, // 产品索引
|
|
parentIndex: row.index, // 产品索引
|
|
|
modelKey: row.modelKey, // 机型
|
|
modelKey: row.modelKey, // 机型
|
|
@@ -3269,16 +3272,17 @@
|
|
|
: row.packingSpecificationOption[0].packageUnit
|
|
: row.packingSpecificationOption[0].packageUnit
|
|
|
: row.measureUnit
|
|
: row.measureUnit
|
|
|
: row.measureUnit, // 计量单位
|
|
: row.measureUnit, // 计量单位
|
|
|
- weight: 0, // 重量
|
|
|
|
|
|
|
+ weight: row.weight / row.packingQuantity,
|
|
|
packingSpecificationOption: row.packingSpecificationOption, // 包装规格
|
|
packingSpecificationOption: row.packingSpecificationOption, // 包装规格
|
|
|
weightUnit: row.weightUnit, // 重量单位
|
|
weightUnit: row.weightUnit, // 重量单位
|
|
|
netWeight: row.netWeight, // 净重
|
|
netWeight: row.netWeight, // 净重
|
|
|
barcodes: '', // 发货条码
|
|
barcodes: '', // 发货条码
|
|
|
- clientCode: row.extInfo ? row.extInfo.clientCode : '', // 客户代号
|
|
|
|
|
|
|
+ clientCode:
|
|
|
|
|
+ row.clientCode || (row.extInfo ? row.extInfo.clientCode : ''), // 客户代号
|
|
|
materielDesignation: row.extInfo ? row.extInfo.materielCode : '', // 物料代号
|
|
materielDesignation: row.extInfo ? row.extInfo.materielCode : '', // 物料代号
|
|
|
supplierName: row.supplierName, // 供应商名称
|
|
supplierName: row.supplierName, // 供应商名称
|
|
|
supplierCode: row.supplierCode, // 供应商代号
|
|
supplierCode: row.supplierCode, // 供应商代号
|
|
|
- engrave: '', // 刻码
|
|
|
|
|
|
|
+ engrave: row.engrave, // 刻码
|
|
|
isUnpack: row.isUnpack, // 是否允许拆包
|
|
isUnpack: row.isUnpack, // 是否允许拆包
|
|
|
productionDate: productionDate, // 生产日期
|
|
productionDate: productionDate, // 生产日期
|
|
|
purchaseDate: purchaseDate, // 采购时间
|
|
purchaseDate: purchaseDate, // 采购时间
|
|
@@ -3367,7 +3371,7 @@
|
|
|
item.weight =
|
|
item.weight =
|
|
|
Number(item.measureQuantity) * Number(row.singleWeight);
|
|
Number(item.measureQuantity) * Number(row.singleWeight);
|
|
|
} else {
|
|
} else {
|
|
|
- item.weight = 0;
|
|
|
|
|
|
|
+ item.weight =item.weight|| 0;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|