From 187cd383e4362059795d0f48b96ca0037f19da6d Mon Sep 17 00:00:00 2001
From: 王震 <10952869+daywangzhen@user.noreply.gitee.com>
Date: 星期五, 12 一月 2024 10:56:19 +0800
Subject: [PATCH] 包装台账修改

---
 src/views/basic/param/index.vue              |    1 +
 vue.config.js                                |    4 ++--
 src/views/quality/Packaging_ledger/index.vue |   13 +++++++------
 3 files changed, 10 insertions(+), 8 deletions(-)

diff --git a/src/views/basic/param/index.vue b/src/views/basic/param/index.vue
index 89608c3..3385fc9 100644
--- a/src/views/basic/param/index.vue
+++ b/src/views/basic/param/index.vue
@@ -40,6 +40,7 @@
       uploadInfo: {
         // 鏄惁灞曠ず涓婁紶EXCEL浠ュ強瀵瑰簲鐨剈rl
         isShow: false,
+        download:true,
         url: '/mes/param/upload'
       },
       prelang: 'operation',
diff --git a/src/views/quality/Packaging_ledger/index.vue b/src/views/quality/Packaging_ledger/index.vue
index 9427849..1e66617 100644
--- a/src/views/quality/Packaging_ledger/index.vue
+++ b/src/views/quality/Packaging_ledger/index.vue
@@ -183,7 +183,6 @@
           multipleSelection: [],
           isCheck: false,
           dataway:{},
-          goid:'',
           datalist:[],
           testStandardParams: [],
           packageBoxId:{},
@@ -345,6 +344,8 @@
       }
     },
     methods: {
+      //鍖呰璇︽儏
+     
       //鎵撳嵃鎸夐挳
       printFun() {
           this.diaPrintTab = false;
@@ -374,7 +375,6 @@
       },
       handleSelectionChange(val){
         this.multipleSelection = val
-        console.log(this.multipleSelection[0].id,"鏁版嵁");
         let lastRow = val[val.length - 1]
         this.handleCurrentChange(lastRow)
       },
@@ -412,18 +412,19 @@
         })
       },
       handleCurrentChange(row){
-        if(row.state=='宸叉姤妫�'){
+        if(row.state=='鏈姤妫�'){
+          this.isCheck = false
+        }else{
           this.isCheck = true
         }
         this.dataway = row
         this.packageBoxId = {
           packageBoxId:row.id
         }
-        this.goid = row.id
         this.rightquery()
       },
       rightquery(){
-        list({packageBoxId:this.goid}).then((res) =>{
+        list({packageBoxId:this.packageBoxId.packageBoxId}).then((res) =>{
           this.testStandardParams = res.data.data
         })
       },
@@ -443,7 +444,7 @@
       //鍙宠竟淇濆瓨
       addpreserve(){
          this.datalist.forEach(el => {
-              el.packageBoxId =this.goid
+              el.packageBoxId =this.packageBoxId.packageBoxId
          });
          console.log(this.datalist);
   //       return
diff --git a/vue.config.js b/vue.config.js
index bdb8870..a20768e 100644
--- a/vue.config.js
+++ b/vue.config.js
@@ -4,8 +4,8 @@
  */
 
 
-const url = 'http://192.168.2.7:9999'
-// const url = 'https://ztms-mes.chinaztt.cn/'
+// const url = 'http://192.168.2.7:9999'
+const url = 'https://ztms-mes.chinaztt.cn/'
 
 //  const url = 'http://localhost:9999'
 

--
Gitblit v1.9.3