|
@@ -445,7 +445,7 @@
|
|
|
v-for="item in scope.row.specificationsList"
|
|
|
:key="item.productSpecifications"
|
|
|
:label="item.productSpecifications"
|
|
|
- :value="item.productSpecifications"
|
|
|
+ :value="{value:item.productSpecifications,label:item.productType}"
|
|
|
>
|
|
|
<span class="discribe" style="float: left">{{
|
|
|
item.productSpecifications
|
|
@@ -1250,7 +1250,7 @@ export default {
|
|
|
let productId = "";
|
|
|
if (specificationsList && specificationsList.length > 0) {
|
|
|
let targetItem = specificationsList.find(
|
|
|
- (item) => item.productSpecifications == productSpecifications
|
|
|
+ (item) => item.productSpecifications == productSpecifications.value && item.productType == productSpecifications.label
|
|
|
);
|
|
|
productId = targetItem.id;
|
|
|
}
|
|
@@ -1291,7 +1291,7 @@ export default {
|
|
|
let { productSpecifications, specificationsList } = row;
|
|
|
if (productSpecifications) {
|
|
|
let targetItem = specificationsList.find(
|
|
|
- (item) => item.productSpecifications == productSpecifications
|
|
|
+ (item) => item.productSpecifications == productSpecifications.value && item.productType == productSpecifications.label
|
|
|
);
|
|
|
// console.log(targetItem);
|
|
|
row.productNo = targetItem?.productNo;
|
|
@@ -1304,7 +1304,7 @@ export default {
|
|
|
// 新的产品改变回调
|
|
|
async newProductChange(productName, row) {
|
|
|
// 发请求获取对应的规格数据
|
|
|
- this.updateStorage(row);
|
|
|
+ //this.updateStorage(row);
|
|
|
if (!productName) {
|
|
|
row.specificationsList = [];
|
|
|
(row.productNo = ""), (row.productType = "");
|