浏览代码

no message

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

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

@@ -254,6 +254,9 @@ export default {
           }
         },
         execute: {
+          conditions: ({ row, index, column }) => {
+            return row.doStatus == '2'
+          },
           prompt: '确定执行吗?',
           click: ({ row, index, column }) => {
             dailySummaryReduceDo({ importBatchNos: row.importBatchNo }).then(res => {
@@ -299,6 +302,10 @@ export default {
     operation2() {
       return this.operationBtn({
         execute2: {
+          conditions: ({ row, index, column }) => {
+            return row.doStatus == '2'
+          },
+          prompt: '确定执行吗?',
           click: ({ row, index, column }) => {
             dailySummaryReduceItemDo({ ids: row.id }).then(res => {
               this.$message({ type: 'success', message: '设置成功!' })

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

@@ -253,6 +253,9 @@ export default {
           }
         },
         execute: {
+          conditions: ({ row, index, column }) => {
+            return row.doStatus == '2'
+          },
           prompt: '确定执行吗?',
           click: ({ row, index, column }) => {
             dailySummaryReduceCountDo({ importBatchNos: row.importBatchNo }).then(res => {
@@ -297,6 +300,10 @@ export default {
     operation2() {
       return this.operationBtn({
         execute2: {
+          conditions: ({ row, index, column }) => {
+            return row.doStatus == '2'
+          },
+          prompt: '确定执行吗?',
           click: ({ row, index, column }) => {
             dailySummaryReduceBatchDo({ ids: row.id }).then(res => {
               this.$message({ type: 'success', message: '设置成功!' })

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

@@ -277,6 +277,9 @@ export default {
           }
         },
         summary: {
+          conditions: ({ row, index, column }) => {
+            return row.summaryStatus == '2'
+          },
           prompt: '确定汇总吗?',
           click: ({ row, index, column }) => {
             dailySummaryRepairSummary({ importBatchNos: row.importBatchNo }).then(res => {