|
|
@ -35,19 +35,20 @@ |
|
|
|
<view class=""> |
|
|
|
<view class="title">采购入库</view> |
|
|
|
<u-row gutter="16" style="padding:0px 20rpx ;"> |
|
|
|
<u-col span="3"> |
|
|
|
<view class="icon-item" @click="open('/pages/inLocation/index')"> |
|
|
|
<image src="../static/images/icon1.png" mode=""></image> |
|
|
|
<view>采购入库</view> |
|
|
|
</view> |
|
|
|
</u-col> |
|
|
|
<u-col span="3"> |
|
|
|
<view class="icon-item" @click="open('/pages/sparePartsReturn/addForm')"> |
|
|
|
<image src="../static/images/icon3.png" mode=""></image> |
|
|
|
<view>备件归还</view> |
|
|
|
</view> |
|
|
|
</u-col> |
|
|
|
|
|
|
|
<block v-for="(item,index) in menus" :key="index" > |
|
|
|
<u-col span="3" v-if="item.path == 'purchaseIn'"> |
|
|
|
<view class="icon-item" @click="open('/pages/inLocation/index')"> |
|
|
|
<image src="../static/images/icon1.png" mode=""></image> |
|
|
|
<view>{{item.name}}</view> |
|
|
|
</view> |
|
|
|
</u-col> |
|
|
|
<u-col span="3" v-else-if="item.path == 'itemIn'"> |
|
|
|
<view class="icon-item" @click="open('/pages/sparePartsReturn/addForm')"> |
|
|
|
<image src="../static/images/icon3.png" mode=""></image> |
|
|
|
<view>{{item.name}}</view> |
|
|
|
</view> |
|
|
|
</u-col> |
|
|
|
</block> |
|
|
|
</u-row> |
|
|
|
|
|
|
|
</view> |
|
|
@ -55,12 +56,14 @@ |
|
|
|
<view class=""> |
|
|
|
<view class="title">出库</view> |
|
|
|
<u-row gutter="16"> |
|
|
|
<u-col span="3"> |
|
|
|
<block v-for="(item,index) in menus" :key="index" > |
|
|
|
<u-col span="3" v-if="item.path == 'itemOut'"> |
|
|
|
<view class="icon-item" @click="open('/pages/outLocation/index')"> |
|
|
|
<image src="../static/images/icon2.png" mode=""></image> |
|
|
|
<view>领用出库</view> |
|
|
|
<view>{{item.name}}</view> |
|
|
|
</view> |
|
|
|
</u-col> |
|
|
|
</block> |
|
|
|
</u-row> |
|
|
|
</view> |
|
|
|
</view> |
|
|
@ -85,6 +88,7 @@ |
|
|
|
return { |
|
|
|
bgOpacity: 0, |
|
|
|
token: '', |
|
|
|
menus:[] |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
@ -113,6 +117,13 @@ |
|
|
|
// } |
|
|
|
this.token = getAccessToken() ? getAccessToken() :'' |
|
|
|
console.log( this.$store.state) |
|
|
|
if (getAccessToken()) { |
|
|
|
this.$store.dispatch('GetPermissionInfo').then(res => { |
|
|
|
this.menus = res.menus.filter(item=>item.path == '/pda')[0].children |
|
|
|
console.log(this.menus) |
|
|
|
}) |
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
onPageScroll(e) { |
|
|
|
if (e.scrollTop > 0) { |
|
|
|