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
02e7ce04
Commit
02e7ce04
authored
Mar 24, 2025
by
qinjianhui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 对账单导出
parent
4ca55170
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
48 additions
and
10 deletions
+48
-10
src/api/order.ts
+10
-7
src/components/ShipmentOrderDetail.vue
+23
-3
src/views/AccountStatementNote.vue
+15
-0
No files found.
src/api/order.ts
View file @
02e7ce04
...
...
@@ -330,7 +330,13 @@ export function updateReconciliation(data: AccountStatementNote) {
data
,
)
}
export
function
exportExcelApi
(
ids
:
string
)
{
return
axios
.
get
<
never
,
BaseRespData
<
never
>>
(
'reconciliation/exportExcel'
,
{
params
:
{
ids
,
},
})
}
export
function
getShipmentDetailsById
(
data
:
DetailForm
)
{
return
axios
.
post
<
never
,
BasePaginationData
<
BillOrderDetailData
>>
(
'reconciliation/getItemList'
,
...
...
@@ -338,12 +344,9 @@ export function getShipmentDetailsById(data: DetailForm) {
)
}
export
function
getLogListApi
(
id
?:
number
)
{
return
axios
.
get
<
never
,
BaseRespData
<
LogList
[]
>>
(
'reconciliation/getLog'
,
{
params
:
{
id
},
},
)
return
axios
.
get
<
never
,
BaseRespData
<
LogList
[]
>>
(
'reconciliation/getLog'
,
{
params
:
{
id
},
})
}
export
function
auditOrderApi
(
url
:
string
,
data
:
string
)
{
return
axios
.
get
(
url
,
{
...
...
src/components/ShipmentOrderDetail.vue
View file @
02e7ce04
...
...
@@ -76,6 +76,27 @@
<
/span
>
<
/div
>
<
div
class
=
"order-list-expand_item_info_title"
>
<
span
class
=
"order-list-expand_item_label"
>
商品
SKU
:
<
/span
>
<
span
class
=
"order-list-expand_item_value"
>
{{
item
.
variant_sku
||
'--'
}}
<
/span
>
<
/div
>
<
div
class
=
"order-list-expand_item_info_title"
>
<
span
class
=
"order-list-expand_item_label"
>
baseSku
:
<
/span
>
<
span
class
=
"order-list-expand_item_value"
>
{{
item
.
base_sku
||
'--'
}}
<
/span
>
<
/div
>
<
div
class
=
"order-list-expand_item_info_title"
>
<
span
class
=
"order-list-expand_item_label"
>
店铺单号
:
<
/span
>
<
span
class
=
"order-list-expand_item_value"
>
{{
item
.
shop_number
||
'--'
}}
<
/span
>
<
/div
>
<
/div
>
<
div
class
=
"order-list-expand_item_info"
>
<
div
class
=
"order-list-expand_item_info_title"
>
<
span
class
=
"order-list-expand_item_label"
>
已发数
:
<
/span
>
<
span
class
=
"order-list-expand_item_value"
>
{{
item
.
shipment_num
||
0
...
...
@@ -132,10 +153,9 @@ const copy = (text: string) => {
margin
-
top
:
10
px
;
}
.
order
-
list
-
expand_item
{
display
:
grid
;
display
:
flex
;
font
-
size
:
14
px
;
gap
:
10
px
;
grid
-
template
-
columns
:
repeat
(
2
,
1
fr
);
justify
-
content
:
space
-
between
;
}
.
order
-
list
-
expand_item
:
not
(:
last
-
child
)
{
border
-
bottom
:
1
px
solid
#
eee
;
...
...
src/views/AccountStatementNote.vue
View file @
02e7ce04
...
...
@@ -93,6 +93,7 @@
>
驳回
<
/el-button
>
<
el
-
button
type
=
"success"
@
click
=
"exportExcel"
>
导出
<
/el-button
>
<
el
-
button
v
-
if
=
"nodeId === 30"
type
=
"danger"
...
...
@@ -531,6 +532,7 @@ import {
confirmOrderApi
,
rejectOrderApi
,
getLogListApi
,
exportExcelApi
,
}
from
'@/api/order'
import
{
ref
,
onMounted
,
watch
,
nextTick
}
from
'vue'
...
...
@@ -546,6 +548,7 @@ import { DetailForm, ShipmentOrderDetailData } from '@/types/api/deliveryNote'
import
shipmentOrderDetailInfo
from
'@/components/ShipmentOrderDetail.vue'
import
ImageView
from
'@/components/ImageView.vue'
import
{
showConfirm
}
from
'@/utils/ui'
import
{
filePath
}
from
'@/api/axios'
// import
{
getUserMarkList
}
from
'@/api/auth.ts'
interface
Tree
{
...
...
@@ -851,6 +854,18 @@ const getLogList = async () => {
console
.
error
(
e
)
}
}
const
exportExcel
=
async
()
=>
{
if
(
selections
.
value
.
length
===
0
)
{
return
ElMessage
.
warning
(
'请选择要操作的数据'
)
}
const
ids
=
selections
.
value
.
map
((
el
)
=>
el
.
id
).
join
(
','
)
try
{
const
res
=
await
exportExcelApi
(
ids
)
window
.
open
(
filePath
+
res
.
data
)
}
catch
(
e
)
{
console
.
error
(
e
)
}
}
onMounted
(()
=>
{
getTreeNum
()
}
)
...
...
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