bonus-material-app/src/pages/work/index.vue

92 lines
2.2 KiB
Vue
Raw Normal View History

2024-11-18 09:05:38 +08:00
<template>
<view class="content">
<view class="new-purchase">
2024-11-19 10:32:24 +08:00
<view
class="purchase-item"
:key="index"
@tap="onNavigateTo(item.url)"
2024-11-18 09:05:38 +08:00
v-for="(item, index) in newPurchaseList"
2024-11-19 10:32:24 +08:00
>
<image :src="item.iconSrc" mode="scaleToFill" />
<text>
{{ item.title }}
</text>
</view>
</view>
<view class="new-purchase">
<view
class="purchase-item"
2024-11-18 09:05:38 +08:00
:key="index"
@tap="onNavigateTo(item.url)"
2024-11-19 10:32:24 +08:00
v-for="(item, index) in pickingList"
2024-11-18 09:05:38 +08:00
>
2024-11-19 10:32:24 +08:00
<image :src="item.iconSrc" mode="scaleToFill" />
<text>
{{ item.title }}
</text>
</view>
2024-11-18 09:05:38 +08:00
</view>
</view>
</template>
<script setup>
import { ref } from 'vue'
2024-11-19 10:32:24 +08:00
// 新购
2024-11-18 09:05:38 +08:00
const newPurchaseList = ref([
2024-11-19 10:32:24 +08:00
{
title: '新购验收',
url: '/pages/new-purchase/accept/index',
iconSrc: '../../static/workbench/newInStore.png',
},
2024-11-18 16:52:12 +08:00
// { title: '新购到货', url: '/pages/new-purchase/bind/index' },
2024-11-19 10:32:24 +08:00
{
title: '新购绑定',
url: '/pages/new-purchase/bind/index',
iconSrc: '../../static/workbench/newInStore.png',
},
{
title: '新购入库',
url: '/pages/new-purchase/entry/index',
iconSrc: '../../static/workbench/newInStore.png',
},
])
// 领料
const pickingList = ref([
{
title: '领料出库',
url: '/pages/picking/outbound/index',
iconSrc: '../../static/workbench/fetchMaterialOutStore.png',
},
2024-11-18 09:05:38 +08:00
])
const onNavigateTo = (url) => {
uni.navigateTo({ url })
}
</script>
<style lang="scss">
2024-11-19 10:32:24 +08:00
page {
overflow: hidden;
}
2024-11-18 09:05:38 +08:00
.new-purchase {
display: flex;
2024-11-19 10:32:24 +08:00
margin: 15rpx 0;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
.purchase-item {
margin: 12rpx;
display: flex;
flex-direction: column;
align-items: center;
font-size: 28rpx;
2024-11-18 09:05:38 +08:00
2024-11-19 10:32:24 +08:00
image {
width: 70rpx;
height: 70rpx;
margin-bottom: 15rpx;
}
2024-11-18 09:05:38 +08:00
}
}
</style>