Commit be3567df authored by 祁正's avatar 祁正

feat(通知单内容维护):完成维护

parent 76becfe1
...@@ -59,3 +59,10 @@ export function editChangeRecord(data) { ...@@ -59,3 +59,10 @@ export function editChangeRecord(data) {
}) })
} }
// 完成维护-维护变更记录
export function completeTheMaintenance(id) {
return request({
url: '/control/sysNotificationContent/completeTheMaintenance/'+id,
method: 'get'
})
}
...@@ -238,7 +238,7 @@ ...@@ -238,7 +238,7 @@
<el-table-column label="操作" align="center" width="160"> <el-table-column label="操作" align="center" width="160">
<template #default="scope"> <template #default="scope">
<el-button type="text" style="color: rgb(0,0,255)" @click="handleMaintain(scope.row)">查看</el-button> <el-button type="text" style="color: rgb(0,0,255)" @click="handleMaintain(scope.row)">查看</el-button>
<el-button type="text" style="color: rgb(0,0,255)" @click="changeRecords(scope.row)">维护变更记录</el-button> <el-button type="text" v-if="scope.row.certificationStatus !== '1'" style="color: rgb(0,0,255)" @click="changeRecords(scope.row)">维护变更记录</el-button>
<el-button type="text" style="color: rgb(255,153,0)" @click="copeAdd(scope.row)">取消完成</el-button> <el-button type="text" style="color: rgb(255,153,0)" @click="copeAdd(scope.row)">取消完成</el-button>
</template> </template>
</el-table-column> </el-table-column>
......
...@@ -58,7 +58,7 @@ ...@@ -58,7 +58,7 @@
<el-form-item class="button-container right-align" style="position: relative;"> <el-form-item class="button-container right-align" style="position: relative;">
<div > <div >
<el-button type="primary" class="btn-C" @click="addWeiHu">添加</el-button> <el-button type="primary" class="btn-C" @click="addWeiHu">添加</el-button>
<el-button @click="resetQuery" class="btn-A">完成维护</el-button> <el-button @click="finishWeiHu" class="btn-A">完成维护</el-button>
</div> </div>
</el-form-item> </el-form-item>
</el-form> </el-form>
...@@ -264,12 +264,14 @@ import { ...@@ -264,12 +264,14 @@ import {
getCurrentLoginUser, getCurrentLoginUser,
addChangeRecord, addChangeRecord,
getInList, getInList,
editChangeRecord editChangeRecord,
completeTheMaintenance
} from "@/api/notificationContent/list.js" } from "@/api/notificationContent/list.js"
import { useRoute } from 'vue-router'; import { useRoute } from 'vue-router';
import {ElMessage} from "element-plus"; import {ElMessage} from "element-plus";
// 获取当前路由实例 // 获取当前路由实例
const route = useRoute(); const route = useRoute();
const router = useRouter(); // 获取 router 实例
const total = ref(0) const total = ref(0)
const drawerTitle = ref('') const drawerTitle = ref('')
const drawer = ref(false) const drawer = ref(false)
...@@ -299,7 +301,8 @@ const { vehicle_model_series } = proxy.useDict('vehicle_model_series') ...@@ -299,7 +301,8 @@ const { vehicle_model_series } = proxy.useDict('vehicle_model_series')
const queryParams = ref({ const queryParams = ref({
pageNum: 1, pageNum: 1,
pageSize: 10 pageSize: 10,
notificationId:id
}) })
// 定义表单验证规则 // 定义表单验证规则
const rules = ref({ const rules = ref({
...@@ -356,14 +359,28 @@ function handleEdit(row){ ...@@ -356,14 +359,28 @@ function handleEdit(row){
//查询 //查询
function handleQuery(){ function handleQuery(){
queryParams.value.pageNum = 1 queryParams.value.pageNum = 1
queryParams.value.notificationId = id
getList() getList()
} }
//完成维护
function finishWeiHu(){
completeTheMaintenance(id).then(res=>{
console.log(res)
if(res.code === 200){
ElMessage.success('完成维护成功')
// getTopInfo()
goBack()
}
})
}
//重置 //重置
function resetQuery(){ function resetQuery(){
queryParams.value = { queryParams.value = {
pageNum: 1, pageNum: 1,
pageSize: 10, pageSize: 10,
notificationId:id,
vehicleAnnouncementNumber: '', vehicleAnnouncementNumber: '',
changeType: '', changeType: '',
projectResponsiblePerson: '', projectResponsiblePerson: '',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment