浏览代码

no message

aXin-0810 9 月之前
父节点
当前提交
e271613a91

+ 9 - 0
src/views/engineerFeeSettlement/dailyMaintenanceBalance/increaseAndDecreaseExpense/index.vue

@@ -269,6 +269,9 @@ export default {
         },
         coverImport: {
           import: true,
+          conditions: ({ row, index, column }) => {
+            return row.doStatus == '2'
+          },
           click: ({ row, index, column, file }) => {
             var formdata = new FormData()
             formdata.append('file', file)
@@ -291,6 +294,9 @@ export default {
         },
         del: {
           prompt: '确定删除吗?',
+          conditions: ({ row, index, column }) => {
+            return row.doStatus == '2'
+          },
           click: ({ row, index, column }) => {
             dailySummaryReduceCountDelete({ importBatchNo: row.importBatchNo }).then(res => {
               this.$message({ type: 'success', message: '删除成功!' })
@@ -315,6 +321,9 @@ export default {
           }
         },
         del2: {
+          conditions: ({ row, index, column }) => {
+            return row.doStatus == '2'
+          },
           prompt: '确定删除吗?',
           click: ({ row, index, column }) => {
             dailySummaryReduceBatchDel({ ids: row.id }).then(res => {