Commit f471bf7e authored by 祁正's avatar 祁正

feat(通知单内容维护):批准加日期

parent a6e995e5
......@@ -97,3 +97,10 @@ export function sendBack(data) {
params: data
})
}
// 批准-维护变更记录
export function authorize(id) {
return request({
url: '/control/notificationManagement/authorize/'+id,
method: 'get'
})
}
......@@ -304,6 +304,7 @@ import {
updateStatus,
sendBack,
cencalWeihu,
authorize
} from "@/api/notificationContent/list.js"
import {useRoute, useRouter} from 'vue-router';
import {ElMessage} from "element-plus";
......@@ -464,14 +465,11 @@ function finishWeiHu(){
//批准
function approve(){
//通知单状态1收集2待批准3已批准4已退回5已作废
let obj ={
id:id,
status:'3'
}
updateStatus(obj).then(res=>{
authorize(id).then(res=>{
if(res.code === 200){
ElMessage.success('批准成功')
goBack()
goBack()
}
})
}
......
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