From fb616f2a4d91dd9fb16320fb0b3d5fc3cd9e112c Mon Sep 17 00:00:00 2001
From: zouyu <2723363702@qq.com>
Date: 星期五, 05 一月 2024 13:30:02 +0800
Subject: [PATCH] 销售订单-下载按钮修改2

---
 src/views/quality/packageinspect/index.vue |   31 ++++++++++++++++---------------
 1 files changed, 16 insertions(+), 15 deletions(-)

diff --git a/src/views/quality/packageinspect/index.vue b/src/views/quality/packageinspect/index.vue
index a575e60..e8a924d 100644
--- a/src/views/quality/packageinspect/index.vue
+++ b/src/views/quality/packageinspect/index.vue
@@ -141,20 +141,8 @@
                         searchInfoType: 'text'
                     },
                 ],
-                toolbar: [
-                    // {
-                    //     text: '鏂板',
-                    //     type: 'primary',
-                    //     fun: this.addOrUpdateHandle
-                    // },
-                ],
-                operator: [
-                {
-                    text: '浣滃簾',
-                    type: 'text',
-                    size: 'small',
-                    fun: this.deleteHandle
-                }],
+                toolbar: [],
+                operator: null,
                 operatorConfig: {
                 fixed: 'right',
                 label: '鎿嶄綔',
@@ -167,7 +155,16 @@
     components: {
         ttable,
     },
-    created() { },
+    created() { 
+        if(this.permissions.quality_packageinspect_del){
+            this.table.operator = [{
+                    text: '浣滃簾',
+                    type: 'text',
+                    size: 'small',
+                    fun: this.deleteHandle
+                }]
+        }
+     },
     computed: {
         ...mapGetters(['permissions'])
     },
@@ -199,6 +196,10 @@
         },
         // 鏂板 / 淇敼
         addOrUpdateHandle(row) {
+            if(!this.permissions.quality_packageinspect_edit && row.id!=null){
+                this.$message.error("璇ヨ鑹叉病鏈夋搷浣滄潈闄�")
+                return
+            }
             this.$router.push({
                 name: 'packageInspectForm',
                 query: { 

--
Gitblit v1.9.3