Browse Source

no message

aXin-0810 9 months ago
parent
commit
f0025a6a9d

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

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

+ 6 - 0
src/views/engineerFeeSettlement/dailyMaintenanceBalance/settlementDataImport/index.vue

@@ -292,6 +292,9 @@ export default {
         },
         },
         coverImport: {
         coverImport: {
           import: true,
           import: true,
+          conditions: ({ row, index, column }) => {
+            return row.summaryStatus == '2'
+          },
           click: ({ row, index, column, file }) => {
           click: ({ row, index, column, file }) => {
             var formdata = new FormData()
             var formdata = new FormData()
             formdata.append('file', file)
             formdata.append('file', file)
@@ -315,6 +318,9 @@ export default {
         },
         },
         del: {
         del: {
           prompt: '确定删除吗?',
           prompt: '确定删除吗?',
+          conditions: ({ row, index, column }) => {
+            return row.summaryStatus == '2'
+          },
           click: ({ row, index, column }) => {
           click: ({ row, index, column }) => {
             dailySummaryRepairDelete({ importBatchNo: row.importBatchNo }).then(res => {
             dailySummaryRepairDelete({ importBatchNo: row.importBatchNo }).then(res => {
               this.$message({ type: 'success', message: '删除成功!' })
               this.$message({ type: 'success', message: '删除成功!' })