aXin-0810 hai 1 ano
pai
achega
4979d971d6
Modificáronse 1 ficheiros con 26 adicións e 20 borrados
  1. 26 20
      src/views/salesPurchasing/goodsPurchasedStored/index.vue

+ 26 - 20
src/views/salesPurchasing/goodsPurchasedStored/index.vue

@@ -211,29 +211,35 @@ export default {
     },
     // 操作按钮
     operation() {
-      return this.operationBtn({
-        edit: {
-          conditions: ({ row, index, column }) => {
-            return row.status == 'SAVE'
+      if (this.pageType == 'list') {
+        return this.operationBtn({
+          edit: {
+            conditions: ({ row, index, column }) => {
+              return row.status == 'SAVE'
+            },
+            click: ({ row, index, column }) => {
+              this.openDetailForm(row, 1)
+            }
           },
-          click: ({ row, index, column }) => {
-            this.openDetailForm(row, 1)
-          }
-        },
-        detail: {
-          click: ({ row, index, column }) => {
-            this.openDetailForm(row, 2)
-          }
-        },
-        shenhe: {
-          conditions: ({ row, index, column }) => {
-            return row.status == 'WAIT'
+          detail: {
+            click: ({ row, index, column }) => {
+              this.openDetailForm(row, 2)
+            }
           },
-          click: ({ row, index, column }) => {
-            this.openDetailForm(row, 3)
+          shenhe: {
+            conditions: ({ row, index, column }) => {
+              return row.status == 'WAIT'
+            },
+            click: ({ row, index, column }) => {
+              this.openDetailForm(row, 3)
+            }
           }
-        }
-      })
+        })
+      } else if (this.pageType == 'goodsder') {
+        return undefined
+      } else if (this.pageType == 'codeder') {
+        return undefined
+      }
     },
     // 保存
     save() {