自动化立体仓库 - WMS系统
*
lsh
9 天以前 9701924a0a0c30e54f379ec226acb09f71d6686f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
<!DOCTYPE html>
<html lang="en">
 
<head>
    <meta charset="UTF-8">
    <title>硫化罐设备</title>
    <link rel="stylesheet" href="../../static/css/element.css">
    <link rel="stylesheet" href="../../static/css/element-ui.css">
    <link rel="icon" href="../../static/images/favicon.ico" type="image/x-icon">
    <script type="text/javascript" src="../../static/js/jquery/jquery-3.3.1.min.js"></script>
    <script type="text/javascript" src="../../static/js/common.js"></script>
    <script type="text/javascript" src="../../static/js/vue.min.js"></script>
    <script type="text/javascript" src="../../static/js/element.js"></script>
</head>
<style scoped>
 
</style>
 
<body>
    <div id="app" style="display: flex;justify-content: center;flex-wrap: wrap;">
        <div style="width: 100%;">
            <el-table border ref="singleTable" :data="tableData" style="width: 100%">
                <el-table-column property="category" label="类别">
                </el-table-column>
                <el-table-column property="equipmentNo" label="设备号">
                </el-table-column>
                <el-table-column property="categoryOther" label="相关设备类别">
                </el-table-column>
                <el-table-column property="equipmentNoOther" label="相关设备号">
                </el-table-column>
                <el-table-column property="errorM" label="异常描述">
                </el-table-column>
            </el-table>
        </div>
        <div style="width: 100%;">
            <el-table border ref="singleTable" :data="adjacentLocMast" style="width: 100%">
                <el-table-column property="category" label="当前库位">
                </el-table-column>
                <el-table-column property="equipmentNo" label="当前库位状态">
                </el-table-column>
                <el-table-column property="categoryOther" label="相邻库位">
                </el-table-column>
                <el-table-column property="equipmentNoOther" label="相邻库位状态">
                </el-table-column>
                <el-table-column property="errorM" label="异常描述">
                </el-table-column>
            </el-table>
        </div>
 
    </div>
    <script>
        var app = new Vue({
            el: '#app',
            data: {
                tableData: [],
                adjacentLocMast: []
            },
            created() {
                this.init()
            },
            watch: {
            },
            methods: {
                init() {
                    this.getTableData()
                    this.getAdjacentLocMast()
 
                    setInterval(() => {
                        this.getTableData()
                        this.getAdjacentLocMast()
                        // this.demoStatus()
                    }, 1000)
                },
                confirmEvent() {
                },
                cancelEvent() {
                },
                getTableData() {
                    let that = this;
                    $.ajax({
                        url: baseUrl + "/error/device/task/depthAndShallowness",
                        headers: {
                            'token': localStorage.getItem('token')
                        },
                        data: {},
                        dataType: 'json',
                        contentType: 'application/json;charset=UTF-8',
                        method: 'post',
                        success: function (res) {
                            that.tableData = res.data
                        }
                    });
                },
                getAdjacentLocMast() {
                    let that = this;
                    $.ajax({
                        url: baseUrl + "/error/device/locSts/adjacentLocMast",
                        headers: {
                            'token': localStorage.getItem('token')
                        },
                        data: {},
                        dataType: 'json',
                        contentType: 'application/json;charset=UTF-8',
                        method: 'post',
                        success: function (res) {
                            that.adjacentLocMast = res.data
                        }
                    });
                }
            }
        })
    </script>
</body>
 
</html>