| | |
| | | <!-- 文本容器 --> |
| | | <view class="text-content"> |
| | | <!-- head --> |
| | | <view class="swiper-head"> |
| | | <!-- <view class="swiper-head"> |
| | | <view style="width: 30%;">托盘码: {{infoText.barcode}}</view> |
| | | <view style="width: 20%;">工作号: {{infoText.workNo}}</view> |
| | | <view style="width: 30%;">源库位: {{infoText.sourceLocNo}}</view> |
| | | <view style="width: 20%;">目标站: {{infoText.staNo}}</view> |
| | | <!-- <view style="width: 10%;">数量</view> --> |
| | | </view> |
| | | <view style="width: 20%;">接收站点: {{infoText.staNo}}</view> |
| | | </view> --> |
| | | <!-- body --> |
| | | <view class="swiper-body"> |
| | | <!-- swiper 一些说明 |
| | |
| | | vertical 滑动方向是否为纵向 |
| | | display-multiple-items 同时显示的滑块数量 --> |
| | | <swiper class="swiper-body-main" vertical="true" |
| | | display-multiple-items="6" |
| | | circular="true" :autoplay="true" :interval="3000" :duration="2000"> |
| | | display-multiple-items="5" |
| | | circular="true" :autoplay="false" :interval="3000" :duration="2000"> |
| | | <swiper-item class="swiper-item" v-for="(item,i) in swiperList" :key="i"> |
| | | <view style="width: 30%;">{{i+1}} / {{swiperList.length}}</view> |
| | | <!-- <view style="width: 30%;">料号: {{item.matnr}}</view> --> |
| | | <view style="width: 40%;">名称: {{item.maknx}}</view> |
| | | <view style="width: 30%;">客户: {{item.manu}}</view> |
| | | <!-- <view style="width: 30%;">{{i+1}} / {{swiperList.length}}</view> --> |
| | | <view style="width: 20%;">任务单号: {{item.taskNo}}</view> |
| | | <view style="width: 20%;">载具编号: {{item.barcode}}</view> |
| | | <view style="width: 20%;">工作号: {{item.taskNo}}</view> |
| | | <view style="width: 20%;">物料名称: {{item.maktx}}</view> |
| | | <view style="width: 20%;">物料号: {{item.matnr}}</view> |
| | | |
| | | |
| | | <view style="width: 30%;">出库: {{item.count}} / 总数: {{item.total}}</view> |
| | | <view style="width: 40%;">规格: {{item.specs}}</view> |
| | | <view style="width: 30%;">备注: {{item.memo}}</view> |
| | | <view style="width: 20%;">任务类型: {{item.ioType$}}</view> |
| | | <view style="width: 20%;">出发站点: {{item.startPoint ? item.startPoint : '--'}}</view> |
| | | <view style="width: 20%;">接收站点: {{item.targetPoint}}</view> |
| | | <view style="width: 20%;">转运数量: {{item.anfme}}</view> |
| | | <!-- <view style="width: 20%;">备注: {{item.memo}}</view> --> |
| | | <!-- 11 --> |
| | | </swiper-item> |
| | | </swiper> |
| | |
| | | this.getOther() |
| | | // this.getDate() |
| | | this.getDate2() |
| | | // this.getInfo() |
| | | this.getInfo() |
| | | // this.getError() |
| | | this.getInfo2() |
| | | this.getError2() |
| | | // this.getInfo2() |
| | | // this.getError2() |
| | | this.getUrl() |
| | | this.controller() |
| | | // 测试用 |
| | |
| | | } |
| | | // infoType1:只有拣料等信息 |
| | | that.infoType = 1 |
| | | if (res.data[0].ioType === 101) { |
| | | that.infoText.title = '全板出库' |
| | | } else if(res.data[0].ioType === 103) { |
| | | that.infoText.title = '检料出库' |
| | | } else if(res.data[0].ioType === 107) { |
| | | that.infoText.title = '盘点出库' |
| | | } else if(res.data[0].ioType === 1) { |
| | | that.infoText.title = '入库' |
| | | } else if(res.data[0].ioType === 10) { |
| | | that.infoText.title = '空托入库' |
| | | } else if(res.data[0].ioType === 110) { |
| | | that.infoText.title = '空托出库' |
| | | switch (res.data[0].ioType) { |
| | | case 101: |
| | | that.infoText.title = '全板出库' |
| | | break; |
| | | case 103: |
| | | that.infoText.title = '检料出库' |
| | | break; |
| | | case 107: |
| | | that.infoText.title = '盘点出库' |
| | | break; |
| | | case 1: |
| | | that.infoText.title = '入库' |
| | | break; |
| | | case 10: |
| | | that.infoText.title = '空托入库' |
| | | break; |
| | | case 110: |
| | | that.infoText.title = '空托出库' |
| | | break; |
| | | } |
| | | that.infoText.barcode = res.data[0].barcode |
| | | that.infoText.workNo = res.data[0].workNo |
| | | that.infoText.sourceLocNo = res.data[0].sourceLocNo |
| | | that.infoText.staNo = res.data[0].staNo |
| | | that.swiperList = res.data[0].matDtos |
| | | // that.infoText.matnr = res.data[0].matDtos[0].matnr |
| | | // that.infoText.specs = res.data[0].matDtos[0].specs |
| | | // that.infoText.maknx = res.data[0].matDtos[0].maknx |
| | | // that.infoText.count = res.data[0].matDtos[0].count |
| | | |
| | | that.swiperList = res.data |
| | | } else { |
| | | if (that.infoType == 2 || that.infoType == 3) { |
| | | return; |
| | |
| | | getInfo() { |
| | | let that = this |
| | | uni.request({ |
| | | url: that.commonUrl + "/monitor/led", |
| | | url: that.commonUrl + "/monitor/currentTask", |
| | | method:"GET", |
| | | data: {ledId:that.baseLedId}, |
| | | // data: {ledId:that.baseLedId}, |
| | | success(result) { |
| | | that.timeOuts = false |
| | | that.times = 0 |
| | |
| | | } |
| | | // infoType1:只有拣料等信息 |
| | | that.infoType = 1 |
| | | if (res.data[0].ioType === 101) { |
| | | that.infoText.title = '全板出库' |
| | | } else if(res.data[0].ioType === 103) { |
| | | that.infoText.title = '检料出库' |
| | | } else if(res.data[0].ioType === 107) { |
| | | that.infoText.title = '盘点出库' |
| | | } else if(res.data[0].ioType === 1) { |
| | | that.infoText.title = '入库' |
| | | } else if(res.data[0].ioType === 10) { |
| | | that.infoText.title = '空托入库' |
| | | } else if(res.data[0].ioType === 110) { |
| | | that.infoText.title = '空托出库' |
| | | switch (res.data[0].ioType) { |
| | | case 101: |
| | | that.infoText.title = '全板出库' |
| | | break; |
| | | case 103: |
| | | that.infoText.title = '检料出库' |
| | | break; |
| | | case 107: |
| | | that.infoText.title = '盘点出库' |
| | | break; |
| | | case 1: |
| | | that.infoText.title = '入库' |
| | | break; |
| | | case 10: |
| | | that.infoText.title = '空托入库' |
| | | break; |
| | | case 110: |
| | | that.infoText.title = '空托出库' |
| | | break; |
| | | } |
| | | that.infoText.barcode = res.data[0].barcode |
| | | that.infoText.workNo = res.data[0].workNo |
| | | that.infoText.sourceLocNo = res.data[0].sourceLocNo |
| | | that.infoText.staNo = res.data[0].staNo |
| | | that.swiperList = res.data[0].matDtos |
| | | // that.infoText.matnr = res.data[0].matDtos[0].matnr |
| | | // that.infoText.specs = res.data[0].matDtos[0].specs |
| | | // that.infoText.maknx = res.data[0].matDtos[0].maknx |
| | | // that.infoText.count = res.data[0].matDtos[0].count |
| | | |
| | | that.swiperList = res.data |
| | | } else { |
| | | if (that.infoType == 2 || that.infoType == 3) { |
| | | return; |
| | |
| | | method:"GET", |
| | | success(result) { |
| | | var res = result.data.data |
| | | |
| | | that.calendar = res.year + "年" + res.month + "月" + res.day + "日 " + res.hour + ":" + res.minute + ":" + res.second + " " + res.week |
| | | that.currDate = res.year + "/" + res.month + "/" + res.day |
| | | } |