From d3a486a2f3ae5e76b7bbf9e3d6a8c1e36ed73de7 Mon Sep 17 00:00:00 2001
From: zss <zss@example.com>
Date: 星期五, 01 三月 2024 17:38:10 +0800
Subject: [PATCH] 包装台账

---
 src/views/basic/part/index.vue |   22 +++++++++++++++++-----
 1 files changed, 17 insertions(+), 5 deletions(-)

diff --git a/src/views/basic/part/index.vue b/src/views/basic/part/index.vue
index 17fc30c..f4b3331 100644
--- a/src/views/basic/part/index.vue
+++ b/src/views/basic/part/index.vue
@@ -13,10 +13,10 @@
         ref="partTable"
       >
         <template #toolbar>
-          <el-button type="primary" @click="addOrUpdateHandle"
-          v-if="permissions.basic_part_add">鏂板</el-button>
-          <el-button type="primary" @click="() => (this.syncDateVisible = true)"
-          v-if="permissions.basic_part_mdm">鍚屾MDM</el-button>
+          <!-- <el-button type="primary" @click="addOrUpdateHandle"
+          v-if="permissions.basic_part_add">鏂板</el-button> -->
+          <!-- <el-button text="鍚屾MDM" type="primary" @click=""
+          v-if="permissions.basic_part_mdm">鍚屾MDM</el-button> -->
         </template>
       </ttable>
       <!-- 寮圭獥, 鏂板 / 淇敼 -->
@@ -85,6 +85,8 @@
       uploadInfo: {
         // 鏄惁灞曠ず涓婁紶EXCEL浠ュ強瀵瑰簲鐨剈rl
         isShow: true,
+        download: true,
+        fileName: '宸茬敵璇风墿鏂欑紪鐮佹ā鏉�',
         url: '/mes/part/upload'
       },
       prelang: 'operation',
@@ -233,7 +235,7 @@
             optList: () => {
               return this.getThreeLevelClassification()
             }
-          }, 
+          },
           // 瑙勬牸
           {
             minWidth: '140',
@@ -434,6 +436,16 @@
     PrintLabelForm
   },
   created() {
+if(this.permissions.basic_part_mdm){
+        this.table.toolbar.push(
+          {
+            text: '鍚屾MDM',
+            type: 'primary',
+            fun: () => this.syncDateVisible = true,
+            loading: false
+          }
+        )
+    }
     if(this.permissions.basic_part_del){
       this.table.operator = [
           {

--
Gitblit v1.9.3