#
whycq
2025-02-18 a056b108848790f409aba7fb245fedb8a224e35b
pages/home/orderManage.vue
@@ -2,13 +2,14 @@
   <view>
      <scroll-view scroll-y class="page">
         <view class="nav-list">
            <navigator hover-class='none' :url="'/pages' + item.url" class="nav-li" navigateTo
            <!-- :url="'/pages' + item.url + '?param=' + item.param"  navigateTo-->
            <view hover-class='none'  class="nav-li"  @click="toOrder(item)"
               :class="'bg-'+item.color" :style="[{animation: 'show ' + ((index+1)*0.2+1) + 's 1'}]"
               v-for="(item,index) in elements" :key="index">
               <view class="nav-title">{{item.title}}</view>
               <view class="nav-name">{{item.name}}</view>
               <text :class="'cuIcon-' + item.cuIcon"></text>
            </navigator>
            </view>
         </view>
         <view class="cu-tabbar-height"></view>
      </scroll-view>
@@ -74,6 +75,13 @@
                  url: `/phyz/bcp/bcpOrder`
               },
               {
                  title: '半成品入库单_吸塑',
                  name: 'bcpOrder',
                  color: 'blue',
                  // cuIcon: 'pullup',
                  url: `/phyz/bcp/bcpOrder_xs`
               },
               {
                  title: '半成品调拨单',
                  name: 'bcpDbOrder',
                  color: 'blue',
@@ -86,6 +94,14 @@
                  color: 'blue',
                  // cuIcon: 'pullup',
                  url: `/phyz/orderOut/bcpOrderOutSelect`
               },
               {
                  title: '半成品出库单_二厂',
                  name: 'bcpOutOrder',
                  color: 'blue',
                  // cuIcon: 'pullup',
                  url: `/phyz/orderOut/bcpOrderOutSelect_2`,
                  param: {orderType: [1,2,3]}
               },
               {
                  title: '半成品加工单',
@@ -118,7 +134,7 @@
               
            ],
            menu: [],
            colorList: ['cyan','blue','purple','mauve','pink','brown','red','orange','yellow','olive','olive','grey' ]
            colorList: ['cyan','blue','purple','mauve','pink','brown','red','orange','yellow','olive','cyan','blue','purple','mauve','pink','brown','red','orange','yellow','olive' ]
         };
      },
      // onShow() {
@@ -148,6 +164,16 @@
               i++
            }
         },
         toOrder(item) {
            uni.navigateTo({
               url: `/pages${item.url}`,
               success(res) {
                  res.eventChannel.emit('param', {
                     param: item.param
                  })
               }
            })
         },
         getAuth2(id) {
            let secMenu = []
            for (let k of this.menu) {
@@ -163,9 +189,12 @@
                  color: this.colorList[i],
                  cuIcon: this.icon,
                  id: secMenu[i].id,
                  param: JSON.parse(secMenu[i].param),
                  url: `${secMenu[i].code}`
               })
            }
            console.log(this.elements);
         },
         getAuth(id) {
            let that = this