diff --git a/klp-ui/src/components/KLPService/ProductSelect/index.vue b/klp-ui/src/components/KLPService/ProductSelect/index.vue index 39f2653f..f3e588e8 100644 --- a/klp-ui/src/components/KLPService/ProductSelect/index.vue +++ b/klp-ui/src/components/KLPService/ProductSelect/index.vue @@ -48,7 +48,6 @@ export default { }, selected(val) { this.$emit('input', val); - this.$emit('change', val); } }, created() { @@ -61,7 +60,9 @@ export default { }); }, onChange(val) { - this.$emit('change', val); + // 通过val找到item + const product = this.productOptions.find(p => p.productId === val); + this.$emit('change', product); } } }; diff --git a/klp-ui/src/views/wms/order/panels/detail.vue b/klp-ui/src/views/wms/order/panels/detail.vue index 5cfa4be7..422ff418 100644 --- a/klp-ui/src/views/wms/order/panels/detail.vue +++ b/klp-ui/src/views/wms/order/panels/detail.vue @@ -1,5 +1,21 @@ @@ -85,16 +104,14 @@ - - - + + + - + @@ -110,10 +127,13 @@ + + diff --git a/klp-ui/src/views/wms/product/index.vue b/klp-ui/src/views/wms/product/index.vue index e5d6ca5d..07a397cf 100644 --- a/klp-ui/src/views/wms/product/index.vue +++ b/klp-ui/src/views/wms/product/index.vue @@ -127,6 +127,7 @@ +