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
8d680210
Commit
8d680210
authored
Jul 12, 2024
by
沈翠玲
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复同一个编排单号不定位的bug
parent
7af7105e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
14 deletions
+14
-14
index.vue
pages/mes/prodReport/index.vue
+14
-14
No files found.
pages/mes/prodReport/index.vue
View file @
8d680210
...
@@ -1488,7 +1488,9 @@ export default {
...
@@ -1488,7 +1488,9 @@ export default {
},
},
handleSubmitCancelKnifeTemp
()
{
handleSubmitCancelKnifeTemp
()
{
this
.
knifeTempVisible
=
true
;
this
.
knifeTempVisible
=
true
;
this
.
$refs
.
appScan
.
closed
();
if
(
this
.
$refs
.
appScan
)
{
this
.
$refs
.
appScan
.
closed
();
}
this
.
knifeTempAppScanVisible
=
false
;
this
.
knifeTempAppScanVisible
=
false
;
this
.
knifeTempCancelText
=
'取消'
;
this
.
knifeTempCancelText
=
'取消'
;
},
},
...
@@ -1937,6 +1939,7 @@ export default {
...
@@ -1937,6 +1939,7 @@ export default {
.
then
((
res
)
=>
{
.
then
((
res
)
=>
{
if
(
res
.
code
===
200
)
{
if
(
res
.
code
===
200
)
{
let
currentIndex
=
0
let
currentIndex
=
0
this
.
$refs
[
'zbtable'
].
bodyScrollTop
=
0
// 过滤可加工数量为0的数据
// 过滤可加工数量为0的数据
this
.
tableData
=
res
.
rows
.
map
((
item
,
index
)
=>
{
this
.
tableData
=
res
.
rows
.
map
((
item
,
index
)
=>
{
if
(
item
.
location
)
{
if
(
item
.
location
)
{
...
@@ -1957,19 +1960,16 @@ export default {
...
@@ -1957,19 +1960,16 @@ export default {
const
query
=
uni
.
createSelectorQuery
().
in
(
this
)
const
query
=
uni
.
createSelectorQuery
().
in
(
this
)
query
query
.
select
(
'#tableBody'
)
.
select
(
'#tableBody'
)
.
boundingClientRect
((
data1
)
=>
{
.
boundingClientRect
()
// query
query
.
select
(
'#tableBody .item-tr'
)
// .select('#tableBody .item-tr')
.
boundingClientRect
()
// .boundingClientRect((data) => {
query
.
exec
(
res
=>
{
const
height
=
80.8
const
data1
=
res
[
0
]
const
currentIndexPlus
=
currentIndex
+
1
const
height
=
res
[
1
]
?
res
[
1
].
height
:
80.8
console
.
log
(
data1
.
height
,
(
height
*
currentIndexPlus
),
'data1'
)
const
currentIndexPlus
=
currentIndex
+
1
const
scrollTop
=
((
height
*
currentIndexPlus
)
>
data1
.
height
)
?
(
height
*
currentIndexPlus
)
:
0
const
scrollTop
=
((
height
*
currentIndexPlus
)
>
data1
.
height
)
?
(
height
*
currentIndexPlus
)
:
0
console
.
log
(
'scrollTop'
,
scrollTop
)
this
.
$refs
[
'zbtable'
].
bodyScrollTop
=
scrollTop
this
.
$refs
[
'zbtable'
].
bodyScrollTop
=
scrollTop
})
// }).exec()
})
.
exec
()
})
})
}
}
}
}
...
...
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