| | |
| | | <checkbox :value="item.matnr" :checked="item.checked" @click="set(i)"/> |
| | | </view> |
| | | <view class="list-left" style="display: flex;justify-content: center;"> |
| | | {{item.name}} |
| | | {{item.devNo}} |
| | | </view> |
| | | <view class="list-right"> |
| | | <!-- <uni-icons type="compose" color="#9add8b" size="24" @click="revise(item,i)"></uni-icons> --> |
| | |
| | | token: '', |
| | | barcode: '', |
| | | stationCode: '', |
| | | dataList: [{name:'123'},{name:'456'},{name:'123'},{name:'456'},{name:'123'},{name:'456'},{name:'123'},{name:'456'},{name:'123'},{name:'456'},{name:'123'},{name:'456'},{name:'123'},{name:'456'},{name:'123'},{name:'456'},{name:'123'},{name:'456'}], |
| | | dataList: [], |
| | | count: 0, |
| | | rowNum: '', |
| | | matnr: '', |
| | |
| | | matFocus: false, |
| | | matData: '', |
| | | removeNum: 0, |
| | | floorList: [1,2,3], |
| | | floor: '', |
| | | floorList: [1,3], |
| | | floor: "", |
| | | } |
| | | }, |
| | | onLoad() { |
| | |
| | | getFloor() { |
| | | let that = this |
| | | uni.request({ |
| | | url: that.baseUrl + '/mat/auth', |
| | | url: that.baseUrl + '/agvMobile/getBasDevp/auth', |
| | | data: { |
| | | matnr: that.matnr |
| | | floor: that.floor |
| | | }, |
| | | header: { |
| | | 'token': uni.getStorageSync('token') |
| | | }, |
| | | success(result) { |
| | | |
| | | method: 'POST', |
| | | success(res) { |
| | | console.log(res); |
| | | res = res.data |
| | | that.dataList = res.data |
| | | } |
| | | }); |
| | | }, |
| | |
| | | comb() { |
| | | uni.vibrateShort(); |
| | | let that = this; |
| | | if (that.barcode === '') { |
| | | this.messageText = "请扫描托盘条码" |
| | | this.messageToggle('error') |
| | | return; |
| | | } |
| | | uni.request({ |
| | | url: that.baseUrl + '/mobile/combBinging/auth', |
| | | url: that.baseUrl + '/agvMobile/pakin/auth', |
| | | data: JSON.stringify({ |
| | | barcode: that.barcode, |
| | | stationCode: that.stationCode |
| | | devNo: that.devNo |
| | | }), |
| | | method: 'POST', |
| | | header: { |
| | |
| | | that.messageToggle('success') |
| | | // const innerAudioContext = uni.createInnerAudioContext(); |
| | | // innerAudioContext.src = '/static/music/pakinOk.mp3'; |
| | | innerAudioContext.play() |
| | | // innerAudioContext.play() |
| | | } else if (res.code == 403) { |
| | | that.messageText = res.msg |
| | | that.messageToggle('error') |