#
whycq
2024-10-26 b4109c203742424cc795bdca9ca1e00d5602e241
pages/home/home.vue
@@ -1,5 +1,19 @@
<template>
   <view>
      <view class="status_bar">
         <!-- 这里是状态栏 -->
      </view>
      <uni-nav-bar background-color="#f8f8f8"   title="主 页" @clickLeft="back"  :fixed="true"
         :border="false" rightWidth="160rpx" leftWidth="160rpx"
         >
         <block slot="right">
            <view class="city">
               <view>
                  <text class="uni-nav-bar-text">{{store}}</text>
               </view>
            </view>
         </block>
       </uni-nav-bar>
      <scroll-view scroll-y class="page">
         <view class="nav-list">
            <navigator hover-class='none' :url="'/pages' + item.url" class="nav-li" navigateTo
@@ -22,6 +36,9 @@
            baseUrl: '',
            token: '',
            icon: '',
            username: '',
            storeId: 0,
            store: '',
            elements: [],
            elements2: [
               {
@@ -31,19 +48,19 @@
                  cuIcon: 'pullup',
                  url: '/pakin/pakin'
               },               
               {
                  title: '平库组托',
                  name: 'putOn',
                  color: 'orange',
                  cuIcon: 'pullup',
                  url: '/pakin/putOn'
               },
               // {
               //    title: '平库组托',
               //    name: 'putOn',
               //    color: 'orange',
               //    cuIcon: 'pullup',
               //    url: '/pakin/putOn'
               // },
               {
                  title: '平库上架',
                  name: 'print',
                  name: 'WarehouseIn',
                  color: 'purple',
                  cuIcon: 'text',
                  url: '/print/print'
                  url: '/pakin/WarehouseIn'
               },
               {
                  title: '平库下架',
@@ -64,7 +81,28 @@
                  name: 'orderPickConfirm',
                  color: 'green',
                  cuIcon: 'pulldown',
                  url: '/order/orderPickConfirm'
                  url: '/order/orderPickConfirm2'
               },
               {
                  title: '并板途中拣料',
                  name: 'ParallelBoard',
                  color: 'green',
                  cuIcon: 'pulldown',
                  url: '/order/orderListParallelBoard'
               },
               {
                  title: '拣料途中并板',
                  name: 'PickBoard',
                  color: 'orange',
                  cuIcon: 'pulldown',
                  url: '/order/orderListPickBoard'
               },
               {
                  title: '多次并板',
                  name: 'BoardMany',
                  color: 'yellow',
                  cuIcon: 'pulldown',
                  url: '/order/mergeBoardManyTimes'
               },
               {
                  title: '制令入库',
@@ -72,6 +110,13 @@
                  color: 'green',
                  cuIcon: 'pulldown',
                  url: '/order/zlOrderPakin'
               },
               {
                  title: '商品信息查询',
                  name: 'MatInformation',
                  color: 'red',
                  cuIcon: 'pulldown',
                  url: '/mat/matInformation'
               },
               // {
               //    title: '库存查询',
@@ -130,9 +175,17 @@
      onShow() {
         this.baseUrl = uni.getStorageSync('baseUrl');
         this.token = uni.getStorageSync('token');
         this.storeId = uni.getStorageSync('store')
         if (this.storeId == 1) {
            this.store = '宁波仓'
         }
         if (this.storeId == 2) {
            this.store = '新昌仓'
         }
         this.getAuth()
      },
      methods: {
         back() { uni.navigateBack({}) },
         getAuth() {
            let that = this
            uni.request({
@@ -210,6 +263,13 @@
</script>
<style>
   ::v-deep .uni-nav-bar-text{
           font-size: 16px;
         font-weight: 600;
   }
   .uni-nav-bar-text {
      font-size: 12px;
   }
   .page {
      height: 100vh;
   }