Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Q
qk_admin
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
quanku
qk_admin
Commits
4733364e
Commit
4733364e
authored
Jul 16, 2024
by
yaya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:添加导出功能
parent
9a4a8904
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
49 additions
and
5 deletions
+49
-5
src/api/business/order.js
src/api/business/order.js
+7
-0
src/views/finance/components/LoadFinanceDialog.vue
src/views/finance/components/LoadFinanceDialog.vue
+23
-5
src/views/finance/orderDetail.vue
src/views/finance/orderDetail.vue
+19
-0
No files found.
src/api/business/order.js
View file @
4733364e
...
...
@@ -112,3 +112,10 @@ export function exportOrderBillDetail(data) {
data
})
}
export
function
exportUserBillDetail
(
data
)
{
return
request
({
url
:
'
/sysFinance/exportUserBillDetail
'
,
method
:
'
post
'
,
data
})
}
src/views/finance/components/LoadFinanceDialog.vue
View file @
4733364e
...
...
@@ -32,8 +32,8 @@
<
/template
>
<
script
>
import
{
MessageBox
}
from
'
element-ui
'
import
{
requestIdentify
}
from
'
@/api/business/order
'
import
{
Loading
,
MessageBox
}
from
'
element-ui
'
import
{
exportUserBillDetail
}
from
'
@/api/business/order
'
export
default
{
name
:
'
LoadFinanceDialog
'
,
props
:
{
...
...
@@ -50,6 +50,7 @@ export default {
}
,
data
()
{
return
{
loadingInstance
:
{
}
,
loadForm
:
{
remark
:
''
}
...
...
@@ -63,19 +64,36 @@ export default {
* 取消
*/
handleCancelValue
()
{
if
(
this
.
distributionOrderId
)
{
const
params
=
{
...
this
.
cancelForm
,
distributionOrderId
:
this
.
distributionOrderId
,
identifyOrderId
:
this
.
identifyOrderId
,
approved
:
0
}
if
(
this
.
fianceItem
)
{
const
options
=
{
lock
:
true
,
text
:
'
正在下载...
'
,
spinner
:
'
el-icon-loading
'
}
this
.
loadingInstance
=
Loading
.
service
(
options
)
const
params
=
{
userId
:
this
.
fianceItem
.
userId
,
accountPeriod
:
this
.
fianceItem
.
accountPeriod
}
this
.
$refs
.
cancel
.
validate
((
valid
)
=>
{
if
(
valid
)
{
requestIdentify
(
params
)
exportUserBillDetail
(
params
)
.
then
(
response
=>
{
this
.
$notify
.
success
({
message
:
'
操作成功
'
}
)
setTimeout
(()
=>
{
if
(
this
.
loadingInstance
)
{
this
.
loadingInstance
.
close
()
}
if
(
response
&&
response
.
data
)
{
window
.
open
(
response
.
data
.
data
)
}
}
,
5000
)
this
.
cancelForm
=
{
}
this
.
handleCancelConsignDialog
()
}
)
.
catch
(
response
=>
{
if
(
this
.
loadingInstance
)
{
this
.
loadingInstance
.
close
()
}
MessageBox
.
alert
(
'
业务错误:
'
+
response
.
data
.
errmsg
,
'
警告
'
,
{
confirmButtonText
:
'
确定
'
,
type
:
'
error
'
...
...
src/views/finance/orderDetail.vue
View file @
4733364e
...
...
@@ -149,6 +149,7 @@ import Line2Hidden from '@/components/line2Hidden'
import
Pagination
from
'
@/components/Pagination
'
import
{
findOrderBillDetail
,
requestLogisticsList
,
exportOrderBillDetail
}
from
'
@/api/business/order
'
import
{
MessageBox
}
from
'
element-ui
'
import
{
Loading
}
from
'
element-ui
'
export
default
{
name
:
'
OrderDetail
'
,
...
...
@@ -159,6 +160,7 @@ export default {
data
()
{
return
{
itemKey
:
0
,
loadingInstance
:
{
}
,
options
:
[{
value
:
1
,
label
:
'
待付款
'
...
...
@@ -222,9 +224,26 @@ export default {
this
.
getList
()
}
,
handleExport
()
{
const
options
=
{
lock
:
true
,
text
:
'
正在导出...
'
,
spinner
:
'
el-icon-loading
'
}
this
.
loadingInstance
=
Loading
.
service
(
options
)
exportOrderBillDetail
(
this
.
listQuery
).
then
(
response
=>
{
setTimeout
(()
=>
{
if
(
this
.
loadingInstance
)
{
this
.
loadingInstance
.
close
()
}
if
(
response
&&
response
.
data
)
{
window
.
open
(
response
.
data
.
data
)
}
}
,
5000
)
}
).
catch
((
e
)
=>
{
console
.
log
(
'
===报错=
'
,
e
)
if
(
this
.
loadingInstance
)
{
this
.
loadingInstance
.
close
()
}
MessageBox
.
alert
(
'
业务错误:
'
+
e
.
data
.
errmsg
,
'
警告
'
,
{
confirmButtonText
:
'
确定
'
,
type
:
'
error
'
...
...
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