Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
ElectricitySheep
Project
Project
Details
Activity
Releases
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
黄媛媛
ElectricitySheep
Commits
1ce0fd10
Commit
1ce0fd10
authored
Dec 28, 2021
by
Mac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
456e105d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
11 deletions
+30
-11
printManage.vue
src/components/empower/printManage.vue
+30
-11
No files found.
src/components/empower/printManage.vue
View file @
1ce0fd10
...
...
@@ -321,17 +321,39 @@ export default {
data
.
forEach
(
x
=>
{
x
.
Ischeck
=
false
})
this
.
stagingData
=
this
.
dataList
//
this.stagingData = this.dataList
this
.
CreateDatelist
=
this
.
groupArr
(
data
,
'GoodsName'
)
this
.
dataL
ist
=
this
.
CreateDatelist
;
this
.
dataL
ist
.
forEach
(
x
=>
{
let
alll
ist
=
this
.
CreateDatelist
;
alll
ist
.
forEach
(
x
=>
{
x
.
list
.
forEach
((
j
,
index
)
=>
{
j
.
xuhao
=
index
+
1
+
'/'
+
x
.
list
.
length
})
})
// let list = JSON.parse(JSON.stringify(this.dataList))
console
.
log
(
this
.
dataList
)
this
.
dataList
=
[];
const
loading
=
this
.
$loading
({
lock
:
true
,
text
:
'数据加载中...'
,
spinner
:
'el-icon-loading'
,
});
alllist
.
forEach
((
x
,
y
)
=>
{
let
obj
=
{
GoodsName
:
x
.
GoodsName
,
list
:[],
}
this
.
dataList
.
push
(
obj
)
x
.
list
.
forEach
((
j
,
ji
)
=>
{
setTimeout
(()
=>
{
//20ms 是1000/25 得到的
this
.
dataList
[
y
].
list
.
push
(
j
)
if
(
alllist
.
length
==
y
+
1
&&
x
.
list
.
length
==
ji
+
1
){
loading
.
close
();
}
},
ji
*
50
)
})
})
}
else
{
this
.
Error
(
res
.
data
.
message
);
}
...
...
@@ -385,19 +407,19 @@ export default {
this
.
dataList
.
forEach
((
x
,
i
)
=>
{
//处理显示问题
x
.
list
.
forEach
((
j
,
i2
)
=>
{
j
.
Ischeck
=
true
;
setTimeout
(()
=>
{
//20ms 是1000/25 得到的
setTimeout
(()
=>
{
data
.
push
(
j
)
if
(
this
.
dataList
.
length
==
i
+
1
&&
x
.
list
.
length
==
i2
+
1
){
//最后一个的时候数据处理
this
.
checkList
=
data
;
loading
.
close
();
this
.
checkList
.
forEach
((
x
,
i
)
=>
{
x
.
page
=
'page'
+
(
i
+
1
)
x
.
xpage
=
'xpage'
+
(
i
+
1
)
})
}
},
50
)
},
i2
*
50
)
})
})
loading
.
close
();
...
...
@@ -468,7 +490,6 @@ export default {
setTimeout
(()
=>
{
that
.
batchprint
(
num
)
},
200
)
}
else
{
that
.
loading
=
false
;
that
.
checkList
=
[];
...
...
@@ -476,8 +497,6 @@ export default {
x
.
list
.
forEach
((
j
)
=>
{
j
.
Ischeck
=
false
;
})
})
return
...
...
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