#
whycq
2025-02-13 da67e764cb4e7c6f64bf5f172ea874f42d1ad2d2
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',
@@ -59,6 +72,13 @@
                  color: 'blue',
                  // cuIcon: 'pullup',
                  url: `/phyz/bcp/bcpOrder`
               },
               {
                  title: '半成品入库单_吸塑',
                  name: 'bcpOrder',
                  color: 'blue',
                  // cuIcon: 'pullup',
                  url: `/phyz/bcp/bcpOrder_xs`
               },
               {
                  title: '半成品调拨单',
@@ -75,6 +95,13 @@
                  url: `/phyz/orderOut/bcpOrderOutSelect`
               },
               {
                  title: '半成品出库单_二厂',
                  name: 'bcpOutOrder',
                  color: 'blue',
                  // cuIcon: 'pullup',
                  url: `/phyz/orderOut/bcpOrderOutSelect_2`
               },
               {
                  title: '半成品加工单',
                  name: 'processOrder',
                  color: 'blue',
@@ -88,8 +115,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 +145,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 +162,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({