|
|
|
@ -7,7 +7,134 @@
|
|
|
|
|
<view class="title">wms菜单</view>
|
|
|
|
|
<view class="right"></view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="container">
|
|
|
|
|
<view v-if="wmsRImenuList.length" class="container">
|
|
|
|
|
<view class="toptitle">
|
|
|
|
|
<view class="shuxian"></view>
|
|
|
|
|
<view class="title"> 原材料入库 </view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="tubiao">
|
|
|
|
|
<u-icon
|
|
|
|
|
v-for="item in wmsRImenuList"
|
|
|
|
|
:key="item.path"
|
|
|
|
|
@click="
|
|
|
|
|
uni.navigateTo({
|
|
|
|
|
url: item.path,
|
|
|
|
|
})
|
|
|
|
|
"
|
|
|
|
|
:label="item.menuName"
|
|
|
|
|
label-pos="bottom"
|
|
|
|
|
size="80"
|
|
|
|
|
name="../../static/icons/icon-54.png"
|
|
|
|
|
></u-icon>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view v-if="wmsROmenuList.length" class="container">
|
|
|
|
|
<view class="toptitle">
|
|
|
|
|
<view class="shuxian"></view>
|
|
|
|
|
<view class="title"> 原材料出库 </view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="tubiao">
|
|
|
|
|
<u-icon
|
|
|
|
|
v-for="item in wmsROmenuList"
|
|
|
|
|
:key="item.path"
|
|
|
|
|
@click="
|
|
|
|
|
uni.navigateTo({
|
|
|
|
|
url: item.path,
|
|
|
|
|
})
|
|
|
|
|
"
|
|
|
|
|
:label="item.menuName"
|
|
|
|
|
label-pos="bottom"
|
|
|
|
|
size="80"
|
|
|
|
|
name="../../static/icons/icon-55.png"
|
|
|
|
|
></u-icon>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view v-if="wmsRNmenuList.length" class="container">
|
|
|
|
|
<view class="toptitle">
|
|
|
|
|
<view class="shuxian"></view>
|
|
|
|
|
<view class="title"> 原材料库内 </view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="tubiao">
|
|
|
|
|
<u-icon
|
|
|
|
|
v-for="item in wmsRNmenuList"
|
|
|
|
|
:key="item.path"
|
|
|
|
|
@click="
|
|
|
|
|
uni.navigateTo({
|
|
|
|
|
url: item.path,
|
|
|
|
|
})
|
|
|
|
|
"
|
|
|
|
|
:label="item.menuName"
|
|
|
|
|
label-pos="bottom"
|
|
|
|
|
size="80"
|
|
|
|
|
:name="item.menuName == '盘点' ? '../../static/icons/icon-53.png' : '../../static/icons/icon-56.png'"
|
|
|
|
|
></u-icon>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view v-if="wmsPImenuList.length" class="container">
|
|
|
|
|
<view class="toptitle">
|
|
|
|
|
<view class="shuxian"></view>
|
|
|
|
|
<view class="title"> 成品入库 </view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="tubiao">
|
|
|
|
|
<u-icon
|
|
|
|
|
v-for="item in wmsPImenuList"
|
|
|
|
|
:key="item.path"
|
|
|
|
|
@click="
|
|
|
|
|
uni.navigateTo({
|
|
|
|
|
url: item.path,
|
|
|
|
|
})
|
|
|
|
|
"
|
|
|
|
|
:label="item.menuName"
|
|
|
|
|
label-pos="bottom"
|
|
|
|
|
size="80"
|
|
|
|
|
name="../../static/icons/icon-54.png"
|
|
|
|
|
></u-icon>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view v-if="wmsPOmenuList.length" class="container">
|
|
|
|
|
<view class="toptitle">
|
|
|
|
|
<view class="shuxian"></view>
|
|
|
|
|
<view class="title"> 成品出库 </view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="tubiao">
|
|
|
|
|
<u-icon
|
|
|
|
|
v-for="item in wmsPOmenuList"
|
|
|
|
|
:key="item.path"
|
|
|
|
|
@click="
|
|
|
|
|
uni.navigateTo({
|
|
|
|
|
url: item.path,
|
|
|
|
|
})
|
|
|
|
|
"
|
|
|
|
|
:label="item.menuName"
|
|
|
|
|
label-pos="bottom"
|
|
|
|
|
size="80"
|
|
|
|
|
name="../../static/icons/icon-55.png"
|
|
|
|
|
></u-icon>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view v-if="wmsPNmenuList.length" class="container">
|
|
|
|
|
<view class="toptitle">
|
|
|
|
|
<view class="shuxian"></view>
|
|
|
|
|
<view class="title"> 成品库内 </view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="tubiao">
|
|
|
|
|
<u-icon
|
|
|
|
|
v-for="item in wmsPNmenuList"
|
|
|
|
|
:key="item.path"
|
|
|
|
|
@click="
|
|
|
|
|
uni.navigateTo({
|
|
|
|
|
url: item.path,
|
|
|
|
|
})
|
|
|
|
|
"
|
|
|
|
|
:label="item.menuName"
|
|
|
|
|
label-pos="bottom"
|
|
|
|
|
size="80"
|
|
|
|
|
:name="item.menuName == '盘点' ? '../../static/icons/icon-53.png' : '../../static/icons/icon-56.png'"
|
|
|
|
|
></u-icon>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
<!-- 以下为写死的菜单 -->
|
|
|
|
|
<!-- <view class="container">
|
|
|
|
|
<view class="toptitle">
|
|
|
|
|
<view class="shuxian"></view>
|
|
|
|
|
<view class="title"> 原材料入库 </view>
|
|
|
|
@ -102,8 +229,8 @@
|
|
|
|
|
name="../../static/icons/icon-54.png"
|
|
|
|
|
></u-icon>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="container">
|
|
|
|
|
</view> -->
|
|
|
|
|
<!-- <view class="container">
|
|
|
|
|
<view class="toptitle">
|
|
|
|
|
<view class="shuxian"></view>
|
|
|
|
|
<view class="title"> 原材料出库 </view>
|
|
|
|
@ -198,8 +325,8 @@
|
|
|
|
|
name="../../static/icons/icon-55.png"
|
|
|
|
|
></u-icon>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="container">
|
|
|
|
|
</view> -->
|
|
|
|
|
<!-- <view class="container">
|
|
|
|
|
<view class="toptitle">
|
|
|
|
|
<view class="shuxian"></view>
|
|
|
|
|
<view class="title"> 原材料库内 </view>
|
|
|
|
@ -239,8 +366,8 @@
|
|
|
|
|
name="../../static/icons/icon-56.png"
|
|
|
|
|
></u-icon>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="container">
|
|
|
|
|
</view> -->
|
|
|
|
|
<!-- <view class="container">
|
|
|
|
|
<view class="toptitle">
|
|
|
|
|
<view class="shuxian"></view>
|
|
|
|
|
<view class="title"> 成品入库 </view>
|
|
|
|
@ -291,8 +418,8 @@
|
|
|
|
|
name="../../static/icons/icon-54.png"
|
|
|
|
|
></u-icon>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="container">
|
|
|
|
|
</view> -->
|
|
|
|
|
<!-- <view class="container">
|
|
|
|
|
<view class="toptitle">
|
|
|
|
|
<view class="shuxian"></view>
|
|
|
|
|
<view class="title"> 成品出库 </view>
|
|
|
|
@ -332,8 +459,8 @@
|
|
|
|
|
name="../../static/icons/icon-55.png"
|
|
|
|
|
></u-icon>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="container">
|
|
|
|
|
</view> -->
|
|
|
|
|
<!-- <view class="container">
|
|
|
|
|
<view class="toptitle">
|
|
|
|
|
<view class="shuxian"></view>
|
|
|
|
|
<view class="title"> 成品库内 </view>
|
|
|
|
@ -373,16 +500,35 @@
|
|
|
|
|
name="../../static/icons/icon-56.png"
|
|
|
|
|
></u-icon>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
</view> -->
|
|
|
|
|
</view>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script lang="ts">
|
|
|
|
|
import { Component } from 'vue-property-decorator';
|
|
|
|
|
import { BasePage } from '@/components/base/page';
|
|
|
|
|
import { session } from '@/store/modules/session';
|
|
|
|
|
@Component
|
|
|
|
|
export default class RawAppointment extends BasePage {
|
|
|
|
|
childData: any;
|
|
|
|
|
menuList = session.getMenus;
|
|
|
|
|
wmsRImenuList: any = [];
|
|
|
|
|
wmsROmenuList: any = [];
|
|
|
|
|
wmsRNmenuList: any = [];
|
|
|
|
|
wmsPImenuList: any = [];
|
|
|
|
|
wmsPOmenuList: any = [];
|
|
|
|
|
wmsPNmenuList: any = [];
|
|
|
|
|
|
|
|
|
|
onReady() {
|
|
|
|
|
this.wmsRImenuList = this.menuList.filter((item) => item.perms == 'wmsRI');
|
|
|
|
|
this.wmsROmenuList = this.menuList.filter((item) => item.perms == 'wmsRO');
|
|
|
|
|
this.wmsRNmenuList = this.menuList.filter((item) => item.perms == 'wmsRN');
|
|
|
|
|
this.wmsPImenuList = this.menuList.filter((item) => item.perms == 'wmsPI');
|
|
|
|
|
this.wmsPOmenuList = this.menuList.filter((item) => item.perms == 'wmsPO');
|
|
|
|
|
this.wmsPNmenuList = this.menuList.filter((item) => item.perms == 'wmsPN');
|
|
|
|
|
|
|
|
|
|
console.log('1234', this.menuList);
|
|
|
|
|
}
|
|
|
|
|
// onLoad(option: { childData: any }) {
|
|
|
|
|
// //this.childData = JSON.parse(option.childData);
|
|
|
|
|
// }
|
|
|
|
|