From 440f4d1dbc63c302e59f304e589413019178046d Mon Sep 17 00:00:00 2001
From: 王震 <10952869+daywangzhen@user.noreply.gitee.com>
Date: 星期三, 20 十二月 2023 14:55:09 +0800
Subject: [PATCH] 	modified:   src/api/quality/Packaging_ledger.js 	modified:   src/const/website.js 	modified:   src/page/PackingLedgerDetails/index.vue 	modified:   src/permission.js 	modified:   src/views/quality/Packaging_ledger/index.vue 	modified:   vue.config.js

---
 src/views/quality/Packaging_ledger/index.vue |   19 +++++--------------
 1 files changed, 5 insertions(+), 14 deletions(-)

diff --git a/src/views/quality/Packaging_ledger/index.vue b/src/views/quality/Packaging_ledger/index.vue
index 76c49df..c465c2d 100644
--- a/src/views/quality/Packaging_ledger/index.vue
+++ b/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)
       },
@@ -361,19 +363,8 @@
           let obj = {
             packageNo: item.packageNo,
             contractNo: item.contractNo,
-            boxInfo: []
+            packageBoxId:item.id
           }
-          list({packageBoxId:item.id}).then((res) =>{
-            res.data.data.forEach(ele=>{
-              obj.boxInfo.push({
-                product: ele.product,
-                productNo: ele.productNo,
-                specs: ele.specs,
-                unit: ele.unit,
-                number: ele.number
-              })
-            })
-          })
           this.qrData.push(obj)
         })
       },
@@ -428,7 +419,7 @@
               el.packageBoxId =this.goid
          });
          console.log(this.testStandardParams);
-         return
+  //       return
         saveList(this.testStandardParams).then((res) =>{
           if(res.status===200){
             this.$message.success('淇濆瓨鎴愬姛')

--
Gitblit v1.9.3