Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
mes-pad
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
ximai
mes-pad
Commits
26481cfc
Commit
26481cfc
authored
Mar 29, 2024
by
张海景
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update:修改质量按钮显示逻辑
parent
e623a628
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
12 deletions
+27
-12
index.vue
pages/mes/qc/index.vue
+27
-12
No files found.
pages/mes/qc/index.vue
View file @
26481cfc
...
@@ -73,15 +73,20 @@
...
@@ -73,15 +73,20 @@
</uni-td>
</uni-td>
<uni-td>
<uni-td>
<view
class=
"uni-group"
>
<view
class=
"uni-group"
>
<button
class=
"uni-button"
size=
"mini"
type=
"primary"
v-if=
"line.ipqcType === 'SJQR' && line.quantityCheck >= line.maxNum"
@
click=
"qcLineClick(line)"
>
<!-- 首检按钮判断FIRST开始 -->
查看确认
<button
class=
"uni-button"
size=
"mini"
type=
"primary"
v-if=
"curQcType === 'FIRST'&&line.ipqcType === 'FIRST'&&(line.status === 'PREPARE'||line.status === 'PENDING')"
@
click=
"qcLineClick(line)"
>
</button>
<button
class=
"uni-button"
size=
"mini"
type=
"primary"
v-if=
"line.ipqcType !== 'SJQR' && line.quantityCheck >= line.maxNum"
@
click=
"qcLineClick(line)"
>
查看编辑
查看编辑
</button>
</button>
<button
class=
"uni-button"
size=
"mini"
type=
"primary"
v-if=
"line.quantityCheck >= line.maxNum && line.ipqcType === 'SJQR'"
@
click=
"firstCONFIRMED(line)"
>
<button
class=
"uni-button"
size=
"mini"
type=
"primary"
v-if=
"curQcType === 'FIRST'&&line.ipqcType === 'FIRST'&&line.status === 'CONFIRMED'"
@
click=
"qcLineClick(line, false)"
>
确认
查看
</button>
<!-- 首检按钮判断FIRST结束 -->
<button
class=
"uni-button"
size=
"mini"
type=
"primary"
v-if=
"curQcType === 'SJQR'"
@
click=
"qcLineClick(line)"
>
查看确认
</button>
</button>
<!--
<button
class=
"uni-button"
size=
"mini"
type=
"primary"
v-if=
"line.ipqcType === 'SJQR'"
@
click=
"firstCONFIRMED(line)"
>
确认
</button>
-->
</view>
</view>
</uni-td>
</uni-td>
</uni-tr>
</uni-tr>
...
@@ -93,7 +98,7 @@
...
@@ -93,7 +98,7 @@
</view>
</view>
</view>
</view>
<u-modal
width=
"90%"
@
confirm=
"submitIpqc"
v-model=
"qcModalFlag"
:showConfirmButton=
"
true
"
:showCancelButton=
"true"
title=
"请填写检验单"
content=
"操作内容"
>
<u-modal
width=
"90%"
@
confirm=
"submitIpqc"
v-model=
"qcModalFlag"
:showConfirmButton=
"
showIpqcConfirmButton
"
:showCancelButton=
"true"
title=
"请填写检验单"
content=
"操作内容"
>
<u-form
ref=
"qcForm"
label-width=
"90px"
>
<u-form
ref=
"qcForm"
label-width=
"90px"
>
<u-row>
<u-row>
<u-col
span=
"5"
>
<u-col
span=
"5"
>
...
@@ -363,7 +368,8 @@ export default {
...
@@ -363,7 +368,8 @@ export default {
qcLineItem
:
{},
qcLineItem
:
{},
deffectModalFlag
:
false
,
deffectModalFlag
:
false
,
qcFirstVisible
:
false
,
qcFirstVisible
:
false
,
qcFirstLines
:
[]
qcFirstLines
:
[],
showIpqcConfirmButton
:
true
};
};
},
},
created
()
{
created
()
{
...
@@ -385,8 +391,12 @@ export default {
...
@@ -385,8 +391,12 @@ export default {
this
.
getQcFirstLines
();
this
.
getQcFirstLines
();
}
}
},
},
async
getIpqcList
(
type
)
{
async
getIpqcList
(
type
,
status
)
{
const
res
=
await
this
.
$u
.
api
.
ipqcList
({
ipqcType
:
type
});
let
params
=
{
ipqcType
:
type
}
if
(
status
)
{
params
=
{
status
}
}
const
res
=
await
this
.
$u
.
api
.
ipqcList
(
params
);
if
(
res
.
code
===
200
)
{
if
(
res
.
code
===
200
)
{
this
.
qcList
=
res
.
rows
;
this
.
qcList
=
res
.
rows
;
}
}
...
@@ -542,7 +552,11 @@ export default {
...
@@ -542,7 +552,11 @@ export default {
handleClickBtn
(
type
)
{
handleClickBtn
(
type
)
{
this
.
qcForm
=
{};
this
.
qcForm
=
{};
this
.
curQcType
=
type
;
this
.
curQcType
=
type
;
if
(
type
==
'SJQR'
)
{
this
.
getIpqcList
(
type
,
'PENDING'
);
}
else
{
this
.
getIpqcList
(
type
);
this
.
getIpqcList
(
type
);
}
console
.
log
(
type
,
'type'
);
console
.
log
(
type
,
'type'
);
// if (type === 'QCMSG') {
// if (type === 'QCMSG') {
// this.qcMsgVisible = true
// this.qcMsgVisible = true
...
@@ -553,10 +567,11 @@ export default {
...
@@ -553,10 +567,11 @@ export default {
// this.qcModalFlag = true;
// this.qcModalFlag = true;
// }
// }
},
},
qcLineClick
(
item
)
{
qcLineClick
(
item
,
flag
)
{
this
.
qcModalFlag
=
true
;
this
.
qcModalFlag
=
true
;
this
.
qcForm
=
item
;
this
.
qcForm
=
item
;
console
.
log
(
this
.
qcForm
);
console
.
log
(
this
.
qcForm
);
this
.
showIpqcConfirmButton
=
flag
===
false
?
false
:
true
this
.
getTemplateLineList
();
this
.
getTemplateLineList
();
},
},
qcLineItemClick
(
item
)
{
qcLineItemClick
(
item
)
{
...
...
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