fix: 部分优化

main
wx-jincw 2 months ago
parent f7a9faa993
commit 387be30f02

@ -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('已取消撤销')
})
},
}

@ -49,7 +49,7 @@
</view>
<view class="row">
<text class="label">业主确认</text>
<text class="value">{{ item.ownerConfirm === '1' ? '是' : '否' }}</text>
<text class="value">{{ item.ownerConfirm || '否' }}</text>
</view>
</view>
</view>

Loading…
Cancel
Save