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
381d2703
Commit
381d2703
authored
May 13, 2025
by
祁正
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(通知单承接):创建封面接口
parent
223be015
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
6 deletions
+15
-6
controlPlan.vue
...olPlan/controlPlanNotice/noticeAcceptance/controlPlan.vue
+8
-0
cover.vue
.../controlPlan/controlPlanNotice/noticeAcceptance/cover.vue
+7
-6
No files found.
src/views/controlPlan/controlPlanNotice/noticeAcceptance/controlPlan.vue
View file @
381d2703
...
@@ -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
{
...
...
src/views/controlPlan/controlPlanNotice/noticeAcceptance/cover.vue
View file @
381d2703
...
@@ -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
= fa
lse"
>
取消
</el-button>
<el-button
class=
"btn-B"
@
click=
"drawer
Co
lse"
>
取消
</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!!'
);
...
...
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