|
|
@@ -318,9 +318,13 @@ export default {
|
|
|
|
|
|
if (matchedProduct) {
|
|
|
this.$set(item, 'outboundNum', matchedProduct.measureQuantity);
|
|
|
- } else {
|
|
|
- console.warn('No match for item.id:', item.id);
|
|
|
- }
|
|
|
+ }
|
|
|
+ const isSelection = this.selectionList.find(
|
|
|
+ (product) => product.categoryId === item.categoryId
|
|
|
+ );
|
|
|
+ if(isSelection){
|
|
|
+ this.$set(item, 'outboundNum', isSelection.outboundNum);
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
} else {
|
|
|
@@ -333,9 +337,13 @@ export default {
|
|
|
|
|
|
if (matchedProduct) {
|
|
|
this.$set(item, 'outboundNum', matchedProduct.measureQuantity);
|
|
|
- } else {
|
|
|
- console.warn('No match for item.id:', item.id);
|
|
|
}
|
|
|
+ const isSelection = this.selectionList.find(
|
|
|
+ (product) => product.id === item.id
|
|
|
+ );
|
|
|
+ if(isSelection){
|
|
|
+ this.$set(item, 'outboundNum', isSelection.outboundNum);
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|