Commit b5b2b1d2 authored by 祁正's avatar 祁正

feat(通知单承接):创建封面前端搭建

parent e91ef6d9
......@@ -30,3 +30,11 @@ export function createCcapPlan(data) {
data:data
})
}
// 创建CQA控制计划(通知单创建控制计划)
export function createCqaPlan(data) {
return request({
url: '/control/cqcPlan/add',
method: 'post',
data:data
})
}
......@@ -379,7 +379,7 @@
</template>
<script setup>
import {getDetailList, getTopDetailInfo} from "@/api/notificationContent/list.js";
import {getLastVersionNumber,createCcapPlan} from "@/api/noticeAcceptance/list.js";
import {getLastVersionNumber,createCcapPlan,createCqaPlan} from "@/api/noticeAcceptance/list.js";
import {useRoute, useRouter} from "vue-router";
import {ref} from "vue";
......@@ -516,9 +516,19 @@ function confirmClick(){
ruleFormRef.value.validate((valid) => {
if (valid) {
//cqa发cqa控制计划,其他的都发ccap
if(topDetailInfo.value.certificationBody === 'CQA'){
if(topDetailInfo.value.certificationBody === 'CQC'){
// todo 等cqa接口
console.log(ruleForm.value)
// return
createCqaPlan(ruleForm.value).then(res=>{
if(res.code === 200){
ElMessage({
type: 'success',
message: '创建成功'
});
router.go(-1)
}
})
}else{
createCcapPlan(ruleForm.value).then(res=>{
console.log(res)
......
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