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
5aa16f3f
Commit
5aa16f3f
authored
Aug 23, 2024
by
沈翠玲
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
iqc对接口
parent
f39d8179
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
196 additions
and
180 deletions
+196
-180
http.api.js
common/http.api.js
+15
-1
iqcDialog.vue
pages/mes/qc/components/iqcDialog.vue
+145
-168
index.vue
pages/mes/qc/index.vue
+36
-11
No files found.
common/http.api.js
View file @
5aa16f3f
...
...
@@ -187,6 +187,9 @@ const install = (Vue, vm) => {
//查询检验列表
ipqcList
:
(
params
=
{})
=>
vm
.
$u
.
get
(
config
.
adminPath
+
'/mes/qc/ipqc/list'
,
params
),
//查询IQC检验列表
iqcList
:
(
params
=
{})
=>
vm
.
$u
.
get
(
config
.
adminPath
+
'/mes/qc/iqc/list'
),
//增加检验
addIpqc
:
(
params
=
{},
type
=
'postJson'
)
=>
vm
.
$u
[
type
](
config
.
adminPath
+
'/mes/qc/ipqc'
,
params
),
...
...
@@ -204,7 +207,18 @@ const install = (Vue, vm) => {
params
),
// iqc查看详情
getIqcInfo
:
(
ipcId
)
=>
vm
.
$u
.
get
(
config
.
adminPath
+
'/mes/qc/iqc/'
+
ipcId
),
// iqc加载校验项
reloadTable
:
(
params
=
{})
=>
vm
.
$u
.
postJson
(
config
.
adminPath
+
'/mes/qc/iqc/reloadTable'
,
params
),
// iqc提交
commitIqcInfo
:
(
ipcId
)
=>
vm
.
$u
.
get
(
config
.
adminPath
+
'/mes/qc/iqc/commit/'
+
ipcId
),
// iqc保存
saveIqcInfo
:
(
params
=
{})
=>
vm
.
$u
.
putJson
(
config
.
adminPath
+
'/mes/qc/iqc'
,
params
),
/**
* 工艺工序相关API
*/
...
...
pages/mes/qc/components/iqcDialog.vue
View file @
5aa16f3f
This diff is collapsed.
Click to expand it.
pages/mes/qc/index.vue
View file @
5aa16f3f
...
...
@@ -13,15 +13,15 @@
</view>
<view
class=
"grid-text"
>
首检确认
</view>
</view>
-->
<view
class=
"button-frame"
:class=
"
{ active: qcType.value === curQcType }" v-for="qcType in dict.type.mes_ipqc_type" @click="handleClickBtn(qcType.value)">
<view
class=
"button-frame"
:class=
"
{ active: qcType.value === curQcType }" v-for="qcType in dict.type.mes_ipqc_type"
:key="qcType.value"
@click="handleClickBtn(qcType.value)">
<!--
<view
class=
"shortcut-icon icon-color01"
>
<image
class=
"icon-button"
src=
"/static/icons/png/pro.png"
/>
</view>
-->
<view
class=
"grid-text"
>
{{
qcType
.
label
}}
</view>
</view>
<
!--
<view
class=
"button-frame"
:class=
"
{'active': !curQcType }" @click="handleClickBtn('
')">
<view
class=
"grid-text"
>
全部
</view>
</view>
-->
<
view
class=
"button-frame"
:class=
"
{'active': curQcType === 'IQC' }" @click="handleClickBtn('IQC
')">
<view
class=
"grid-text"
>
IQC
</view>
</view>
</view>
<view
class=
"list-bar"
>
...
...
@@ -45,16 +45,17 @@
class=
"uni-button"
size=
"mini"
type=
"primary"
v-if=
"
curQcType === 'FIRST' && scope.row.ipqcType === 'FIRST' && (scope.row.status === 'PREPARE' || scope.row.status === 'PENDING'
)"
v-if=
"
(curQcType === 'FIRST' && scope.row.ipqcType === 'FIRST' && (scope.row.status === 'PREPARE' || scope.row.status === 'PENDING')) || (curQcType === 'IQC' && (scope.row.status === 'PREPARE')
)"
@
click=
"qcLineClick(scope.row, true, 'firstEdit')"
>
查看编辑
</button>
<button
class=
"uni-button"
style=
"margin-left: 10rpx"
size=
"mini"
type=
"primary"
v-if=
"(curQcType === 'FIRST' && scope.row.ipqcType === 'FIRST' && scope.row.status === 'CONFIRMED') || curQcType === 'PATROL'"
v-if=
"(curQcType === 'FIRST' && scope.row.ipqcType === 'FIRST' && scope.row.status === 'CONFIRMED') || curQcType === 'PATROL'
|| curQcType === 'IQC'
"
@
click=
"qcLineClick(scope.row, false, 'firstView')"
>
查看
...
...
@@ -69,6 +70,7 @@
</view>
</view>
<addDialog
v-if=
"addQuFlag"
:visible
.
sync=
"addQuFlag"
:currentItem=
"qcForm"
:btnType=
"btnType"
:curQcType=
"curQcType"
:showIpqcConfirmButton=
"showIpqcConfirmButton"
ref=
"addDialog"
@
confirm=
"submitIpqc"
:qcAddIndex
.
sync =
"qcAddIndex"
:zjVisible
.
sync =
"zjVisible"
@
close=
"closemodel"
/>
<iqcDialog
v-if=
"iqcFlag"
:visible
.
sync=
"iqcFlag"
:currentItem=
"qcForm"
:btnType=
"btnType"
:curQcType=
"curQcType"
:showIpqcConfirmButton=
"showIpqcConfirmButton"
ref=
"iqcDialog"
@
confirm=
"submitIpqc"
:qcAddIndex
.
sync =
"qcAddIndex"
:zjVisible
.
sync =
"zjVisible"
@
close=
"closemodel"
/>
<u-modal
width=
"90%"
@
confirm=
"submitIpqc"
@
cancel=
"closemodel"
v-model=
"qcModalFlag"
:showConfirmButton=
"showIpqcConfirmButton"
:showCancelButton=
"true"
title=
"请填写检验单"
content=
"操作内容"
>
<u-form
ref=
"qcForm"
label-width=
"90px"
class=
"addForm"
>
<u-row>
...
...
@@ -328,6 +330,7 @@ import UniEasyinput from '../../../uni_modules/uni-easyinput/components/uni-easy
import
User
from
'@/components/User/User.vue'
;
import
zjList
from
'./components/zjList.vue'
;
import
addDialog
from
'./components/addDialog.vue'
;
import
iqcDialog
from
'./components/iqcDialog.vue'
;
export
default
{
name
:
'QcContent'
,
...
...
@@ -337,13 +340,18 @@ export default {
UniEasyinput
,
User
,
zjList
,
addDialog
addDialog
,
iqcDialog
},
dicts
:
[
'mes_ipqc_type'
,
'mes_qc_result'
,
'mes_order_status'
,
'mes_defect_level'
],
computed
:
{
tableColumn
()
{
if
(
this
.
curQcType
===
'FIRST'
||
this
.
curQcType
===
'SJQR'
)
{
return
this
.
tableSjColumn
;
}
else
if
(
this
.
curQcType
===
'IQC'
){
let
list
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
tableSjColumn
))
list
[
0
].
name
=
'iqcCode'
return
list
}
else
{
return
this
.
tableDefaultColumn
;
}
...
...
@@ -355,6 +363,7 @@ export default {
qcAddIndex
:
null
,
zjVisible
:
false
,
addQuFlag
:
false
,
iqcFlag
:
false
,
qcAddList
:
[],
tableSjColumn
:
[
{
...
...
@@ -568,7 +577,9 @@ export default {
console
.
log
(
this
.
$refs
.
zjListRef
.
tableSelectData
,
'this.$refs.zjListRef.tableSelectData'
);
if
(
this
.
addQuFlag
)
{
this
.
$refs
.
addDialog
.
handleSubmitZj
({
inputType
:
1
,
ipqcId
:
this
.
qcForm
.
ipqcId
,
indexId
:
this
.
$refs
.
zjListRef
.
tableSelectData
[
0
].
indexId
,
indexCode
:
this
.
$refs
.
zjListRef
.
tableSelectData
[
0
].
indexCode
,
indexName
:
this
.
$refs
.
zjListRef
.
tableSelectData
[
0
].
indexName
,
indexType
:
this
.
$refs
.
zjListRef
.
tableSelectData
[
0
].
indexType
,
qcTool
:
this
.
$refs
.
zjListRef
.
tableSelectData
[
0
].
qcTool
})
}
else
{
}
else
if
(
this
.
iqcFlag
)
{
this
.
$refs
.
iqcDialog
.
handleSubmitZj
({
inputType
:
1
,
ipqcId
:
this
.
qcForm
.
ipqcId
,
indexId
:
this
.
$refs
.
zjListRef
.
tableSelectData
[
0
].
indexId
,
indexCode
:
this
.
$refs
.
zjListRef
.
tableSelectData
[
0
].
indexCode
,
indexName
:
this
.
$refs
.
zjListRef
.
tableSelectData
[
0
].
indexName
,
indexType
:
this
.
$refs
.
zjListRef
.
tableSelectData
[
0
].
indexType
,
qcTool
:
this
.
$refs
.
zjListRef
.
tableSelectData
[
0
].
qcTool
})
}
else
{
this
.
$set
(
this
.
qcAddList
[
this
.
qcAddIndex
],
'inputType'
,
1
)
this
.
$set
(
this
.
qcAddList
[
this
.
qcAddIndex
],
'ipqcId'
,
this
.
qcForm
.
ipqcId
)
this
.
$set
(
this
.
qcAddList
[
this
.
qcAddIndex
],
'indexId'
,
this
.
$refs
.
zjListRef
.
tableSelectData
[
0
]?.
indexId
)
...
...
@@ -590,7 +601,12 @@ export default {
if
(
this
.
curQcType
==
'SJQR'
)
{
params
=
{
status
:
'PENDING'
,
ipqcType
:
'FIRST'
};
}
const
res
=
await
this
.
$u
.
api
.
ipqcList
(
params
);
let
res
=
null
if
(
type
===
'IQC'
)
{
res
=
await
this
.
$u
.
api
.
iqcList
();
}
else
{
res
=
await
this
.
$u
.
api
.
ipqcList
(
params
);
}
if
(
res
.
code
===
200
)
{
this
.
qcList
=
res
.
rows
;
}
else
{
...
...
@@ -616,6 +632,10 @@ export default {
},
async
submitIpqc
(
params
=
{})
{
if
(
this
.
curQcType
===
'IQC'
)
{
this
.
getIpqcList
(
this
.
curQcType
);
return
}
console
.
log
(
'params'
,
params
)
// if (this.btnType === 'sjqrFinish') {
// this.firstCONFIRMED(this.qcForm);
...
...
@@ -745,7 +765,9 @@ export default {
this
.
qcForm
=
{
quantityCheck
:
0
};
if
(
this
.
curQcType
!==
'FINAL'
)
{
if
(
this
.
curQcType
===
'IQC'
)
{
this
.
iqcFlag
=
true
}
else
if
(
this
.
curQcType
!==
'FINAL'
)
{
this
.
addQuFlag
=
true
}
else
{
this
.
qcModalFlag
=
true
;
...
...
@@ -797,7 +819,9 @@ export default {
qcLineClick
(
item
,
flag
,
btnType
)
{
this
.
qcAddList
=
[]
this
.
btnType
=
btnType
if
(
this
.
curQcType
!==
'FINAL'
)
{
if
(
this
.
curQcType
===
'IQC'
)
{
this
.
iqcFlag
=
true
}
else
if
(
this
.
curQcType
!==
'FINAL'
)
{
this
.
addQuFlag
=
true
}
else
{
this
.
qcModalFlag
=
true
;
...
...
@@ -834,6 +858,7 @@ export default {
closemodel
(){
this
.
btnType
=
''
this
.
addQuFlag
=
false
this
.
iqcFlag
=
false
},
addQcdeffect
()
{
this
.
defectrecordList
.
push
({
...
...
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