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

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

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