SmartStorage/pages/workSpace/workSpace.vue

178 lines
3.6 KiB
Vue
Raw Normal View History

2023-12-20 15:15:23 +08:00
<template>
<view>
<view class="upper-search">
2024-04-07 15:52:22 +08:00
<h4>{{ companyName }}</h4>
2023-12-20 15:15:23 +08:00
<uni-easyinput prefixIcon="search" v-model="iptVal" placeholder="搜索" @iconClick="iconClick"></uni-easyinput>
</view>
<h4 class="tit">业务办理</h4>
<view class="secs">
2024-04-07 15:57:26 +08:00
<!-- <view @click="jumpUrl('fetchMaterial')">
2024-03-13 17:55:34 +08:00
<image src="/static/fetchMaterial.png" mode=""></image>
2023-12-20 15:15:23 +08:00
<span>领料申请</span>
2024-04-07 15:57:26 +08:00
</view> -->
2023-12-20 15:15:23 +08:00
<view @click="jumpUrl('exitMaterial')">
<image src="/static/exitMaterial.png" mode=""></image>
<span>退料申请</span>
</view>
</view>
<h4 class="tit">移动办公</h4>
<view class="secs">
2024-01-04 15:13:09 +08:00
<view
v-for="(part, index) in benchList"
:key="index"
@click="jumpUrl(part.url)"
>
<image :src="part.pic" mode=""></image>
<span>{{ part.name }}</span>
</view>
2024-03-13 17:55:34 +08:00
</view>
<h4 class="tit">查询</h4>
<view class="secs">
<view @click="jumpUrl('searchProjUsing')">
<image src="/static/searchProjUsing.png" mode=""></image>
<span>工程在用</span>
2023-12-20 15:15:23 +08:00
</view>
2024-03-13 17:55:34 +08:00
<view @click="jumpUrl('searchFetchRecord')">
<image src="/static/searchFetchRecord.png" mode=""></image>
<span>领用记录</span>
2023-12-20 15:15:23 +08:00
</view>
</view>
</view>
</template>
<script>
export default {
data() {
return {
2024-04-07 15:52:22 +08:00
companyName: uni.getStorageSync('companyName'),
2024-01-04 15:13:09 +08:00
iptVal: '',
benchList: [
{
name: '领料审批',
2024-03-13 17:55:34 +08:00
pic: '/static/fetchExam.png',
2024-01-04 15:13:09 +08:00
url: 'fetchExam'
},
{
name: '退料审批',
2024-03-13 17:55:34 +08:00
pic: '/static/exitExam.png',
2024-01-04 15:13:09 +08:00
url: 'exitExam'
},
2024-03-13 17:55:34 +08:00
{
name: 'RFID绑定',
pic: '/static/rfidBinding.png',
url: 'rfidBinding'
},
{
name: '二维码绑定',
pic: '/static/qrcodeBinding.png',
url: 'qrcodeBinding'
},
{
name: '新购验收',
pic: '/static/newCheck.png',
url: 'newCheck'
},
2024-01-04 15:13:09 +08:00
{
name: '新购入库',
2024-03-13 17:55:34 +08:00
pic: '/static/newInStore.png',
2024-01-04 15:13:09 +08:00
url: 'newInStore'
},
{
name: '退料入库',
2024-03-13 17:55:34 +08:00
pic: '/static/backMaterialInStore.png',
2024-01-04 15:13:09 +08:00
url: 'backMaterialInStore'
},
{
name: '修试入库',
2024-03-13 17:55:34 +08:00
pic: '/static/repairTestInStore.png',
2024-01-04 15:13:09 +08:00
url: 'repairTestInStore'
},
{
name: '领料出库',
2024-03-13 17:55:34 +08:00
pic: '/static/fetchMaterialOutStore.png',
2024-01-04 15:13:09 +08:00
url: 'fetchMaterialOutStore'
},
{
name: '退料接收',
2024-03-13 17:55:34 +08:00
pic: '/static/backMaterialReceive.png',
2024-01-04 15:13:09 +08:00
url: 'backMaterialReceive'
},
{
name: '维修',
2024-03-13 17:55:34 +08:00
pic: '/static/fix.png',
2024-01-04 15:13:09 +08:00
url: 'fix'
},
{
name: '报废审核',
2024-03-13 17:55:34 +08:00
pic: '/static/crashExam.png',
2024-01-04 15:13:09 +08:00
url: 'crashExam'
},
{
name: '试验检验审核',
2024-03-13 17:55:34 +08:00
pic: '/static/testExam.png',
2024-01-04 15:13:09 +08:00
url: 'testExam'
}
]
2023-12-20 15:15:23 +08:00
}
},
methods: {
iconClick () {
console.log(this.iptVal);
},
jumpUrl (path) {
uni.navigateTo({
url: `/pages/${path}/${path}`
})
},
toast () {
uni.showToast({
icon: 'none',
2024-04-07 13:48:07 +08:00
title: '敬请期待!'
2023-12-20 15:15:23 +08:00
})
}
}
}
</script>
<style lang="scss">
body{
background: url('/static/workspace-bgd.png');
background-repeat: no-repeat;
background-size: 100% 100%;
}
.upper-search{
width: 85%;
margin: 5vh auto;
color: #fff;
h4{
margin-bottom: 1vh;
}
}
.tit{
width: 85%;
margin: 4vh auto;
margin-bottom: 2vh;
}
.secs{
width: 90%;
margin: 0 auto;
display: flex;
flex-wrap: wrap;
view{
width: 25%;
display: flex;
flex-direction: column;
align-items: center;
margin-bottom: 2vh;
image{
width: 50%;
height: 6vh;
margin-bottom: 10rpx;
}
span{
font-size: 20rpx;
}
}
}
</style>