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
a925ab80
Commit
a925ab80
authored
Jul 05, 2024
by
zhuzhequan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ts 报错修改
parent
90b17694
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
79 additions
and
21 deletions
+79
-21
src/api/order.ts
+8
-6
src/components/splitDiv/splitDiv.vue
+2
-2
src/types/api/deliveryNote.ts
+7
-0
src/types/api/index.ts
+16
-0
src/types/api/order.ts
+32
-0
src/utils/hooks/usePageList.ts
+14
-13
src/views/AccountStatementNote.vue
+0
-0
src/views/order/index.vue
+0
-0
No files found.
src/api/order.ts
View file @
a925ab80
import
{
BasePaginationData
,
BaseRespData
}
from
'@/types/api'
import
{
BasePaginationData
,
BaseRespData
,
StatisticsData
}
from
'@/types/api'
import
axios
from
'./axios'
import
axios
from
'./axios'
import
{
import
{
LogListData
,
LogListData
,
...
@@ -9,9 +9,11 @@ import {
...
@@ -9,9 +9,11 @@ import {
ShipmentForm
,
ShipmentForm
,
ShipmentOrderRes
,
ShipmentOrderRes
,
Tab
,
Tab
,
InspectionData
,
InspectionData
,
CountStatus
,
}
from
'@/types/api/order'
}
from
'@/types/api/order'
import
{
import
{
AccountStatementNote
,
AccountStatementNoteSearchForm
,
DeliveryNoteData
,
DeliveryNoteData
,
DeliveryNoteSearchForm
,
DeliveryNoteSearchForm
,
ProductionOrder
,
ProductionOrder
,
...
@@ -187,11 +189,11 @@ export function getDeliveryNoteList(
...
@@ -187,11 +189,11 @@ export function getDeliveryNoteList(
)
)
}
}
export
function
customJomallReconciliation
(
export
function
customJomallReconciliation
(
data
:
any
,
data
:
AccountStatementNoteSearchForm
,
currentPage
:
number
,
currentPage
:
number
,
pageSize
:
number
,
pageSize
:
number
,
)
{
)
{
return
axios
.
post
<
never
,
BasePaginationData
<
DeliveryNoteData
>>
(
return
axios
.
post
<
never
,
StatisticsData
<
AccountStatementNote
>>
(
'factory/customJomallReconciliation/list_page'
,
'factory/customJomallReconciliation/list_page'
,
{
{
...
data
,
...
data
,
...
@@ -238,7 +240,7 @@ export function getOrderByIdApi(id?: number) {
...
@@ -238,7 +240,7 @@ export function getOrderByIdApi(id?: number) {
)
)
}
}
export
function
getReconciliationAmount
(
id
?:
number
)
{
export
function
getReconciliationAmount
(
id
?:
number
)
{
return
axios
.
get
<
never
,
BaseRespData
<
OrderData
>>
(
return
axios
.
get
<
never
,
BaseRespData
<
CountStatus
[]
>>
(
'factory/customJomallReconciliation/getReconciliationAmount'
,
'factory/customJomallReconciliation/getReconciliationAmount'
,
{
{
params
:
{
params
:
{
...
@@ -276,7 +278,7 @@ export function updateReconciliation(
...
@@ -276,7 +278,7 @@ export function updateReconciliation(
data
,
data
,
)
)
}
}
export
function
getShipmentDetailsById
(
shipmentId
?:
number
)
{
export
function
getShipmentDetailsById
(
shipmentId
?:
string
)
{
return
axios
.
get
<
never
,
BaseRespData
<
any
>>
(
return
axios
.
get
<
never
,
BaseRespData
<
any
>>
(
'factory/customJomallReconciliation/getShipmentDetailsById'
,
'factory/customJomallReconciliation/getShipmentDetailsById'
,
{
{
...
...
src/components/splitDiv/splitDiv.vue
View file @
a925ab80
...
@@ -5,8 +5,8 @@ import 'splitpanes/dist/splitpanes.css'
...
@@ -5,8 +5,8 @@ import 'splitpanes/dist/splitpanes.css'
defineProps
({
defineProps
({
size
:
{
size
:
{
default
:
15
,
default
:
'15'
,
type
:
Number
type
:
String
}
}
})
})
</
script
>
</
script
>
...
...
src/types/api/deliveryNote.ts
View file @
a925ab80
...
@@ -10,6 +10,12 @@ export interface DeliveryNoteSearchForm {
...
@@ -10,6 +10,12 @@ export interface DeliveryNoteSearchForm {
namespace
?:
string
namespace
?:
string
shippingWay
?:
number
shippingWay
?:
number
}
}
export
interface
AccountStatementNoteSearchForm
{
status
?:
string
|
null
|
number
startTime
?:
string
endTime
?:
string
}
export
interface
DeliveryNoteData
{
export
interface
DeliveryNoteData
{
id
:
number
id
:
number
...
@@ -97,6 +103,7 @@ export interface ProductionOrder {
...
@@ -97,6 +103,7 @@ export interface ProductionOrder {
}
}
export
interface
AccountStatementNote
{
export
interface
AccountStatementNote
{
billNumber
?:
string
billNumber
?:
string
shipmentId
?:
string
shipmentNum
?:
string
shipmentNum
?:
string
dataVersion
?:
string
dataVersion
?:
string
carriageName
?:
string
carriageName
?:
string
...
...
src/types/api/index.ts
View file @
a925ab80
export
interface
BaseRespData
<
D
>
{
export
interface
BaseRespData
<
D
>
{
code
:
number
code
:
number
message
?:
string
message
?:
string
...
@@ -5,10 +6,25 @@ export interface BaseRespData<D> {
...
@@ -5,10 +6,25 @@ export interface BaseRespData<D> {
}
}
export
interface
PaginationData
<
D
>
{
export
interface
PaginationData
<
D
>
{
page
?:
PaginationData
<
D
>
total
:
number
total
:
number
size
:
number
size
:
number
current
:
number
current
:
number
records
:
D
[]
records
:
D
[]
}
}
export
interface
Statistics
<
D
>
{
sumNotPassNum
:
number
sumPassNum
:
number
sumShipmentNum
:
number
sumTotalPrice
:
number
page
:
{
total
:
number
size
:
number
current
:
number
records
:
D
[]
}
}
export
type
BasePaginationData
<
D
>
=
BaseRespData
<
PaginationData
<
D
>>
export
type
BasePaginationData
<
D
>
=
BaseRespData
<
PaginationData
<
D
>>
export
type
StatisticsData
<
D
>
=
BaseRespData
<
Statistics
<
D
>>
src/types/api/order.ts
View file @
a925ab80
...
@@ -12,6 +12,7 @@ export interface SearchForm {
...
@@ -12,6 +12,7 @@ export interface SearchForm {
status
?:
number
status
?:
number
subOrderNumber
:
string
subOrderNumber
:
string
}
}
export
interface
Tab
{
export
interface
Tab
{
status
:
string
status
:
string
statusCode
:
number
statusCode
:
number
...
@@ -19,6 +20,12 @@ export interface Tab {
...
@@ -19,6 +20,12 @@ export interface Tab {
quantity
:
number
quantity
:
number
}
}
export
interface
CountStatus
{
count
?:
number
status
?:
number
totalSum
?:
number
}
export
interface
OrderData
{
export
interface
OrderData
{
id
:
number
id
:
number
namespace
?:
string
namespace
?:
string
...
@@ -64,6 +71,7 @@ export interface OrderData {
...
@@ -64,6 +71,7 @@ export interface OrderData {
moreable
?:
boolean
moreable
?:
boolean
manuscriptStatus
?:
number
manuscriptStatus
?:
number
}
}
export
interface
ProductList
{
export
interface
ProductList
{
id
:
number
id
:
number
customOrderId
?:
number
customOrderId
?:
number
...
@@ -101,6 +109,7 @@ export interface MemoList {
...
@@ -101,6 +109,7 @@ export interface MemoList {
remark
?:
string
remark
?:
string
operatorTime
?:
string
operatorTime
?:
string
}
}
export
interface
SpanMethodProps
{
export
interface
SpanMethodProps
{
row
:
OrderData
row
:
OrderData
column
:
TableColumnCtx
<
OrderData
>
column
:
TableColumnCtx
<
OrderData
>
...
@@ -216,3 +225,26 @@ export interface InspectionData {
...
@@ -216,3 +225,26 @@ export interface InspectionData {
version
:
number
|
string
version
:
number
|
string
passCount
:
number
|
string
passCount
:
number
|
string
}
}
export
interface
Reconciliation
{
status
:
string
|
number
|
null
startTime
:
string
endTime
:
string
,
billNumber
?:
string
shipmentId
?:
string
shipmentNum
?:
string
dataVersion
?:
string
carriageName
?:
string
lanshouAddress
?:
string
totalPrice
?:
string
passNum
?:
string
lanshouPost
?:
string
notPassNum
?:
string
lanshouRegion
?:
string
orderNumber
?:
string
lanshouName
?:
string
lanshouPhone
?:
string
logisticsTracking
?:
string
totalAmount
?:
string
id
?:
number
}
src/utils/hooks/usePageList.ts
View file @
a925ab80
import
{
Ref
,
onMounted
,
ref
,
reactive
}
from
'vue'
import
{
Ref
,
onMounted
,
ref
}
from
'vue'
import
{
showError
}
from
'../ui'
import
{
showError
}
from
'../ui'
import
type
{
PaginationData
}
from
'@/types/api'
import
type
{
PaginationData
}
from
'@/types/api'
...
@@ -21,7 +21,7 @@ export default function usePageList<T>(options: UsePageListOptions<T>) {
...
@@ -21,7 +21,7 @@ export default function usePageList<T>(options: UsePageListOptions<T>) {
const
total
=
ref
(
0
)
const
total
=
ref
(
0
)
const
data
=
ref
<
T
[]
>
([])
as
Ref
<
T
[]
>
const
data
=
ref
<
T
[]
>
([])
as
Ref
<
T
[]
>
const
statistics
=
ref
(
options
.
statistics
||
false
)
const
statistics
=
ref
(
options
.
statistics
||
false
)
const
totalData
=
re
active
({
const
totalData
=
re
f
({
sumShipmentNum
:
0
,
sumShipmentNum
:
0
,
sumPassNum
:
0
,
sumPassNum
:
0
,
sumTotalPrice
:
0
,
sumTotalPrice
:
0
,
...
@@ -32,19 +32,20 @@ export default function usePageList<T>(options: UsePageListOptions<T>) {
...
@@ -32,19 +32,20 @@ export default function usePageList<T>(options: UsePageListOptions<T>) {
try
{
try
{
loading
.
value
=
true
loading
.
value
=
true
// Promise 链式调用
// Promise 链式调用
let
res
:
any
=
await
query
(
currentPage
.
value
,
pageSize
.
value
)
const
res
=
await
query
(
currentPage
.
value
,
pageSize
.
value
)
if
(
statistics
.
value
)
{
if
(
statistics
.
value
)
{
totalData
.
sumNotPassNum
=
res
.
sumNotPassNum
totalData
.
value
=
res
as
never
totalData
.
sumPassNum
=
res
.
sumPassNum
total
.
value
=
res
.
page
!
.
total
totalData
.
sumShipmentNum
=
res
.
sumShipmentNum
currentPage
.
value
=
res
.
page
!
.
current
totalData
.
sumTotalPrice
=
res
.
sumTotalPrice
pageSize
.
value
=
res
.
page
!
.
size
res
=
res
.
page
data
.
value
=
res
.
page
!
.
records
}
else
{
total
.
value
=
res
.
total
currentPage
.
value
=
res
.
current
pageSize
.
value
=
res
.
size
data
.
value
=
res
.
records
}
}
total
.
value
=
res
.
total
currentPage
.
value
=
res
.
current
pageSize
.
value
=
res
.
size
data
.
value
=
res
.
records
}
catch
(
error
)
{
}
catch
(
error
)
{
showError
(
error
)
showError
(
error
)
}
finally
{
}
finally
{
...
...
src/views/AccountStatementNote.vue
View file @
a925ab80
This diff is collapsed.
Click to expand it.
src/views/order/index.vue
View file @
a925ab80
This diff is collapsed.
Click to expand it.
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