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
b27a172c
Commit
b27a172c
authored
Apr 14, 2025
by
ZhangRunSong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(控制计划):填写模板2
parent
e24c2342
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
65 additions
and
12 deletions
+65
-12
controlPlan.js
src/api/system/controlPlan.js
+13
-0
index.vue
src/views/controlPlan/fillTemplate/index.vue
+15
-12
view.vue
src/views/controlPlan/fillTemplate/view.vue
+37
-0
No files found.
src/api/system/controlPlan.js
View file @
b27a172c
import
request
from
'@/utils/request'
import
request
from
'@/utils/request'
/**
* 查询模板列表
*/
export
function
listTemplate
(
query
)
{
export
function
listTemplate
(
query
)
{
return
request
({
return
request
({
url
:
'/control/template/list'
,
url
:
'/control/template/list'
,
...
@@ -7,3 +10,13 @@ export function listTemplate(query) {
...
@@ -7,3 +10,13 @@ export function listTemplate(query) {
params
:
query
,
params
:
query
,
})
})
}
}
/**
* 查询表单
*/
export
function
listTemplateForm
(
id
)
{
return
request
({
url
:
'/control/template/template-form'
,
method
:
'get'
,
params
:
id
,
})
}
\ No newline at end of file
src/views/controlPlan/fillTemplate/index.vue
View file @
b27a172c
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
:model=
"queryParams"
:model=
"queryParams"
:inline=
"true"
:inline=
"true"
>
>
<el-form-item
label=
"模板类型"
prop=
"
status
"
>
<el-form-item
label=
"模板类型"
prop=
"
templateType
"
>
<el-select
<el-select
v-model=
"queryParams.templateType"
v-model=
"queryParams.templateType"
placeholder=
"请选择"
placeholder=
"请选择"
...
@@ -20,9 +20,9 @@
...
@@ -20,9 +20,9 @@
/>
/>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
label=
"模板编号"
prop=
"template
c
ode"
>
<el-form-item
label=
"模板编号"
prop=
"template
C
ode"
>
<el-input
<el-input
v-model=
"queryParams.template
c
ode"
v-model=
"queryParams.template
C
ode"
placeholder=
"请输入模板编号"
placeholder=
"请输入模板编号"
clearable
clearable
style=
"width: 200px"
style=
"width: 200px"
...
@@ -50,14 +50,15 @@
...
@@ -50,14 +50,15 @@
<el-table
<el-table
v-loading=
"loading"
v-loading=
"loading"
:data=
"templateList"
:data=
"templateList"
border
>
>
<el-table-column
type=
"index"
width=
"55"
align=
"center"
/>
<el-table-column
label=
"序号"
type=
"index"
width=
"55"
align=
"center"
/>
<el-table-column
label=
"模板类型"
align=
"center"
prop=
"templateType"
>
<el-table-column
label=
"模板类型"
align=
"center"
width=
"125"
prop=
"templateType"
>
<template
#
default=
"scope"
>
<template
#
default=
"scope"
>
<dict-tag
:options=
"control_plan"
:value=
"scope.row.templateType"
/>
<dict-tag
:options=
"control_plan"
:value=
"scope.row.templateType"
/>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"模板编号"
align=
"center"
prop=
"templateCode"
>
<el-table-column
label=
"模板编号"
align=
"center"
width=
"100"
prop=
"templateCode"
>
<
template
#
default=
"scope"
>
<
template
#
default=
"scope"
>
<span
style=
"color: #1ab394"
>
{{
scope
.
row
.
templateCode
}}
</span>
<span
style=
"color: #1ab394"
>
{{
scope
.
row
.
templateCode
}}
</span>
</
template
>
</
template
>
...
@@ -67,12 +68,12 @@
...
@@ -67,12 +68,12 @@
<span
style=
"color: #1ab394"
>
{{
scope
.
row
.
templateName
}}
</span>
<span
style=
"color: #1ab394"
>
{{
scope
.
row
.
templateName
}}
</span>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"表单数量"
align=
"center"
prop=
"formCount"
>
<el-table-column
label=
"表单数量"
align=
"center"
width=
"100"
prop=
"formCount"
>
<
template
#
default=
"scope"
>
<
template
#
default=
"scope"
>
<span
style=
"color: #1ab394"
>
{{
scope
.
row
.
formCount
}}
</span>
<span
style=
"color: #1ab394"
>
{{
scope
.
row
.
formCount
}}
</span>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"创建时间"
align=
"center"
prop=
"createTime"
>
<el-table-column
label=
"创建时间"
align=
"center"
width=
"180"
prop=
"createTime"
>
<
template
#
default=
"scope"
>
<
template
#
default=
"scope"
>
<span>
{{
parseTime
(
scope
.
row
.
createTime
)
}}
</span>
<span>
{{
parseTime
(
scope
.
row
.
createTime
)
}}
</span>
</
template
>
</
template
>
...
@@ -87,10 +88,10 @@
...
@@ -87,10 +88,10 @@
<span>
{{
parseTime
(
scope
.
row
.
updateTime
)
}}
</span>
<span>
{{
parseTime
(
scope
.
row
.
updateTime
)
}}
</span>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"修改人"
align=
"center"
prop=
"updateUser
"
/>
<el-table-column
label=
"修改人"
align=
"center"
width=
"85"
prop=
"updateBy
"
/>
<el-table-column
<el-table-column
label=
"操作"
label=
"操作"
width=
"
18
0"
width=
"
30
0"
align=
"center"
align=
"center"
class-name=
"small-padding fixed-width"
class-name=
"small-padding fixed-width"
>
>
...
@@ -109,7 +110,7 @@
...
@@ -109,7 +110,7 @@
type=
"primary"
type=
"primary"
icon=
"Edit"
icon=
"Edit"
@
click=
"handleUpdate(scope.row)"
@
click=
"handleUpdate(scope.row)"
>
编辑
</el-button
>
编辑
内容
</el-button
>
>
<el-button
<el-button
v-hasPermi=
"['system:post:edit']"
v-hasPermi=
"['system:post:edit']"
...
@@ -210,7 +211,9 @@ function resetQuery() {
...
@@ -210,7 +211,9 @@ function resetQuery() {
function
handleUpdate
(
row
)
{
function
handleUpdate
(
row
)
{
}
}
function
viewDetails
(
row
)
{}
function
viewDetails
(
row
)
{
proxy
.
$router
.
push
({
path
:
'/control/fillView'
,
query
:
{
id
:
row
.
id
}
});
}
function
restoreDefault
(
row
)
{}
function
restoreDefault
(
row
)
{}
getList
()
getList
()
...
...
src/views/controlPlan/fillTemplate/view.vue
0 → 100644
View file @
b27a172c
<
template
>
<div
class=
"app-container"
>
<div
class=
"component-selector"
>
<el-tabs
v-model=
"activeTab"
class=
"demo-tabs"
>
<el-tab-pane
label=
"关键字部件清单"
name=
"parts"
>
<PartsComponent
/>
</el-tab-pane>
<el-tab-pane
label=
"关键字、装配、检验过程清单"
name=
"process"
>
<ProcessComponent
/>
</el-tab-pane>
<el-tab-pane
label=
"COP试验和检查表"
name=
"cop"
>
<COPComponent
/>
</el-tab-pane>
</el-tabs>
</div>
</div>
</
template
>
<
script
setup
>
import
{
listTemplateForm
}
from
'@/api/system/controlPlan.js'
const
{
proxy
}
=
getCurrentInstance
();
function
getFrom
(){
const
id
=
proxy
.
$route
.
query
.
id
;
console
.
log
(
"id:"
,
id
);
listTemplateForm
(
id
).
then
(
response
=>
{
console
.
log
(
"response:"
,
response
)
}
)
}
onMounted
(()
=>
{
//获取物品类型
getFrom
();
});
</
script
>
<
style
scoped
lang=
"scss"
>
</
style
>
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