cosmoim-852 fix 新建线边库管理菜单
parent
ff07f722c9
commit
6692146fbf
@ -0,0 +1,130 @@
|
||||
<template>
|
||||
<view class="page-raw-warehouse">
|
||||
<view class="header">
|
||||
<view class="left">
|
||||
<u-icon class="icon" name="arrow-left" @click="uni.navigateBack({})" />
|
||||
</view>
|
||||
<view class="title">{{ $t('message.LineSide') }}</view>
|
||||
<view class="right"></view>
|
||||
</view>
|
||||
<view class="container">
|
||||
<u-row :gutter="30">
|
||||
<u-col :span="12" v-for="(item, index) in childData" :key="index">
|
||||
<u-button
|
||||
@click.native="
|
||||
uni.navigateTo({
|
||||
url: item.href,
|
||||
})
|
||||
"
|
||||
>
|
||||
<u-icon size="80" :name="item.iconClass"></u-icon>
|
||||
<!-- <text class="name"> {{ session.lang == 'en' ? index + 1 + ' ' + item.engResourceName : index + 1 + ' ' + item.resourceName }}</text> -->
|
||||
<text class="name"> {{ index + 1 + ' ' + $t('message.' + item.engResourceName) }}</text>
|
||||
</u-button>
|
||||
</u-col>
|
||||
<!-- <u-col :span="12">
|
||||
<u-button @click="toPage(page.raw.warehouse.rowInventory.index)">
|
||||
<u-icon size="80" name="/static/icons/icon-14.png"></u-icon>
|
||||
<text class="name">4.{{ '原材料盘点' }}</text>
|
||||
</u-button>
|
||||
</u-col> -->
|
||||
<!--
|
||||
<u-col :span="12">
|
||||
<u-button @click="toPage(page.raw.warehouse.rowScrap.index)">
|
||||
<u-icon size="80" name="/static/icons/icon-14.png"></u-icon>
|
||||
<text class="name">2.{{ $t('message.RowScrap') }}</text>
|
||||
</u-button>
|
||||
</u-col>
|
||||
<u-col :span="12">
|
||||
<u-button @click="toPage(page.raw.warehouse.rowCollect.index)">
|
||||
<u-icon size="80" name="/static/icons/icon-14.png"></u-icon>
|
||||
<text class="name">3.{{ $t('message.RowCollectionAndBorrowing') }}</text>
|
||||
</u-button>
|
||||
</u-col> -->
|
||||
</u-row>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import { Component } from 'vue-property-decorator';
|
||||
import { BasePage } from '@/components/base/page';
|
||||
@Component
|
||||
export default class RawAppointment extends BasePage {
|
||||
childData: any;
|
||||
onLoad(option: { childData: any }) {
|
||||
this.childData = JSON.parse(option.childData);
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.page-raw-warehouse {
|
||||
background-color: #f4f7fc;
|
||||
padding-top: 88rpx;
|
||||
min-height: 100%;
|
||||
|
||||
.header {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
padding-top: 18px;
|
||||
left: 0;
|
||||
right: 0;
|
||||
z-index: 99;
|
||||
display: -webkit-box;
|
||||
display: -webkit-flex;
|
||||
display: flex;
|
||||
background-color: #255cea;
|
||||
/* height: 46px; */
|
||||
line-height: 46px;
|
||||
color: #fff;
|
||||
font-size: 17px;
|
||||
font-weight: 500;
|
||||
text-align: center;
|
||||
box-shadow: 0 1px 2px #6b90ef;
|
||||
.title {
|
||||
flex: 3;
|
||||
}
|
||||
.left,
|
||||
.right {
|
||||
flex: 1;
|
||||
}
|
||||
.icon {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
width: 88rpx;
|
||||
height: 88rpx;
|
||||
}
|
||||
}
|
||||
|
||||
.container {
|
||||
margin-top: 36rpx;
|
||||
padding: 30rpx 15rpx 0;
|
||||
.u-row {
|
||||
}
|
||||
.u-col {
|
||||
margin-bottom: 30rpx;
|
||||
}
|
||||
.u-btn {
|
||||
height: 160rpx;
|
||||
padding: 0 28rpx;
|
||||
border: 1px solid #f0f5fc;
|
||||
color: #42465a;
|
||||
font-size: 30rpx;
|
||||
font-weight: 400;
|
||||
&:after {
|
||||
border-color: #f0f5fc;
|
||||
border-radius: 4rpx;
|
||||
}
|
||||
.name {
|
||||
flex: 1;
|
||||
margin-left: 28rpx;
|
||||
text-align: left;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
Loading…
Reference in New Issue