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
a78b528f
Commit
a78b528f
authored
May 12, 2025
by
祁正
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(通知单承接):创建控制计划新增接口对接
parent
1967200a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
69 additions
and
16 deletions
+69
-16
list.js
src/api/noticeAcceptance/list.js
+8
-0
controlPlan.vue
...olPlan/controlPlanNotice/noticeAcceptance/controlPlan.vue
+61
-16
No files found.
src/api/noticeAcceptance/list.js
View file @
a78b528f
...
...
@@ -22,3 +22,11 @@ export function getLastVersionNumber(id) {
method
:
'get'
})
}
// 创建CCAP控制计划(通知单创建控制计划)
export
function
createCcapPlan
(
data
)
{
return
request
({
url
:
'/control/ccapPlan'
,
method
:
'post'
,
data
:
data
})
}
src/views/controlPlan/controlPlanNotice/noticeAcceptance/controlPlan.vue
View file @
a78b528f
...
...
@@ -218,9 +218,9 @@
message: '请选择编制截至日期',
trigger: 'change'
}
]" label="编制截至日期:" prop="
d
eadline">
]" label="编制截至日期:" prop="
compilationD
eadline">
<el-date-picker
v-model=
"ruleForm.
d
eadline"
v-model=
"ruleForm.
compilationD
eadline"
type=
"date"
placeholder=
"请选择日期"
format=
"YYYY-MM-DD"
...
...
@@ -247,7 +247,7 @@
<el-select
disabled
placement=
"bottom"
v-model=
"ruleForm.
approvalPerson
"
v-model=
"ruleForm.
compilationChargePersonPart
"
placeholder=
"请选择批准人"
clearable
>
...
...
@@ -261,7 +261,7 @@
</el-col>
<el-col
:offset=
"1"
:span=
"5"
>
<el-button
type=
"primary"
icon=
"User"
@
click=
"
singleOpenDialog
"
class=
"btn-C"
plain
>
选择用户
</el-button>
<el-button
type=
"primary"
icon=
"User"
@
click=
"
choosePerson('关键零部件清单')
"
class=
"btn-C"
plain
>
选择用户
</el-button>
</el-col>
</el-row>
...
...
@@ -278,7 +278,7 @@
<el-select
disabled
placement=
"bottom"
v-model=
"ruleForm.
approvalPerson
"
v-model=
"ruleForm.
compilationChargePersonProcess
"
placeholder=
"请选择批准人"
clearable
>
...
...
@@ -292,7 +292,7 @@
</el-col>
<el-col
:offset=
"1"
:span=
"5"
>
<el-button
type=
"primary"
icon=
"User"
@
click=
"
singleOpenDialog
"
class=
"btn-C"
plain
>
选择用户
</el-button>
<el-button
type=
"primary"
icon=
"User"
@
click=
"
choosePerson('关键工序')
"
class=
"btn-C"
plain
>
选择用户
</el-button>
</el-col>
</el-row>
...
...
@@ -309,7 +309,7 @@
<el-select
disabled
placement=
"bottom"
v-model=
"ruleForm.
approvalPerson
"
v-model=
"ruleForm.
compilationChargePersonCopMake
"
placeholder=
"请选择批准人"
clearable
>
...
...
@@ -323,7 +323,7 @@
</el-col>
<el-col
:offset=
"1"
:span=
"5"
>
<el-button
type=
"primary"
icon=
"User"
@
click=
"
singleOpenDialog
"
class=
"btn-C"
plain
>
选择用户
</el-button>
<el-button
type=
"primary"
icon=
"User"
@
click=
"
choosePerson('制造')
"
class=
"btn-C"
plain
>
选择用户
</el-button>
</el-col>
</el-row>
<el-row
>
...
...
@@ -332,7 +332,7 @@
<el-select
disabled
placement=
"bottom"
v-model=
"ruleForm.
approvalPerson
"
v-model=
"ruleForm.
compilationChargePersonCopQuality
"
placeholder=
"请选择批准人"
clearable
>
...
...
@@ -346,7 +346,7 @@
</el-col>
<el-col
:offset=
"1"
:span=
"5"
>
<el-button
type=
"primary"
icon=
"User"
@
click=
"
singleOpenDialog
"
class=
"btn-C"
plain
>
选择用户
</el-button>
<el-button
type=
"primary"
icon=
"User"
@
click=
"
choosePerson('质管')
"
class=
"btn-C"
plain
>
选择用户
</el-button>
</el-col>
</el-row>
</el-form>
...
...
@@ -379,17 +379,17 @@
</template>
<
script
setup
>
import
{
getDetailList
,
getTopDetailInfo
}
from
"@/api/notificationContent/list.js"
;
import
{
getLastVersionNumber
}
from
"@/api/noticeAcceptance/list.js"
;
import
{
getLastVersionNumber
,
createCcapPlan
}
from
"@/api/noticeAcceptance/list.js"
;
import
{
useRoute
,
useRouter
}
from
"vue-router"
;
import
cn
from
"@/locales/baseData/marketRegulations/cn.json"
;
import
en
from
"@/locales/baseData/marketRegulations/en.json"
;
import
{
ref
}
from
"vue"
;
import
{
getALLUserList
}
from
"@/api/notificationManagement/list.js"
;
import
SelectRole
from
"@/components/SelectRole/index.vue"
;
const
{
proxy
}
=
getCurrentInstance
();
const
controlPlantableList
=
ref
([])
const
ruleFormRef
=
ref
()
const
ruleForm
=
ref
({})
let
tempStr
=
''
const
topDetailInfo
=
ref
({})
const
drawerTitle
=
ref
(
''
)
const
allUserList
=
ref
([])
...
...
@@ -411,6 +411,9 @@ const queryParams =ref({
pageSize
:
10
,
notificationId
:
id
})
const
ruleForm
=
ref
({
notificationId
:
id
})
// 从全局字典中获取事业部 icar 才能选择的车型系列数据
const
{
vehicle_model_series_icar
}
=
proxy
.
useDict
(
'vehicle_model_series_icar'
)
// 从全局字典中获取除事业部 icar 外可选择的车型系列数据
...
...
@@ -439,7 +442,42 @@ function addControlPlan(row){
}
function
handleSelectionSubmit
(
selectedItems
){
console
.
log
(
selectedItems
)
console
.
log
(
tempStr
)
//根据tempStr的值来分别赋值
//compilationChargePersonPart 关键零部件清单
//compilationChargePersonProcess 关键工序
//compilationChargePersonCopMake 制造
//compilationChargePersonCopQuality 质管
if
(
tempStr
===
'关键零部件清单'
){
ruleForm
.
value
.
compilationChargePersonPart
=
toRaw
(
selectedItems
[
0
].
userId
)
}
if
(
tempStr
===
'关键工序'
){
ruleForm
.
value
.
compilationChargePersonProcess
=
toRaw
(
selectedItems
[
0
].
userId
)
}
if
(
tempStr
===
'制造'
){
ruleForm
.
value
.
compilationChargePersonCopMake
=
toRaw
(
selectedItems
[
0
].
userId
)
}
if
(
tempStr
===
'质管'
){
ruleForm
.
value
.
compilationChargePersonCopQuality
=
toRaw
(
selectedItems
[
0
].
userId
)
}
}
function
drawerColse
(){
tempStr
=
''
ruleForm
.
value
=
{
notificationId
:
id
,
compilationChargePersonPart
:
''
,
compilationChargePersonProcess
:
''
,
compilationChargePersonCopMake
:
''
,
compilationChargePersonCopQuality
:
''
,
}
}
function
choosePerson
(
vModel
){
tempStr
=
vModel
selectRole
.
value
=
true
;
// 打开对话框
selectType
.
value
=
'single'
}
function
getNewAddNumber
(){
...
...
@@ -476,7 +514,14 @@ function getALLUserDeptList(){
function
confirmClick
(){
ruleFormRef
.
value
.
validate
((
valid
)
=>
{
if
(
valid
)
{
console
.
log
(
'submit!'
);
//CCAP发ccap控制计划,其他的都发cqa发 ?
if
(
topDetailInfo
.
value
.
certificationBody
===
'CCAP'
){
createCcapPlan
(
ruleForm
.
value
).
then
(
res
=>
{
console
.
log
(
res
)
})
}
else
{
// todo 等cqa接口
}
}
else
{
console
.
log
(
'error submit!!'
);
return
false
;
...
...
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