| | |
| | | <view>站点状态:{{station.locSts$}}</view> |
| | | <view class="mt-flex"> |
| | | <view class="station-barcode" style="flex: 1">货架码:<text>{{station.barcode ? station.barcode : '--'}}</text></view> |
| | | <view v-if="station.barcode"><button size="mini" type="warn" @click="unbind">解除绑定</button></view> |
| | | <view v-if="station.barcode"><button size="mini" type="warn" @click="unbind()">解除绑定</button></view> |
| | | </view> |
| | | </view> |
| | | |
| | |
| | | |
| | | <!-- 底部操作按钮 --> |
| | | <view class="buttom"> |
| | | <button size="mini" type="primary" @click="containerMoveOut(searchValue)">确认出库</button> |
| | | <button size="mini" type="primary" @click="pickIn(searchValue)">已拣料回库</button> |
| | | <button size="mini" type="primary" @click="emptyPakin(searchValue)" v-if="btnType == 'emptyPakin'">空板入库</button> |
| | | <button size="mini" type="primary" @click="containerMoveOut(searchValue)" v-if="btnType == 'out'">确认出库</button> |
| | | <button size="mini" type="primary" @click="pickIn(searchValue)" v-if="btnType == 'pick'">已拣料回库</button> |
| | | </view> |
| | | </view> |
| | | </template> |
| | |
| | | reload: { |
| | | loading: false, |
| | | loadingText: '更新状态' |
| | | } |
| | | }, |
| | | btnType: 'emptyPakin' |
| | | } |
| | | }, |
| | | onLoad() { |
| | |
| | | uni.request({ |
| | | url: `${_this.baseUrl}/agv/basDevp/list/auth`, |
| | | header: {'token': uni.getStorageSync('token')}, |
| | | data: { |
| | | curr: 1, |
| | | limit: 1000, |
| | | dev_no: _this.station.devNo |
| | | }, |
| | | data: { curr: 1, limit: 1000, dev_no: _this.station.devNo }, |
| | | method: 'GET', |
| | | success(res) { |
| | | res = res.data |
| | |
| | | },500) |
| | | } else if (res.code == 403) { |
| | | uni.showToast({ title: res.msg, icon: "error", position: 'top' }) |
| | | setTimeout(() => { |
| | | uni.reLaunch({ |
| | | url: '../login/login' |
| | | }); |
| | | }, 1000); |
| | | setTimeout(() => { uni.reLaunch({ url: '../login/login' }); }, 1000); |
| | | } else { |
| | | uni.showToast({ title: res.msg, icon: "error", position: 'top' }) |
| | | } |
| | |
| | | }, |
| | | // 站点解绑 |
| | | unbind() { |
| | | |
| | | let _this = this |
| | | let data = {param: JSON.stringify(_this.station)} |
| | | uni.request({ |
| | | url: `${_this.baseUrl}/agv/basDevp/unbind/auth`, |
| | | header: { |
| | | 'token': uni.getStorageSync('token'), |
| | | 'content-type': 'application/x-www-form-urlencoded' |
| | | }, |
| | | data: data, |
| | | method: 'POST', |
| | | success(res) { |
| | | res = res.data |
| | | if (res.code === 200) { |
| | | _this.reloadStation() |
| | | } else if (res.code == 403) { |
| | | uni.showToast({ title: res.msg, icon: "error", position: 'top' }) |
| | | setTimeout(() => { uni.reLaunch({ url: '../login/login' }); }, 1000); |
| | | } else { |
| | | uni.showToast({ title: res.msg, icon: "error", position: 'top' }) |
| | | } |
| | | } |
| | | }) |
| | | } |
| | | } |
| | | } |