erp 新洋电子

290 lines
7.1 KiB

4 years ago
<template>
<view class="content">
<view class="card">
<view class="card-title">检验</view>
<view class="card-content">
4 years ago
<view v-if="isMenu(14)" class="card-list" @tap="rawMaterial()">
4 years ago
<view class="card-list-img">
<image class="icon-yclj" src="../../static/yclj.png"></image>
</view>
<view class="menu-text">
4 years ago
来料检验
4 years ago
</view>
</view>
4 years ago
<!-- <view v-if="isMenu('首检记录')" class="card-list" @tap="firstInspection()">
4 years ago
<view class="card-list-img">
<image class="icon-yclj" src="../../static/sjjl.png"></image>
</view>
<view class="menu-text">
首检记录
</view>
4 years ago
</view> -->
4 years ago
<view v-if="isMenu(16)" class="card-list" @tap="stampingInspection()">
4 years ago
<view class="card-list-img">
<image class="icon-yclj" src="../../static/cyxj.png"></image>
</view>
<view class="menu-text">
冲压巡检
</view>
</view>
4 years ago
<view v-if="isMenu(17)" class="card-list" @tap="spray()">
4 years ago
<view class="card-list-img">
<image class="icon-yclj" src="../../static/ptxj.png"></image>
</view>
<view class="menu-text">
喷涂巡检
</view>
</view>
4 years ago
<view v-if="isMenu(18)" class="card-list" @click="assemble()">
4 years ago
<view class="card-list-img">
<image class="icon-yclj" src="../../static/zzxj.png"></image>
</view>
<view class="menu-text">
组装巡检
</view>
</view>
4 years ago
<view v-if="isMenu(19)" class="card-list" @tap="hardware()">
4 years ago
<view class="card-list-img">
<image class="icon-yclj" src="../../static/wjxj.png"></image>
</view>
<view class="menu-text">
五金巡检
</view>
</view>
4 years ago
<view v-if="isMenu('制程质量')" class="card-list gery">
4 years ago
<view class="card-list-img">
<image class="icon-yclj" src="../../static/zczl.png"></image>
</view>
<view class="menu-text">
制程质量
</view>
</view>
4 years ago
<view v-if="isMenu('成品巡检')" class="card-list gery">
4 years ago
<view class="card-list-img">
<image class="icon-yclj" src="../../static/cpcj.png"></image>
</view>
<view class="menu-text">
成品巡检
</view>
</view>
4 years ago
<view v-if="isMenu(20)" class="card-list" @tap="TCQ()">
4 years ago
<view class="card-list-img">
<image class="icon-yclj" src="../../static/cto.png"></image>
</view>
<view class="menu-text">
4 years ago
三次元检测
4 years ago
</view>
</view>
4 years ago
</view>
</view>
<view class="card" style="margin-top: 24upx;">
<view class="card-title">生产作业</view>
<view class="card-content">
<view class="card-list " @tap="stampingRecordList()">
<view class="card-list-img">
<image class="icon-cyjl" src="../../static/cybb.png"></image>
</view>
<view class="menu-text">
冲压记录
</view>
</view>
4 years ago
<view class="card-list gery" @tap="kfz()">
4 years ago
<view class="card-list-img">
<image class="icon-yclj" src="../../static/ptjl.png"></image>
</view>
<view class="menu-text">
喷涂记录
</view>
</view>
</view>
</view>
<view class="card" style="margin-top: 24upx;">
<view class="card-title">报表</view>
<view class="card-content">
4 years ago
<view class="card-list gery" @tap="kfz()" >
4 years ago
<view class="card-list-img">
<image class="icon-yclj" src="../../static/cyrb.png"></image>
</view>
<view class="menu-text">
冲压日报
</view>
</view>
4 years ago
<view class="card-list gery" @tap="kfz()">
4 years ago
<view class="card-list-img">
<image class="icon-yclj" src="../../static/cyzb.png"></image>
</view>
<view class="menu-text">
冲压周报
</view>
</view>
<view class="card-list gery">
<view class="card-list-img">
<image class="icon-yclj" src="../../static/ptrb.png"></image>
</view>
<view class="menu-text">
喷涂日报
</view>
</view>
4 years ago
<view class="card-list gery" @tap="kfz()">
4 years ago
<view class="card-list-img">
<image class="icon-yclj" src="../../static/ptzb.png"></image>
</view>
<view class="menu-text">
喷涂周报
</view>
</view>
4 years ago
<view class="card-list gery" @tap="kfz()">
4 years ago
<view class="card-list-img">
<image class="icon-cyfx" src="../../static/cyfx.png"></image>
</view>
<view class="menu-text">
冲压返修
</view>
</view>
4 years ago
<view class="card-list gery" @tap="kfz()">
4 years ago
<view class="card-list-img">
<image class="icon-yclj" src="../../static/ptfx.png"></image>
</view>
<view class="menu-text">
喷涂返修
</view>
</view>
</view>
</view>
4 years ago
<view class="card" style="margin-top: 24upx;">
<view class="card-title">保养</view>
<view class="card-content">
<view class="card-list" @tap="modeMaintainList()" >
<view class="card-list-img">
<image class="icon-yclj" src="../../static/cyrb.png"></image>
</view>
<view class="menu-text">
模具保养
</view>
</view>
4 years ago
<view class="card-list" @tap="LineList()">
4 years ago
<view class="card-list-img">
<image class="icon-yclj" src="../../static/cyzb.png"></image>
</view>
<view class="menu-text">
设备保养
</view>
</view>
</view>
</view>
4 years ago
</view>
</template>
<script>
4 years ago
import {
power
} from "../../api/user.js";
4 years ago
import {
mapGetters,
mapMutations
} from 'vuex';
4 years ago
export default {
data() {
return {
4 years ago
title: 'Hello',
4 years ago
menuNameList: [],
power: [],
jurisdiction: [],
4 years ago
}
},
4 years ago
onShow() {
this.isMenu();
},
computed: {
...mapGetters(['userInfo', 'roleType'])
},
4 years ago
onLoad() {
4 years ago
this.power = this.userInfo.power
4 years ago
power({}).then(res => {
res.map(item => {
4 years ago
this.menuNameList.push(item.id);
4 years ago
})
})
4 years ago
},
methods: {
4 years ago
getArr() {
let newArr = this.power.map(item => {
if (item.children) {
item.children.map(items => {
this.jurisdiction.push(items.id)
return items
})
}
})
console.log("xinshuzu", this.jurisdiction)
},
4 years ago
isMenu(id) {
4 years ago
return this.jurisdiction.includes(id);
4 years ago
},
rawMaterial() {
4 years ago
uni.navigateTo({
url: '../rawMaterial/rawMaterial',
success: res => {},
fail: () => {},
complete: () => {}
});
},
4 years ago
firstInspection() {
4 years ago
uni.navigateTo({
4 years ago
url: '../firstInspection/firstInspection'
4 years ago
});
},
4 years ago
stampingInspection() {
4 years ago
uni.navigateTo({
4 years ago
url: '../stampingInspection/stampingInspection'
4 years ago
});
},
4 years ago
spray() {
4 years ago
uni.navigateTo({
4 years ago
url: '../spray/spray'
4 years ago
});
},
4 years ago
assemble() {
4 years ago
uni.navigateTo({
4 years ago
url: '../assemble/assemble'
4 years ago
});
},
4 years ago
hardware() {
4 years ago
uni.navigateTo({
4 years ago
url: '../hardware/hardware'
4 years ago
});
},
4 years ago
stampingRecordList() {
4 years ago
uni.navigateTo({
4 years ago
url: '../stampingRecordList/stampingRecordList'
4 years ago
});
4 years ago
},
4 years ago
TCQ(){
uni.navigateTo({
url: '../TCQ/TCQ'
});
},
4 years ago
modeMaintainList(){
uni.navigateTo({
url: '../modeMaintainList/modeMaintainList'
});
},
4 years ago
LineList(){
uni.navigateTo({
url: '../lineList/lineList'
});
},
4 years ago
kfz(){
this.$functions.error("功能开发中");
4 years ago
}
}
}
</script>
<style lang="scss">
@import "./index.scss"
</style>