| | |
| | | maxlength="500" ancel="cancel" @clear="clear" placeholder="输入 / 扫描 站点号"> |
| | | </uni-search-bar> |
| | | </view> |
| | | <view class="list" :class="item.style" v-if="stations" v-for="item in stations"> |
| | | <view class="list-left"> |
| | | <view>工位编号:{{item.devNo}}</view> |
| | | <view>工位状态:{{item.locSts$}}</view> |
| | | <view>条形码:{{item.barcode}}</view> |
| | | <view>站点类型:{{item.locType1$}}</view> |
| | | <!-- <view class="card-id">{{i + 1}}</view> --> |
| | | </view> |
| | | <view class="list-right" @click="getOrderDetl(item)"> |
| | | <uni-icons type="right" color="#fff"></uni-icons> |
| | | </view> |
| | | </view> |
| | | <view class="list" style="background-color: #3eb689;color: #fff;" v-if="station"> |
| | | <view class="list-left"> |
| | | <view>工位编号:{{station.devNo}}</view> |
| | |
| | | searchValueFocus: true, |
| | | searchValue: '', |
| | | station: '', |
| | | stations: [], |
| | | wrkMast: '', |
| | | wrkDetls: [], |
| | | waitPakins: [], |
| | | barcode: '' |
| | | barcode: '', |
| | | option: 'pick' |
| | | } |
| | | }, |
| | | onLoad() { |
| | | this.baseUrl = uni.getStorageSync('baseUrl'); |
| | | this.token = uni.getStorageSync('token'); |
| | | this.getBasDevp('all') |
| | | }, |
| | | onShow() { |
| | | |
| | |
| | | this.wrkMast = '' |
| | | this.wrkDetls = [] |
| | | } else { |
| | | this.getBasDevp() |
| | | this.getBasDevp('one') |
| | | } |
| | | }, |
| | | clear() { |
| | |
| | | this.wrkDetls = [] |
| | | }, |
| | | // 获取暂存位 |
| | | getBasDevp() { |
| | | getBasDevp(type) { |
| | | let _this = this |
| | | uni.request({ |
| | | url: `${_this.baseUrl}/agv/basDevp/list/auth`, |
| | |
| | | success(res) { |
| | | res = res.data |
| | | if (res.code === 200) { |
| | | for (let item of res.data.records) { |
| | | _this.station = item |
| | | if (item.barcode) { |
| | | _this.getWrkMast(item.barcode) |
| | | _this.getWaitPakin(item.barcode) |
| | | |
| | | } else { |
| | | if (type == 'all') { |
| | | for (let k of res.data.records) { |
| | | if (k.locSts != 'O') { |
| | | k['style'] = 'station-wrk' |
| | | } else { |
| | | k['style'] = 'station-nowrk' |
| | | } |
| | | } |
| | | _this.stations = res.data.records |
| | | } else { |
| | | for (let item of res.data.records) { |
| | | _this.station = item |
| | | if (item.barcode) { |
| | | _this.getWrkMast(item.barcode) |
| | | _this.getWaitPakin(item.barcode) |
| | | |
| | | } else { |
| | | } |
| | | } |
| | | } |
| | | |
| | | } |
| | | } |
| | | }) |
| | |
| | | align-items: center; |
| | | color: #409EFF; |
| | | } |
| | | .station-wrk { |
| | | background-color: #ff7356; |
| | | color: #fff; |
| | | } |
| | | .station-nowrk { |
| | | background-color: #3eb689; |
| | | color: #fff; |
| | | } |
| | | </style> |