zhangc
2025-03-24 c9bf178eb14f830e503481c6acbe883e13b3f189
pages/home/orderManage.vue
@@ -89,6 +89,13 @@
                  url: `/phyz/bcp/bcpDbOrder`
               },
               {
                  title: '半成品调拨单',
                  name: 'bcpDbOrder',
                  color: 'blue',
                  // cuIcon: 'pullup',
                  url: `/phyz/bcp/bcpDbOrderV2`
               },
               {
                  title: '半成品出库单',
                  name: 'bcpOutOrder',
                  color: 'blue',
@@ -134,7 +141,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() {
@@ -165,7 +172,6 @@
            }
         },
         toOrder(item) { 
            console.log(item);
            uni.navigateTo({
               url: `/pages${item.url}`,
               success(res) {
@@ -184,16 +190,29 @@
            }
            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,
                  param: secMenu[i].param,
                  url: `${secMenu[i].code}`
               })
               // 兼容2025 02 18 菜单param
               if (secMenu[i].param) {
                  this.elements.unshift({
                     title: secMenu[i].name,
                     name: secMenu[i].title,
                     color: this.colorList[i],
                     cuIcon: this.icon,
                     id: secMenu[i].id,
                     param: JSON.parse(secMenu[i].param),
                     url: `${secMenu[i].code}`
                  })
               } else {
                  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}`
                  })
               }
            }
            console.log(this.elements);
         },
         getAuth(id) {
            let that = this