Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
mes-ui
Project
Project
Details
Activity
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
mes
mes-ui
Commits
08dbd69e
Commit
08dbd69e
authored
Jun 07, 2024
by
zhuli
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
# ipqc模板配置更新
parent
8a66b8a5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
105 additions
and
87 deletions
+105
-87
index.vue
src/views/mes/qc/qctemplate/index.vue
+8
-8
templateindex.vue
src/views/mes/qc/qctemplate/templateindex.vue
+97
-79
No files found.
src/views/mes/qc/qctemplate/index.vue
View file @
08dbd69e
...
...
@@ -195,9 +195,9 @@
</el-col>
</el-row>
</el-form>
<el-tabs
type=
"border-card"
v-if=
"form.
templateI
d != null"
>
<el-tabs
type=
"border-card"
v-if=
"form.
i
d != null"
>
<el-tab-pane
label=
"检测项"
>
<TemplateIndex
ref=
"indexTab"
:templateId=
"form.
templateI
d"
:optType=
"optType"
></TemplateIndex>
<TemplateIndex
ref=
"indexTab"
:templateId=
"form.
i
d"
:optType=
"optType"
></TemplateIndex>
</el-tab-pane>
<!-- <el-tab-pane label="物料产品">
<TemplateProduct ref="productTab" :templateId="form.templateId" :optType="optType"></TemplateProduct>
...
...
@@ -294,7 +294,7 @@ export default {
// 表单重置
reset
()
{
this
.
form
=
{
templateI
d
:
null
,
i
d
:
null
,
templateCode
:
null
,
templateName
:
null
,
qcTypesParam
:
[],
...
...
@@ -320,7 +320,7 @@ export default {
},
// 多选框选中数据
handleSelectionChange
(
selection
)
{
this
.
ids
=
selection
.
map
(
item
=>
item
.
templateI
d
)
this
.
ids
=
selection
.
map
(
item
=>
item
.
i
d
)
this
.
single
=
selection
.
length
!==
1
this
.
multiple
=
!
selection
.
length
},
...
...
@@ -334,7 +334,7 @@ export default {
// 查询明细按钮操作
handleView
(
row
){
this
.
reset
();
const
templateId
=
row
.
templateI
d
||
this
.
ids
;
const
templateId
=
row
.
i
d
||
this
.
ids
;
getQctemplate
(
templateId
).
then
(
response
=>
{
this
.
form
=
response
.
data
;
this
.
open
=
true
;
...
...
@@ -345,7 +345,7 @@ export default {
/** 修改按钮操作 */
handleUpdate
(
row
)
{
this
.
reset
();
const
templateId
=
row
.
templateI
d
||
this
.
ids
const
templateId
=
row
.
i
d
||
this
.
ids
getQctemplate
(
templateId
).
then
(
response
=>
{
debugger
;
this
.
form
=
response
.
data
;
...
...
@@ -358,7 +358,7 @@ export default {
submitForm
()
{
this
.
$refs
[
"form"
].
validate
(
valid
=>
{
if
(
valid
)
{
if
(
this
.
form
.
templateI
d
!=
null
)
{
if
(
this
.
form
.
i
d
!=
null
)
{
updateQctemplate
(
this
.
form
).
then
(
response
=>
{
this
.
$modal
.
msgSuccess
(
"修改成功"
);
this
.
open
=
false
;
...
...
@@ -376,7 +376,7 @@ export default {
},
/** 删除按钮操作 */
handleDelete
(
row
)
{
const
templateIds
=
row
.
templateI
d
||
this
.
ids
;
const
templateIds
=
row
.
i
d
||
this
.
ids
;
this
.
$modal
.
confirm
(
'是否确认删除检测模板编号为"'
+
templateIds
+
'"的数据项?'
).
then
(
function
()
{
return
delQctemplate
(
templateIds
);
}).
then
(()
=>
{
...
...
src/views/mes/qc/qctemplate/templateindex.vue
View file @
08dbd69e
This diff is collapsed.
Click to expand it.
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