From 77fad81725d273ad7d515b1d98fa3e7c2b20be06 Mon Sep 17 00:00:00 2001
From: licp <lichunping@guanfang.com.cn>
Date: 星期一, 30 九月 2024 09:47:15 +0800
Subject: [PATCH] 样机编号完成40%

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

diff --git a/src/components/view/b1-inspection-order.vue b/src/components/view/b1-inspection-order.vue
index 21b00f1..42658b2 100644
--- a/src/components/view/b1-inspection-order.vue
+++ b/src/components/view/b1-inspection-order.vue
@@ -790,6 +790,12 @@
       selectMethod(val){
         this.multipleSelection = val
       },
+      async searchPrint(selection){
+        let res = await this.$axios.post(this.$api.insOrder.checkNumber,{
+          ids:selection.map(m=>m.id).join(',')
+        })
+        console.log(1111,res)
+      },
       getLabelPrinting(selection){
         this.loadPint = true;
         this.$axios.post(this.$api.insOrder.labelPrinting,{
@@ -862,12 +868,13 @@
               font_size: '0.20cm',
         });
       },
-      print(){
+      async print(){
         if(this.multipleSelection.length==0){
             this.$message.warning('璇烽�夋嫨涓�鏉℃暟鎹�')
             return
         }
         let selection = this.multipleSelection
+        await this.searchPrint(selection)
         this.getLabelPrinting(selection)
         this.printDialogVisible = true
       },

--
Gitblit v1.9.3