Commit 71ec9ba3 authored by 祁正's avatar 祁正

feat(通知单内容维护):作废

parent ecba96cb
......@@ -259,9 +259,9 @@
<el-table-column label="操作" align="center" width="140">
<template #default="scope">
<el-button type="text" style="color: rgb(0,0,255)" @click="handleDetail(scope.row)">查看详情</el-button>
<el-button type="text" v-if="scope.row.notificationStatus === '1' || scope.row.notificationStatus === '4'" style="color: rgb(255,54,54)" @click="delNotification(scope.row)">删除</el-button>
<el-button type="text" v-if="scope.row.notificationStatus === '1' || scope.row.notificationStatus === '4' || scope.row.notificationStatus === '5'" style="color: rgb(255,54,54)" @click="delNotification(scope.row)">删除</el-button>
<el-button type="text" v-if="scope.row.notificationStatus === '2'" style="color: rgb(255,153,0)" @click="revocation(scope.row)">撤回</el-button>
<el-button type="text" v-if="scope.row.notificationStatus === '3'" style="color: rgb(255,153,0)" @click="copeAdd(scope.row)">作废</el-button>
<el-button type="text" v-if="scope.row.notificationStatus === '3'" style="color: rgb(255,153,0)" @click="cancellation(scope.row)">作废</el-button>
</template>
</el-table-column>
</el-table>
......@@ -662,6 +662,21 @@ function addNotifiction(){
drawer.value = true
getALLModelCodeList()
}
//作废
function cancellation(row){
//通知单状态1收集2待批准3已批准4已退回5已作废
let obj = {
id:row.id,
status:'5'
}
updateStatus(obj).then(res=>{
console.log(res)
if(res.code === 200){
ElMessage.success('作废成功')
getList()
}
})
}
const rules = ref({
certificationBody: [
......
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