lxf 1 year ago
parent
commit
84c17e7cad
1 changed files with 26 additions and 22 deletions
  1. 26 22
      src/views/group/finance/check-bill/ExcelFile.vue

+ 26 - 22
src/views/group/finance/check-bill/ExcelFile.vue

@@ -91,28 +91,32 @@ const config = computed(() => {
       },
       renderHTML(row) {
         return [
-          {
-            attrs: {
-              label: "下载",
-              type: "primary",
-              text: true,
-            },
-            el: "button",
-            click() {
-              clickDownload(row);
-            },
-          },
-          {
-            attrs: {
-              label: "删除",
-              type: "danger",
-              text: true,
-            },
-            el: "button",
-            click() {
-              clickDelete(row);
-            },
-          },
+          row.status == 4
+            ? {
+                attrs: {
+                  label: "下载",
+                  type: "primary",
+                  text: true,
+                },
+                el: "button",
+                click() {
+                  clickDownload(row);
+                },
+              }
+            : {},
+          row.status == 4
+            ? {
+                attrs: {
+                  label: "删除",
+                  type: "danger",
+                  text: true,
+                },
+                el: "button",
+                click() {
+                  clickDelete(row);
+                },
+              }
+            : {},
         ];
       },
     },