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
c440d2e1
Commit
c440d2e1
authored
Mar 14, 2024
by
528360026@qq.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化首检确认
parent
ef2e8f0f
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
82 additions
and
3 deletions
+82
-3
http.api.js
common/http.api.js
+3
-0
index.vue
pages/mes/qc/index.vue
+79
-3
No files found.
common/http.api.js
View file @
c440d2e1
...
@@ -106,6 +106,9 @@ const install = (Vue, vm) => {
...
@@ -106,6 +106,9 @@ const install = (Vue, vm) => {
//增加检验
//增加检验
addIpqc
:
(
params
=
{})
=>
addIpqc
:
(
params
=
{})
=>
vm
.
$u
.
postJson
(
config
.
adminPath
+
'/mes/qc/ipqc'
,
params
),
vm
.
$u
.
postJson
(
config
.
adminPath
+
'/mes/qc/ipqc'
,
params
),
//切换检验单状态
changeState
:
(
params
=
{})
=>
vm
.
$u
.
postJson
(
config
.
adminPath
+
'/mes/qc/ipqc/changeState'
,
params
),
//根据字典类型查询字典数据信息
//根据字典类型查询字典数据信息
getDicts
:
(
params
=
{})
=>
getDicts
:
(
params
=
{})
=>
vm
.
$u
.
get
(
config
.
adminPath
+
'/system/dict/data/type/'
+
params
),
vm
.
$u
.
get
(
config
.
adminPath
+
'/system/dict/data/type/'
+
params
),
...
...
pages/mes/qc/index.vue
View file @
c440d2e1
...
@@ -7,7 +7,14 @@
...
@@ -7,7 +7,14 @@
</view>
</view>
<view
class=
"grid-text"
>
检查通知
</view>
<view
class=
"grid-text"
>
检查通知
</view>
</view>
</view>
<view
class=
"button-frame"
v-for=
"qcType in dict.type.mes_ipqc_type"
@
click=
"addQC(qcType.value )"
>
<view
class=
"button-frame"
@
click=
"addQC('SJQR')"
>
<view
class=
"shortcut-icon icon-color01"
>
<image
class=
"icon-button"
src=
"/static/icons/png/pro.png"
/>
</view>
<view
class=
"grid-text"
>
首检确认
</view>
</view>
<view
class=
"button-frame"
v-for=
"qcType in dict.type.mes_ipqc_type"
v-if=
"qcType.value !== 'FIRST'"
@
click=
"addQC(qcType.value )"
>
<view
class=
"shortcut-icon icon-color01"
>
<view
class=
"shortcut-icon icon-color01"
>
<image
class=
"icon-button"
src=
"/static/icons/png/pro.png"
/>
<image
class=
"icon-button"
src=
"/static/icons/png/pro.png"
/>
</view>
</view>
...
@@ -209,6 +216,58 @@
...
@@ -209,6 +216,58 @@
</u-modal>
</u-modal>
<u-modal
width=
"80%"
v-model=
"qcFirstVisible"
@
close=
"getIpqcList"
@
cancel=
"getIpqcList"
:showConfirmButton=
false
:showCancelButton=
"true"
title=
"首检确认"
content=
"操作内容"
>
<uni-table
style=
"min-height: 900rpx;"
>
<uni-tr>
<uni-th
width=
"160px"
align=
"center"
>
检验单编号
</uni-th>
<uni-th
width=
"160px"
align=
"center"
>
检验单名称
</uni-th>
<uni-th
width=
"150px"
align=
"center"
>
检验类型
</uni-th>
<uni-th
width=
"150px"
align=
"center"
>
工单编号
</uni-th>
<uni-th
width=
"100px"
align=
"center"
>
产品物料编码
</uni-th>
<uni-th
width=
"110px"
align=
"center"
>
产品物料名称
</uni-th>
<uni-th
width=
"100px"
align=
"center"
>
规格型号
</uni-th>
<uni-th
width=
"100px"
align=
"center"
>
单位
</uni-th>
<uni-th
width=
"100px"
align=
"center"
>
检测数量
</uni-th>
<uni-th
width=
"100px"
align=
"center"
>
检测结果
</uni-th>
<uni-th
width=
"120px"
align=
"center"
>
检测日期
</uni-th>
<uni-th
width=
"100px"
align=
"center"
>
检测人员
</uni-th>
<uni-th
width=
"150px"
align=
"center"
>
单据状态
</uni-th>
<uni-th
width=
"150px"
align=
"center"
>
操作
</uni-th>
</uni-tr>
<uni-tr
v-for=
"(line,index) in qcFirstLines"
:key=
"index"
>
<uni-td
align=
"center"
>
{{
line
.
ipqcCode
}}
</uni-td>
<uni-td
align=
"center"
>
{{
line
.
ipqcName
}}
</uni-td>
<uni-td
align=
"center"
>
<dict-tag
:options=
"dict.type.mes_ipqc_type"
:value=
"line.ipqcType"
/>
</uni-td>
<uni-td>
{{
line
.
workorderCode
}}
</uni-td>
<uni-td
align=
"center"
>
{{
line
.
itemCode
}}
</uni-td>
<uni-td
align=
"center"
>
{{
line
.
itemName
}}
</uni-td>
<uni-td
align=
"center"
>
{{
line
.
specification
}}
</uni-td>
<uni-td
align=
"center"
>
{{
line
.
quantityCheck
}}
</uni-td>
<uni-td
align=
"center"
>
<dict-tag
:options=
"dict.type.mes_qc_result"
:value=
"line.checkResult"
/>
</uni-td>
<uni-td
align=
"center"
>
{{
line
.
unitOfMeasure
}}
</uni-td>
<uni-td
align=
"center"
>
{{
line
.
inspectDate
}}
</uni-td>
<uni-td
align=
"center"
>
{{
line
.
inspector
}}
</uni-td>
<uni-td
align=
"center"
>
<dict-tag
:options=
"dict.type.mes_order_status"
:value=
"line.status"
/>
</uni-td>
<uni-td>
<view
class=
"uni-group"
>
<button
class=
"uni-button"
size=
"mini"
type=
"primary"
v-if=
"line.quantityCheck>=line.maxNum"
@
click=
"firstCONFIRMED(line)"
>
确认
</button>
</view>
</uni-td>
</uni-tr>
</uni-table>
</u-modal>
<u-modal
width=
"760px"
v-model=
"qcEditModalFlag"
:showConfirmButton=
false
:showCancelButton=
"true"
<u-modal
width=
"760px"
v-model=
"qcEditModalFlag"
:showConfirmButton=
false
:showCancelButton=
"true"
title=
"请填写出货检验单"
content=
"操作内容"
>
title=
"请填写出货检验单"
content=
"操作内容"
>
<u-form
ref=
"qcEditForm"
label-width=
"100px"
:model=
"qcEditForm"
:rules=
"qcEditRules"
>
<u-form
ref=
"qcEditForm"
label-width=
"100px"
:model=
"qcEditForm"
:rules=
"qcEditRules"
>
...
@@ -298,7 +357,9 @@ export default {
...
@@ -298,7 +357,9 @@ export default {
curQcType
:
''
,
curQcType
:
''
,
defectrecordList
:
[],
defectrecordList
:
[],
qcLineItem
:
{},
qcLineItem
:
{},
deffectModalFlag
:
false
deffectModalFlag
:
false
,
qcFirstVisible
:
false
,
qcFirstLines
:
[]
}
}
},
},
created
()
{
created
()
{
...
@@ -312,12 +373,24 @@ export default {
...
@@ -312,12 +373,24 @@ export default {
this
.
getIpqcList
()
this
.
getIpqcList
()
},
},
methods
:
{
methods
:
{
async
firstCONFIRMED
(
item
)
{
const
res
=
await
this
.
$u
.
api
.
changeState
({
ipqcId
:
item
.
ipqcId
,
status
:
'CONFIRMED'
})
if
(
res
.
code
===
200
)
{
this
.
getQcFirstLines
();
}
},
async
getIpqcList
()
{
async
getIpqcList
()
{
const
res
=
await
this
.
$u
.
api
.
ipqcList
({})
const
res
=
await
this
.
$u
.
api
.
ipqcList
({})
if
(
res
.
code
===
200
)
{
if
(
res
.
code
===
200
)
{
this
.
qcList
=
res
.
rows
;
this
.
qcList
=
res
.
rows
;
}
}
},
},
async
getQcFirstLines
()
{
const
res
=
await
this
.
$u
.
api
.
ipqcList
({
status
:
'PREPARE'
})
if
(
res
.
code
===
200
)
{
this
.
qcFirstLines
=
res
.
rows
;
}
},
async
searchTask
(
val
)
{
async
searchTask
(
val
)
{
const
res
=
await
this
.
$u
.
api
.
getTaskInfoByTaskCode
({
const
res
=
await
this
.
$u
.
api
.
getTaskInfoByTaskCode
({
taskCode
:
val
taskCode
:
val
...
@@ -399,6 +472,9 @@ export default {
...
@@ -399,6 +472,9 @@ export default {
this
.
curQcType
=
type
;
this
.
curQcType
=
type
;
if
(
type
===
'QCMSG'
)
{
if
(
type
===
'QCMSG'
)
{
this
.
qcMsgVisible
=
true
this
.
qcMsgVisible
=
true
}
else
if
(
type
===
'SJQR'
)
{
this
.
getQcFirstLines
()
this
.
qcFirstVisible
=
true
}
else
{
}
else
{
this
.
qcModalFlag
=
true
;
this
.
qcModalFlag
=
true
;
// this.getTemplateLineList(type);
// this.getTemplateLineList(type);
...
...
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