|
|
|
@ -3,7 +3,7 @@
|
|
|
|
|
<view class="card"> |
|
|
|
|
<view class="card-title">检验</view> |
|
|
|
|
<view class="card-content"> |
|
|
|
|
<view v-if="isMenu('原材料检')" class="card-list" @tap="rawMaterial()"> |
|
|
|
|
<view v-if="isMenu(14)" class="card-list" @tap="rawMaterial()"> |
|
|
|
|
<view class="card-list-img"> |
|
|
|
|
<image class="icon-yclj" src="../../static/yclj.png"></image> |
|
|
|
|
</view> |
|
|
|
@ -19,7 +19,7 @@
|
|
|
|
|
首检记录 |
|
|
|
|
</view> |
|
|
|
|
</view> --> |
|
|
|
|
<view v-if="isMenu('冲压巡检')" class="card-list" @tap="stampingInspection()"> |
|
|
|
|
<view v-if="isMenu(16)" class="card-list" @tap="stampingInspection()"> |
|
|
|
|
<view class="card-list-img"> |
|
|
|
|
<image class="icon-yclj" src="../../static/cyxj.png"></image> |
|
|
|
|
</view> |
|
|
|
@ -27,7 +27,7 @@
|
|
|
|
|
冲压巡检 |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
<view v-if="isMenu('喷涂巡检')" class="card-list" @tap="spray()"> |
|
|
|
|
<view v-if="isMenu(17)" class="card-list" @tap="spray()"> |
|
|
|
|
<view class="card-list-img"> |
|
|
|
|
<image class="icon-yclj" src="../../static/ptxj.png"></image> |
|
|
|
|
</view> |
|
|
|
@ -35,7 +35,7 @@
|
|
|
|
|
喷涂巡检 |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
<view v-if="isMenu('组装巡检')" class="card-list" @click="assemble()"> |
|
|
|
|
<view v-if="isMenu(18)" class="card-list" @click="assemble()"> |
|
|
|
|
<view class="card-list-img"> |
|
|
|
|
<image class="icon-yclj" src="../../static/zzxj.png"></image> |
|
|
|
|
</view> |
|
|
|
@ -43,7 +43,7 @@
|
|
|
|
|
组装巡检 |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
<view v-if="isMenu('五金巡检')" class="card-list" @tap="hardware()"> |
|
|
|
|
<view v-if="isMenu(19)" class="card-list" @tap="hardware()"> |
|
|
|
|
<view class="card-list-img"> |
|
|
|
|
<image class="icon-yclj" src="../../static/wjxj.png"></image> |
|
|
|
|
</view> |
|
|
|
@ -67,7 +67,7 @@
|
|
|
|
|
成品巡检 |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
<view v-if="isMenu('三次元检测')" class="card-list" @tap="TCQ()"> |
|
|
|
|
<view v-if="isMenu(20)" class="card-list" @tap="TCQ()"> |
|
|
|
|
<view class="card-list-img"> |
|
|
|
|
<image class="icon-yclj" src="../../static/cto.png"></image> |
|
|
|
|
</view> |
|
|
|
@ -189,13 +189,13 @@
|
|
|
|
|
onLoad() { |
|
|
|
|
power({}).then(res => { |
|
|
|
|
res.map(item => { |
|
|
|
|
this.menuNameList.push(item.title); |
|
|
|
|
this.menuNameList.push(item.id); |
|
|
|
|
}) |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
methods: { |
|
|
|
|
isMenu(title) { |
|
|
|
|
return this.menuNameList.includes(title); |
|
|
|
|
isMenu(id) { |
|
|
|
|
return this.menuNameList.includes(id); |
|
|
|
|
}, |
|
|
|
|
rawMaterial() { |
|
|
|
|
uni.navigateTo({ |
|
|
|
|