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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
<template>
    <view class="content">
        <view class="mains">
            <view class="box" v-for="(item,index) in itemData" :key="index" @tap="toUrl(item)">
                <image :src="item.img" mode=""></image>
                <view class="texts">
                    <view class="font1">{{item.text}}</view>
                    <!-- <view class="font2">{{item.tip}}</view> -->
                </view>
                <!-- <uni-icons type="forward" color="#888" style="position: absolute;right: 70rpx;" size="18"></uni-icons> -->
            </view>
        </view>
    </view>
</template>
 
<script>
    export default {
        data() {
            return {
                serverUrl: uni.getStorageSync('serverUrl') || 'http://47.96.97.237/API',
                itemData: [{
                        img: '../../static/icon/icon9.png',
                        text: '工序进站接收单新增',
                        tip: '立即新增',
                        url: '/pages/gongxuIn/form',
                        id: 1,
                    }, {
                        img: '../../static/icon/icon9.png',
                        text: '工序进站接收单列表',
                        tip: '查看列表',
                        url: '/pages/gongxuIn/table',
                        id: 2,
                    }, {
                        img: '../../static/icon/icon10.png',
                        text: '工序出站汇报单新增',
                        tip: '立即新增',
                        url: '/pages/gongxuOut/form',
                        id: 3,
                    }, {
                        img: '../../static/icon/icon10.png',
                        text: '工序出站汇报单列表',
                        tip: '查看列表',
                        url: '/pages/gongxuOut/table',
                        id: 4,
                    }, {
                        img: '../../static/icon/icon11.png',
                        text: '工序委外发出单新增',
                        tip: '立即新增',
                        url: '/pages/weiwaigxIn/form',
                        id: 5,
                    }, {
                        img: '../../static/icon/icon11.png',
                        text: '工序委外发出单列表',
                        tip: '查看列表',
                        url: '/pages/weiwaigxIn/table',
                        id: 6,
                    }, {
                        img: '../../static/icon/icon12.png',
                        text: '工序委外接收单新增',
                        tip: '立即新增',
                        url: '/pages/weiwaigxOut/form',
                        id: 7,
                    }, {
                        img: '../../static/icon/icon12.png',
                        text: '工序委外接收单列表',
                        tip: '查看列表',
                        url: '/pages/weiwaigxOut/table',
                        id: 8,
                    }
                    // , {
                    //     img: '../../static/icon/icon1.png',
                    //     text: '设备档案查询',
                    //     tip: '查看详情',
                    //     url: '/pages/shebeidangan/table',
                    //     id: 9,
                    // }, {
                    //     img: '../../static/icon/icon8.png',
                    //     text: '设备履历查询',
                    //     tip: '查看详情',
                    //     url: '/pages/shebeilvli/table',
                    //     id: 10,
                    // }, {
                    //     img: '../../static/icon/icon14.png',
                    //     text: '我的报工平台',
                    //     tip: '点击进入',
                    //     url: '/pages/baogong/table',
                    //     id: 11,
                    // }, {
                    //     img: '../../static/icon/icon13.png',
                    //     text: '上模单',
                    //     tip: '查看详情',
                    //     url: '/pages/MJGL/shangmudan/table',
                    //     id: 12,
                    // }, {
                    //     img: '../../static/icon/icon13.png',
                    //     text: '下模单',
                    //     tip: '查看详情',
                    //     url: '',
                    //     id: 13,
                    // }, {
                    //     img: '../../static/icon/icon32.png',
                    //     text: '设备运行状态',
                    //     tip: '查看详情',
                    //     url: '/pages/shebeiyunxingzhuangtai/shebeiyunxingzhuangtai',
                    //     id: 14,
                    // }, {
                    //     img: '../../static/icon/icon6.png',
                    //     text: '模具状态分析',
                    //     tip: '查看详情',
                    //     url: '/pages/mujvzhuangtai/mujvzhuangtai',
                    //     id: 15,
                    // },
                ]
                // itemData: [{
                //     //  img:'../../static/icon0.png',
                //     //  text:'报表中心',
                //     //  url:'/pages/shebeilvli/table',
                //     //  id:0
                //     // },{
                //     img: '../../static/icon/icon_a1.png',
                //     text: '设备档案',
                //     url: '/pages/shebeidangan/table',
                //     id: 1
                // }, {
                //     img: '../../static/icon/icon_a2.png',
                //     text: '设备保养计划单',
                //     url: '/pages/baoyangjihua/table',
                //     id: 2
                // }, {
                //     img: '../../static/icon/icon_a3.png',
                //     text: '设备保养记录单',
                //     url: '/pages/baoyangjilu/table',
                //     id: 3
                //     // },{
                //     //  img:'../../static/icon/icon_a4.png',
                //     //  text:'设备点检计划单',
                //     //  url:'',
                //     //  id:4
                //     // },{
                //     //  img:'../../static/icon/icon_a5.png',
                //     //  text:'设备点检记录单',
                //     //  url:'',
                //     //  id:5,
                // }, {
                //     img: '../../static/icon/icon_a6.png',
                //     text: '设备故障登记表',
                //     url: '/pages/guzhangdengji/table',
                //     id: 6
                // }, {
                //     img: '../../static/icon/icon_a7.png',
                //     text: '设备维修记录单',
                //     url: '/pages/shebeiweixiu/table',
                //     id: 7,
                // }, {
                //     img: '../../static/icon/icon_a8.png',
                //     text: '设备履历',
                //     url: '/pages/shebeilvli/table',
                //     id: 8,
                // }, {
                //     img: '../../static/icon/icon_a9.png',
                //     text: '工序进站接收单',
                //     url: '/pages/gongxuIn/table',
                //     id: 9,
                // }, {
                //     img: '../../static/icon/icon_a10.png',
                //     text: '工序出站汇报单',
                //     url: '/pages/gongxuOut/table',
                //     id: 10,
                // }, {
                //     img: '../../static/icon/icon_a11.png',
                //     text: '工序委外发出单',
                //     url: '/pages/weiwaigxIn/table',
                //     id: 11,
                // }, {
                //     img: '../../static/icon/icon_a12.png',
                //     text: '工序委外接收单',
                //     url: '/pages/weiwaigxOut/table',
                //     id: 12,
                // // }, {
                // //     img: '../../static/icon/icon_a13.png',
                // //     text: '设备管理',
                // //     url: '',
                // //     id: 13,
                // }, {
                //     img: '../../static/icon/icon_a14.png',
                //     text: '报工平台',
                //     url: '/pages/baogong/table',
                //     id: 14,
                // }, {
                //     img: '../../static/icon/icon_a15.png',
                //     text: '异常反馈单',
                //     url: '/pages/yichang/table',
                //     id: 15,
                // }, {
                //     img: '../../static/icon/icon_a16.png',
                //     text: '异常反馈处理单',
                //     url: '/pages/yichang/list',
                //     id: 16,
                // }]
            }
        },
        onLoad() {
 
        },
        methods: {
            toUrl(item) {
                if (item.url) {
                    uni.navigateTo({
                        url: item.url
                    })
                } else {
                    uni.showToast({
                        title: '功能开发中。。。',
                        icon: 'none'
                    })
                }
            }
        }
    }
</script>
 
<style lang="scss" scoped>
    page {
        width: 100vw;
        min-height: 100vh;
        background-color: #fff;
    }
 
    .mains {
        width: 720rpx;
        margin: 0 auto;
        display: flex;
        flex-wrap: wrap;
        padding-bottom: 80rpx;
 
        .box {
            width: 25%;
            margin-top: 2.5vh;
            text-align: center;
 
            image {
                width: 18vw;
                height: 18vw;
            }
 
            .texts {
                width: 120rpx;
                margin: 0 auto;
                font-size: 29rpx;
                font-weight: normal;
                color: #333333;
                margin-top: .2vh;
            }
        }
    }
 
    // .mains {
    //     width: 720rpx;
    //     margin: 0 auto;
    //     padding-bottom: 120rpx;
 
    //     .box {
    //         width: 680rpx;
    //         margin: 0 auto;
    //         margin-top: 20rpx;
    //         display: flex;
    //         align-items: center;
    //         background-color: #fff;
    //         border-radius: 20rpx;
    //         box-shadow: 2upx 2upx 20upx 0 #ddd;
 
    //         image {
    //             width: 78rpx;
    //             height: 78rpx;
    //             padding: 10rpx;
    //             margin: 14rpx 30rpx;
    //         }
 
    //         .texts {
    //             font-size: 30rpx;
    //             font-weight: normal;
    //             color: #333333;
 
    //             .font1 {}
 
    //             .font2 {
    //                 font-size: 25rpx;
    //                 color: #999;
    //             }
    //         }
    //     }
    // }
</style>