|
@@ -32,7 +32,7 @@
|
|
|
<!-- 宫格 -->
|
|
|
<view class="gird" >
|
|
|
<!-- 公告 -->
|
|
|
- <view class="notice" >
|
|
|
+ <view class="notice" v-if="false" >
|
|
|
<u-notice-bar mode="horizontal"
|
|
|
bg-color="#6290f7" color="#fff"
|
|
|
:list="['库存PDA设备将于2023年4月1日升级维护']"></u-notice-bar>
|
|
@@ -40,7 +40,7 @@
|
|
|
<!-- <u-icon name="volume-up-fill" size="40" color="#fff"></u-icon>
|
|
|
<text></text> -->
|
|
|
</view>
|
|
|
- <template v-if="userInfo.type=='1'">
|
|
|
+ <template v-if="role('1')">
|
|
|
|
|
|
|
|
|
<view class="item" @click="gotoUrl('pages/storeManagement/equipmentDelivery/equipmentDelivery')">
|
|
@@ -78,8 +78,23 @@
|
|
|
</view>
|
|
|
|
|
|
</template>
|
|
|
+
|
|
|
+
|
|
|
+ <template v-if="role('3')">
|
|
|
+ <view class="item" @click="gotoUrl('pages/projectDepartment/exportProcess/exportProcess')">
|
|
|
+ <view class="title">
|
|
|
+ 出库审核
|
|
|
+ </view>
|
|
|
+ <view class="hint">
|
|
|
+ 审批出库申请单据
|
|
|
+ </view>
|
|
|
+ <view class="img">
|
|
|
+ <img src="@/assets/img/projectGird2.png" alt="">
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </template>
|
|
|
|
|
|
- <template v-if="userInfo.type=='2'">
|
|
|
+ <template v-if="role('2')">
|
|
|
|
|
|
<view class="item" @click="gotoUrl('pages/projectDepartment/exportApplication/exportApplication')">
|
|
|
<view class="title">
|
|
@@ -92,17 +107,7 @@
|
|
|
<img src="@/assets/img/projectGird1.png" alt="">
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view class="item" @click="gotoUrl('pages/projectDepartment/exportProcess/exportProcess')">
|
|
|
- <view class="title">
|
|
|
- 出库审核
|
|
|
- </view>
|
|
|
- <view class="hint">
|
|
|
- 审批出库申请单据
|
|
|
- </view>
|
|
|
- <view class="img">
|
|
|
- <img src="@/assets/img/projectGird2.png" alt="">
|
|
|
- </view>
|
|
|
- </view>
|
|
|
+
|
|
|
<view class="item" @click="gotoUrl('pages/projectDepartment/exportReturn/exportReturn')">
|
|
|
<view class="title">
|
|
|
设备归还
|
|
@@ -130,7 +135,7 @@
|
|
|
</view>
|
|
|
|
|
|
<!-- 其他功能 -->
|
|
|
- <view class="other-functions" v-if="userInfo.type=='1'">
|
|
|
+ <view class="other-functions" v-if="role('other')">
|
|
|
<view class="title">
|
|
|
其他功能
|
|
|
</view>
|
|
@@ -170,8 +175,36 @@
|
|
|
onLoad() {
|
|
|
this.userInfo=this.carhelp.getPersonInfo()
|
|
|
//this.getUserDepartmentList()
|
|
|
+ this.getInfo()
|
|
|
},
|
|
|
+
|
|
|
methods: {
|
|
|
+ role(val){
|
|
|
+ if(this.userInfo.type!=null&&this.userInfo.type!=undefined){
|
|
|
+ var index=this.userInfo.type.split(',').indexOf(val)
|
|
|
+ return index>-1
|
|
|
+ }else{
|
|
|
+ return false
|
|
|
+ }
|
|
|
+
|
|
|
+ },
|
|
|
+ getInfo(){
|
|
|
+
|
|
|
+ API.findByOpenId({
|
|
|
+ openId: this.carhelp.getOpenId(),
|
|
|
+ noerror:true,
|
|
|
+ }).then((res) => {
|
|
|
+
|
|
|
+ this.carhelp.setPersonInfo(res.data.regUser );
|
|
|
+ this.userInfo=this.carhelp.getPersonInfo()
|
|
|
+
|
|
|
+ }).catch(error => {
|
|
|
+ uni.hideLoading();
|
|
|
+
|
|
|
+ //this.getPhone()
|
|
|
+
|
|
|
+ })
|
|
|
+ },
|
|
|
logout(){
|
|
|
this.changeShow()
|
|
|
uni.showModal({
|
|
@@ -313,7 +346,7 @@
|
|
|
display: flex;
|
|
|
justify-content: space-between;
|
|
|
flex-wrap: wrap;
|
|
|
- margin-top: -216rpx;
|
|
|
+ margin-top: -124rpx;
|
|
|
.item{
|
|
|
width: 720rpx;
|
|
|
height: 100px;
|