You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
231 lines
5.9 KiB
231 lines
5.9 KiB
<template> |
|
<view class="content"> |
|
<view class="card"> |
|
<view class="card-title">检验</view> |
|
<view class="card-content"> |
|
<view v-if="isMenu('原材料检')" class="card-list" @tap="rawMaterial()"> |
|
<view class="card-list-img"> |
|
<image class="icon-yclj" src="../../static/yclj.png"></image> |
|
</view> |
|
<view class="menu-text"> |
|
原材料检 |
|
</view> |
|
</view> |
|
<!-- <view v-if="isMenu('首检记录')" class="card-list" @tap="firstInspection()"> |
|
<view class="card-list-img"> |
|
<image class="icon-yclj" src="../../static/sjjl.png"></image> |
|
</view> |
|
<view class="menu-text"> |
|
首检记录 |
|
</view> |
|
</view> --> |
|
<view v-if="isMenu('冲压巡检')" class="card-list" @tap="stampingInspection()"> |
|
<view class="card-list-img"> |
|
<image class="icon-yclj" src="../../static/cyxj.png"></image> |
|
</view> |
|
<view class="menu-text"> |
|
冲压巡检 |
|
</view> |
|
</view> |
|
<view v-if="isMenu('喷涂巡检')" class="card-list" @tap="spray()"> |
|
<view class="card-list-img"> |
|
<image class="icon-yclj" src="../../static/ptxj.png"></image> |
|
</view> |
|
<view class="menu-text"> |
|
喷涂巡检 |
|
</view> |
|
</view> |
|
<view v-if="isMenu('组装巡检')" class="card-list" @click="assemble()"> |
|
<view class="card-list-img"> |
|
<image class="icon-yclj" src="../../static/zzxj.png"></image> |
|
</view> |
|
<view class="menu-text"> |
|
组装巡检 |
|
</view> |
|
</view> |
|
<view v-if="isMenu('五金巡检')" class="card-list" @tap="hardware()"> |
|
<view class="card-list-img"> |
|
<image class="icon-yclj" src="../../static/wjxj.png"></image> |
|
</view> |
|
<view class="menu-text"> |
|
五金巡检 |
|
</view> |
|
</view> |
|
<view v-if="isMenu('制程质量')" class="card-list gery"> |
|
<view class="card-list-img"> |
|
<image class="icon-yclj" src="../../static/zczl.png"></image> |
|
</view> |
|
<view class="menu-text"> |
|
制程质量 |
|
</view> |
|
</view> |
|
<view v-if="isMenu('成品巡检')" class="card-list gery"> |
|
<view class="card-list-img"> |
|
<image class="icon-yclj" src="../../static/cpcj.png"></image> |
|
</view> |
|
<view class="menu-text"> |
|
成品巡检 |
|
</view> |
|
</view> |
|
<view v-if="isMenu('三次元检测')" class="card-list" @tap="TCQ()"> |
|
<view class="card-list-img"> |
|
<image class="icon-yclj" src="../../static/cto.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"> |
|
<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> |
|
<view class="card-list gery" @tap="kfz()"> |
|
<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"> |
|
<view class="card-list gery" @tap="kfz()" > |
|
<view class="card-list-img"> |
|
<image class="icon-yclj" src="../../static/cyrb.png"></image> |
|
</view> |
|
<view class="menu-text"> |
|
冲压日报 |
|
</view> |
|
</view> |
|
<view class="card-list gery" @tap="kfz()"> |
|
<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> |
|
<view class="card-list gery" @tap="kfz()"> |
|
<view class="card-list-img"> |
|
<image class="icon-yclj" src="../../static/ptzb.png"></image> |
|
</view> |
|
<view class="menu-text"> |
|
喷涂周报 |
|
</view> |
|
</view> |
|
<view class="card-list gery" @tap="kfz()"> |
|
<view class="card-list-img"> |
|
<image class="icon-cyfx" src="../../static/cyfx.png"></image> |
|
</view> |
|
<view class="menu-text"> |
|
冲压返修 |
|
</view> |
|
</view> |
|
<view class="card-list gery" @tap="kfz()"> |
|
<view class="card-list-img"> |
|
<image class="icon-yclj" src="../../static/ptfx.png"></image> |
|
</view> |
|
<view class="menu-text"> |
|
喷涂返修 |
|
</view> |
|
</view> |
|
</view> |
|
</view> |
|
</view> |
|
</template> |
|
|
|
<script> |
|
import { |
|
power |
|
} from "../../api/user.js"; |
|
export default { |
|
data() { |
|
return { |
|
title: 'Hello', |
|
menuNameList: [] |
|
} |
|
}, |
|
onLoad() { |
|
power({}).then(res => { |
|
res.map(item => { |
|
this.menuNameList.push(item.title); |
|
}) |
|
}) |
|
}, |
|
methods: { |
|
isMenu(title) { |
|
return this.menuNameList.includes(title); |
|
}, |
|
rawMaterial() { |
|
uni.navigateTo({ |
|
url: '../rawMaterial/rawMaterial', |
|
success: res => {}, |
|
fail: () => {}, |
|
complete: () => {} |
|
}); |
|
}, |
|
firstInspection() { |
|
uni.navigateTo({ |
|
url: '../firstInspection/firstInspection' |
|
}); |
|
}, |
|
stampingInspection() { |
|
uni.navigateTo({ |
|
url: '../stampingInspection/stampingInspection' |
|
}); |
|
}, |
|
spray() { |
|
uni.navigateTo({ |
|
url: '../spray/spray' |
|
}); |
|
}, |
|
assemble() { |
|
uni.navigateTo({ |
|
url: '../assemble/assemble' |
|
}); |
|
}, |
|
hardware() { |
|
uni.navigateTo({ |
|
url: '../hardware/hardware' |
|
}); |
|
}, |
|
stampingRecordList() { |
|
uni.navigateTo({ |
|
url: '../stampingRecordList/stampingRecordList' |
|
}); |
|
}, |
|
TCQ(){ |
|
uni.navigateTo({ |
|
url: '../TCQ/TCQ' |
|
}); |
|
}, |
|
kfz(){ |
|
this.$functions.error("功能开发中"); |
|
} |
|
} |
|
} |
|
</script> |
|
|
|
<style lang="scss"> |
|
@import "./index.scss" |
|
</style>
|
|
|