| | |
| | | <view class="text-content"> |
| | | <!-- head --> |
| | | <view class="swiper-head"> |
| | | <view>目标站:{{infoText.staNo}}</view> |
| | | <view>托盘码:{{infoText.barcode}}</view> |
| | | <view>商品编号</view> |
| | | <view>商品名称</view> |
| | | <view>规格</view> |
| | |
| | | circular="true" :autoplay="true" :interval="3000" :duration="1000"> |
| | | <swiper-item class="swiper-item" v-for="(item,i) in swiperList" :key="i"> |
| | | <view>No:{{i+1}}</view> |
| | | <view>{{item.matNo}}</view> |
| | | <view>{{item.matnr}}</view> |
| | | <view>{{item.maknx}}</view> |
| | | <view>{{item.specs}}</view> |
| | | <view>{{item.count}}</view> |
| | |
| | | maknx: "", |
| | | specs: "", |
| | | count: "", |
| | | error: "" |
| | | error: "", |
| | | barcode: "" |
| | | }, |
| | | swiperList: [] |
| | | } |
| | |
| | | this.initlineChart() |
| | | this.initPieChart() |
| | | this.getOther() |
| | | this.getDate() |
| | | // this.getDate() |
| | | this.getDate2() |
| | | this.getInfo() |
| | | this.getError() |
| | | // this.getInfo2() |
| | |
| | | } else if(res.data[0].ioType === 103) { |
| | | that.infoText.title = '检料出库' |
| | | } |
| | | that.infoText.staNo = res.data[0].staNo |
| | | that.infoText.barcode = res.data[0].barcode |
| | | 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.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 = '空托出库' |
| | | } |
| | | that.infoText.staNo = res.data[0].staNo |
| | | that.infoText.barcode = res.data[0].barcode |
| | | that.swiperList = res.data[0].matDtos |
| | | // that.infoText.matnr = res.data[0].matDtos[0].matnr |
| | | // that.infoText.specs = res.data[0].matDtos[0].specs |
| | |
| | | this.getUrl() |
| | | this.ejectShow = false |
| | | }, |
| | | // 日历 服务器 |
| | | getDate2() { |
| | | let that = this |
| | | uni.request({ |
| | | url: that.commonUrl + "/monitor/date", |
| | | 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 |
| | | } |
| | | }) |
| | | }, |
| | | |
| | | // 日历 |
| | | getDate() { |
| | | var dt = new Date(); |