|
@@ -1914,6 +1914,7 @@ export default {
|
|
|
supplierId: '', // 供应商id
|
|
supplierId: '', // 供应商id
|
|
|
supplierCode: '',
|
|
supplierCode: '',
|
|
|
supplierName: '', // 供应商名称
|
|
supplierName: '', // 供应商名称
|
|
|
|
|
+ measureType: item.measureType, // 计量类型
|
|
|
approvalNumber: item.approvalNumber, // 批准文号
|
|
approvalNumber: item.approvalNumber, // 批准文号
|
|
|
packingSpecification: item.packingSpecification, // 包装规格
|
|
packingSpecification: item.packingSpecification, // 包装规格
|
|
|
packingSpecificationOption: newSpecificationOption[index], // 包装规格选项
|
|
packingSpecificationOption: newSpecificationOption[index], // 包装规格选项
|
|
@@ -2504,13 +2505,16 @@ export default {
|
|
|
},
|
|
},
|
|
|
// 生成包装
|
|
// 生成包装
|
|
|
generateWrappers(row, productIndex, packingCodeList) {
|
|
generateWrappers(row, productIndex, packingCodeList) {
|
|
|
- console.log(packingCodeList, 'packingCodeList')
|
|
|
|
|
|
|
+ console.log(packingCodeList, 'packingCodeList', row.measureType)
|
|
|
// 判断是否拆包,如果是不拆包,计量单位=包装单位,则不生成包装层数据
|
|
// 判断是否拆包,如果是不拆包,计量单位=包装单位,则不生成包装层数据
|
|
|
- if (row.measureUnit == row.packingUnit) {
|
|
|
|
|
- // 直接生成物品层数据
|
|
|
|
|
- this.productList[productIndex].measureQuantity = row.measureQuantity;
|
|
|
|
|
- this.productList[productIndex].weight = row.weight;
|
|
|
|
|
- return;
|
|
|
|
|
|
|
+ if (row.measureType != 1) {
|
|
|
|
|
+ // 计量单位=包装单位,则不生成包装层数据
|
|
|
|
|
+ if (row.measureUnit == row.packingUnit) {
|
|
|
|
|
+ // 直接生成物品层数据
|
|
|
|
|
+ this.productList[productIndex].measureQuantity = row.measureQuantity;
|
|
|
|
|
+ this.productList[productIndex].weight = row.weight;
|
|
|
|
|
+ return;
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
console.log('包装数据--------', row);
|
|
console.log('包装数据--------', row);
|