From e50fa16b6dbc4e7c50d5fbdbc04d2a556ca01c4e Mon Sep 17 00:00:00 2001
From: chenlu <1320612696@qq.com>
Date: 星期一, 02 十二月 2024 11:26:36 +0800
Subject: [PATCH] 补片流程卡调整

---
 north-glass-erp/northglass-erp/src/views/pp/processCard/SelectPrintProject.vue |   27 +++++++++++++++++++++++----
 1 files changed, 23 insertions(+), 4 deletions(-)

diff --git a/north-glass-erp/northglass-erp/src/views/pp/processCard/SelectPrintProject.vue b/north-glass-erp/northglass-erp/src/views/pp/processCard/SelectPrintProject.vue
index fb05fc3..3da9010 100644
--- a/north-glass-erp/northglass-erp/src/views/pp/processCard/SelectPrintProject.vue
+++ b/north-glass-erp/northglass-erp/src/views/pp/processCard/SelectPrintProject.vue
@@ -59,6 +59,10 @@
       router.push({path: '/main/processCard/PrintLabel', query: { projectNo: row.project_no,type:2 }})
       break
     }
+    case 'edit2' :{
+      router.push({path: '/main/processCard/PrintLabel', query: { projectNo: row.project_no,type:3 }})
+      break
+    }
   }
 }
 
@@ -112,7 +116,12 @@
       const button = {'code': 'printLabel',
         status: 'primary',
         'name': t('processCard.finishedProductPrinting2')}
-      gridOptions.toolbarConfig.buttons.push(button)
+      let name=company.companyName
+      if (name != '閲戝崕绂忓枩澶╂垚鐜荤拑鏈夐檺鍏徃') {
+        gridOptions.toolbarConfig.buttons.push(button)
+      }
+
+
 
       const button2 = {'code': 'detailPrinting',
         status: 'primary',
@@ -165,7 +174,7 @@
     useKey: true
   },
   filterConfig: {   //绛涢�夐厤缃」
-                    // remote: true
+    // remote: true
   },
   customConfig: {
     storage: true
@@ -179,7 +188,7 @@
   //琛ㄥご鍙傛暟
   columns: [
     {type: 'expand', fixed: "left", slots: {content: 'content'}, width: 50},
-    {title: t('basicData.operate'), width: 120, slots: { default: 'button_slot' },fixed:"left"},
+    {title: t('basicData.operate'), width: 140, slots: { default: 'button_slot' },fixed:"left"},
     {type: 'seq', fixed: "left", title: t('basicData.Number'), width: 50},
     {
       field: 'project_no',
@@ -276,7 +285,16 @@
   id: 'childLabel',
 })
 
-
+const hideButton = () => {
+  let name=company.companyName
+  // 鏍规嵁鏉′欢鍊� hidePrintLabels 杩囨护鎸夐挳鏁扮粍
+  gridOptions.toolbarConfig.buttons = gridOptions.toolbarConfig.buttons.filter(button => {
+    // 杩欓噷鏍规嵁 hidePrintLabels 鐨勫�煎喅瀹氭槸鍚﹂殣钘� printLabel 鍜� printLabel2
+    if (name == '閲戝崕绂忓枩澶╂垚鐜荤拑鏈夐檺鍏徃') {
+      return button.code !== 'printLabel';
+    }
+  })
+}
 </script>
 
 <template>
@@ -324,6 +342,7 @@
       <template #button_slot="{ row }">
         <el-button @click="getTableRow(row,'edit')" link type="primary" size="small">{{$t('machine.cutting')}}</el-button>
         <el-button @click="getTableRow(row,'edit1')" link type="primary" size="small">{{$t('machine.tempering')}}</el-button>
+        <el-button @click="getTableRow(row,'edit2')" link type="primary" size="small">{{$t('components.finishedProduct')}}</el-button>
       </template>
 
       <template #num1_filter="{ column, $panel }">

--
Gitblit v1.8.0