权限功能完善
This commit is contained in:
parent
ab57988c81
commit
bd9c463855
|
|
@ -50,20 +50,43 @@
|
||||||
class="llsp"
|
class="llsp"
|
||||||
@click="jumpUrl('fetchExam')"
|
@click="jumpUrl('fetchExam')"
|
||||||
v-if="
|
v-if="
|
||||||
store.includes('service:auditing') || store.includes('*')
|
store.includes('picking:auditing:fgs') ||
|
||||||
|
store.includes('*:*:*') ||
|
||||||
|
store.includes('picking:auditing:sgb') ||
|
||||||
|
store.includes('picking:auditing:jjnb') ||
|
||||||
|
store.includes('picking:auditing:tsnb')
|
||||||
">
|
">
|
||||||
<h4>{{ waitList.leaseNum }}</h4>
|
<h4>{{ waitList.leaseNum }}</h4>
|
||||||
<h5>领料待审批</h5>
|
<h5>领料待审批</h5>
|
||||||
</view>
|
</view>
|
||||||
<view class="tlsp" @click="jumpUrl('exitExam')">
|
<view
|
||||||
|
class="tlsp"
|
||||||
|
@click="jumpUrl('exitExam')"
|
||||||
|
v-if="
|
||||||
|
store.includes('return:auditing:auditing') ||
|
||||||
|
store.includes('*:*:*') ||
|
||||||
|
store.includes('return:auditing:auditing:batch')
|
||||||
|
">
|
||||||
<h4>{{ waitList.backNum }}</h4>
|
<h4>{{ waitList.backNum }}</h4>
|
||||||
<h5>退料待审批</h5>
|
<h5>退料待审批</h5>
|
||||||
</view>
|
</view>
|
||||||
<view class="bfsh" @click="jumpUrl('crashExam')">
|
<view
|
||||||
|
class="bfsh"
|
||||||
|
@click="jumpUrl('crashExam')"
|
||||||
|
v-if="
|
||||||
|
store.includes('service:auditing') ||
|
||||||
|
store.includes('*:*:*') ||
|
||||||
|
store.includes('service:batch:auditing')
|
||||||
|
">
|
||||||
<h4>{{ waitList.scrapNum }}</h4>
|
<h4>{{ waitList.scrapNum }}</h4>
|
||||||
<h5>报废待审核</h5>
|
<h5>报废待审核</h5>
|
||||||
</view>
|
</view>
|
||||||
<view class="sysh" @click="jumpUrl('testExam')">
|
<view
|
||||||
|
class="sysh"
|
||||||
|
@click="jumpUrl('testExam')"
|
||||||
|
v-if="
|
||||||
|
store.includes('scrap:auditing') || store.includes('*:*:*')
|
||||||
|
">
|
||||||
<h4>{{ waitList.trialNum }}</h4>
|
<h4>{{ waitList.trialNum }}</h4>
|
||||||
<h5>试验检验待审核</h5>
|
<h5>试验检验待审核</h5>
|
||||||
</view>
|
</view>
|
||||||
|
|
|
||||||
|
|
@ -1,211 +1,225 @@
|
||||||
<template>
|
<template>
|
||||||
<view>
|
<view>
|
||||||
<view class="upper-search">
|
<view class="upper-search">
|
||||||
<h4>{{ companyName }}</h4>
|
<h4>{{ companyName }}</h4>
|
||||||
<uni-easyinput prefixIcon="search" v-model="iptVal" placeholder="搜索" @iconClick="iconClick"></uni-easyinput>
|
<uni-easyinput
|
||||||
</view>
|
prefixIcon="search"
|
||||||
<h4 class="tit">业务办理</h4>
|
v-model="iptVal"
|
||||||
<view class="secs">
|
placeholder="搜索"
|
||||||
<view @click="jumpUrl('fetchMaterial')">
|
@iconClick="iconClick"></uni-easyinput>
|
||||||
<image src="/static/fetchMaterial.png" mode=""></image>
|
</view>
|
||||||
<span>领料申请</span>
|
<h4 class="tit">业务办理</h4>
|
||||||
</view>
|
<view class="secs">
|
||||||
<view @click="jumpUrl('exitMaterial')">
|
<view
|
||||||
<image src="/static/exitMaterial.png" mode=""></image>
|
@click="jumpUrl('fetchMaterial')"
|
||||||
<span>退料申请</span>
|
v-if="
|
||||||
</view>
|
store.includes('picking:apply:apply') ||
|
||||||
</view>
|
store.includes('*:*:*')
|
||||||
<h4 class="tit">移动办公</h4>
|
">
|
||||||
<view class="secs">
|
<image src="/static/fetchMaterial.png" mode=""></image>
|
||||||
<view
|
<span>领料申请</span>
|
||||||
v-for="(part, index) in benchList"
|
</view>
|
||||||
:key="index"
|
<view
|
||||||
@click="jumpUrl(part.url)"
|
@click="jumpUrl('exitMaterial')"
|
||||||
>
|
v-if="
|
||||||
<image :src="part.pic" mode=""></image>
|
store.includes('return:apply:apply') ||
|
||||||
<span>{{ part.name }}</span>
|
store.includes('*:*:*')
|
||||||
</view>
|
">
|
||||||
</view>
|
<image src="/static/exitMaterial.png" mode=""></image>
|
||||||
<h4 class="tit">查询</h4>
|
<span>退料申请</span>
|
||||||
<view class="secs">
|
</view>
|
||||||
<view @click="jumpUrl('searchProjUsing')">
|
</view>
|
||||||
<image src="/static/searchProjUsing.png" mode=""></image>
|
<h4 class="tit">移动办公</h4>
|
||||||
<span>工程在用</span>
|
<view class="secs">
|
||||||
</view>
|
<view
|
||||||
<view @click="jumpUrl('searchFetchRecord')">
|
v-for="(part, index) in benchList"
|
||||||
<image src="/static/searchFetchRecord.png" mode=""></image>
|
:key="index"
|
||||||
<span>领用记录</span>
|
@click="jumpUrl(part.url)">
|
||||||
</view>
|
<image :src="part.pic" mode=""></image>
|
||||||
</view>
|
<span>{{ part.name }}</span>
|
||||||
</view>
|
</view>
|
||||||
|
</view>
|
||||||
|
<h4 class="tit">查询</h4>
|
||||||
|
<view class="secs">
|
||||||
|
<view @click="jumpUrl('searchProjUsing')">
|
||||||
|
<image src="/static/searchProjUsing.png" mode=""></image>
|
||||||
|
<span>工程在用</span>
|
||||||
|
</view>
|
||||||
|
<view @click="jumpUrl('searchFetchRecord')">
|
||||||
|
<image src="/static/searchFetchRecord.png" mode=""></image>
|
||||||
|
<span>领用记录</span>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
companyName: uni.getStorageSync('companyName'),
|
companyName: uni.getStorageSync("companyName"),
|
||||||
iptVal: '',
|
iptVal: "",
|
||||||
benchList: [
|
benchList: [
|
||||||
{
|
{
|
||||||
name: '领料审批',
|
name: "领料审批",
|
||||||
pic: '/static/fetchExam.png',
|
pic: "/static/fetchExam.png",
|
||||||
url: 'fetchExam'
|
url: "fetchExam",
|
||||||
},
|
isShow: "",
|
||||||
{
|
},
|
||||||
name: '退料审批',
|
{
|
||||||
pic: '/static/exitExam.png',
|
name: "退料审批",
|
||||||
url: 'exitExam'
|
pic: "/static/exitExam.png",
|
||||||
},
|
url: "exitExam",
|
||||||
{
|
},
|
||||||
name: 'RFID绑定',
|
{
|
||||||
pic: '/static/rfidBinding.png',
|
name: "RFID绑定",
|
||||||
url: 'rfidBinding'
|
pic: "/static/rfidBinding.png",
|
||||||
},
|
url: "rfidBinding",
|
||||||
{
|
},
|
||||||
name: '二维码绑定',
|
{
|
||||||
pic: '/static/qrcodeBinding.png',
|
name: "二维码绑定",
|
||||||
url: 'qrcodeBinding'
|
pic: "/static/qrcodeBinding.png",
|
||||||
},
|
url: "qrcodeBinding",
|
||||||
{
|
},
|
||||||
name: '综合服务中心审核',
|
{
|
||||||
pic: '/static/serviceCenterExam.png',
|
name: "综合服务中心审核",
|
||||||
url: 'serviceCenterExam'
|
pic: "/static/serviceCenterExam.png",
|
||||||
},
|
url: "serviceCenterExam",
|
||||||
{
|
},
|
||||||
name: '新购入库',
|
{
|
||||||
pic: '/static/newInStore.png',
|
name: "新购入库",
|
||||||
url: 'newInStore'
|
pic: "/static/newInStore.png",
|
||||||
},
|
url: "newInStore",
|
||||||
/* {
|
},
|
||||||
|
/* {
|
||||||
name: '退料入库',
|
name: '退料入库',
|
||||||
pic: '/static/backMaterialInStore.png',
|
pic: '/static/backMaterialInStore.png',
|
||||||
url: 'backMaterialInStore'
|
url: 'backMaterialInStore'
|
||||||
}, */
|
}, */
|
||||||
{
|
{
|
||||||
name: '修试入库',
|
name: "修试入库",
|
||||||
pic: '/static/repairTestInStore.png',
|
pic: "/static/repairTestInStore.png",
|
||||||
url: 'repairTestInStore'
|
url: "repairTestInStore",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: '领料出库',
|
name: "领料出库",
|
||||||
pic: '/static/fetchMaterialOutStore.png',
|
pic: "/static/fetchMaterialOutStore.png",
|
||||||
url: 'fetchMaterialOutStore'
|
url: "fetchMaterialOutStore",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: '退料接收',
|
name: "退料接收",
|
||||||
pic: '/static/backMaterialReceive.png',
|
pic: "/static/backMaterialReceive.png",
|
||||||
url: 'backMaterialReceive'
|
url: "backMaterialReceive",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: '维修',
|
name: "维修",
|
||||||
pic: '/static/fix.png',
|
pic: "/static/fix.png",
|
||||||
url: 'fix'
|
url: "fix",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: '预报废审核',
|
name: "预报废审核",
|
||||||
pic: '/static/preCrashExam.png',
|
pic: "/static/preCrashExam.png",
|
||||||
url: 'preCrashExam'
|
url: "preCrashExam",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: '预报废列表',
|
name: "预报废列表",
|
||||||
pic: '/static/preCrashList.png',
|
pic: "/static/preCrashList.png",
|
||||||
url: 'preCrashList'
|
url: "preCrashList",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: '报废审核',
|
name: "报废审核",
|
||||||
pic: '/static/crashExam.png',
|
pic: "/static/crashExam.png",
|
||||||
url: 'crashExam'
|
url: "crashExam",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: '试验检验审核',
|
name: "试验检验审核",
|
||||||
pic: '/static/testExam.png',
|
pic: "/static/testExam.png",
|
||||||
url: 'testExam'
|
url: "testExam",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'IOT设备绑定',
|
name: "IOT设备绑定",
|
||||||
pic: '/static/testExam.png',
|
pic: "/static/testExam.png",
|
||||||
url: 'IOTBinding'
|
url: "IOTBinding",
|
||||||
}
|
},
|
||||||
]
|
],
|
||||||
}
|
};
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
iconClick () {
|
iconClick() {
|
||||||
console.log(this.iptVal);
|
console.log(this.iptVal);
|
||||||
},
|
},
|
||||||
jumpUrl (path) {
|
jumpUrl(path) {
|
||||||
if (path == 'qrcodeBinding') {
|
if (path == "qrcodeBinding") {
|
||||||
uni.scanCode({
|
uni.scanCode({
|
||||||
success: (res) => {
|
success: (res) => {
|
||||||
const fixedCode = res.result.split('=')[1]
|
const fixedCode = res.result.split("=")[1];
|
||||||
console.log(fixedCode);
|
console.log(fixedCode);
|
||||||
if (!fixedCode) {
|
if (!fixedCode) {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
icon: 'none',
|
icon: "none",
|
||||||
title: '未识别到设备!'
|
title: "未识别到设备!",
|
||||||
})
|
});
|
||||||
} else {
|
} else {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: `/pages/qrcodeBindPage/qrcodeBindPage?code=${fixedCode}`
|
url: `/pages/qrcodeBindPage/qrcodeBindPage?code=${fixedCode}`,
|
||||||
})
|
});
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
})
|
});
|
||||||
} else {
|
} else {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: `/pages/${path}/${path}`
|
url: `/pages/${path}/${path}`,
|
||||||
})
|
});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
toast () {
|
toast() {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
icon: 'none',
|
icon: "none",
|
||||||
title: '敬请期待!'
|
title: "敬请期待!",
|
||||||
})
|
});
|
||||||
}
|
},
|
||||||
}
|
},
|
||||||
}
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
body{
|
body {
|
||||||
background: url('/static/workspace-bgd.png');
|
background: url("/static/workspace-bgd.png");
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
background-size: 100% 100%;
|
background-size: 100% 100%;
|
||||||
}
|
}
|
||||||
.upper-search{
|
.upper-search {
|
||||||
width: 85%;
|
width: 85%;
|
||||||
margin: 6vh auto;
|
margin: 6vh auto;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
h4{
|
h4 {
|
||||||
margin-bottom: 1vh;
|
margin-bottom: 1vh;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.tit{
|
.tit {
|
||||||
width: 85%;
|
width: 85%;
|
||||||
margin: 4vh auto;
|
margin: 4vh auto;
|
||||||
margin-bottom: 2vh;
|
margin-bottom: 2vh;
|
||||||
}
|
}
|
||||||
.secs{
|
.secs {
|
||||||
width: 90%;
|
width: 90%;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
view{
|
view {
|
||||||
width: 25%;
|
width: 25%;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
margin-bottom: 2vh;
|
margin-bottom: 2vh;
|
||||||
image{
|
image {
|
||||||
width: 50%;
|
width: 50%;
|
||||||
height: 6vh;
|
height: 6vh;
|
||||||
margin-bottom: 10rpx;
|
margin-bottom: 10rpx;
|
||||||
}
|
}
|
||||||
span{
|
span {
|
||||||
font-size: 20rpx;
|
font-size: 20rpx;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue