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
ebc3109e
Commit
ebc3109e
authored
Aug 07, 2024
by
沈翠玲
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
报工数量和刀模版
parent
8ffbab72
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
42 additions
and
4 deletions
+42
-4
http.api.js
common/http.api.js
+2
-0
editFeeding.vue
pages/mes/prodReport/components/editFeeding.vue
+1
-1
index.vue
pages/mes/prodReport/index.vue
+39
-3
No files found.
common/http.api.js
View file @
ebc3109e
...
@@ -475,6 +475,8 @@ const install = (Vue, vm) => {
...
@@ -475,6 +475,8 @@ const install = (Vue, vm) => {
vm
.
$u
.
postJson
(
config
.
adminPath
+
'/tm/tmToolMachines'
,
params
),
vm
.
$u
.
postJson
(
config
.
adminPath
+
'/tm/tmToolMachines'
,
params
),
tmToolMachinesRecord
:
(
params
=
{})
=>
tmToolMachinesRecord
:
(
params
=
{})
=>
vm
.
$u
.
putJson
(
config
.
adminPath
+
'/tm/tmToolMachines'
,
params
),
vm
.
$u
.
putJson
(
config
.
adminPath
+
'/tm/tmToolMachines'
,
params
),
checkIsExsitToolWindow
:
(
params
=
{})
=>
vm
.
$u
.
postJson
(
config
.
adminPath
+
'/tm/tmToolMachines/checkIsExsitToolWindow'
,
params
),
tmToolMachinesScancode
:
(
params
=
{})
=>
tmToolMachinesScancode
:
(
params
=
{})
=>
vm
.
$u
.
postJson
(
vm
.
$u
.
postJson
(
config
.
adminPath
+
'/tm/tmToolMachines/scancode'
,
config
.
adminPath
+
'/tm/tmToolMachines/scancode'
,
...
...
pages/mes/prodReport/components/editFeeding.vue
View file @
ebc3109e
...
@@ -176,7 +176,7 @@ export default {
...
@@ -176,7 +176,7 @@ export default {
width
:
120
width
:
120
},
},
{
{
name
:
'
feedbackTime
'
,
name
:
'
quantityQualify
'
,
label
:
'报工数量'
,
label
:
'报工数量'
,
width
:
100
,
width
:
100
,
type
:
'slot'
,
type
:
'slot'
,
...
...
pages/mes/prodReport/index.vue
View file @
ebc3109e
...
@@ -1544,14 +1544,50 @@ export default {
...
@@ -1544,14 +1544,50 @@ export default {
this
.
getPemissionScan
();
this
.
getPemissionScan
();
},
},
handleUpdateKnifeTemp
(
code
)
{
handleUpdateKnifeTemp
(
code
)
{
console
.
log
({
type
:
this
.
knifeTempType
,
sn
:
code
,
taskWorkunitId
:
this
.
tableSelectData
[
0
].
taskWorkunitId
},
code
,
'code---handleUpdateKnifeTemp'
);
console
.
log
(
'isExsitTool'
,
this
.
knifeTempType
,
this
.
tableSelectData
[
0
].
isExsitTool
)
this
.
$u
.
api
.
dModel
.
tmToolMachinesScancode
({
type
:
this
.
knifeTempType
,
sn
:
code
,
taskWorkunitId
:
this
.
tableSelectData
[
0
].
taskWorkunitId
}).
then
((
res
)
=>
{
if
(
this
.
knifeTempType
===
'1'
)
{
if
(
this
.
tableSelectData
[
0
].
isExsitTool
)
{
this
.
$u
.
api
.
dModel
.
checkIsExsitToolWindow
({
type
:
this
.
knifeTempType
,
sn
:
code
,
taskWorkunitId
:
this
.
tableSelectData
[
0
].
taskWorkunitId
}).
then
((
res
)
=>
{
if
(
res
.
code
===
200
)
{
if
(
res
.
data
)
{
uni
.
showModal
({
title
:
'系统提示'
,
content
:
'是否新增刀模版和产品工序的关联?'
,
success
:
(
res
)
=>
{
if
(
res
.
confirm
)
{
this
.
confirmKnifeTemp
(
code
)
}
else
{
this
.
$u
.
toast
(
"刀模版SN不一致"
)
}
}
})
}
else
{
this
.
confirmKnifeTemp
(
code
)
}
}
else
{
this
.
$u
.
toast
(
res
.
msg
)
}
})
}
else
{
this
.
confirmKnifeTemp
(
code
)
}
}
else
{
this
.
confirmKnifeTemp
(
code
)
}
},
confirmKnifeTemp
(
code
)
{
const
params
=
{
type
:
this
.
knifeTempType
,
sn
:
code
,
taskWorkunitId
:
this
.
tableSelectData
[
0
].
taskWorkunitId
}
if
(
this
.
knifeTempType
===
'1'
)
{
params
[
'isExsitTool'
]
=
this
.
tableSelectData
[
0
].
isExsitTool
}
this
.
$u
.
api
.
dModel
.
tmToolMachinesScancode
(
params
).
then
((
res
)
=>
{
console
.
log
(
res
,
'res333'
);
console
.
log
(
res
,
'res333'
);
if
(
res
.
code
===
200
)
{
if
(
res
.
code
===
200
)
{
this
.
$u
.
toast
(
this
.
knifeTempType
===
'1'
?
'上机成功'
:
'下机成功'
);
this
.
$u
.
toast
(
this
.
knifeTempType
===
'1'
?
'上机成功'
:
'下机成功'
);
this
.
upDownGetList
();
this
.
upDownGetList
();
}
}
})
;
})
},
},
handleChangeTabPro
(
index
,
row
)
{
handleChangeTabPro
(
index
,
row
)
{
row
.
currentTabPro
=
index
;
row
.
currentTabPro
=
index
;
...
...
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