1
ljj
2025-07-08 dae569d958abbc625bbd6b7fb0c63be995e6a839
1
1个文件已添加
1个文件已修改
407 ■■■■ 已修改文件
pages/index/_index.vue 190 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/index/index.vue 217 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/index/_index.vue
New file
@@ -0,0 +1,190 @@
<template>
    <view class="content">
        <view class="header">智云L-MES制造执行系统</view>
        <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">
                    {{item.text}}
                </view>
            </view>
        </view>
    </view>
</template>
<script>
    export default {
        data() {
            return {
                serverUrl: uni.getStorageSync('serverUrl') || 'http://47.96.97.237/API',
                itemData: [{
                        img: '../../static/icon/icon1.png',
                        text: '设备档案',
                        url: '/pages/shebeidangan/table',
                        id: 1
                    }, {
                        img: '../../static/icon/icon8.png',
                        text: '设备履历',
                        url: '/pages/shebeilvli/table',
                        id: 0,
                    }, {
                        img: '../../static/icon/icon2.png',
                        text: '设备保养计划单',
                        url: '/pages/baoyangjihua/table',
                        id: 2
                    }, {
                        img: '../../static/icon/icon3.png',
                        text: '设备保养记录单',
                        url: '/pages/baoyangjilu/table',
                        id: 3
                    }, {
                        img: '../../static/icon/icon4.png',
                        text: '设备点检计划单',
                        url: '',
                        id: 4
                    }, {
                        img: '../../static/icon/icon5.png',
                        text: '设备点检记录单',
                        url: '',
                        id: 5,
                    }, {
                        img: '../../static/icon/icon6.png',
                        text: '设备故障登记表',
                        url: '/pages/guzhangdengji/table',
                        id: 6
                    }, {
                        img: '../../static/icon/icon7.png',
                        text: '设备维修记录单',
                        url: '/pages/shebeiweixiu/table',
                        id: 7,
                        // },{
                        //  img:'../../static/icon/icon8.png',
                        //  text:'设备履历',
                        //  url:'/pages/shebeilvli/table',
                        //  id:8,
                    }, {
                        img: '../../static/icon/icon9.png',
                        text: '工序进站接收单',
                        url: '/pages/gongxuIn/table',
                        id: 9,
                    }, {
                        img: '../../static/icon/icon10.png',
                        text: '工序出站汇报单',
                        url: '/pages/gongxuOut/table',
                        id: 10,
                    }, {
                        img: '../../static/icon/icon11.png',
                        text: '工序委外发出单',
                        url: '/pages/weiwaigxIn/table',
                        id: 11,
                    }, {
                        img: '../../static/icon/icon12.png',
                        text: '工序委外接收单',
                        url: '/pages/weiwaigxOut/table',
                        id: 12,
                        // }, {
                        //     img: '../../static/icon/icon13.png',
                        //     text: '设备管理',
                        //     url: '/pages/shebeiguanli/table',
                        //     id: 13,
                    }, {
                        img: '../../static/icon/icon14.png',
                        text: '报工平台',
                        url: '/pages/baogong/table',
                        id: 14,
                    }, {
                        img: '../../static/icon/icon15.png',
                        text: '异常反馈单',
                        url: '/pages/yichang/table',
                        id: 15,
                    }, {
                        img: '../../static/icon/icon16.png',
                        text: '异常反馈处理单',
                        url: '/pages/yichang/list',
                        id: 16,
                    }, {
                        img: '../../static/icon/icon16.png',
                        text: '标签打印',
                        url: '/pages/labelPrinter/index',
                        id: 17,
                    },
                    {
                        img: '../../static/icon/icon16.png',
                        text: '设备运行状态',
                        url: '/pages/shebeiyunxingzhuangtai/shebeiyunxingzhuangtai',
                        id: 18,
                    },
                    {
                        img: '../../static/icon/icon16.png',
                        text: '模具运行状态',
                        url: '/pages/mujvzhuangtai/mujvzhuangtai',
                        id: 19,
                    },
                    {
                        img: '../../static/icon/icon16.png',
                        text: '条码拆码',
                        url: '/pages/tiaomachaima/tiaomachaima',
                        id: 20,
                    }
                ]
            }
        },
        onLoad() {
        },
        methods: {
            toUrl(item) {
                if (item.url) {
                    uni.navigateTo({
                        url: item.url
                    })
                } else {
                    // uni.showToast({
                    //     title:'功能开发中。。。',
                    //     icon:'none'
                    // })
                }
            }
        }
    }
</script>
<style lang="scss" scoped>
    .header {
        width: 750rpx;
        background: linear-gradient(0deg, #71AFFC 0%, #3A78FF 100%);
        font-size: 47rpx;
        font-weight: bold;
        color: #FFFFFF;
        text-align: center;
        padding: 9vh 0 6vh 0;
    }
    .mains {
        width: 720rpx;
        margin: 0 auto;
        display: flex;
        flex-wrap: wrap;
        margin-top: 3vh;
        .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;
            }
        }
    }
</style>
pages/index/index.vue
@@ -18,115 +18,112 @@
            return {
                serverUrl: uni.getStorageSync('serverUrl') || 'http://47.96.97.237/API',
                itemData: [{
                        img: '../../static/icon/icon1.png',
                        text: '设备档案',
                        url: '/pages/shebeidangan/table',
                        id: 1
                    }, {
                        img: '../../static/icon/icon8.png',
                        text: '设备履历',
                        url: '/pages/shebeilvli/table',
                        id: 0,
                    }, {
                        img: '../../static/icon/icon2.png',
                        text: '设备保养计划单',
                        url: '/pages/baoyangjihua/table',
                        id: 2
                    }, {
                        img: '../../static/icon/icon3.png',
                        text: '设备保养记录单',
                        url: '/pages/baoyangjilu/table',
                        id: 3
                    }, {
                        img: '../../static/icon/icon4.png',
                        text: '设备点检计划单',
                        url: '',
                        id: 4
                    }, {
                        img: '../../static/icon/icon5.png',
                        text: '设备点检记录单',
                        url: '',
                        id: 5,
                    }, {
                        img: '../../static/icon/icon6.png',
                        text: '设备故障登记表',
                        url: '/pages/guzhangdengji/table',
                        id: 6
                    }, {
                        img: '../../static/icon/icon7.png',
                        text: '设备维修记录单',
                        url: '/pages/shebeiweixiu/table',
                        id: 7,
                        // },{
                        //  img:'../../static/icon/icon8.png',
                        //  text:'设备履历',
                        //  url:'/pages/shebeilvli/table',
                        //  id:8,
                    }, {
                        img: '../../static/icon/icon9.png',
                        text: '工序进站接收单',
                        url: '/pages/gongxuIn/table',
                        id: 9,
                    }, {
                        img: '../../static/icon/icon10.png',
                        text: '工序出站汇报单',
                        url: '/pages/gongxuOut/table',
                        id: 10,
                    }, {
                        img: '../../static/icon/icon11.png',
                        text: '工序委外发出单',
                        url: '/pages/weiwaigxIn/table',
                        id: 11,
                    }, {
                        img: '../../static/icon/icon12.png',
                        text: '工序委外接收单',
                        url: '/pages/weiwaigxOut/table',
                        id: 12,
                        // }, {
                        //     img: '../../static/icon/icon13.png',
                        //     text: '设备管理',
                        //     url: '/pages/shebeiguanli/table',
                        //     id: 13,
                    }, {
                        img: '../../static/icon/icon14.png',
                        text: '报工平台',
                        url: '/pages/baogong/table',
                        id: 14,
                    }, {
                        img: '../../static/icon/icon15.png',
                        text: '异常反馈单',
                        url: '/pages/yichang/table',
                        id: 15,
                    }, {
                        img: '../../static/icon/icon16.png',
                        text: '异常反馈处理单',
                        url: '/pages/yichang/list',
                        id: 16,
                    }, {
                        img: '../../static/icon/icon16.png',
                        text: '标签打印',
                        url: '/pages/labelPrinter/index',
                        id: 17,
                    },
                    {
                        img: '../../static/icon/icon16.png',
                        text: '设备运行状态',
                        url: '/pages/shebeiyunxingzhuangtai/shebeiyunxingzhuangtai',
                        id: 18,
                    },
                    {
                        img: '../../static/icon/icon16.png',
                        text: '模具运行状态',
                        url: '/pages/mujvzhuangtai/mujvzhuangtai',
                        id: 19,
                    },
                    {
                        img: '../../static/icon/icon16.png',
                        text: '条码拆码',
                        url: '/pages/tiaomachaima/tiaomachaima',
                        id: 20,
                    }
                ]
                    img: '../../static/icon/icon1.png',
                    text: '设备档案',
                    url: '/pages/shebeidangan/table',
                    id: 1
                }, {
                    img: '../../static/icon/icon8.png',
                    text: '设备履历',
                    url: '/pages/shebeilvli/table',
                    id: 0,
                }, {
                    img: '../../static/icon/icon2.png',
                    text: '设备保养计划单',
                    url: '/pages/baoyangjihua/table',
                    id: 2
                }, {
                    img: '../../static/icon/icon3.png',
                    text: '设备保养记录单',
                    url: '/pages/baoyangjilu/table',
                    id: 3
                }, {
                    img: '../../static/icon/icon4.png',
                    text: '设备点检计划单',
                    url: '',
                    id: 4
                }, {
                    img: '../../static/icon/icon5.png',
                    text: '设备点检记录单',
                    url: '',
                    id: 5,
                }, {
                    img: '../../static/icon/icon6.png',
                    text: '设备故障登记表',
                    url: '/pages/guzhangdengji/table',
                    id: 6
                }, {
                    img: '../../static/icon/icon7.png',
                    text: '设备维修记录单',
                    url: '/pages/shebeiweixiu/table',
                    id: 7,
                    // },{
                    //  img:'../../static/icon/icon8.png',
                    //  text:'设备履历',
                    //  url:'/pages/shebeilvli/table',
                    //  id:8,
                }, {
                    img: '../../static/icon/icon9.png',
                    text: '工序进站接收单',
                    url: '/pages/gongxuIn/table',
                    id: 9,
                }, {
                    img: '../../static/icon/icon10.png',
                    text: '工序出站汇报单',
                    url: '/pages/gongxuOut/table',
                    id: 10,
                }, {
                    img: '../../static/icon/icon11.png',
                    text: '工序委外发出单',
                    url: '/pages/weiwaigxIn/table',
                    id: 11,
                }, {
                    img: '../../static/icon/icon12.png',
                    text: '工序委外接收单',
                    url: '/pages/weiwaigxOut/table',
                    id: 12,
                // }, {
                //     img: '../../static/icon/icon13.png',
                //     text: '设备管理',
                //     url: '/pages/shebeiguanli/table',
                //     id: 13,
                }, {
                    img: '../../static/icon/icon14.png',
                    text: '报工平台',
                    url: '/pages/baogong/table',
                    id: 14,
                }, {
                    img: '../../static/icon/icon15.png',
                    text: '异常反馈单',
                    url: '/pages/yichang/table',
                    id: 15,
                }, {
                    img: '../../static/icon/icon16.png',
                    text: '异常反馈处理单',
                    url: '/pages/yichang/list',
                    id: 16,
                }, {
                    img: '../../static/icon/icon17.png',
                    text: '采购入库',
                    url: '/pages/caigouruku/table',
                    id: 17,
                }, {
                    img: '../../static/icon/icon18.png',
                    text: '采购退料',
                    url: '/pages/caigoutuiliao/table',
                    id: 18,
                }, {
                    img: '../../static/icon/icon19.png',
                    text: '销售出库',
                    url: '/pages/xiaoshouchuku/table',
                    id: 19,
                }, {
                    img: '../../static/icon/icon20.png',
                    text: '销售退货',
                    url: '/pages/xiaoshoutuihuo/table',
                    id: 20,
                }]
            }
        },
        onLoad() {
@@ -166,7 +163,7 @@
        display: flex;
        flex-wrap: wrap;
        margin-top: 3vh;
        padding-bottom: 5vh;
        .box {
            width: 25%;
            margin-top: 2.5vh;