whycq
2024-09-12 dce0fb61398bad714a45ea7ab3e7ba200433129c
未完成
2个文件已修改
200 ■■■■ 已修改文件
Monitor-APP/pages/home/home.vue 78 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Monitor-APP/pages/index/data.json 122 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Monitor-APP/pages/home/home.vue
@@ -92,12 +92,12 @@
                                                <swiper class="manu-body-main" vertical="true" 
                                                display-multiple-items="6"
                                                circular="true" :autoplay="true" :interval="3000" :duration="2000">
                                                    <swiper-item class="manu-item" v-for="(item,i) in swiperList" :key="i">
                                                        <view style="width: 30%;">{{item.maknx}}</view>
                                                        <view style="width: 20%;">{{item.owner}}</view>
                                                        <view style="width: 30%;">{{item.matnr}}</view>
                                                        <view style="width: 20%;">{{item.specs}}</view>
                                                        <view style="width: 10%;">{{item.orderNo}}</view>
                                                    <swiper-item class="manu-item" v-for="(item,i) in boundInfoList" :key="i">
                                                        <view style="width: 30%;">{{item.orderNo}}</view>
                                                        <view style="width: 20%;">{{item.docType}}</view>
                                                        <view style="width: 30%;">{{item.outTime}}</view>
                                                        <view style="width: 20%;">{{item.outTime}}</view>
                                                        <view style="width: 10%;">{{item.useTime}}</view>
                                                    </swiper-item>
                                                </swiper>
                                            </view>
@@ -129,8 +129,8 @@
                                                    <!-- 百分比 -->
                                                    <view class="flex-col" style="align-items: flex-end;justify-content: flex-end;" >
                                                        <!-- style="justify-content: flex-end;position: absolute;top: 0;right: 1vw;text-align: right;" -->
                                                        <text class="item-title">31</text>
                                                        <text class="item-subTitle">今日订单数</text>
                                                        <text class="item-subTitle" style="font-size: 1.5vh;">今日入库:10</text>
                                                        <text class="item-subTitle" style="font-size: 1.5vh;">今日出库:20</text>
                                                    </view>
                                                </view>
                                            </view>
@@ -214,12 +214,12 @@
                                                    <swiper class="manu-body-main" vertical="true" 
                                                    display-multiple-items="3"
                                                    circular="true" :autoplay="true" :interval="3000" :duration="2000">
                                                        <swiper-item class="manu-item" v-for="(item,i) in swiperList" :key="i">
                                                            <view style="width: 20%;">{{item.maknx}}</view>
                                                            <view style="width: 20%;">{{item.owner}}</view>
                                                            <view style="width: 20%;">{{item.matnr}}</view>
                                                            <view style="width: 20%;">{{item.specs}}</view>
                                                            <view style="width: 20%;">{{item.orderNo}}</view>
                                                        <swiper-item class="manu-item" v-for="(item,i) in deviceInfoList" :key="i">
                                                            <view style="width: 20%;">{{item.errCode}}</view>
                                                            <view style="width: 20%;">{{item.errContext}}</view>
                                                            <view style="width: 20%;">{{item.errTime}}</view>
                                                            <view style="width: 20%;">{{item.reTime}}</view>
                                                            <view style="width: 20%;">{{item.stopTime}}</view>
                                                        </swiper-item>
                                                    </swiper>
                                                </view>
@@ -279,7 +279,8 @@
                                            
                                            
                                            <view style="width: 30%;">出库: {{item.count}} / 总数: {{item.total}}</view>
                                            <view style="width: 40%;">规格: {{item.specs}}</view>
                                            <view style="width: 20%;">规格: {{item.specs}}</view>
                                            <view style="width: 20%;">备注: {{item.memo}}</view>
                                            <view style="width: 30%;">单据号: {{item.orderNo}}</view>
                                            
                                            
@@ -434,6 +435,8 @@
                    barcode: ""
                },
                swiperList: [],
                boundInfoList: [],
                deviceInfoList: [],
                timeOut: false,
                times: 0,
                currDate: '',
@@ -473,7 +476,9 @@
                this.getInfo2()
                this.getError2()
                this.getUrl()
                // this.controller()
                this.getBoundInfoTest()
                this.getDeviceInfoTest()
                this.controller()
                // 测试用
                
            },1000)
@@ -489,6 +494,20 @@
                this.chartsDataLine1=JSON.parse(JSON.stringify(this.chartsData.Line))
                this.chartsDataPie2=JSON.parse(JSON.stringify(this.chartsData.Pie))
            },
            // 获取出入库统计数据
            getBoundInfoTest() {
                let that = this
                var result = ycqdata.boundInfoTest
                var    res = result.data
                that.boundInfoList = res.data
            },
            // 获取设备故障数据
            getDeviceInfoTest() {
                let that = this
                var result = ycqdata.deviceInfoTest
                var    res = result.data
                that.deviceInfoList = res.data
            },
            // 获取错误信息
            getInfo2() {
                let that = this
@@ -499,20 +518,21 @@
                        return;
                    }
                    // infoType1:只有拣料等信息
                    that.infoText.title = res.data[0].title
                    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 = '空托出库'
                    }
                    // 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 = '空托出库'
                    // }
                    that.infoText.barcode = res.data[0].barcode
                    that.infoText.workNo = res.data[0].workNo
                    that.infoText.sourceLocNo = res.data[0].sourceLocNo
Monitor-APP/pages/index/data.json
@@ -4,7 +4,7 @@
            "msg": "操作成功",
            "code": 200,
            "data": [{
                "title": "全板出库",
                "title": "此单是生产领料",
                "workNo": 8046,
                "staNo": 200,
                "sourceStaNo": null,
@@ -17,81 +17,69 @@
                        "batch": null,
                        "count": 40.0,
                        "specs": "gcslxwt",
                        "info": "浙江中扬",
                        "bz": "红色",
                        "total" : 200
                    },
                    {
                        "matnr": "LPJ.SLJ.XG.037",
                        "maknx": "工程塑料下弯头",
                        "batch": null,
                        "count": 40.0,
                        "specs": "gcslxwt",
                        "info": "浙江中扬",
                        "bz": "暂存",
                        "total" : 200
                    },
                    {
                        "matnr": "LPJ.SLJ.XG.037",
                        "maknx": "工程塑料下弯头",
                        "batch": null,
                        "count": 40.0,
                        "specs": "gcslxwt",
                        "info": "浙江中扬",
                        "bz": "红色",
                        "total" : 200
                    },
                    {
                        "matnr": "LPJ.SLJ.XG.037",
                        "maknx": "工程塑料下弯头",
                        "batch": null,
                        "count": 40.0,
                        "specs": "gcslxwt",
                        "info": "浙江中扬",
                        "bz": "",
                        "total" : 200
                    },
                    {
                        "matnr": "LPJ.SLJ.XG.037",
                        "maknx": "工程塑料下弯头",
                        "batch": null,
                        "count": 40.0,
                        "specs": "gcslxwt",
                        "info": "浙江中扬",
                        "bz": "",
                        "total" : 200
                    },
                    {
                        "matnr": "LPJ.SLJ.XG.037",
                        "maknx": "工程塑料下弯头",
                        "batch": null,
                        "count": 40.0,
                        "specs": "gcslxwt",
                        "info": "浙江中扬",
                        "bz": "",
                        "total" : 200
                    },
                    {
                        "matnr": "LPJ.SLJ.XG.037",
                        "maknx": "工程塑料下弯头",
                        "batch": null,
                        "count": 40.0,
                        "specs": "gcslxwt",
                        "info": "浙江中扬",
                        "bz": "17号框",
                        "owner": "浙江中扬",
                        "memeo": "红色",
                        "orderNo": "135645",
                        "total" : 200
                    }
                ],
                "emptyMk": false,
                "ioType": 101
            }]
        }
    },
    "dataError2": {
        "data": {
            "msg": "操作成功",
            "code": 200,
            "data": "" 
        }
    },
    "boundInfoTest": {
        "data": {
            "msg": "操作成功",
            "code": 200,
            "data": {
                "totalTime": "7分09秒",
                "detls": [
                {
                    "orderNo": "CK240910165887",
                    "docType": "出库单",
                    "outTime": "9-10 13:11",
                    "inTime": "9-10 20:20",
                    "useTime": "7分09秒"
                }
            ]
            }
        }
    },
    "deviceInfoTest": {
        "data": {
            "msg": "操作成功",
            "code": 200,
            "data": {
                "totalTime": "7分09秒",
                "detls":[
                    {
                        "errCode": "ERRDD3",
                        "errContext": "堆垛机故障",
                        "errTime": "9-10 13:11",
                        "reTime": "9-10 20:20",
                        "stopTime": "7分09秒"
                    },
                    {
                        "errCode": "ERRDD3",
                        "errContext": "堆垛机故障",
                        "errTime": "9-10 13:11",
                        "reTime": "9-10 20:20",
                        "stopTime": "7分09秒"
                    }
                ]
            }
        }
    },
    "lineData": {
@@ -130,8 +118,12 @@
            "noneCount": 256,
            "total": 3840,
            "stockCunt": 2,
            "usedPr": 0.1,
            "used": 2,
            "asrsUsedPr": 1,
            "asrsUsed": 3537,
            "asrsTotal": 45666,
            "wmsUsedPr": 15,
            "wmsUsed": 669,
            "wmsTotal": 1520,
            "pie": [{
                    "name": "在库",
                    "value": 2