From 12f2fd73462da331478fabc7eaa79fc35b1a59b3 Mon Sep 17 00:00:00 2001
From: 廖井涛 <2265517004@qq.com>
Date: 星期五, 19 七月 2024 16:41:17 +0800
Subject: [PATCH] Merge branch 'master' of http://bore.pub:10439/r/ERP_override

---
 north-glass-erp/northglass-erp/src/views/pp/processCard/PrintFlowCard.vue |   36 ++++++++++++++++++++++++++++++++----
 1 files changed, 32 insertions(+), 4 deletions(-)

diff --git a/north-glass-erp/northglass-erp/src/views/pp/processCard/PrintFlowCard.vue b/north-glass-erp/northglass-erp/src/views/pp/processCard/PrintFlowCard.vue
index 5e7b710..711b7d1 100644
--- a/north-glass-erp/northglass-erp/src/views/pp/processCard/PrintFlowCard.vue
+++ b/north-glass-erp/northglass-erp/src/views/pp/processCard/PrintFlowCard.vue
@@ -45,7 +45,8 @@
 //鎵撳嵃
 let  printRow = ref({
   list:null,
-  printMergeVal:null
+  printMergeVal:null,
+  like:null
 })
 
 
@@ -281,6 +282,7 @@
       {code: 'customLabel', name: t('processCard.customLabelPrinting'), status: 'primary'},
       {code: 'printLabel', name: t('processCard.labelPrinting'), status: 'primary'},
       {code: 'printLabel2', name: t('processCard.labelPrinting2'), status: 'primary'},
+      {code: 'printLike', name: "鍚岄厤缃墦鍗�", status: 'primary'},
     ],
     // import: false,
     // export: true,
@@ -337,6 +339,7 @@
           }
           printRow.value.list = JSON.stringify(selectRecords)
           printRow.value.printMergeVal=printMerge.value
+          printRow.value.like=null
         // router.push({path: '/main/processCard/printProcess', query: {printList: JSON.stringify(selectRecords),printMerge:printMergeVal}})
           dialogTableVisible.value=true
           break
@@ -440,6 +443,31 @@
 
           break
         }
+        case 'printLike': {
+          if(selectRecords===null ||selectRecords===''||selectRecords.length===0){
+            ElMessage.warning(t('searchOrder.msgList.checkOrder'))
+            return
+          }
+          if(printMerge.value===null ||printMerge.value===''){
+            ElMessage.warning('璇峰~鍏ラ渶瑕佸悎骞剁殑灞�')
+            return
+          }
+
+          let id = ""
+          for (let i = 0; i < selectRecords.length; i++) {
+            if (i + 1 === selectRecords.length) {
+              id += selectRecords[i].id
+            } else {
+              id += selectRecords[i].id + "|"
+            }
+          }
+          printRow.value.list = JSON.stringify(selectRecords)
+          printRow.value.printMergeVal=printMerge.value
+          printRow.value.like="1"
+          // router.push({path: '/main/processCard/printProcess', query: {printList: JSON.stringify(selectRecords),printMerge:printMergeVal}})
+          dialogTableVisible.value=true
+          break
+        }
       }
     }
   },
@@ -457,9 +485,9 @@
   gridOptions.toolbarConfig.buttons = gridOptions.toolbarConfig.buttons.filter(button => {
     // 杩欓噷鏍规嵁 hidePrintLabels 鐨勫�煎喅瀹氭槸鍚﹂殣钘� printLabel 鍜� printLabel2
     if (hidePrintLabels=='true') {
-      return button.code !== 'printLabel' && button.code !== 'printLabel2';
+      return button.code !== 'printLabel' && button.code !== 'printLabel2' ;
     } else {
-      return true; // 涓嶉殣钘忎换浣曟寜閽�
+      return true && button.code !=='printLike'; // 鏄剧ず璇ユ寜閽�
     }
   })
 }
@@ -569,7 +597,7 @@
       <template #header="{ close, titleId, titleClass }">
         <el-button v-print="printContent" @click="printNumber"  :icon="Printer" circle />
       </template>
-      <print-process id="child" :printList="printRow.list" :printMerge="printRow.printMergeVal"
+      <print-process id="child" :printList="printRow.list" :printMerge="printRow.printMergeVal" :printLike="printRow.like"
                     style="width: 100%;height: 100%" />
     </el-dialog>
 

--
Gitblit v1.8.0