| | |
| | | </div> |
| | | </view> |
| | | |
| | | |
| | | <scan-code></scan-code> |
| | | </view> |
| | | </template> |
| | | |
| | |
| | | import { |
| | | EqpPermissions |
| | | } from '../../config/api.js'; |
| | | import scanCode from '@/components/scan-code/scan-code.vue' |
| | | export default { |
| | | onLoad(option) {}, |
| | | components: { |
| | | scanCode |
| | | }, |
| | | onLoad(option) { |
| | | const _this = this |
| | | uni.$off('scancodedate') // 每次进来先 移除全局自定义事件监听器 |
| | | uni.$on('scancodedate', function(content) { |
| | | console.log("扫描到的内容为:", content) |
| | | _this.changeInputBoxValue(content) |
| | | }) |
| | | }, |
| | | |
| | | onPullDownRefresh() { |
| | | setTimeout(() => { |
| | |
| | | uni.stopPullDownRefresh(); |
| | | }, |
| | | changeInputBoxValue(val) { |
| | | |
| | | this.inputBoxValue = val |
| | | this.purchorderArr = this.purchorderArrAll.filter((p) => { |
| | | return p.code.indexOf(val) !== -1 |
| | | }) |