|  |  |  | 
|---|
|  |  |  | icon: '', | 
|---|
|  |  |  | elements: [], | 
|---|
|  |  |  | elements2: [ | 
|---|
|  |  |  | // { | 
|---|
|  |  |  | //     title: '组托', | 
|---|
|  |  |  | //     name: 'pakin', | 
|---|
|  |  |  | //     color: 'cyan', | 
|---|
|  |  |  | //     cuIcon: 'pullup', | 
|---|
|  |  |  | //     url: '/pakin/pakin' | 
|---|
|  |  |  | // }, | 
|---|
|  |  |  | // { | 
|---|
|  |  |  | //     title: '订单入库', | 
|---|
|  |  |  | //     name: 'orderPakin', | 
|---|
|  |  |  | //     color: 'red', | 
|---|
|  |  |  | //     cuIcon: 'pullup', | 
|---|
|  |  |  | //     url: '/order/orderList' | 
|---|
|  |  |  | // }, | 
|---|
|  |  |  | { | 
|---|
|  |  |  | title: '组托', | 
|---|
|  |  |  | name: 'pakin', | 
|---|
|  |  |  | color: 'cyan', | 
|---|
|  |  |  | cuIcon: 'pullup', | 
|---|
|  |  |  | url: '/pakin/pakin' | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | { | 
|---|
|  |  |  | title: '订单入库', | 
|---|
|  |  |  | name: 'orderPakin', | 
|---|
|  |  |  | color: 'red', | 
|---|
|  |  |  | cuIcon: 'pullup', | 
|---|
|  |  |  | url: '/order/orderList' | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | // { | 
|---|
|  |  |  | //     title: '拣料站到站', | 
|---|
|  |  |  | //     name: 'leftover', | 
|---|
|  |  |  | 
|---|
|  |  |  | cuIcon: 'pullup', | 
|---|
|  |  |  | url: '/pingku/POrderListOut' | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | // { | 
|---|
|  |  |  | //     title: '呼叫Agv', | 
|---|
|  |  |  | //     name: 'AGVStart', | 
|---|
|  |  |  | //     color: 'green', | 
|---|
|  |  |  | //     cuIcon: 'order', | 
|---|
|  |  |  | //     url: '/AGV/AGVStart' | 
|---|
|  |  |  | // }, | 
|---|
|  |  |  | // { | 
|---|
|  |  |  | //     title: 'Agv储位解绑', | 
|---|
|  |  |  | //     name: 'AGVUnbind', | 
|---|
|  |  |  | //     color: 'orange', | 
|---|
|  |  |  | //     cuIcon: 'order', | 
|---|
|  |  |  | //     url: '/AGV/AGVUnbind' | 
|---|
|  |  |  | // },{ | 
|---|
|  |  |  | //     title: '盘点', | 
|---|
|  |  |  | //     name: 'stockCheck', | 
|---|
|  |  |  | //     color: 'red', | 
|---|
|  |  |  | //     cuIcon: 'post', | 
|---|
|  |  |  | //     url: '/stock/stockCheck' | 
|---|
|  |  |  | // }, | 
|---|
|  |  |  | { | 
|---|
|  |  |  | title: '呼叫Agv', | 
|---|
|  |  |  | name: 'AGVStart', | 
|---|
|  |  |  | color: 'green', | 
|---|
|  |  |  | cuIcon: 'order', | 
|---|
|  |  |  | url: '/AGV/AGVStart' | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | { | 
|---|
|  |  |  | title: 'Agv储位解绑', | 
|---|
|  |  |  | name: 'AGVUnbind', | 
|---|
|  |  |  | color: 'orange', | 
|---|
|  |  |  | cuIcon: 'order', | 
|---|
|  |  |  | url: '/AGV/AGVUnbind' | 
|---|
|  |  |  | },{ | 
|---|
|  |  |  | title: '盘点', | 
|---|
|  |  |  | name: 'stockCheck', | 
|---|
|  |  |  | color: 'red', | 
|---|
|  |  |  | cuIcon: 'post', | 
|---|
|  |  |  | url: '/stock/stockCheck' | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | // { | 
|---|
|  |  |  | //     title: '组托上架', | 
|---|
|  |  |  | //     name: 'putOn', | 
|---|
|  |  |  | 
|---|
|  |  |  | barcodeInput() { | 
|---|
|  |  |  | // 不设置定时器 会出现扫入的字符串不全 | 
|---|
|  |  |  | setTimeout(() => { | 
|---|
|  |  |  | var len = this.barcode.length | 
|---|
|  |  |  | if (len >= 9 && len <=8) { | 
|---|
|  |  |  | uni.showToast({ | 
|---|
|  |  |  | title: '托盘码有误请重试', | 
|---|
|  |  |  | icon: "none", | 
|---|
|  |  |  | position: 'top' | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | this.barcodeFocuss() | 
|---|
|  |  |  | return; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | var len = this.barcode.length | 
|---|
|  |  |  | this.focuss() | 
|---|
|  |  |  | }, 200) | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | 
|---|
|  |  |  | <view class="item"> | 
|---|
|  |  |  | <view class="code-decs">库位码:</view> | 
|---|
|  |  |  | <input type="text" placeholder=" 扫码 / 输入" v-model="locNo" :focus="barcodeFocus" | 
|---|
|  |  |  | > | 
|---|
|  |  |  | @input="barcodeInput()"    > | 
|---|
|  |  |  | </view> | 
|---|
|  |  |  | <view class="item"> | 
|---|
|  |  |  | <view class="code-decs">物料码:</view> | 
|---|
|  |  |  | 
|---|
|  |  |  | barcodeInput() { | 
|---|
|  |  |  | // 不设置定时器 会出现扫入的字符串不全 | 
|---|
|  |  |  | setTimeout(() => { | 
|---|
|  |  |  | var len = this.barcode.length | 
|---|
|  |  |  | if (len >= 9 && len <=8) { | 
|---|
|  |  |  | uni.showToast({ | 
|---|
|  |  |  | title: '托盘码有误请重试', | 
|---|
|  |  |  | icon: "none", | 
|---|
|  |  |  | position: 'top' | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | this.barcodeFocuss() | 
|---|
|  |  |  | return; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | var len = this.barcode.length | 
|---|
|  |  |  | this.focuss() | 
|---|
|  |  |  | }, 200) | 
|---|
|  |  |  | }, | 
|---|