|
|
@@ -1877,8 +1877,8 @@
|
|
|
? filtersItem.measuringUnit
|
|
|
: item.measuringUnit, // 计量单位
|
|
|
unitId: filtersItem.purchaseUnitId || filtersItem.saleUnitId,
|
|
|
- modelKey: filtersItem.modelKey ? filtersItem.modelKey : '', // 机型
|
|
|
- colorKey: filtersItem.colorKey ? filtersItem.colorKey : '', // 颜色
|
|
|
+ modelKey: filtersItem.modelKey ? filtersItem.modelKey?.split(',')?.[0] || '' : '', // 机型
|
|
|
+ colorKey: filtersItem.colorKey ? filtersItem.colorKey?.split(',')?.[0] || '' : '', // 颜色
|
|
|
measureType: item.measureType, // 计量方式
|
|
|
netWeight: item.netWeight > -1 ? item.netWeight : 0, // 净重
|
|
|
singleWeight: singleWeight || 0, // 单重重量
|
|
|
@@ -2153,19 +2153,19 @@
|
|
|
brandNum: item.brandNum, // 牌号
|
|
|
colorKey:
|
|
|
this.bizType == 1
|
|
|
- ? this.form.colorKey
|
|
|
- ? this.form.colorKey
|
|
|
+ ? this.form.colorKey?.split(',')?.[0] || ''
|
|
|
+ ? this.form.colorKey?.split(',')?.[0] || ''
|
|
|
: ''
|
|
|
- : filtersItem.colorKey
|
|
|
- ? filtersItem.colorKey
|
|
|
+ : filtersItem.colorKey?.split(',')?.[0] || ''
|
|
|
+ ? filtersItem.colorKey?.split(',')?.[0] || ''
|
|
|
: '', // 颜色
|
|
|
modelKey:
|
|
|
this.bizType == 1
|
|
|
- ? this.form.modelKey
|
|
|
- ? this.form.modelKey
|
|
|
+ ? this.form.modelKey?.split(',')?.[0] || ''
|
|
|
+ ? this.form.modelKey?.split(',')?.[0] || ''
|
|
|
: ''
|
|
|
- : filtersItem.modelKey
|
|
|
- ? filtersItem.modelKey
|
|
|
+ : filtersItem.modelKey?.split(',')?.[0] || ''
|
|
|
+ ? filtersItem.modelKey?.split(',')?.[0] || ''
|
|
|
: '', // 机型
|
|
|
batchNo: filtersItem?.batchNo || batchNo, // 批次号
|
|
|
supplierListOptions: supplierList[item.id], // 供应商列表
|
|
|
@@ -2355,11 +2355,11 @@
|
|
|
item.specification || this.productList[0].specification, // 规格
|
|
|
brandNum: item.productBrand || this.productList[0].brandNum, // 牌号
|
|
|
colorKey:
|
|
|
- (item.colorKey ? item.colorKey : '') ||
|
|
|
- this.productList[0].colorKey, // 颜色
|
|
|
+ (item.colorKey ? item.colorKey?.split(',')?.[0] || '' : '') ||
|
|
|
+ this.productList[0].colorKey?.split(',')?.[0] || '', // 颜色
|
|
|
modelKey:
|
|
|
- (item.modelKey ? item.modelKey : '') ||
|
|
|
- this.productList[0].modelKey, // 机型
|
|
|
+ (item.modelKey ? item.modelKey?.split(',')?.[0] || '' : '') ||
|
|
|
+ this.productList[0].modelKey?.split(',')?.[0] || '', // 机型
|
|
|
parentIndex: this.isMoreProduct
|
|
|
? this.productList.find(
|
|
|
(val) => val.categoryCode == item.productCode
|
|
|
@@ -3149,8 +3149,8 @@
|
|
|
categoryCode: item.code, // 物品编码
|
|
|
categoryModel: item.modelType, // 物品型号
|
|
|
specification: item.specification, // 规格
|
|
|
- modelKey: item.modelKey ? item.modelKey : '', // 机型
|
|
|
- colorKey: item.colorKey ? item.colorKey : '', // 颜色
|
|
|
+ modelKey: item.modelKey ? item.modelKey?.split(',')?.[0] || '' : '', // 机型
|
|
|
+ colorKey: item.colorKey ? item.colorKey?.split(',')?.[0] || '' : '', // 颜色
|
|
|
brandNum: item.brandNum, // 牌号
|
|
|
batchNo: batchNo, // 批次号
|
|
|
supplierListOptions: supplierList[item.id], // 供应商列表
|