From 5607d43c15656058cb9e725612e2d477201f62a1 Mon Sep 17 00:00:00 2001
From: licp <lichunping@guanfang.com.cn>
Date: 星期四, 05 十二月 2024 15:40:07 +0800
Subject: [PATCH] 多样品,批量编辑信息

---
 src/components/view/b1-inspection-order.vue |   27 +++++++++++++++++++++++++--
 1 files changed, 25 insertions(+), 2 deletions(-)

diff --git a/src/components/view/b1-inspection-order.vue b/src/components/view/b1-inspection-order.vue
index 7996d58..79b0741 100644
--- a/src/components/view/b1-inspection-order.vue
+++ b/src/components/view/b1-inspection-order.vue
@@ -389,11 +389,11 @@
       <div style="width:100%;height: 400px;overflow-y: auto;" v-loading="loadPint">
         <div class="dia_body">
           <el-checkbox
-          style="margin: 10px 5px;"
+          style="margin: 10px 5px;text-align: left;"
           :indeterminate="isIndeterminate"
           v-model="checkAll"
           @change="handleCheckAllChange">鍏ㄩ��</el-checkbox>
-          <el-checkbox-group @change="changePrintCode()" v-model="checkIndexList">
+          <el-checkbox-group @change="changePrintCode()" v-model="checkIndexList" style="text-align: left;">
             <el-card class="box-card" v-for="(item, i) in qrData" :key="i+'wwwww'" style="margin-bottom: 15px; font-size: 16px !important;">
               <el-checkbox :label="i" :key="i" style="position: relative;top:-10px;left:5px"><br></el-checkbox>
               <div>
@@ -506,6 +506,12 @@
 			Add,
       vueQr
 		},
+    props:{
+      param: {
+        type: Object,
+        default: () => {}
+      }
+    },
 		data() {
 			return {
         deleteTilte:'鎾ら攢',
@@ -556,6 +562,7 @@
 						// 	order: ''
 						// }
 					},
+          init:false,
 					isIndex: true,
 					showSelect: true,
 					select: true,
@@ -825,6 +832,14 @@
           this.checkDataList = []
           this.isIndeterminate = true;
         }
+      },
+      param(val){
+        if(val&&val.text){
+          this.componentData.entity.entrustCode = this.param.text
+          this.componentData.entity.state = 1;
+          this.tabIndex = 1;
+          this.refreshTable()
+        }
       }
     },
     created() {
@@ -832,6 +847,14 @@
     },
 		mounted() {
 			this.entityCopy = this.HaveJson(this.componentData.entity)
+      if(this.param&&this.param.text){
+        this.componentData.entity.entrustCode = this.param.text
+        this.componentData.entity.state = 1;
+        this.tabIndex = 1;
+        this.refreshTable()
+      }else{
+        this.refreshTable()
+      }
 			this.getPower()
 			this.getUserMenu()
 			this.getAuthorizedPerson()

--
Gitblit v1.9.3