2023-12-20 15:15:23 +08:00
|
|
|
<template>
|
2024-08-19 13:25:42 +08:00
|
|
|
<view>
|
|
|
|
|
<view class="upper-search">
|
|
|
|
|
<h3>{{ companyName }}</h3>
|
|
|
|
|
<!-- <uni-easyinput prefixIcon="search" v-model="iptVal" placeholder="搜索" @iconClick="iconClick"></uni-easyinput> -->
|
|
|
|
|
</view>
|
|
|
|
|
<h4 class="tit">业务办理</h4>
|
|
|
|
|
<view class="secs">
|
2024-09-23 17:01:33 +08:00
|
|
|
<!-- <view 重庆不需要领料申请
|
2024-09-09 14:39:03 +08:00
|
|
|
@click="jumpUrl('fetchMaterial')"
|
|
|
|
|
v-if="
|
|
|
|
|
store.includes('picking:apply:apply') ||
|
|
|
|
|
store.includes('*:*:*')
|
|
|
|
|
">
|
|
|
|
|
<image src="/static/fetchMaterial.png" mode=""></image>
|
|
|
|
|
<span>领料申请</span>
|
2024-09-23 17:01:33 +08:00
|
|
|
</view> -->
|
2024-08-19 13:25:42 +08:00
|
|
|
<view
|
|
|
|
|
@click="jumpUrl('exitMaterial')"
|
|
|
|
|
v-if="
|
|
|
|
|
store.includes('return:apply:apply') ||
|
|
|
|
|
store.includes('*:*:*')
|
|
|
|
|
">
|
|
|
|
|
<image src="/static/exitMaterial.png" mode=""></image>
|
|
|
|
|
<span>退料申请</span>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
<h4 class="tit">移动办公</h4>
|
|
|
|
|
<view class="secs">
|
|
|
|
|
<view
|
|
|
|
|
v-for="(part, index) in benchList"
|
|
|
|
|
:key="index"
|
|
|
|
|
@click="jumpUrl(part.url)"
|
|
|
|
|
v-show="store.includes(part.isShow) || store.includes('*:*:*')">
|
|
|
|
|
<image :src="part.pic" mode=""></image>
|
|
|
|
|
<span>{{ part.name }}</span>
|
|
|
|
|
</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>
|
2023-12-20 15:15:23 +08:00
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
2024-08-19 13:25:42 +08:00
|
|
|
import store from "../../store/user";
|
|
|
|
|
export default {
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
companyName: "",
|
|
|
|
|
iptVal: "",
|
|
|
|
|
benchList: [
|
2024-09-23 17:01:33 +08:00
|
|
|
// {
|
|
|
|
|
// name: "领料审批",
|
|
|
|
|
// pic: "/static/fetchExam.png",
|
|
|
|
|
// url: "fetchExam",
|
|
|
|
|
// isShow: "receive:examine:fgs",
|
|
|
|
|
// },
|
2024-08-19 13:25:42 +08:00
|
|
|
{
|
|
|
|
|
name: "领料审批",
|
|
|
|
|
pic: "/static/fetchExam.png",
|
|
|
|
|
url: "fetchExam",
|
|
|
|
|
isShow: "receive:examine:nbs",
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: "退料审批",
|
|
|
|
|
pic: "/static/exitExam.png",
|
|
|
|
|
url: "exitExam",
|
|
|
|
|
isShow: "return:auditing:auditing",
|
|
|
|
|
},
|
|
|
|
|
/* {
|
2024-03-13 17:55:34 +08:00
|
|
|
name: 'RFID绑定',
|
|
|
|
|
pic: '/static/rfidBinding.png',
|
|
|
|
|
url: 'rfidBinding'
|
2024-07-31 08:55:30 +08:00
|
|
|
}, */
|
2024-08-19 13:25:42 +08:00
|
|
|
{
|
|
|
|
|
name: "二维码绑定",
|
|
|
|
|
pic: "/static/qrcodeBinding.png",
|
|
|
|
|
url: "qrcodeBinding",
|
|
|
|
|
},
|
|
|
|
|
/* {
|
2024-03-13 17:55:34 +08:00
|
|
|
name: '新购验收',
|
|
|
|
|
pic: '/static/newCheck.png',
|
|
|
|
|
url: 'newCheck'
|
2024-04-20 17:39:08 +08:00
|
|
|
}, */
|
2024-08-19 13:25:42 +08:00
|
|
|
{
|
|
|
|
|
name: "新购入库",
|
|
|
|
|
pic: "/static/newInStore.png",
|
|
|
|
|
url: "newInStore",
|
|
|
|
|
isShow: "warehousing:newTools:auditing",
|
|
|
|
|
},
|
|
|
|
|
/* {
|
2024-01-04 15:13:09 +08:00
|
|
|
name: '退料入库',
|
2024-03-13 17:55:34 +08:00
|
|
|
pic: '/static/backMaterialInStore.png',
|
2024-01-04 15:13:09 +08:00
|
|
|
url: 'backMaterialInStore'
|
2024-04-12 14:05:08 +08:00
|
|
|
}, */
|
2024-08-19 13:25:42 +08:00
|
|
|
{
|
|
|
|
|
name: "修试入库",
|
|
|
|
|
pic: "/static/repairTestInStore.png",
|
|
|
|
|
url: "repairTestInStore",
|
|
|
|
|
isShow: "warehousing:repair:auditing",
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: "领料出库",
|
|
|
|
|
pic: "/static/fetchMaterialOutStore.png",
|
|
|
|
|
url: "fetchMaterialOutStore",
|
|
|
|
|
isShow: "picking:outbound:out",
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: "退料接收",
|
|
|
|
|
pic: "/static/backMaterialReceive.png",
|
|
|
|
|
url: "backMaterialReceive",
|
|
|
|
|
isShow: "return:receive:handler",
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: "维修",
|
|
|
|
|
pic: "/static/fix.png",
|
|
|
|
|
url: "fix",
|
|
|
|
|
isShow: "service:button",
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: "报废审核",
|
|
|
|
|
pic: "/static/crashExam.png",
|
|
|
|
|
url: "crashExam",
|
|
|
|
|
isShow: "scrap:auditing",
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: "维修审核",
|
|
|
|
|
pic: "/static/testExam.png",
|
|
|
|
|
url: "testExam",
|
|
|
|
|
isShow: "service:auditing",
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
store: store.state.permissions || [],
|
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
iconClick() {
|
|
|
|
|
console.log(this.iptVal);
|
|
|
|
|
},
|
|
|
|
|
jumpUrl(path) {
|
|
|
|
|
if (path == "qrcodeBinding") {
|
|
|
|
|
uni.scanCode({
|
|
|
|
|
success: (res) => {
|
|
|
|
|
const fixedCode = res.result.split("=")[1];
|
|
|
|
|
console.log(fixedCode);
|
|
|
|
|
if (!fixedCode) {
|
|
|
|
|
uni.showToast({
|
|
|
|
|
icon: "none",
|
|
|
|
|
title: "未识别到设备!",
|
|
|
|
|
});
|
|
|
|
|
} else {
|
|
|
|
|
uni.navigateTo({
|
|
|
|
|
url: `/pages/qrcodeBindPage/qrcodeBindPage?code=${fixedCode}`,
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
});
|
|
|
|
|
} else {
|
|
|
|
|
uni.navigateTo({
|
|
|
|
|
url: `/pages/${path}/${path}`,
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
toast() {
|
|
|
|
|
uni.showToast({
|
|
|
|
|
icon: "none",
|
|
|
|
|
title: "敬请期待!",
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
onShow() {
|
|
|
|
|
let that = this;
|
|
|
|
|
that.$api.index
|
|
|
|
|
.fetchCompanyName({
|
|
|
|
|
ancestors:
|
|
|
|
|
uni.getStorageSync("userInfo").sysUser.dept.ancestors,
|
|
|
|
|
})
|
|
|
|
|
.then((res) => {
|
|
|
|
|
console.log(res);
|
|
|
|
|
if (res.data.code == 200) that.companyName = res.data.msg;
|
|
|
|
|
})
|
|
|
|
|
.catch((err) => {
|
|
|
|
|
console.log(err);
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
};
|
2023-12-20 15:15:23 +08:00
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style lang="scss">
|
2024-08-19 13:25:42 +08:00
|
|
|
body {
|
|
|
|
|
background: url("/static/workspace-bgd.png");
|
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
|
background-size: 100% 100%;
|
|
|
|
|
}
|
|
|
|
|
.upper-search {
|
|
|
|
|
width: 85%;
|
|
|
|
|
margin: 8vh auto;
|
|
|
|
|
color: #fff;
|
|
|
|
|
h3 {
|
|
|
|
|
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;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2023-12-20 15:15:23 +08:00
|
|
|
</style>
|