linwenxin преди 8 месеца
родител
ревизия
3625a62835
променени са 1 файла, в които са добавени 3 реда и са изтрити 3 реда
  1. 3 3
      src/views/auxiliaryFittings/vender/vender-goods-sheet/index.vue

+ 3 - 3
src/views/auxiliaryFittings/vender/vender-goods-sheet/index.vue

@@ -108,7 +108,7 @@ export default {
         },
         edit: {
           conditions: ({ row, index, column }) => {
-            return row.flag === 0
+            return row.status === 'SAVE'
           },
           click: ({ row, index, column }) => {
             this.addOrEdit('edit', row.sheetId)
@@ -117,7 +117,7 @@ export default {
         del: {
           prompt: '确定删除吗?',
           conditions: ({ row, index, column }) => {
-            return row.flag === 0
+            return row.status === 'SAVE'
           },
           click: ({ row, index, column }) => {
             this.delSheet(row.sheetId)
@@ -126,7 +126,7 @@ export default {
         confirm: {
           prompt: '确定审核吗?',
           conditions: ({ row, index, column }) => {
-            return row.flag === 0
+            return row.status === 'SAVE'
           },
           click: ({ row, index, column }) => {
             this.confirmSheet(row.sheetId)