已修改7个文件
已添加1个文件
149 ■■■■ 文件已修改
src/api/quality/Packaging_ledger.js 9 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/const/website.js 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/page/PackingLedgerDetails/index.vue 78 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/permission.js 12 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/router/page/index.js 10 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/plan/manufacturingorder/index.vue 26 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/quality/Packaging_ledger/index.vue 4 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
vue.config.js 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/api/quality/Packaging_ledger.js
@@ -18,12 +18,19 @@
export function list(query) {
    return request({
      url: '/mes//qualityPackageBoxDetail/list',
      url: '/mes/qualityPackageBoxDetail/list',
      method: 'get',
      params: query
    })
}
export function selById(query) {
  return request({
    url: '/mes/qualityPackageBox/selById',
    method: 'get',
    params: query
  })
}
export function customerpage(query) {
    return request({
      url: '/mes/customer/page',
src/const/website.js
@@ -3,8 +3,8 @@
  copyright: 'Copyright Â© 2021 chinaztt.com. All rights reserved.',
  isFirstPage: true, // é…ç½®é¦–页不可关闭
  key: 'ztt', // é…ç½®ä¸»é”®,目前用于存储
  whiteList: ['/login', '/404', '/401', '/lock'], // é…ç½®æ— æƒé™å¯ä»¥è®¿é—®çš„页面
  whiteTagList: ['/login', '/404', '/401', '/lock'], // é…ç½®ä¸æ·»åŠ tags页面 ï¼ˆ'/advanced-router/mutative-detail/*'——*为通配符)
  whiteList: ['/login', '/404', '/401', '/lock','/pack'], // é…ç½®æ— æƒé™å¯ä»¥è®¿é—®çš„页面
  whiteTagList: ['/login', '/404', '/401', '/lock','/pack'], // é…ç½®ä¸æ·»åŠ tags页面 ï¼ˆ'/advanced-router/mutative-detail/*'——*为通配符)
  fistPage: {
    label: '首页',
    value: '/wel/index',
src/page/PackingLedgerDetails/index.vue
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,78 @@
<template>
    <div >
        <el-card class="box-card" v-for="(el,item) in testStandardParams" >
            <div>
                <el-form  :model="el" label-width="80px">
                    <el-form-item label="序号:">
                        {{ item + 1  }}
                    </el-form-item>
                </el-form>
                <el-form  :model="el" label-width="80px">
                    <el-form-item label="产品:">
                        {{ el.product }}
                    </el-form-item>
                </el-form>
                <el-form  :model="el" label-width="80px">
                    <el-form-item label="产品编号:">
                        {{ el.productNo }}
                    </el-form-item>
                </el-form>
                <el-form  :model="el" label-width="80px">
                    <el-form-item label="批次号:">
                        {{ el.outBatchNo }}
                    </el-form-item>
                </el-form>
                <el-form  :model="el" label-width="80px">
                    <el-form-item label="规格型号:">
                        {{ el.specs }}
                    </el-form-item>
                </el-form>
                <el-form  :model="el" label-width="80px">
                    <el-form-item label="单位:">
                        {{ el.unit }}
                    </el-form-item>
                </el-form>
                <el-form  :model="el" label-width="80px">
                    <el-form-item label="数量:">
                        {{ el.number }}
                    </el-form-item>
                </el-form>
            </div>
        </el-card>
    </div>
</template>
<script>
import {selById} from '@/api/quality/Packaging_ledger'
export default{
    data(){
        return{
            testStandardParams:[]
        }
    },
    created() {
        let aa = this.$route.query
        console.log(this.$route.query,"id");
        this.chuaxun(aa)
    },
    methods: {
        chuaxun(aa){
            selById({id:aa.id}).then((res) =>{
          this.testStandardParams = res.data.data
        })
      },
    }
}
</script>
<style>
.box-card{
    margin: 20px;
    border-radius: 40px;
}
.inputDeep {
}
</style>
src/permission.js
@@ -12,6 +12,7 @@
router.beforeEach((to, from, next) => {
  NProgress.start();
  const meta = to.meta || {};
  const whiteList = ['/login', '/404', '/401', '/lock','/pack']
  if (store.getters.access_token) {
    if (store.getters.isLock && to.path !== '/lock') {
      next({ path: '/lock' });
@@ -35,7 +36,15 @@
    // é¡µé¢å¤šå¼€ï¼šè½½å…¥localStorage的auth参数 By Luxn
    let auth = JSON.parse(localStorage.getItem("authorization") || "{}");
    if ( meta.isAuth === false) {
      next();
      //没有token的情况
    if (whiteList.indexOf(to.path) !== -1) {
      // å¦‚果在白名单内则直接跳转
      next()
    } else {
      // å…¶ä½™é¡µé¢é‡å®šå‘到登录页
      next('/login')
    }
      // next();
    }else{
      if (auth.date_time) {
        let key = ["access_token", "refresh_token", "expires_in", "user_info", "language"];
@@ -57,7 +66,6 @@
      }else{
        next('/login');
      }
    }
  }
})
src/router/page/index.js
@@ -2,6 +2,16 @@
export default [
  {
    path: '/pack',
    name: '包装详情',
    component: () => import(/* webpackChunkName: "page" */ '@/page/PackingLedgerDetails/index'),
    meta: {
      keepAlive: true,
      isTab: false,
      isAuth: false
    }
  },
  {
    path: '/thirdpartylogin',
    name: '第三方登录页',
    component: () =>
src/views/plan/manufacturingorder/index.vue
@@ -199,7 +199,7 @@
      </el-dialog>
    </basic-container>
    <!-- æ ‡ç­¾æ‰“印 -->
    <el-dialog title="标签列表" :visible.sync="diaPrintTab" width="500px" top="5vh">
    <el-dialog title="标签列表" :visible.sync="diaPrintTab" width="28%" top="5vh">
      <div style="width:100%;height: 400px;overflow-y: auto;">
        <div class="dia_body">
          <el-checkbox 
@@ -232,27 +232,29 @@
                      <vueQr :text="JSON.stringify(item.code)" :size="80" :margin="2"></vueQr>
                    </el-col>
                  </el-row> -->
                   <div style="display: flex;">
                   <div>
                    <el-row style="font-size: 14px;padding-left: 20px;">
                          <el-col  style="font-weight: bold;">{{ item.pName }}</el-col>
                    </el-row>
                  <div style="display: flex;">
                      <div>
                        <el-col :span="8" :offset="2">
                        <el-col :span="8" :offset="4">
                          <vueQr :text="JSON.stringify(item.code)" :size="120" :margin="2"></vueQr>
                        </el-col>
                      </div>
                      <div style="margin-left: 20px;width: 100%;">
                        <el-row >
                          <el-col  style="font-weight: bold;"><span>批次号:&nbsp; </span>{{ item.code.moNo2 }}</el-col>
                      <div style="margin-left: 50px;width: 100%;">
                        <el-row style="margin-top: 10px;">
                          <el-col  style="font-weight: bold;font-size: 14px;"><span>批&nbsp; æ¬¡&nbsp;号:&nbsp; </span>{{ item.code.moNo2 }}</el-col>
                        </el-row>
                        <el-row style="margin-top: 5px;">
                          <el-col  style="font-weight: bold;"><span>订单号:&nbsp; </span>{{ item.orderNo }}</el-col>
                        <el-row style="margin-top: 9px;font-size: 14px;">
                          <el-col  style="font-weight: bold;"><span>订&nbsp; å•&nbsp;号:&nbsp; </span>{{ item.orderNo }}</el-col>
                        </el-row>
                        <el-row style="margin-top: 5px;">
                        <el-row style="margin-top: 9px;font-size: 14px;">
                          <el-col  style="font-weight: bold;"><span>客户名称:&nbsp; </span>{{ item.cName }}</el-col>
                        </el-row>
                        <el-row style="margin-top: 5px;">
                          <el-col  style="font-weight: bold;">{{ item.pName }}</el-col>
                        </el-row>
                      </div>
                  </div>
                  </div>
            </el-card>
          </el-checkbox-group>
        </div>
src/views/quality/Packaging_ledger/index.vue
@@ -150,7 +150,7 @@
              <el-row>
                <el-col :span="10" :offset="3">包装台账二维码:</el-col>
                <el-col :span="10">
                  <vueQr :text="JSON.stringify(item)" :size="110" :margin="1"></vueQr>
                  <vueQr :text=str+item.packageBoxId :size="110" :margin="1"></vueQr>
                </el-col>
              </el-row>
            </el-card>
@@ -174,6 +174,7 @@
export default {
    data(){
        return {
          str:"http://192.168.2.213:8080/#/pack?id=",
          qrData:[],
          diaPrintTab: false,
          multipleSelection: [],
@@ -348,6 +349,7 @@
      },
      handleSelectionChange(val){
        this.multipleSelection = val
        console.log(this.multipleSelection[0].id,"数据");
        let lastRow = val[val.length - 1]
        this.handleCurrentChange(lastRow)
      },
vue.config.js
@@ -4,11 +4,15 @@
 */
// const url = 'http://192.168.2.7:9999'
// const url = 'http://192.168.32.45:9999'
// const url = 'http://192.168.2.7:9999'
// const url = 'http://192.168.32.45:9999'
//const url = 'http://192.168.2.7:9999'
//const url = 'http://192.168.32.45:9999'
// const url = 'http://192.168.0.23:9999'
const url = 'http://localhost:9999'
// const url = 'http://localhost:9999'
const localUrl = 'http://localhost:8089'