#
zhou zhou
9 天以前 eef6fe72909835ef6ff537d6620626ff8973b8ba
pages/home/home.vue
@@ -24,125 +24,178 @@
            icon: '',
            elements: [],
            elements2: [
               {
                  title: '组托入库',
                  name: 'pakin',
                  color: 'cyan',
                  cuIcon: 'pullup',
                  url: '/pakin/pakin'
               },
               {
                  title: '再次拣料',
                  name: 'changePallet',
                  color: 'green',
                  cuIcon: 'order',
                  url: '/pakin/pickAgain'
               },
               // {
               //    title: 'AGV组托',
               //    name: 'AGVPakin',
               //    color: 'blue',
               //    title: '组托',
               //    name: 'pakin',
               //    color: 'cyan',
               //    cuIcon: 'pullup',
               //    url: '/AGV/AGVPakin'
               // },
               // {
               //    title: 'AGV上架绑定',
               //    name: 'AGVPakinBing',
               //    color: 'mauve',
               //    // cuIcon: 'pullup',
               //    url: '/AGV/AGVPakinBing'
               // },
               // {
               //    title: 'AGV启动入库',
               //    name: 'AGVStart',
               //    color: 'pink',
               //    // cuIcon: 'pullup',
               //    url: '/AGV/AGVStart'
               // },
               // {
               //    title: 'AGV上架组托',
               //    name: 'AGVPakinOn',
               //    color: 'brown',
               //    // cuIcon: 'pullup',
               //    url: '/AGV/AGVPakinOn'
               //    url: '/pakin/pakin'
               // },
               {
                  title: '订单入库',
                  name: 'orderPakin',
                  color: 'red',
                  cuIcon: 'pullup',
                  url: '/order/orderPakin'
                  cuIcon: '',
                  url: '/order/orderList'
               },
               {
                  title: '组托上架',
                  name: 'putOn',
                  title: '拣料站到站',
                  name: 'leftover',
                  color: 'orange',
                  cuIcon: 'pullup',
                  url: '/pakin/putOn'
                  url: '/pakin/leftovers'
               },
               // {
               //    title: '平库入库',
               //    name: 'POrderPakin',
               //    color: 'purple',
               //    cuIcon: '',
               //    url: '/pingku/POrderList'
               // },
               // {
               //    title: '平库出库',
               //    name: 'POrderPakin',
               //    color: 'cyan',
               //    cuIcon: '',
               //    url: '/pingku/POrderListOut'
               // },
               // {
               //    title: '平库库存调整',
               //    name: 'oo',
               //    color: 'olive',
               //    cuIcon: '',
               //    url: '/pingku/PInventoryAdjustment'
               // },
               {
                  title: '打印',
                  name: 'print',
                  color: 'purple',
                  cuIcon: 'text',
                  url: '/print/print'
                  title: '呼叫Agv',
                  name: 'AGVStart',
                  color: 'cyan',
                  cuIcon: '',
                  url: '/AGV/AGVStart'
               },
               // {
               //    title: 'Agv拆托呼叫',
               //    name: 'AGVDismantle',
               //    color: 'cyan',
               //    cuIcon: '',
               //    url: '/AGV/AGVDismantle'
               // },
               {
                  title: '订单上架',
                  name: 'orderPutOn',
                  color: 'yellow',
                  cuIcon: 'pullup',
                  url: '/order/orderPutOn'
               },
               {
                  title: '订单下架',
                  name: 'orderPutDown',
                  color: 'olive',
                  cuIcon: 'pulldown',
                  url: '/order/orderPutDown'
               },
               {
                  title: '库存查询',
                  name: 'stockQuery',
                  color: 'green',
                  cuIcon: 'check',
                  url: '/stock/stockQuery'
               },
               {
                  title: '盘点',
                  name: 'stockCheck',
                  color: 'red',
                  cuIcon: 'post',
                  url: '/stock/stockCheck'
               },
               {
                  title: '商品打印',
                  name: 'matList',
                  title: 'Agv储位解绑',
                  name: 'AGVUnbind',
                  color: 'orange',
                  cuIcon: 'post',
                  url: '/mat/matList'
                  cuIcon: '',
                  url: '/AGV/AGVUnbind'
               },
               {
                  title: '补货',
                  name: 'restock',
                  color: 'yellow',
                  cuIcon: 'punch',
                  url: '/stock/restock'
               },
               {
                  title: '转全板',
                  name: 'piking',
                  color: 'olive',
                  cuIcon: 'order',
                  url: '/pakin/piking'
               },
               {
                  title: '换板绑定',
                  name: 'changePallet',
                  color: 'green',
                  cuIcon: 'order',
                  url: '/stock/changePallet'
               },
               // {
               //    title: 'Agv储位绑定',
               //    name: 'AGVBind',
               //    color: 'purple',
               //    cuIcon: '',
               //    url: '/AGV/AGVBind'
               // },
               // {
               //    title: '站绑定',
               //    name: 'AGVStaBind',
               //    color: 'red',
               //    cuIcon: '',
               //    url: '/AGV/AGVStaBind'
               // },
               // {
               //    title: '产线叫料',
               //    name: 'AGVSiteList',
               //    color: 'red',
               //    cuIcon: '',
               //    url: '/AGV/AGVSiteList'
               // },
               // {
               //    title: '产线叫料2',
               //    name: 'AGVSiteList2',
               //    color: 'red',
               //    cuIcon: '',
               //    url: '/AGV/AGVSiteList2'
               // },
               // {
               //    title: '成品呼叫',
               //    name: 'AGVFinishedCall',
               //    color: 'orange',
               //    cuIcon: '',
               //    url: '/AGV/AGVFinishedCall'
               // },
               // {
               //    title: '成品呼叫2',
               //    name: 'AGV_2F',
               //    color: 'purple',
               //    cuIcon: '',
               //    url: '/AGV/AGV2F'
               // },
               // {
               //    title: '组托上架',
               //    name: 'putOn',
               //    color: 'orange',
               //    cuIcon: 'pullup',
               //    url: '/pakin/putOn'
               // },
               // {
               //    title: '打印',
               //    name: 'print',
               //    color: 'purple',
               //    cuIcon: 'text',
               //    url: '/print/print'
               // },
               // {
               //    title: '订单上架',
               //    name: 'orderPutOn',
               //    color: 'yellow',
               //    cuIcon: 'pullup',
               //    url: '/order/orderPutOn'
               // },
               // {
               //    title: '订单下架',
               //    name: 'orderPutDown',
               //    color: 'olive',
               //    cuIcon: 'pulldown',
               //    url: '/order/orderPutDown'
               // },
               // {
               //    title: '库存查询',
               //    name: 'stockQuery',
               //    color: 'green',
               //    cuIcon: '',
               //    url: '/stock/stockQuery'
               // },
               // {
               // {
               //    title: '商品打印',
               //    name: 'matList',
               //    color: 'orange',
               //    cuIcon: 'post',
               //    url: '/mat/matList'
               // },
               // {
               //    title: '补货',
               //    name: 'restock',
               //    color: 'yellow',
               //    cuIcon: 'punch',
               //    url: '/stock/restock'
               // },
               // {
               //    title: '转全板',
               //    name: 'piking',
               //    color: 'olive',
               //    cuIcon: 'order',
               //    url: '/pakin/piking'
               // },
               // {
               //    title: '换板绑定',
               //    name: 'changePallet',
               //    color: 'green',
               //    cuIcon: 'order',
               //    url: '/stock/changePallet'
               // },
               {
                  title: '退出登录',
                  name: 'logOut',
@@ -152,7 +205,9 @@
               },
            ],
            colorList: ['cyan','blue','mauve','pink','brown','red','orange','yellow','olive','olive','green','grey' ]
            colorList: ['cyan', 'blue', 'mauve', 'pink', 'brown', 'red', 'orange', 'yellow', 'olive', 'olive', 'green',
               'grey'
            ]
         };
      },
      onShow() {
@@ -166,7 +221,9 @@
            uni.request({
               url: that.baseUrl + '/menu/pda/auth',
               data: {},
               header: { 'token': uni.getStorageSync('token') },
               header: {
                  'token': uni.getStorageSync('token')
               },
               method: 'POST',
               success(res) {
                  res = res.data
@@ -207,7 +264,7 @@
                           url: '../login/login'
                        });
                     }, 1000);
                  } else if(res.status === 404) {
                  } else if (res.status === 404) {
                     that.elements = that.elements2
                     // uni.showToast({
                     //    title: '默认主页',
@@ -228,7 +285,7 @@
            })
         },
         getIcon(e) {
            const ways = ['pakin','orderPakin','orderPutOn']
            const ways = ['pakin', 'orderPakin', 'orderPutOn']
            if (ways.includes(e)) {
               this.icon = 'pullup'
            }