| | |
| | | <view class="y-it"><view class="y-it-desc">工作站编号:</view><view class="margin">{{item.devNo}}</view></view> |
| | | <view class="y-it"><view class="y-it-desc">工作站编号:</view><view class="margin">{{item.locSts$}}</view></view> |
| | | |
| | | <view class="y-it" v-if="item.agvWaitPakin"><view class="y-it-desc">订单号:</view><view class="margin">{{item.agvWaitPakin.orderNo}}</view></view> |
| | | <view class="y-it" v-if="item.agvWaitPakin"><view class="y-it-desc">物料号:</view><view class="margin">{{item.agvWaitPakin.matnr}}</view></view> |
| | | <view class="y-it" v-if="item.agvWaitPakin"><view class="y-it-desc">序列码:</view><view class="margin">{{item.agvWaitPakin.batch}}</view></view> |
| | | <view class="y-it" v-if="item.agvWaitPakin"><view class="y-it-desc">批号:</view><view class="margin">{{item.agvWaitPakin.batch}}</view></view> |
| | | <view class="y-it" v-if="item.agvWaitPakin"><view class="y-it-desc">料箱码:</view><view class="margin">{{item.agvWaitPakin.suppCode}}</view></view> |
| | | <view class="y-it" v-if="item.agvWaitPakin"><view class="y-it-desc">数量:</view><view class="margin">{{item.agvWaitPakin.anfme}}</view></view> |
| | | |
| | | <view class="y-it" v-if="item.agvWrkMast"><view class="y-it-desc">工作号:</view><view class="margin">{{item.agvWrkMast.wrkNo}}</view></view> |
| | | <view class="y-it" v-if="item.agvWrkMast"><view class="y-it-desc">工作状态:</view><view class="margin">{{item.agvWrkMast.wrkSts$}}</view></view> |
| | | <view class="y-it" v-if="item.agvWrkMast"><view class="y-it-desc">工作类型:</view><view class="margin">{{item.agvWrkMast.ioType$}}</view></view> |
| | | |
| | | <!-- v-for="k in item.agvWrkDetl.orderNo" --> |
| | | <view class="y-it" v-if="item.agvWrkDetl " > |
| | | <view style="display: flex;align-items: stretch;" > |
| | | <view style="height: 100%">订单号: </view> |
| | | <view style="width: 16vw;display: flex;flex-wrap: wrap;"> |
| | | <view style="width: 100%; text-align: left;" v-for="k in item.agvWrkDetl.orderNo">{{k.orderNo}}--{{k.anfme}}</view> |
| | | </view> |
| | | <!-- <view style="width: 16vw;background-color: aquamarine;display: flex;" v-for="k in item.agvWrkDetl.orderNo"> |
| | | <view>{{k.orderNo}}--</view> |
| | | <view>{{k.anfme}}</view> |
| | | </view> --> |
| | | </view> |
| | | </view> |
| | | <view class="y-it" v-if="item.agvWrkDetl"><view class="y-it-desc">物料号:</view><view class="margin">{{item.agvWrkDetl.matnr}}</view></view> |
| | | <view class="y-it" v-if="item.agvWrkDetl"><view class="y-it-desc">序列码:</view><view class="margin">{{item.agvWrkDetl.batch}}</view></view> |
| | | <view class="y-it" v-if="item.agvWrkDetl"><view class="y-it-desc">批号:</view><view class="margin">{{item.agvWrkDetl.batch}}</view></view> |
| | | <view class="y-it" v-if="item.agvWrkDetl"><view class="y-it-desc">料箱码:</view><view class="margin">{{item.agvWrkDetl.suppCode}}</view></view> |
| | | <view class="y-it" v-if="item.agvWrkDetl"><view class="y-it-desc">数量:</view><view class="margin">{{item.agvWrkDetl.anfme}}</view></view> |
| | | <view class="y-it" v-if="item.agvWrkDetl"> |
| | | <view class="y-it-desc" >取货数量:</view><view class="margin">{{item.agvWrkDetl.anfme}}</view> |
| | | <view class="y-it-desc" style="flex:1;">结余数量:</view><view class="margin" style="margin-right: 10%;">{{item.agvWrkDetl.volume}}</view> |
| | | </view> |
| | | |
| | | </view> |
| | | </view> |
| | |
| | | const BasePort = uni.getStorageSync('BasePort'); |
| | | const BaseCrnId = uni.getStorageSync('BaseCrnId'); |
| | | const PROJ = uni.getStorageSync('UPROJ'); |
| | | const CURRENT = uni.getStorageSync('current'); |
| | | that.baseUrl = PROJ |
| | | that.baseIP = BaseIP |
| | | that.baseLedId = BaseLedId |
| | | that.basePort = BasePort |
| | | that.baseCrnId = BaseCrnId |
| | | that.current = CURRENT |
| | | this.getUrl() |
| | | this.getVisualized() |
| | | }, |
| | |
| | | // this.getInfo2() |
| | | // this.getError2() |
| | | // this.getUrl() |
| | | this.controller() |
| | | // this.controller() |
| | | this.getVisualized() |
| | | },1000) |
| | | |
| | |
| | | that.locs = []; |
| | | for (let k of res.data.body) { |
| | | for (let i of k.loc) { |
| | | if (i.agvWrkDetl) { |
| | | let a = i.agvWrkDetl.orderNo |
| | | if (RegExp(/{/).test(a)) { |
| | | i.agvWrkDetl.orderNo = JSON.parse(a) |
| | | } else { |
| | | i.agvWrkDetl.orderNo = [] |
| | | console.log(i.agvWrkDetl); |
| | | i.agvWrkDetl.orderNo.push({anfme:i.agvWrkDetl.anfme,orderNo:a}) |
| | | } |
| | | |
| | | } |
| | | |
| | | |
| | | // if (i.devNo == 'CS-101-004-01@1') { |
| | | // let a = i.agvWrkDetl.orderNo |
| | | // // console.log(a.length); |
| | | // let b = JSON.parse(a) |
| | | // // console.log(b.length); |
| | | |
| | | // } |
| | | // console.log(i.agvWrkDetl); |
| | | that.locs.push(i) |
| | | } |
| | | } |
| | |
| | | uni.setStorageSync('BasePort',this.basePort); |
| | | uni.setStorageSync('BaseCrnId',this.baseCrnId); |
| | | uni.setStorageSync('UPROJ',this.baseUrl); |
| | | uni.setStorageSync('current',this.current); |
| | | this.getUrl() |
| | | this.ejectShow = false |
| | | }, |