Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
T
TF-MOM-WEB
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
TFMOM
TF-MOM-WEB
Commits
4bdde84d
Commit
4bdde84d
authored
Oct 11, 2023
by
“lixuyan”
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
扫码枪录入联调
parent
d55b0574
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
45 additions
and
108 deletions
+45
-108
footer.vue
...views/taskExecution/components/ConfirmMaterial/footer.vue
+17
-84
header.vue
...views/taskExecution/components/ConfirmMaterial/header.vue
+27
-23
index.vue
applications/dee-mes/src/views/taskExecution/index.vue
+1
-1
No files found.
applications/dee-mes/src/views/taskExecution/components/ConfirmMaterial/footer.vue
View file @
4bdde84d
...
@@ -70,7 +70,7 @@
...
@@ -70,7 +70,7 @@
<el-table-column
:width=
"80"
label=
"操作"
align=
"center"
>
<el-table-column
:width=
"80"
label=
"操作"
align=
"center"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<el-button
<el-button
:disabled=
"scope.row.
extScanCodeRecords[0].status
==='未确认'"
:disabled=
"scope.row.
scanCodeRecordsState
==='未确认'"
size=
"mini"
size=
"mini"
type=
"danger"
type=
"danger"
@
click=
"deleteRow(scope.row)"
@
click=
"deleteRow(scope.row)"
...
@@ -189,20 +189,6 @@ export default {
...
@@ -189,20 +189,6 @@ export default {
sortable
:
true
,
sortable
:
true
,
minWidth
:
120
minWidth
:
120
},
},
// {
// title: '实发数量',
// show: true,
// key: 'scanCodeRecordVo.amount',
// align: 'center',
// sortable: true
// },
// {
// title: '类型',
// show: true,
// key: 'type',
// align: 'center',
// sortable: true
// },
{
{
title
:
'单据编号'
,
title
:
'单据编号'
,
show
:
true
,
show
:
true
,
...
@@ -214,7 +200,7 @@ export default {
...
@@ -214,7 +200,7 @@ export default {
{
{
title
:
'状态'
,
title
:
'状态'
,
show
:
true
,
show
:
true
,
key
:
'
extScanCodeRecords[0].status
'
,
key
:
'
scanCodeRecordsState
'
,
align
:
'center'
,
align
:
'center'
,
sortable
:
true
,
sortable
:
true
,
minWidth
:
100
minWidth
:
100
...
@@ -249,65 +235,26 @@ export default {
...
@@ -249,65 +235,26 @@ export default {
// 设置数据
// 设置数据
this
.
loading
=
true
this
.
loading
=
true
this
.
tableData
=
[]
this
.
tableData
=
[]
const
params
=
{
'searchItems'
:
{
'children'
:
[
{
'items'
:
[
{
'fieldName'
:
'extSupporting.extProcessPlanId'
,
'operator'
:
'EQ'
,
'value'
:
this
.
$parent
.
$parent
.
$parent
.
$parent
.
headerData
.
aoId
},
{
'fieldName'
:
'extScanCodeRecords.id'
,
'operator'
:
'NOTNULL'
}
],
'operator'
:
'AND'
}
],
'items'
:
[],
'operator'
:
'AND'
},
'openProps'
:
[
{
'name'
:
'extScanCodeRecords'
},
{
'name'
:
'extMaterial'
,
'openProps'
:
[
{
'name'
:
'resType2'
},
{
'name'
:
'extUnit'
}
]
}
],
'sortItem'
:
[
{
'fieldName'
:
'modifyTime'
,
'sortOrder'
:
'desc'
}
],
'toValidateKeys'
:
''
}
// 发送请求
// 发送请求
post
(
post
(
'/ExtSupportingItem/search'
,
`/ExtSupportingItem/getAllMaterialConfirmationUnder?aoId=
${
this
.
$parent
.
$parent
.
$parent
.
$parent
.
headerData
.
aoId
}
`
,
params
{}
)
)
.
then
((
res
)
=>
{
.
then
((
res
)
=>
{
this
.
tableData
=
res
.
items
.
content
.
map
((
p
)
=>
{
this
.
tableData
=
res
.
items
.
map
((
p
)
=>
{
if
(
!
p
.
extScanCodeRecords
)
{
p
.
extScanCodeRecords
=
[]
p
.
scanCodeRecordsState
=
'未确认'
}
else
{
p
.
scanCodeRecordsState
=
p
.
extScanCodeRecords
[
0
].
status
}
return
{
return
{
popoverVisible
:
false
,
popoverVisible
:
false
,
uuid
:
uuidv4
(),
uuid
:
uuidv4
(),
...
p
...
p
}
}
})
})
this
.
tablePagination
.
total
=
res
.
items
.
totalElements
//
this.tablePagination.total = res.items.totalElements
})
})
.
catch
((
err
)
=>
console
.
error
(
err
))
.
catch
((
err
)
=>
console
.
error
(
err
))
.
finally
(()
=>
{
.
finally
(()
=>
{
...
@@ -315,7 +262,7 @@ export default {
...
@@ -315,7 +262,7 @@ export default {
})
})
},
},
clickScan
(
row
)
{
clickScan
(
row
)
{
if
(
row
.
extScanCodeRecords
[
0
].
status
===
'已确认'
)
{
if
(
row
.
scanCodeRecordsState
===
'已确认'
)
{
this
.
$message
({
this
.
$message
({
showClose
:
true
,
showClose
:
true
,
message
:
'已确认 不可扫码录入!'
,
message
:
'已确认 不可扫码录入!'
,
...
@@ -324,26 +271,10 @@ export default {
...
@@ -324,26 +271,10 @@ export default {
return
return
}
}
this
.
rowId
=
row
.
id
this
.
rowId
=
row
.
id
// if (['密封剂', '涂料', '胶粘剂'].includes(row.resTypeName)) {
// this.$message({
// showClose: true,
// message: '当前状态-' + row.resTypeName + ' 不可扫码录入!',
// type: 'warning'
// })
// return
// }
$
(
'#'
+
this
.
onlyUuid
).
click
()
$
(
'#'
+
this
.
onlyUuid
).
click
()
},
},
codeScanBar
(
row
)
{
codeScanBar
(
row
)
{
// if (['密封剂', '涂料', '胶粘剂'].includes(row.resTypeName)) {
if
(
row
.
scanCodeRecordsState
===
'已确认'
)
{
// this.$message({
// showClose: true,
// message: '当前状态-' + row.resTypeName + ' 不可扫码录入!',
// type: 'warning'
// })
// return
// }
if
(
row
.
extScanCodeRecords
[
0
].
status
===
'已确认'
)
{
this
.
$message
({
this
.
$message
({
showClose
:
true
,
showClose
:
true
,
message
:
'已确认 不可扫码录入!'
,
message
:
'已确认 不可扫码录入!'
,
...
@@ -397,7 +328,9 @@ export default {
...
@@ -397,7 +328,9 @@ export default {
}
}
})
})
.
catch
((
err
)
=>
console
.
log
(
err
))
.
catch
((
err
)
=>
console
.
log
(
err
))
.
finally
(()
=>
{})
.
finally
(()
=>
{
this
.
init
()
})
},
},
setPage
(
$event
,
state
)
{
setPage
(
$event
,
state
)
{
if
(
state
)
{
if
(
state
)
{
...
...
applications/dee-mes/src/views/taskExecution/components/ConfirmMaterial/header.vue
View file @
4bdde84d
...
@@ -135,7 +135,7 @@
...
@@ -135,7 +135,7 @@
show-overflow-tooltip
show-overflow-tooltip
/>
/>
<el-table-column
<el-table-column
prop=
"extMaterial.resTypeName"
prop=
"extMaterial.resType
2.type
Name"
align=
"center"
align=
"center"
label=
"零件类型"
label=
"零件类型"
:width=
"120"
:width=
"120"
...
@@ -149,13 +149,13 @@
...
@@ -149,13 +149,13 @@
sortable
sortable
/>
/>
<el-table-column
<el-table-column
prop=
"unitName"
prop=
"
extMaterial.extUnit.
unitName"
align=
"center"
align=
"center"
label=
"单位"
label=
"单位"
:width=
"80"
:width=
"80"
/>
/>
<el-table-column
<el-table-column
prop=
"extMaterial.modelNo"
prop=
"
jobResponseOutStorageVOS[0].inventory.
extMaterial.modelNo"
align=
"center"
align=
"center"
label=
"型号/件号"
label=
"型号/件号"
:width=
"120"
:width=
"120"
...
@@ -163,14 +163,14 @@
...
@@ -163,14 +163,14 @@
show-overflow-tooltip
show-overflow-tooltip
/>
/>
<el-table-column
<el-table-column
prop=
"
arrivedDrawNo
"
prop=
"
jobResponseOutStorageVOS[0].inventory.jobResponse.jobOrder.arrivalVer
"
align=
"center"
align=
"center"
label=
"实发版次"
label=
"实发版次"
:width=
"120"
:width=
"120"
sortable
sortable
/>
/>
<el-table-column
<el-table-column
prop=
"
extMaterial
.testNo"
prop=
"
jobResponseOutStorageVOS[0].inventory.jobResponse.jobOrder.inventoryJobResponses[0]
.testNo"
align=
"center"
align=
"center"
label=
"验收单号"
label=
"验收单号"
:width=
"120"
:width=
"120"
...
@@ -178,33 +178,33 @@
...
@@ -178,33 +178,33 @@
show-overflow-tooltip
show-overflow-tooltip
/>
/>
<el-table-column
<el-table-column
prop=
"checkoutAmount"
prop=
"
jobResponseOutStorageVOS[0].jobOrder.
checkoutAmount"
align=
"center"
align=
"center"
label=
"已接收数量"
label=
"已接收数量"
:width=
"130"
:width=
"130"
sortable
sortable
/>
/>
<el-table-column
<el-table-column
prop=
"outsideAmount"
prop=
"
jobResponseOutStorageVOS[0].
outsideAmount"
align=
"center"
align=
"center"
label=
"实发数量"
label=
"实发数量"
:width=
"120"
:width=
"120"
sortable
sortable
/>
/>
<el-table-column
<
!-- <
el-table-column
prop="type"
prop="type"
align="center"
align="center"
label="类型"
label="类型"
:width="80"
:width="80"
sortable
sortable
/>
/>
-->
<el-table-column
<
!-- <
el-table-column
prop="receiptNo"
prop="receiptNo"
align="center"
align="center"
label="单据编号"
label="单据编号"
:width="120"
:width="120"
sortable
sortable
/>
/>
-->
<el-table-column
<el-table-column
prop=
"jobResponseOutStorageVOS[0].actualWeight"
prop=
"jobResponseOutStorageVOS[0].actualWeight"
align=
"center"
align=
"center"
...
@@ -349,8 +349,12 @@ export default {
...
@@ -349,8 +349,12 @@ export default {
this
.
tableData
=
res
.
items
.
map
((
p
)
=>
{
this
.
tableData
=
res
.
items
.
map
((
p
)
=>
{
this
.
stateList
.
forEach
(
element
=>
{
this
.
stateList
.
forEach
(
element
=>
{
if
(
element
.
value
===
p
.
reqStatus
)
{
if
(
element
.
value
===
p
.
reqStatus
)
{
if
(
element
.
value
===
'Not'
)
{
p
.
stateName
=
'未出库'
}
else
{
p
.
stateName
=
element
.
label
p
.
stateName
=
element
.
label
}
}
}
})
})
return
{
return
{
popoverVisible
:
false
,
popoverVisible
:
false
,
...
@@ -374,8 +378,8 @@ export default {
...
@@ -374,8 +378,8 @@ export default {
return
'scan-code'
return
'scan-code'
}
}
if
(
if
(
(
column
.
property
===
'actualWeight'
&&
row
.
actualWeightSelect
)
||
(
column
.
property
===
'
jobResponseOutStorageVOS[0].
actualWeight'
&&
row
.
actualWeightSelect
)
||
(
column
.
property
===
'removeWeight'
&&
row
.
removeWeightSelect
)
(
column
.
property
===
'
jobResponseOutStorageVOS[0].
removeWeight'
&&
row
.
removeWeightSelect
)
)
{
)
{
return
'highlight'
return
'highlight'
}
}
...
@@ -396,20 +400,20 @@ export default {
...
@@ -396,20 +400,20 @@ export default {
},
},
deeTableEdit
(
row
,
column
,
cell
,
event
)
{
deeTableEdit
(
row
,
column
,
cell
,
event
)
{
var
that
=
this
var
that
=
this
if
(
row
.
resTypeName
!==
'外购成品'
)
return
if
(
row
.
extMaterial
.
resType2
.
typeName
!==
'外购成品'
||
!
row
.
jobResponseOutStorageVOS
)
return
if
(
column
.
property
===
'actualWeight'
)
{
if
(
column
.
property
===
'
jobResponseOutStorageVOS[0].
actualWeight'
)
{
this
.
setRowValue
=
row
.
actualWeight
this
.
setRowValue
=
row
.
actualWeight
row
.
actualWeightSelect
=
true
row
.
actualWeightSelect
=
true
}
else
if
(
column
.
property
===
'removeWeight'
)
{
}
else
if
(
column
.
property
===
'
jobResponseOutStorageVOS[0].
removeWeight'
)
{
this
.
setRowValue
=
row
.
removeWeight
this
.
setRowValue
=
row
.
removeWeight
row
.
removeWeightSelect
=
true
row
.
removeWeightSelect
=
true
}
else
{
}
else
{
return
return
}
}
this
.
timer
=
setTimeout
(
function
()
{
this
.
timer
=
setTimeout
(
function
()
{
if
(
column
.
property
===
'actualWeight'
)
{
if
(
column
.
property
===
'
jobResponseOutStorageVOS[0].
actualWeight'
)
{
row
.
actualWeightSelect
=
false
row
.
actualWeightSelect
=
false
}
else
if
(
column
.
property
===
'removeWeight'
)
{
}
else
if
(
column
.
property
===
'
jobResponseOutStorageVOS[0].
removeWeight'
)
{
row
.
removeWeightSelect
=
false
row
.
removeWeightSelect
=
false
}
}
clearTimeout
(
this
.
timer
)
clearTimeout
(
this
.
timer
)
...
@@ -429,10 +433,9 @@ export default {
...
@@ -429,10 +433,9 @@ export default {
var
that
=
this
var
that
=
this
const
param
=
{
const
param
=
{
operator
:
'MODIFY'
,
operator
:
'MODIFY'
,
id
:
row
.
tjrosI
d
,
id
:
row
.
jobResponseOutStorageVOS
[
0
].
i
d
,
actualWeight
:
row
.
actualWeight
,
actualWeight
:
row
.
actualWeight
,
removeWeight
:
row
.
removeWeight
,
removeWeight
:
row
.
removeWeight
subTypeName
:
'JobResponseOutStorageMatch'
}
}
if
(
status
)
{
if
(
status
)
{
row
.
actualWeightSelect
=
false
row
.
actualWeightSelect
=
false
...
@@ -445,7 +448,7 @@ export default {
...
@@ -445,7 +448,7 @@ export default {
if
(
Number
(
this
.
setRowValue
)
===
Number
(
row
.
removeWeight
))
return
if
(
Number
(
this
.
setRowValue
)
===
Number
(
row
.
removeWeight
))
return
row
.
removeWeightLoading
=
true
row
.
removeWeightLoading
=
true
}
}
this
.
HttpRequest
(
'/JobResponseOutStorage/recursion'
,
param
,
'post'
)
post
(
'/JobResponseOutStorage/recursion'
,
param
)
.
then
((
res
)
=>
{
.
then
((
res
)
=>
{
if
(
res
.
message
.
includes
(
'成功'
))
{
if
(
res
.
message
.
includes
(
'成功'
))
{
that
.
$message
({
that
.
$message
({
...
@@ -564,6 +567,7 @@ export default {
...
@@ -564,6 +567,7 @@ export default {
scanId
:
null
,
scanId
:
null
,
count
:
null
count
:
null
}
}
this
.
init
()
this
.
$parent
.
$parent
.
$parent
.
$refs
.
footer
.
init
()
this
.
$parent
.
$parent
.
$parent
.
$refs
.
footer
.
init
()
})
})
},
},
...
...
applications/dee-mes/src/views/taskExecution/index.vue
View file @
4bdde84d
...
@@ -811,7 +811,7 @@ export default {
...
@@ -811,7 +811,7 @@ export default {
isQualified
:
p
.
joExecuteOpPlan
&&
p
.
joExecuteOpPlan
.
length
&&
p
.
joExecuteOpPlan
[
0
].
isQualified
,
isQualified
:
p
.
joExecuteOpPlan
&&
p
.
joExecuteOpPlan
.
length
&&
p
.
joExecuteOpPlan
[
0
].
isQualified
,
countOBJReject
:
p
.
joExecuteOpPlan
&&
p
.
joExecuteOpPlan
.
length
&&
p
.
joExecuteOpPlan
[
0
].
countOBJReject
,
countOBJReject
:
p
.
joExecuteOpPlan
&&
p
.
joExecuteOpPlan
.
length
&&
p
.
joExecuteOpPlan
[
0
].
countOBJReject
,
countRecord
:
p
.
joExecuteOpPlan
&&
p
.
joExecuteOpPlan
.
length
&&
p
.
joExecuteOpPlan
[
0
].
countRecord
,
countRecord
:
p
.
joExecuteOpPlan
&&
p
.
joExecuteOpPlan
.
length
&&
p
.
joExecuteOpPlan
[
0
].
countRecord
,
countProblem
:
p
.
joExecuteOpPlan
&&
p
.
joExecuteOpPlan
.
length
&&
p
.
joExecuteOpPlan
[
0
].
countProblem
,
countProblem
:
p
.
joExecuteOpPlan
&&
p
.
joExecuteOpPlan
.
length
&&
p
.
joExecuteOpPlan
[
0
].
spotCount
,
countDebugging
:
p
.
joExecuteOpPlan
&&
p
.
joExecuteOpPlan
.
length
&&
p
.
joExecuteOpPlan
[
0
].
countDebugging
,
countDebugging
:
p
.
joExecuteOpPlan
&&
p
.
joExecuteOpPlan
.
length
&&
p
.
joExecuteOpPlan
[
0
].
countDebugging
,
countQuality
:
p
.
joExecuteOpPlan
&&
p
.
joExecuteOpPlan
.
length
&&
p
.
joExecuteOpPlan
[
0
].
countQuality
,
countQuality
:
p
.
joExecuteOpPlan
&&
p
.
joExecuteOpPlan
.
length
&&
p
.
joExecuteOpPlan
[
0
].
countQuality
,
revoke
:
p
.
joExecuteOpPlan
&&
p
.
joExecuteOpPlan
.
length
&&
p
.
joExecuteOpPlan
[
0
].
revoke
,
revoke
:
p
.
joExecuteOpPlan
&&
p
.
joExecuteOpPlan
.
length
&&
p
.
joExecuteOpPlan
[
0
].
revoke
,
...
...
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