You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
120 lines
2.7 KiB
Vue
120 lines
2.7 KiB
Vue
4 years ago
|
<template>
|
||
|
<view class="page-raw-ingoods">
|
||
|
<view class="header">
|
||
|
<view class="left">
|
||
|
<u-icon class="icon" name="arrow-left" @click="uni.navigateBack()" />
|
||
|
</view>
|
||
|
<view class="title">{{ $t('message.GetOutOfTheWarehouse') }}</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="
|
||
|
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
|
||
|
>
|
||
|
</u-button>
|
||
|
</u-col>
|
||
|
<!-- <u-col :span="12">
|
||
|
<u-button @click="toPage(page.product.outbound.stoOutbound)">
|
||
|
<u-icon size="80" name="/static/icons/icon-07.png"></u-icon>
|
||
|
<text class="name">1.STO {{ $t('message.GetOutOfTheWarehouse') }}</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-ingoods {
|
||
|
background-color: #f4f7fc;
|
||
|
padding-top: 88rpx;
|
||
|
min-height: 100%;
|
||
|
|
||
|
.header {
|
||
|
position: fixed;
|
||
|
top: 36rpx;
|
||
|
left: 0;
|
||
|
right: 0;
|
||
|
z-index: 99;
|
||
|
display: flex;
|
||
|
background-color: #255cea;
|
||
|
height: 88rpx;
|
||
|
line-height: 88rpx;
|
||
|
color: #fff;
|
||
|
font-size: 34rpx;
|
||
|
font-weight: 500;
|
||
|
text-align: center;
|
||
|
box-shadow: 0 1rpx 5rpx #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>
|