Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
factory_front
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
qinjianhui
factory_front
Commits
bb74b1fc
Commit
bb74b1fc
authored
Jun 17, 2024
by
zhuzhequan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
按钮加loading
parent
1b9a33d0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletions
+6
-1
src/views/order/index.vue
+6
-1
No files found.
src/views/order/index.vue
View file @
bb74b1fc
...
...
@@ -135,7 +135,7 @@
>
<
/span
>
<
span
v
-
if
=
"statusCode === 2 || statusCode === 3"
class
=
"item"
>
<
ElButton
type
=
"primary"
dark
@
click
=
"printManuscript"
<
ElButton
:
loading
=
"btnLoading"
type
=
"primary"
dark
@
click
=
"printManuscript"
>
打印生产单
<
/ElButto
n
>
<
/span
>
...
...
@@ -818,6 +818,7 @@ const [searchForm, resetSearchForm] = useValue<SearchForm>({
subOrderNumber
:
''
,
}
)
const
tabsNav
=
ref
<
Tab
[]
>
([])
const
btnLoading
=
ref
<
Boolean
>
(
false
)
const
statusCode
=
ref
(
2
)
const
selection
=
ref
<
OrderData
[]
>
([])
...
...
@@ -1059,6 +1060,7 @@ const printManuscript = async () => {
offset
:
window
.
innerHeight
/
2
,
}
)
}
const
ids
=
selection
.
value
.
map
((
item
)
=>
item
.
id
)
try
{
await
showConfirm
(
'是否打印生产单'
,
{
...
...
@@ -1069,11 +1071,14 @@ const printManuscript = async () => {
}
catch
{
return
}
btnLoading
.
value
=
true
try
{
const
res
=
await
printOrder
(
ids
)
btnLoading
.
value
=
false
window
.
open
(
filePath
+
res
.
message
)
}
catch
(
e
)
{
showError
(
e
)
btnLoading
.
value
=
false
}
}
// 导出生产单
...
...
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