|
@@ -333,6 +333,9 @@ export default {
|
|
|
operation2() {
|
|
|
return this.operationBtn({
|
|
|
noSettlement: {
|
|
|
+ conditions: ({ row, index, column }) => {
|
|
|
+ return row.summaryStatus != '1'
|
|
|
+ },
|
|
|
prompt: '确定暂不结算吗?',
|
|
|
click: ({ row, index, column }) => {
|
|
|
dailySummaryRepairItemWait({ ids: row.id }).then(res => {
|
|
@@ -342,6 +345,9 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
del2: {
|
|
|
+ conditions: ({ row, index, column }) => {
|
|
|
+ return row.summaryStatus != '1'
|
|
|
+ },
|
|
|
prompt: '确定删除吗?',
|
|
|
click: ({ row, index, column }) => {
|
|
|
dailySummaryRepairItemDelete({ ids: row.id }).then(res => {
|
|
@@ -351,6 +357,9 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
resumeSettlement: {
|
|
|
+ conditions: ({ row, index, column }) => {
|
|
|
+ return row.summaryStatus != '1'
|
|
|
+ },
|
|
|
prompt: '确定恢复结算吗?',
|
|
|
click: ({ row, index, column }) => {
|
|
|
dailySummaryRepairItemResummary({ ids: row.id }).then(res => {
|