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
92f1ca67
Commit
92f1ca67
authored
Mar 17, 2026
by
qinjianhui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 工厂订单页面整体布局
parent
731d8d3c
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
171 additions
and
0 deletions
+171
-0
src/api/factoryOrderNew.ts
+80
-0
src/types/api/factoryOrderNew.ts
+91
-0
src/views/order/factoryOrderNew/index.vue
+0
-0
No files found.
src/api/factoryOrderNew.ts
0 → 100644
View file @
92f1ca67
import
axios
from
'./axios'
import
type
{
BasePaginationData
,
BaseRespData
}
from
'@/types/api'
import
type
{
FactoryOrderNewListData
,
LogListData
,
ProductListData
,
SearchForm
,
StatusTreeNode
,
}
from
'@/types/api/factoryOrderNew'
// 左侧状态树 - 先保留接口定义,实际数据在前端写死
export
function
getStatusTreeApi
()
{
return
axios
.
get
<
never
,
BaseRespData
<
StatusTreeNode
[]
>>
(
'factory/orderNew/getStatusTree'
,
)
}
export
function
getFactoryOrderNewListApi
(
data
:
SearchForm
,
currentPage
:
number
,
pageSize
:
number
,
statusCode
?:
string
,
)
{
return
axios
.
post
<
never
,
BasePaginationData
<
FactoryOrderNewListData
>>
(
'factory/orderNew/list_page'
,
{
...
data
,
currentPage
,
pageSize
,
statusCode
,
},
)
}
export
function
getFactoryOrderNewDetailApi
(
id
:
number
|
string
)
{
return
axios
.
get
<
never
,
BaseRespData
<
ProductListData
[]
>>
(
'factory/orderNew/detail'
,
{
params
:
{
id
},
},
)
}
export
function
getFactoryOrderNewLogApi
(
id
:
number
|
string
)
{
return
axios
.
get
<
never
,
BaseRespData
<
LogListData
[]
>>
(
'factory/orderNew/log'
,
{
params
:
{
id
},
},
)
}
export
function
confirmOrderApi
(
ids
:
(
number
|
string
)[])
{
return
axios
.
post
<
never
,
BaseRespData
<
void
>>
(
'factory/orderNew/confirm'
,
{
ids
},
)
}
export
function
cancelOrderApi
(
ids
:
(
number
|
string
)[])
{
return
axios
.
post
<
never
,
BaseRespData
<
void
>>
(
'factory/orderNew/cancel'
,
{
ids
},
)
}
export
function
refreshProductInfoApi
(
ids
:
(
number
|
string
)[])
{
return
axios
.
post
<
never
,
BaseRespData
<
void
>>
(
'factory/orderNew/refreshProductInfo'
,
{
ids
},
)
}
export
function
transferOldFlowApi
(
ids
:
(
number
|
string
)[])
{
return
axios
.
post
<
never
,
BaseRespData
<
void
>>
(
'factory/orderNew/transferOldFlow'
,
{
ids
},
)
}
src/types/api/factoryOrderNew.ts
0 → 100644
View file @
92f1ca67
export
interface
StatusTreeNode
{
code
:
string
remark
:
string
count
:
number
children
?:
StatusTreeNode
[]
}
export
interface
SearchForm
{
platform
?:
string
craftCode
?:
string
|
string
[]
stockSku
?:
string
styleNo
?:
string
batchNo
?:
string
orderNumber
?:
string
customerOrderNumber
?:
string
shopOrderNumber
?:
string
productType
?:
string
|
number
multi
?:
boolean
|
null
timeType
?:
number
|
null
startTime
?:
string
|
null
endTime
?:
string
|
null
logisticsWayCode
?:
string
receiverCountry
?:
string
|
string
[]
factoryOrderNumber
?:
string
userMark
?:
string
sku
?:
string
trackingNumber
?:
string
replaceShipment
?:
number
|
string
shipmentType
?:
number
|
string
tagsIdArr
?:
string
[]
productMark
?:
string
source
?:
string
size
?:
string
logisticsCompanyCode
?:
string
blocking
?:
boolean
standardDesignImage
?:
boolean
}
export
interface
FactoryOrderNewListData
{
id
:
number
orderNumber
?:
string
customerOrderNumber
?:
string
shopOrderNumber
?:
string
status
?:
string
statusName
?:
string
customerTags
?:
{
name
:
string
}[]
logisticsWayCode
?:
string
logisticsWayName
?:
string
totalWeight
?:
number
totalProductNum
?:
number
logisticsSourceNo
?:
string
receiverName
?:
string
receiverPhone
?:
string
receiverCode
?:
string
receiverAddress
?:
string
createTime
?:
string
acceptTime
?:
string
finishTime
?:
string
}
export
interface
ProductListData
{
id
:
number
orderId
?:
number
productImage
?:
string
productName
?:
string
variantSku
?:
string
stockSku
?:
string
craftCode
?:
string
craftName
?:
string
styleNo
?:
string
price
?:
number
quantity
?:
number
weight
?:
number
availableQuantity
?:
number
stockQuantity
?:
number
occupiedQuantity
?:
number
customsNameEnglish
?:
string
customsNameChinese
?:
string
customsWeight
?:
number
customsValue
?:
number
remark
?:
string
}
export
interface
LogListData
{
id
:
number
bizId
?:
number
|
string
employeeName
?:
string
description
?:
string
createTime
?:
string
}
src/views/order/factoryOrderNew/index.vue
View file @
92f1ca67
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