304 lines
6.1 KiB
Vue
304 lines
6.1 KiB
Vue
<template>
|
|
<view>
|
|
<u-navbar :is-back="false" title="WMS PDA" :background="background" />
|
|
<scroll-view scroll-y class="page">
|
|
<view class="nav-list">
|
|
<view class="row-flex">
|
|
<view v-if="$menuLimit(item.id)" v-for="(item, i) in elements" :key="i" class="nav-view">
|
|
<navigator hover-class="none" :url="'/pages/StockOut/features/' + item.name" class="nav-a nav-li"
|
|
navigateTo :class="'bg-'+item.color">
|
|
<view class="nav-title">{{item.title}}</view>
|
|
<view class="nav-name">{{item.en_name}}</view>
|
|
<text :class="'cuIcon-' + item.cuIcon"></text>
|
|
</navigator>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</scroll-view>
|
|
<u-gap height="70"></u-gap>
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
import store from '../../store/index.js'
|
|
export default {
|
|
created() {
|
|
|
|
},
|
|
mounted() {
|
|
|
|
},
|
|
data() {
|
|
return {
|
|
title: '物料仓库主界面',
|
|
background: {
|
|
backgroundImage: 'linear-gradient(45deg, rgb(28, 187, 180), rgb(141, 198, 63))'
|
|
},
|
|
//要展示的数组元素
|
|
elements: [
|
|
{
|
|
title: '备货出库',
|
|
name: 'ShipRequestReservation/index',
|
|
en_name:'ShipRequestReservation',
|
|
color: 'yellow',
|
|
cuIcon: '',
|
|
label: '备货出库',
|
|
id:'200002'
|
|
},{
|
|
title: '销售预备货',
|
|
name: 'SaleOutPre/index',
|
|
en_name:'SaleOutPre',
|
|
color: 'yellow',
|
|
cuIcon: '',
|
|
label: '销售预备货',
|
|
id:'200003'
|
|
},{
|
|
title: '预备货出库',
|
|
name: 'StockOutConfirm/InvoiceOrder',
|
|
en_name:'InvoiceOrder',
|
|
color: 'yellow',
|
|
cuIcon: '',
|
|
label: '预备货出库',
|
|
id:'200004'
|
|
},{
|
|
title: '采购退货',
|
|
name: 'PurchaseReturn/index',
|
|
en_name:'PurchaseReturn',
|
|
color: 'red',
|
|
cuIcon: '',
|
|
label: '采购退货',
|
|
id:'200006'
|
|
},{
|
|
title: '非先进先出出库',
|
|
name: 'UnFIFOShipRequestReservation/index',
|
|
en_name:'UnFIFO',
|
|
color: 'red',
|
|
cuIcon: '',
|
|
label: '非先进先出出库',
|
|
id:'200005'
|
|
},{
|
|
title: '销售出货',
|
|
name: 'UnFIFOShipRequestReservationSale/index',
|
|
en_name:'UnFIFO',
|
|
color: 'red',
|
|
cuIcon: '',
|
|
label: '销售出货',
|
|
id:'200007'
|
|
},
|
|
{
|
|
title: '报废出库',
|
|
name: 'OtherStockOutNoInvoice/OtherStockOutNoInvoice',
|
|
en_name:'OtherStockOutNoInvoice',
|
|
color: 'cyan',
|
|
cuIcon: '',
|
|
label: '报废出库',
|
|
id:'200001'
|
|
},
|
|
{
|
|
title: '盘亏出库',
|
|
name: 'InventoryLossStockOut/index',
|
|
en_name:'InventoryLossStockOut',
|
|
color: 'cyan',
|
|
cuIcon: '',
|
|
label: '盘亏出库',
|
|
id:'200008'
|
|
},{
|
|
title: '临时出库(不过帐)',
|
|
name: 'TemporaryStockOutNoSAPPage/index',
|
|
en_name:'TemporaryStockOutNoSAPPage',
|
|
color: 'red',
|
|
cuIcon: '',
|
|
label: '临时出库(不过帐)',
|
|
id:'200009'
|
|
}
|
|
// {
|
|
// title: '销售出库确认',
|
|
// name: 'StockOutConfirm/SaleOutConfirm',
|
|
// en_name:'SaleOutConfirm',
|
|
// color: 'mauve',
|
|
// cuIcon: 'StockOutConfirm/SaleOutConfirm',
|
|
// label: '销售出库确认'
|
|
// },{
|
|
// title: '备料出库确认',
|
|
// name: 'StockOutConfirm/ProducePickConfirm',
|
|
// en_name:'ProducePickConfirm',
|
|
// color: 'mauve',
|
|
// cuIcon: 'StockOutConfirm/ProducePickConfirm',
|
|
// label: '备料出库确认'
|
|
// },{
|
|
// title: '调拨出库确认',
|
|
// name: 'StockOutConfirm/TransferOutConfirm',
|
|
// en_name:'TransferOutConfirm',
|
|
// color: 'mauve',
|
|
// cuIcon: 'StockOutConfirm/TransferOutConfirm',
|
|
// label: '调拨出库确认'
|
|
// },{
|
|
// title: '其他出库确认',
|
|
// name: 'StockOutConfirm/OtherOutConfirm',
|
|
// en_name:'OtherOutConfirm',
|
|
// color: 'mauve',
|
|
// cuIcon: 'StockOutConfirm/OtherOutConfirm',
|
|
// label: '其他出库确认'
|
|
// },
|
|
|
|
|
|
|
|
],
|
|
}
|
|
},
|
|
computed: {
|
|
tabbar() {
|
|
return store.vuex_tabbar
|
|
}
|
|
},
|
|
}
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
.demo-layout {
|
|
height: 80rpx;
|
|
border-radius: 8rpx;
|
|
}
|
|
|
|
.bg-purple {
|
|
background: #d3dce6;
|
|
}
|
|
|
|
.mt-10 {
|
|
margin-top: 10px;
|
|
}
|
|
.row-flex {
|
|
width: 100%;
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
}
|
|
.nav-view {
|
|
width: 45%;
|
|
margin: 2.5%;
|
|
// display: contents;
|
|
}
|
|
.nav-li {
|
|
// width: 45%;
|
|
width: 100%;
|
|
// margin: 0 2.5% 40upx;
|
|
background-image: url('../../static/img/background.png');
|
|
background-size: cover;
|
|
background-position: center;
|
|
position: relative;
|
|
z-index: 1;
|
|
}
|
|
.nav-a {
|
|
padding: 30upx;
|
|
border-radius: 12upx;
|
|
}
|
|
.nav-li::after {
|
|
content: "";
|
|
position: absolute;
|
|
z-index: -1;
|
|
background-color: inherit;
|
|
width: 100%;
|
|
height: 100%;
|
|
left: 0;
|
|
bottom: -10%;
|
|
border-radius: 10upx;
|
|
opacity: 0.2;
|
|
transform: scale(0.9, 0.9);
|
|
}
|
|
|
|
.nav-li.cur {
|
|
color: #fff;
|
|
background: rgb(94, 185, 94);
|
|
box-shadow: 4upx 4upx 6upx rgba(94, 185, 94, 0.4);
|
|
}
|
|
|
|
.nav-title {
|
|
font-size: 32upx;
|
|
font-weight: 300;
|
|
}
|
|
|
|
.nav-title::first-letter {
|
|
font-size: 40upx;
|
|
margin-right: 4upx;
|
|
}
|
|
|
|
.nav-name {
|
|
font-size: 28upx;
|
|
text-transform: Capitalize;
|
|
margin-top: 20upx;
|
|
position: relative;
|
|
}
|
|
|
|
.nav-name::before {
|
|
content: "";
|
|
position: absolute;
|
|
display: block;
|
|
width: 40upx;
|
|
height: 6upx;
|
|
background: #fff;
|
|
bottom: 0;
|
|
right: 0;
|
|
opacity: 0.5;
|
|
}
|
|
|
|
.nav-name::after {
|
|
content: "";
|
|
position: absolute;
|
|
display: block;
|
|
width: 100upx;
|
|
height: 1px;
|
|
background: #fff;
|
|
bottom: 0;
|
|
right: 40upx;
|
|
opacity: 0.3;
|
|
}
|
|
|
|
.nav-name::first-letter {
|
|
font-weight: bold;
|
|
font-size: 36upx;
|
|
margin-right: 1px;
|
|
}
|
|
|
|
.nav-li text {
|
|
position: absolute;
|
|
right: 30upx;
|
|
top: 30upx;
|
|
font-size: 52upx;
|
|
width: 60upx;
|
|
height: 60upx;
|
|
text-align: center;
|
|
line-height: 60upx;
|
|
}
|
|
|
|
.text-light {
|
|
font-weight: 300;
|
|
}
|
|
|
|
@keyframes show {
|
|
0% {
|
|
transform: translateY(-50px);
|
|
}
|
|
|
|
60% {
|
|
transform: translateY(40upx);
|
|
}
|
|
|
|
100% {
|
|
transform: translateY(0px);
|
|
}
|
|
}
|
|
|
|
@-webkit-keyframes show {
|
|
0% {
|
|
transform: translateY(-50px);
|
|
}
|
|
|
|
60% {
|
|
transform: translateY(40upx);
|
|
}
|
|
|
|
100% {
|
|
transform: translateY(0px);
|
|
}
|
|
}
|
|
</style>
|