#
whycq
2024-11-21 ac186ac5c9edbe245b70676f86ad2f68bf3f34a7
Monitor-APP/pages/home/home.vue
@@ -218,11 +218,10 @@
                            <view class="text-content">
                                <!-- head -->
                                <view class="swiper-head">
                                    <view style="width: 20%;">目标站:{{infoText.staNo}}</view>
                                    <view style="width: 30%;">商品编号</view>
                                    <view style="width: 20%;">商品名称</view>
                                    <view style="width: 20%;">规格</view>
                                    <view style="width: 10%;">数量</view>
                           <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>
                                <!-- body -->
                                <view class="swiper-body">
@@ -231,14 +230,18 @@
                                    vertical 滑动方向是否为纵向 
                                    display-multiple-items 同时显示的滑块数量 -->
                                    <swiper class="swiper-body-main" vertical="true" 
                                    display-multiple-items="8"
                                    display-multiple-items="3"
                                    circular="true" :autoplay="true" :interval="3000" :duration="1000">
                                        <swiper-item class="swiper-item" v-for="(item,i) in swiperList" :key="i">
                                            <view style="width: 20%;">No:{{i+1}}</view>
                                            <view style="width: 30%;">{{item.matnr}}</view>
                                            <view style="width: 20%;">{{item.maknx}}</view>
                                            <view style="width: 20%;">{{item.specs}}</view>
                                            <view style="width: 10%;">{{item.count}}</view>
                                            <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.matnr}}</view>
                                            <view style="width: 30%;">作业: {{item.count}} / 原数: {{item.total}}</view>
                                            <view style="width: 40%;">规格: {{item.specs}}</view>
                                            <view style="width: 30%;">单据号: {{item.orderNo}}</view>
                                        </swiper-item>
                                    </swiper>
                                </view>
@@ -402,7 +405,7 @@
            that.baseLedId = BaseLedId
            that.basePort = BasePort
            that.baseCrnId = BaseCrnId
            this.getUrl()
            // this.getUrl()
         setTimeout(()=>{
            this.getServerData()
            this.initlineChart()
@@ -484,12 +487,42 @@
                    }
                    // infoType1:只有拣料等信息
                    that.infoType = 1
                    if (res.data[0].ioType === 101) {
                        that.infoText.title = '全板出库'
                    } else if(res.data[0].ioType === 103) {
                        that.infoText.title = '检料出库'
                    switch (res.data[0].ioType) {
                       case 1:
                          that.infoText.title = '全板入库'
                          break;
                       case 1:
                          that.infoText.title = '空板入库'
                          break;
                       case 53:
                          that.infoText.title = '拣料回库'
                          break;
                       case 54:
                          that.infoText.title = '并板回库'
                          break;
                       case 57:
                          that.infoText.title = '盘点回库'
                          break;
                       case 101:
                          that.infoText.title = '全板出库'
                          break;
                       case 103:
                          that.infoText.title = '拣料出库'
                          break;
                       case 104:
                          that.infoText.title = '并板出库'
                          break;
                       case 107:
                          that.infoText.title = '盘点出库'
                          break;
                       case 110:
                          that.infoText.title = '空板出库'
                          break;
                    }
                    that.infoText.staNo = res.data[0].staNo
                    that.infoText.barcode = res.data[0].barcode
               that.infoText.workNo = res.data[0].workNo
               that.infoText.staNo = res.data[0].staNo
               that.infoText.sourceLocNo = res.data[0].sourceLocNo
                    that.swiperList = res.data[0].matDtos
                    // that.infoText.matnr = res.data[0].matDtos[0].matnr
                    // that.infoText.specs = res.data[0].matDtos[0].specs
@@ -578,7 +611,10 @@
                            } else if(res.data[0].ioType === 107) {
                                that.infoText.title = '盘点出库'
                            }
                            that.infoText.barcode = res.data[0].barcode
                            that.infoText.workNo = res.data[0].workNo
                            that.infoText.staNo = res.data[0].staNo
                            that.infoText.sourceLocNo = res.data[0].sourceLocNo
                            that.swiperList = res.data[0].matDtos
                            // that.infoText.matnr = res.data[0].matDtos[0].matnr
                            // that.infoText.specs = res.data[0].matDtos[0].specs