Commit 381d2703 authored by 祁正's avatar 祁正

feat(通知单承接):创建封面接口

parent 223be015
...@@ -385,6 +385,7 @@ import {useRoute, useRouter} from "vue-router"; ...@@ -385,6 +385,7 @@ import {useRoute, useRouter} from "vue-router";
import {ref} from "vue"; import {ref} from "vue";
import {getALLUserList} from "@/api/notificationManagement/list.js"; import {getALLUserList} from "@/api/notificationManagement/list.js";
import SelectRole from "@/components/SelectRole/index.vue"; import SelectRole from "@/components/SelectRole/index.vue";
import {ElMessage} from "element-plus";
const { proxy } = getCurrentInstance(); const { proxy } = getCurrentInstance();
const controlPlantableList =ref([]) const controlPlantableList =ref([])
const ruleFormRef =ref() const ruleFormRef =ref()
...@@ -521,6 +522,13 @@ function confirmClick(){ ...@@ -521,6 +522,13 @@ function confirmClick(){
}else{ }else{
createCcapPlan(ruleForm.value).then(res=>{ createCcapPlan(ruleForm.value).then(res=>{
console.log(res) console.log(res)
if(res.code === 200){
ElMessage({
type: 'success',
message: '创建成功'
});
router.go(-1)
}
}) })
} }
} else { } else {
......
...@@ -287,7 +287,7 @@ ...@@ -287,7 +287,7 @@
</template> </template>
<template #footer> <template #footer>
<div style="flex: auto"> <div style="flex: auto">
<el-button class="btn-B" @click="drawer = false">取消</el-button> <el-button class="btn-B" @click="drawerColse">取消</el-button>
<el-button class="btn-A" @click="confirmClick">确定发起</el-button> <el-button class="btn-A" @click="confirmClick">确定发起</el-button>
</div> </div>
</template> </template>
...@@ -370,6 +370,7 @@ const getLabelByKey = (key) => { ...@@ -370,6 +370,7 @@ const getLabelByKey = (key) => {
}; };
function addControlPlan(row){ function addControlPlan(row){
drawerTitle.value = '新增封面('+row.certificationBody+'-'+getLabelByKey(topDetailInfo.value.vehicleSeries)+")" drawerTitle.value = '新增封面('+row.certificationBody+'-'+getLabelByKey(topDetailInfo.value.vehicleSeries)+")"
drawer.value = true drawer.value = true
} }
...@@ -378,7 +379,7 @@ function handleSelectionSubmit(selectedItems){ ...@@ -378,7 +379,7 @@ function handleSelectionSubmit(selectedItems){
console.log(tempStr) console.log(tempStr)
//根据tempStr的值来分别赋值 //根据tempStr的值来分别赋值
//compilationChargePersonPart 关键零部件清单 //compilationChargePersonPart 关键零部件清单
//compilationChargePersonProcess 关键工序 // 关键工序
//compilationChargePersonCopMake 制造 //compilationChargePersonCopMake 制造
//compilationChargePersonCopQuality 质管 //compilationChargePersonCopQuality 质管
if(tempStr === '关键零部件清单'){ if(tempStr === '关键零部件清单'){
...@@ -405,6 +406,8 @@ function drawerColse(){ ...@@ -405,6 +406,8 @@ function drawerColse(){
compilationChargePersonCopMake:'', compilationChargePersonCopMake:'',
compilationChargePersonCopQuality:'', compilationChargePersonCopQuality:'',
} }
ruleFormRef.value.clearValidate()
drawer.value = false
} }
function choosePerson(vModel){ function choosePerson(vModel){
...@@ -447,14 +450,12 @@ function getALLUserDeptList(){ ...@@ -447,14 +450,12 @@ function getALLUserDeptList(){
function confirmClick(){ function confirmClick(){
ruleFormRef.value.validate((valid) => { ruleFormRef.value.validate((valid) => {
if (valid) { if (valid) {
//cqa发cqa控制计划,其他的都发ccap
if(topDetailInfo.value.certificationBody === 'CQA'){ if(topDetailInfo.value.certificationBody === 'CQA'){
// todo 等cqa接口 // todo 等cqa接口
}else{ }else{
createCcapPlan(ruleForm.value).then(res=>{
console.log(res)
})
} }
} else { } else {
console.log('error submit!!'); console.log('error submit!!');
......
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