|
|
@ -118,6 +118,7 @@ export default { |
|
|
|
onChange () { |
|
|
|
onChange () { |
|
|
|
const { multiple, selectedGoodsIds } = this |
|
|
|
const { multiple, selectedGoodsIds } = this |
|
|
|
const sGoodsIds = multiple ? selectedGoodsIds : (selectedGoodsIds.length ? selectedGoodsIds[0] : undefined) |
|
|
|
const sGoodsIds = multiple ? selectedGoodsIds : (selectedGoodsIds.length ? selectedGoodsIds[0] : undefined) |
|
|
|
|
|
|
|
this.$emit('select', multiple ? this.selectedItems : this.selectedItems[0]) |
|
|
|
return this.$emit('change', sGoodsIds) |
|
|
|
return this.$emit('change', sGoodsIds) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|