From 363678a54142e62fdd4ca39a0db5c54af1a704dc Mon Sep 17 00:00:00 2001
From: zouyu <2723363702@qq.com>
Date: 星期四, 29 二月 2024 15:39:59 +0800
Subject: [PATCH] 生产调度修改

---
 src/views/quality/packageinspect/index.vue |   30 ++++++++++++++++++------------
 1 files changed, 18 insertions(+), 12 deletions(-)

diff --git a/src/views/quality/packageinspect/index.vue b/src/views/quality/packageinspect/index.vue
index 3cc33c5..e6093cd 100644
--- a/src/views/quality/packageinspect/index.vue
+++ b/src/views/quality/packageinspect/index.vue
@@ -17,7 +17,7 @@
   <template>
     <div class="mod-config">
         <basic-container>
-            <ttable 
+            <ttable
             :table="table"
             :resultData="resultData"
             @handleSelectionChange="handleSelectionChange"
@@ -121,7 +121,7 @@
                         isTrue: true,
                         sort: true,
                         isSearch: true,
-                        searchInfoType: 'text',
+                        searchInfoType: 'date',
                         formatter: this.formatDateTime,
                     },
                     {
@@ -142,13 +142,7 @@
                     },
                 ],
                 toolbar: [],
-                operator: [
-                {
-                    text: '浣滃簾',
-                    type: 'text',
-                    size: 'small',
-                    fun: this.deleteHandle
-                }],
+                operator: null,
                 operatorConfig: {
                 fixed: 'right',
                 label: '鎿嶄綔',
@@ -161,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'])
     },
@@ -193,9 +196,13 @@
         },
         // 鏂板 / 淇敼
         addOrUpdateHandle(row) {
+            if(!this.permissions.quality_packageinspect_edit && row.id!=null){
+                this.$message.error("璇ヨ鑹叉病鏈夋搷浣滄潈闄�")
+                return
+            }
             this.$router.push({
                 name: 'packageInspectForm',
-                query: { 
+                query: {
                     id: row == null ? null : row.id
                  },
                  params:{resultVal : row.result=='' ? null : row.result}
@@ -222,4 +229,3 @@
     }
   }
   </script>
-  
\ No newline at end of file

--
Gitblit v1.9.3