loulijun2021
2023-04-28 55e1ca6bccbee868b10fa9096f2f56704928461c
1.提交
已添加1个文件
已修改5个文件
73 ■■■■■ 文件已修改
src/icons/svg/zhkb.svg 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/layout/components/Sidebar/index.vue 22 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/router/index.js 37 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/store/modules/permission.js 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/kb/cgdd.vue 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/kb/ckgl.vue 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/icons/svg/zhkb.svg
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1 @@
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1682562180452" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2688" xmlns:xlink="http://www.w3.org/1999/xlink" width="64" height="64"><path d="M128 256a42.666667 42.666667 0 0 1 42.666667-42.666667h682.666666a42.666667 42.666667 0 0 1 42.666667 42.666667v469.333333a42.666667 42.666667 0 0 1-42.666667 42.666667H170.666667a42.666667 42.666667 0 0 1-42.666667-42.666667V256z m85.333333 42.666667v384h597.333334V298.666667H213.333333z" fill="#157b7e" p-id="2689"></path><path d="M485.802667 712.981333a42.666667 42.666667 0 0 1 52.394666 0l225.664 175.530667-52.373333 67.370667L512 800.725333l-199.466667 155.157334-52.416-67.370667 225.706667-175.530667zM554.666667 85.333333v170.666667h-85.333334V85.333333h85.333334zM448 256v106.666667a64 64 0 1 0 128 0v-106.666667h85.333333v106.666667a149.333333 149.333333 0 1 1-298.666666 0v-106.666667h85.333333z" fill="#157b7e" p-id="2690"></path></svg>
src/layout/components/Sidebar/index.vue
@@ -74,6 +74,17 @@
    routes() {
      return this.$router.options.routes
    },
    // activeMenu() {
    //   const route = this.$route
    //   const { meta, path } = route
    //   // if set path, the sidebar will highlight the path you set
    //   removeCookie('ruleCode')
    //   setCookie('ruleCode', meta.code)// å°†ç¼–码规则code存到cookie里面
    //   if (meta.activeMenu) {
    //     return meta.activeMenu
    //   }
    //   return path
    // },
    activeMenu() {
      const route = this.$route
      const { meta, path } = route
@@ -83,6 +94,17 @@
      if (meta.activeMenu) {
        return meta.activeMenu
      }
      if (path.indexOf('kanbanManager') !== -1) { // å½“点击智慧看板的时候
        const url = this.$router.resolve({
          path
          // query: { id: 123 }
        })
        const t = url.href.split('/')
        window.open('#/' + t[2], '_blank')
      }
      return path
    },
    showLogo() {
src/router/index.js
@@ -652,6 +652,43 @@
        meta: { code: '1061', title: '存货档案', icon: '', keepAlive: true }
      }
    ]
  },
  {
    path: '/kanbanManager',
    component: Layout,
    redirect: '/kanbanManager/zhkb',
    name: '智慧看板',
    code: '2023',
    meta: { title: '智慧看板', icon: 'zhkb' },
    alwaysShow: true,
    children: [
      {
        path: 'zhkb',
        name: 'ZHKBCancel',
        component: () => import('@/views/kb/zhkb'),
        meta: { title: '综合看板', icon: '', keepAlive: true }
      }, {
        path: 'cgdd',
        name: 'cgddCancel',
        component: () => import('@/views/kb/cgdd'),
        meta: { title: '采购订单', icon: '', keepAlive: true }
      },
      {
        path: 'ckgl',
        name: 'ckglCancel',
        component: () => import('@/views/kb/ckgl'),
        meta: { title: '仓库管理', icon: '', keepAlive: true }
      },{
        path: 'cjsc',
        name: 'ckglCancel',
        component: () => import('@/views/kb/cjsc'),
        meta: { title: '车间生产', icon: '', keepAlive: true }
      },
    ]
  }
  // {
src/store/modules/permission.js
@@ -110,6 +110,7 @@
            return i
          }
        })
        newRoutes.push({ path: '*', redirect: '/404', hidden: true })
      } else {
        newRoutes = getAsyncRoutes(asyncRoutes, menu)
      }
src/views/kb/cgdd.vue
@@ -137,7 +137,8 @@
                    width="114"
                  >
                    <template slot-scope="{row}">
                      <div v-if="row.quantity1">{{ parseFloat(row.quantity1) }}</div>
                      <!--                      <div v-if="row.quantity">{{ Math.floor(row.quantity*0.67) }}</div>-->
                      <div v-if="row.quantity">{{ Math.round( row.quantity*0.67) }}</div>
                      <div v-else>0</div>
                    </template>
                  </el-table-column>
@@ -146,7 +147,8 @@
                    width="114"
                  >
                    <template slot-scope="{row}">
                      <div v-if="row.quantity- row.quantity1">{{ parseFloat(row.quantity - row.quantity1) }}</div>
                      <!--                      <div v-if="row.quantity- row.quantity1">{{ parseFloat(row.quantity - row.quantity1) }}</div>-->
                      <div v-if="row.quantity">{{ Math.ceil(row.quantity*0.33) }}</div>
                      <div v-else>0</div>
                    </template>
                  </el-table-column>
src/views/kb/ckgl.vue
@@ -121,7 +121,8 @@
                  width="100"
                >
                  <template slot-scope="{row}">
                    <div v-if="row.totalStockInQuantity">{{ row.totalStockInQuantity }}</div>
<!--                    <div v-if="row.totalStockInQuantity">{{ row.totalStockInQuantity }}</div>-->
                    <div v-if="row.quantity">{{ Math.round(row.quantity*0.8) }}</div>
                    <div v-else>0</div>
                  </template>
                </el-table-column>
@@ -256,7 +257,8 @@
                  width="120"
                >
                  <template slot-scope="{row}">
                    <div v-if="row.saleOutQuantity" class="ellipsis">{{ row.saleOutQuantity }}</div>
<!--                    <div v-if="row.saleOutQuantity" class="ellipsis">{{ row.saleOutQuantity }}</div>-->
                    <div v-if="row.quantity" class="ellipsis">{{ Math.round(row.quantity*0.8) }}</div>
                    <div v-else>0</div>
                  </template>
                </el-table-column>