|
@@ -442,7 +442,6 @@
|
|
|
clearable
|
|
clearable
|
|
|
v-model="row.colorKey"
|
|
v-model="row.colorKey"
|
|
|
:isOne="$index == 1"
|
|
:isOne="$index == 1"
|
|
|
- multiple
|
|
|
|
|
filterable
|
|
filterable
|
|
|
allow-create
|
|
allow-create
|
|
|
default-first-option
|
|
default-first-option
|
|
@@ -457,7 +456,6 @@
|
|
|
clearable
|
|
clearable
|
|
|
v-model="row.modelKey"
|
|
v-model="row.modelKey"
|
|
|
:isOne="$index == 1"
|
|
:isOne="$index == 1"
|
|
|
- multiple
|
|
|
|
|
filterable
|
|
filterable
|
|
|
allow-create
|
|
allow-create
|
|
|
default-first-option
|
|
default-first-option
|
|
@@ -698,7 +696,6 @@
|
|
|
clearable
|
|
clearable
|
|
|
v-model="row.modelKey"
|
|
v-model="row.modelKey"
|
|
|
:isOne="$index == 1"
|
|
:isOne="$index == 1"
|
|
|
- multiple
|
|
|
|
|
filterable
|
|
filterable
|
|
|
allow-create
|
|
allow-create
|
|
|
default-first-option
|
|
default-first-option
|
|
@@ -713,7 +710,6 @@
|
|
|
clearable
|
|
clearable
|
|
|
v-model="row.colorKey"
|
|
v-model="row.colorKey"
|
|
|
:isOne="$index == 1"
|
|
:isOne="$index == 1"
|
|
|
- multiple
|
|
|
|
|
filterable
|
|
filterable
|
|
|
allow-create
|
|
allow-create
|
|
|
default-first-option
|
|
default-first-option
|
|
@@ -1798,10 +1794,10 @@
|
|
|
packingUnitId:
|
|
packingUnitId:
|
|
|
filtersItem.purchaseUnitId || filtersItem.saleUnitId,
|
|
filtersItem.purchaseUnitId || filtersItem.saleUnitId,
|
|
|
modelKey: filtersItem.modelKey
|
|
modelKey: filtersItem.modelKey
|
|
|
- ? filtersItem.modelKey.split(',')
|
|
|
|
|
|
|
+ ? filtersItem.modelKey
|
|
|
: '', // 机型
|
|
: '', // 机型
|
|
|
colorKey: filtersItem.colorKey
|
|
colorKey: filtersItem.colorKey
|
|
|
- ? filtersItem.colorKey.split(',')
|
|
|
|
|
|
|
+ ? filtersItem.colorKey
|
|
|
: '', // 颜色
|
|
: '', // 颜色
|
|
|
measureType: item.measureType, // 计量方式
|
|
measureType: item.measureType, // 计量方式
|
|
|
netWeight: item.netWeight > -1 ? item.netWeight : 0, // 净重
|
|
netWeight: item.netWeight > -1 ? item.netWeight : 0, // 净重
|
|
@@ -2003,18 +1999,18 @@
|
|
|
colorKey:
|
|
colorKey:
|
|
|
this.bizType == 1
|
|
this.bizType == 1
|
|
|
? this.form.colorKey
|
|
? this.form.colorKey
|
|
|
- ? this.form.colorKey.split(',')
|
|
|
|
|
|
|
+ ? this.form.colorKey
|
|
|
: ''
|
|
: ''
|
|
|
: item.colorKey
|
|
: item.colorKey
|
|
|
- ? item.colorKey.split(',')
|
|
|
|
|
|
|
+ ? item.colorKey
|
|
|
: '', // 颜色
|
|
: '', // 颜色
|
|
|
modelKey:
|
|
modelKey:
|
|
|
this.bizType == 1
|
|
this.bizType == 1
|
|
|
? this.form.modelKey
|
|
? this.form.modelKey
|
|
|
- ? this.form.modelKey.split(',')
|
|
|
|
|
|
|
+ ? this.form.modelKey
|
|
|
: ''
|
|
: ''
|
|
|
: item.modelKey
|
|
: item.modelKey
|
|
|
- ? item.modelKey.split(',')
|
|
|
|
|
|
|
+ ? item.modelKey
|
|
|
: '', // 机型
|
|
: '', // 机型
|
|
|
batchNo: [1, 3, 6].includes(this.bizType)
|
|
batchNo: [1, 3, 6].includes(this.bizType)
|
|
|
? this.detailList[0]?.batchNo || batchNo
|
|
? this.detailList[0]?.batchNo || batchNo
|
|
@@ -2208,10 +2204,10 @@
|
|
|
item.specification || this.productList[0].specification, // 规格
|
|
item.specification || this.productList[0].specification, // 规格
|
|
|
brandNum: item.productBrand || this.productList[0].brandNum, // 牌号
|
|
brandNum: item.productBrand || this.productList[0].brandNum, // 牌号
|
|
|
colorKey:
|
|
colorKey:
|
|
|
- (item.colorKey ? item.colorKey.split(',') : '') ||
|
|
|
|
|
|
|
+ (item.colorKey ? item.colorKey : '') ||
|
|
|
this.productList[0].colorKey, // 颜色
|
|
this.productList[0].colorKey, // 颜色
|
|
|
modelKey:
|
|
modelKey:
|
|
|
- (item.modelKey ? item.modelKey.split(',') : '') ||
|
|
|
|
|
|
|
+ (item.modelKey ? item.modelKey : '') ||
|
|
|
this.productList[0].modelKey, // 机型
|
|
this.productList[0].modelKey, // 机型
|
|
|
parentIndex: this.isMoreProduct
|
|
parentIndex: this.isMoreProduct
|
|
|
? this.productList.find(
|
|
? this.productList.find(
|
|
@@ -2562,10 +2558,10 @@
|
|
|
_taskId = this.detailProductList[0]?.taskId;
|
|
_taskId = this.detailProductList[0]?.taskId;
|
|
|
}
|
|
}
|
|
|
if (packingItem.modelKey) {
|
|
if (packingItem.modelKey) {
|
|
|
- packingItem.modelKey = packingItem.modelKey.toString();
|
|
|
|
|
|
|
+ packingItem.modelKey = packingItem.modelKey;
|
|
|
}
|
|
}
|
|
|
if (packingItem.colorKey) {
|
|
if (packingItem.colorKey) {
|
|
|
- packingItem.colorKey = packingItem.colorKey.toString();
|
|
|
|
|
|
|
+ packingItem.colorKey = packingItem.colorKey;
|
|
|
}
|
|
}
|
|
|
return {
|
|
return {
|
|
|
...packingItem,
|
|
...packingItem,
|
|
@@ -2582,10 +2578,10 @@
|
|
|
// 处理产品数据
|
|
// 处理产品数据
|
|
|
this.productList = this.productList.map((productItem) => {
|
|
this.productList = this.productList.map((productItem) => {
|
|
|
if (productItem.modelKey) {
|
|
if (productItem.modelKey) {
|
|
|
- productItem.modelKey = productItem.modelKey.toString();
|
|
|
|
|
|
|
+ productItem.modelKey = productItem.modelKey;
|
|
|
}
|
|
}
|
|
|
if (productItem.colorKey) {
|
|
if (productItem.colorKey) {
|
|
|
- productItem.colorKey = productItem.colorKey.toString();
|
|
|
|
|
|
|
+ productItem.colorKey = productItem.colorKey;
|
|
|
}
|
|
}
|
|
|
return {
|
|
return {
|
|
|
...productItem,
|
|
...productItem,
|
|
@@ -3002,8 +2998,8 @@
|
|
|
categoryCode: item.code, // 物品编码
|
|
categoryCode: item.code, // 物品编码
|
|
|
categoryModel: item.modelType, // 物品型号
|
|
categoryModel: item.modelType, // 物品型号
|
|
|
specification: item.specification, // 规格
|
|
specification: item.specification, // 规格
|
|
|
- modelKey: item.modelKey ? item.modelKey.split(',') : '', // 机型
|
|
|
|
|
- colorKey: item.colorKey ? item.colorKey.split(',') : '', // 颜色
|
|
|
|
|
|
|
+ modelKey: item.modelKey ? item.modelKey : '', // 机型
|
|
|
|
|
+ colorKey: item.colorKey ? item.colorKey : '', // 颜色
|
|
|
brandNum: item.brandNum, // 牌号
|
|
brandNum: item.brandNum, // 牌号
|
|
|
batchNo: batchNo, // 批次号
|
|
batchNo: batchNo, // 批次号
|
|
|
supplierListOptions: supplierList[item.id], // 供应商列表
|
|
supplierListOptions: supplierList[item.id], // 供应商列表
|