|
|
|
|
@ -148,8 +148,8 @@
|
|
|
|
|
label="操作">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-button type="text" size="small" @click="addOrUpdateHandle(scope.row.id)">{{ '修改' }}</el-button>
|
|
|
|
|
<el-button v-if="scope.row.status !== '99'" type="text" size="small" @click="completeOrder(scope.row.id)">{{ '办结' }}</el-button>
|
|
|
|
|
<el-button v-if="scope.row.status === '99'" type="text" size="small" @click="revokeOrder(scope.row.id)">{{ '撤销' }}</el-button>
|
|
|
|
|
<el-button v-hasPermi="['autogencode:pmmaintenanceorder:update']" v-if="scope.row.status !== '99'" type="text" size="small" @click="completeOrder(scope.row.id)">{{ '办结' }}</el-button>
|
|
|
|
|
<el-button v-hasPermi="['autogencode:pmmaintenanceorder:update']" v-if="scope.row.status === '99'" type="text" size="small" @click="revokeOrder(scope.row.id)">{{ '重新处理' }}</el-button>
|
|
|
|
|
<el-button v-hasPermi="['autogencode:pmmaintenanceorder:delete']" type="text" size="small" @click="deleteHandle(scope.row.id)" style="color: #f56c6c;">删除</el-button>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
@ -378,7 +378,7 @@ import DictTag from '@/components/DictTag'
|
|
|
|
|
},
|
|
|
|
|
// 撤销办结订单
|
|
|
|
|
revokeOrder (id) {
|
|
|
|
|
this.$confirm('确定要撤销该订单吗?', '提示', {
|
|
|
|
|
this.$confirm('确定要重新处理报修单吗?', '提示', {
|
|
|
|
|
confirmButtonText: '确定',
|
|
|
|
|
cancelButtonText: '取消',
|
|
|
|
|
type: 'warning'
|
|
|
|
|
@ -389,13 +389,12 @@ import DictTag from '@/components/DictTag'
|
|
|
|
|
status: '0', // 0是待处理状态
|
|
|
|
|
remark: ''
|
|
|
|
|
}).then(res => {
|
|
|
|
|
this.$message.success('撤销成功')
|
|
|
|
|
this.$message.success('操作成功')
|
|
|
|
|
this.getDataList()
|
|
|
|
|
}).catch(() => {
|
|
|
|
|
this.$message.error('撤销失败')
|
|
|
|
|
this.$message.error('操作失败')
|
|
|
|
|
})
|
|
|
|
|
}).catch(() => {
|
|
|
|
|
this.$message.info('已取消撤销')
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
|