mirror of
https://github.com/PanJiaChen/vue-element-admin.git
synced 2025-08-07 18:25:45 +08:00
Intuitive output on the point-of-sale product search panel (#1024)
* Intuitive output on the point-of-sale product search panel * Update index.vue Co-authored-by: elsiosanchez <elsiossanches@gmail.com>
This commit is contained in:
parent
8a54f46df9
commit
2e64bb5d35
@ -21,10 +21,15 @@
|
||||
<template slot="label">
|
||||
{{ $t('form.productInfo.codeProduct') }}
|
||||
<el-popover
|
||||
v-model="visible"
|
||||
v-shortkey="keyShortcuts"
|
||||
placement="right"
|
||||
trigger="click"
|
||||
width="800"
|
||||
@shortkey.native="close"
|
||||
>
|
||||
<el-button icon="el-icon-close" type="text" style="float: right;padding: 1% 1% 0px 0px;font-size: 20px;" @click="close" />
|
||||
<br>
|
||||
<product-info-list />
|
||||
<el-button
|
||||
slot="reference"
|
||||
@ -106,6 +111,7 @@ export default {
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
visible: false,
|
||||
timeOut: null
|
||||
}
|
||||
},
|
||||
@ -207,6 +213,9 @@ export default {
|
||||
// call callback function to return suggestions
|
||||
callBack(results)
|
||||
},
|
||||
close() {
|
||||
this.visible = false
|
||||
},
|
||||
handleSelect(elementSelected) {
|
||||
const valueProduct = this.isEmptyValue(elementSelected.product) ? elementSelected.value : elementSelected.product.value
|
||||
this.$store.dispatch('notifyActionKeyPerformed', {
|
||||
|
@ -18,6 +18,7 @@
|
||||
<template>
|
||||
<el-main
|
||||
v-shortkey="shortsKey"
|
||||
style="padding-top: 0px;"
|
||||
@shortkey.native="keyAction"
|
||||
>
|
||||
<el-form
|
||||
|
Loading…
x
Reference in New Issue
Block a user