#
whycq
2024-11-28 248ef3ba3de9994dc83d2b36690542893f9fb6e6
pages/home/orderManage.vue
@@ -12,6 +12,7 @@
         </view>
         <view class="cu-tabbar-height"></view>
      </scroll-view>
      <view style="height: 50rpx;"></view>
   </view>
</template>
@@ -25,6 +26,18 @@
            elements: [],
            project: 'tzsk',
            elements2: [
               {
                  title: '待包装入库单',
                  name: 'pakinOrder',
                  color: 'blue',
                  url: `/phyz/waitOrder/waitOrderIn`
               },
               {
                  title: '待包装出库单',
                  name: 'pakinOrder',
                  color: 'blue',
                  url: `/phyz/waitOrder/waitOrderOut`
               },
               {
                  title: '采购入库单',
                  name: 'pakinOrder',
@@ -47,7 +60,7 @@
               //    url: `/phyz/order/purchaseOrder`
               // },
               {
                  title: '订单出库',
                  title: '采购出库',
                  name: 'outOrder',
                  color: 'blue',
                  // cuIcon: 'pullup',
@@ -88,8 +101,23 @@
                  // cuIcon: 'pullup',
                  url: `/phyz/backStock/backStocksOrder`
               },
               {
                  title: '入库单',
                  name: 'orderIn',
                  color: 'blue',
                  // cuIcon: 'pullup',
                  url: `/phyz/comOrder/orderIn`
               },
               {
                  title: '出库单',
                  name: 'orderOut',
                  color: 'blue',
                  // cuIcon: 'pullup',
                  url: `/phyz/comOrder/orderOut`
               },
               
            ],
            menu: [],
            colorList: ['cyan','blue','purple','mauve','pink','brown','red','orange','yellow','olive','olive','grey' ]
         };
      },
@@ -103,8 +131,9 @@
      onLoad(option) {
         this.baseUrl = uni.getStorageSync('baseUrl');
         this.token = uni.getStorageSync('token');
         this.project = uni.getStorageSync('project')
         this.getAuth(option.id)
         this.project = uni.getStorageSync('project');
         this.menu = uni.getStorageSync('menu');
         this.getAuth2(option.id)
         this.backGroundRepeat()
      },
      methods: {
@@ -119,6 +148,25 @@
               i++
            }
         },
         getAuth2(id) {
            let secMenu = []
            for (let k of this.menu) {
               if (id == k.id) {
                  secMenu = k.children
               }
            }
            for (let i in secMenu) {
               this.getIcon(secMenu[i].title)
               this.elements.unshift({
                  title: secMenu[i].name,
                  name: secMenu[i].title,
                  color: this.colorList[i],
                  cuIcon: this.icon,
                  id: secMenu[i].id,
                  url: `${secMenu[i].code}`
               })
            }
         },
         getAuth(id) {
            let that = this
            uni.request({