Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qr-consistency-vue3
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
刘怀志
qr-consistency-vue3
Commits
b5b2b1d2
Commit
b5b2b1d2
authored
May 14, 2025
by
祁正
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(通知单承接):创建封面前端搭建
parent
e91ef6d9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
3 deletions
+21
-3
list.js
src/api/noticeAcceptance/list.js
+8
-0
controlPlan.vue
...olPlan/controlPlanNotice/noticeAcceptance/controlPlan.vue
+13
-3
No files found.
src/api/noticeAcceptance/list.js
View file @
b5b2b1d2
...
...
@@ -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
})
}
src/views/controlPlan/controlPlanNotice/noticeAcceptance/controlPlan.vue
View file @
b5b2b1d2
...
...
@@ -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
===
'CQ
A
'
){
if
(
topDetailInfo
.
value
.
certificationBody
===
'CQ
C
'
){
// 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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment