|  |  |  | 
|---|
|  |  |  | <view class="list-left"> | 
|---|
|  |  |  | <view>工位编号:{{item.devNo}}</view> | 
|---|
|  |  |  | <view>站点状态:{{item.locSts$}}</view> | 
|---|
|  |  |  | <view>条形码:{{item.barcode}}</view> | 
|---|
|  |  |  | <view>货架码:{{item.barcode}}</view> | 
|---|
|  |  |  | <view>站点类型:{{item.locType1$}}</view> | 
|---|
|  |  |  | <!-- <view class="card-id">{{i + 1}}</view> --> | 
|---|
|  |  |  | </view> | 
|---|
|  |  |  | 
|---|
|  |  |  | <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" style="background-color: #3eb689;color: #fff;" v-if="station"> | 
|---|
|  |  |  | <view class="list-left"> | 
|---|
|  |  |  | <view>工位编号:{{station.devNo}}</view> | 
|---|
|  |  |  | <view>站点状态:{{station.locSts$}}</view> | 
|---|
|  |  |  | <view>条形码:{{station.barcode}}</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> --> | 
|---|
|  |  |  | <view class="list" style="background-color: #019fe8;color: #fff;" v-if="wrkMast"> | 
|---|
|  |  |  | <view class="list-left"> | 
|---|
|  |  |  | <view>工作号:{{wrkMast.wrkNo}}</view> | 
|---|
|  |  |  | 
|---|
|  |  |  | this.baseUrl = uni.getStorageSync('baseUrl'); | 
|---|
|  |  |  | this.token = uni.getStorageSync('token'); | 
|---|
|  |  |  | this.getBasDevp('all') | 
|---|
|  |  |  | this.searchValueFocus = true | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | methods: { | 
|---|
|  |  |  | searchValueInput() { | 
|---|
|  |  |  | if (this.searchValue == '') { | 
|---|
|  |  |  | this.station = '' | 
|---|
|  |  |  | this.stations = [] | 
|---|
|  |  |  | this.wrkMast = '' | 
|---|
|  |  |  | this.wrkDetls = [] | 
|---|
|  |  |  | } else { | 
|---|
|  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  | _this.stations = res.data.records | 
|---|
|  |  |  | } else { | 
|---|
|  |  |  | console.log(123213); | 
|---|
|  |  |  | res.data.records | 
|---|
|  |  |  | for (let item of res.data.records) { | 
|---|
|  |  |  | if (item.locSts != 'O') { | 
|---|
|  |  |  | item['style'] = 'station-wrk' | 
|---|
|  |  |  | } else { | 
|---|
|  |  |  | item['style'] = 'station-nowrk' | 
|---|
|  |  |  | } | 
|---|
|  |  |  | _this.station = item | 
|---|
|  |  |  | _this.getOrderDetl(_this.station) | 
|---|
|  |  |  | } | 
|---|
|  |  |  | _this.getOrderDetl(res.data.records[0]) | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  | 
|---|
|  |  |  | this.$refs.revise.close() | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | // 前往站点明细页面 | 
|---|
|  |  |  | getOrderDetl(item) { | 
|---|
|  |  |  | getOrderDetl(e) { | 
|---|
|  |  |  | let _this = this | 
|---|
|  |  |  | uni.navigateTo({ | 
|---|
|  |  |  | url: "./stationDetl", | 
|---|
|  |  |  | success: function(res) { | 
|---|
|  |  |  | // 通过eventChannel向被打开页面传送数据   向另外一个页面传递值的 | 
|---|
|  |  |  | res.eventChannel.emit('item', { | 
|---|
|  |  |  | item: item | 
|---|
|  |  |  | }), | 
|---|
|  |  |  | item: e | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | _this.searchValue = '' | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | events: { | 
|---|
|  |  |  | // 为指定事件添加一个监听器,获取被打开页面传送到当前页面的数据  另外一个页面传过来的 | 
|---|
|  |  |  | acceptDataFromOpenedPage: function(data) { | 
|---|
|  |  |  | // _this.matnr = data.data | 
|---|
|  |  |  | _this.input(_this.matnr) | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | _this.searchValueFocus = true | 
|---|
|  |  |  | } | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | } | 
|---|