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
c9cc32d2
Commit
c9cc32d2
authored
Mar 27, 2026
by
qinjianhui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 调整文件结构
parent
d18281a3
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
274 additions
and
84 deletions
+274
-84
src/api/factoryOrderNew.ts
+13
-24
src/types/api/order/common/index.ts
+6
-0
src/types/api/order/factoryOrderNew.ts
+239
-0
src/views/order/components/ResultInfo.vue
+4
-10
src/views/order/factoryOrderNew/index.vue
+12
-50
No files found.
src/api/factoryOrderNew.ts
View file @
c9cc32d2
...
...
@@ -12,6 +12,7 @@ import type {
SearchForm
,
StatusTreeNode
,
}
from
'@/types/api/factoryOrderNew'
import
{
ResultInfoDataItem
}
from
'@/types/api/order/common'
export
function
getPodOrderStateGroupListApi
()
{
return
axios
.
get
<
never
,
BaseRespData
<
StatusTreeNode
[]
>>
(
'factory/podOrder/findStateGroupList'
,
...
...
@@ -110,21 +111,14 @@ export function confirmOrderWithWarehouseApi(
warehouseId
:
number
|
string
,
warehouseName
:
string
,
)
{
return
axios
.
post
<
never
,
BaseRespData
<
{
factoryOrderNumber
?:
string
message
?:
string
id
:
number
|
string
status
?:
boolean
}[]
>
>
(
'factory/podOrder/ordersAccepted'
,
{
podOrderIds
:
ids
,
warehouseId
,
warehouseName
,
})
return
axios
.
post
<
never
,
BaseRespData
<
ResultInfoDataItem
[]
>>
(
'factory/podOrder/ordersAccepted'
,
{
podOrderIds
:
ids
,
warehouseId
,
warehouseName
,
},
)
}
export
function
cancelOrderWithReasonApi
(
...
...
@@ -390,15 +384,10 @@ export function applyForReplenishByIdApi(
}
export
function
completeDeliveryApi
(
ids
:
(
number
|
string
)[])
{
return
axios
.
post
<
never
,
BaseRespData
<
{
id
:
number
|
string
status
:
boolean
factoryOrderNumber
:
string
message
:
string
}[]
>
>
(
'factory/podOrderOperation/completeDelivery'
,
ids
)
return
axios
.
post
<
never
,
BaseRespData
<
ResultInfoDataItem
[]
>>
(
'factory/podOrderOperation/completeDelivery'
,
ids
,
)
}
export
function
getByOperationNoLogApi
(
operationNo
:
string
)
{
...
...
src/types/api/order/common/index.ts
0 → 100644
View file @
c9cc32d2
export
interface
ResultInfoDataItem
{
id
:
string
|
number
status
?:
boolean
factoryOrderNumber
?:
string
message
?:
string
}
src/types/api/order/factoryOrderNew.ts
0 → 100644
View file @
c9cc32d2
export
interface
StatusTreeNode
{
status
:
string
statusName
:
string
quantity
:
number
children
:
StatusTreeNode
[]
|
null
}
export
interface
SearchForm
{
platform
?:
string
craftCode
?:
string
|
string
[]
thirdSkuCode
?:
string
supplierProductNo
?:
string
batchArrangeNumber
?:
string
orderNumber
?:
string
customerOrderNumber
?:
string
shopOrderNumber
?:
string
productMark
?:
string
|
number
|
(
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
[]
source
?:
string
size
?:
string
logisticsCompanyCode
?:
string
interceptStatus
?:
boolean
standardDesignImage
?:
number
productMarkList
?:
string
[]
}
export
interface
FactoryOrderNewListData
{
id
:
number
factoryOrderNumber
?:
string
factoryNo
?:
number
factoryCode
?:
string
factoryCountryCode
?:
string
warehouseId
?:
number
warehouseName
?:
string
namespace
?:
string
status
?:
string
platform
?:
string
shopNumber
?:
string
weight
?:
number
productAmount
?:
number
totalAmount
?:
number
productNum
?:
number
shipmentType
?:
number
expressSheet
?:
string
trackingNumber
?:
string
processNumber
?:
string
userMark
?:
string
receiverName
?:
string
receiverPhone
?:
string
receiverCountry
?:
string
receiverProvince
?:
string
receiverCity
?:
string
receiverDistrict
?:
string
receiverAddress1
?:
string
receiverAddress2
?:
string
receiverPostCode
?:
string
trackStatus
?:
number
prepaidAmount
?:
number
pause
?:
boolean
serviceAmount
?:
number
mixed
?:
boolean
tagsId
?:
string
source
?:
string
logisticsCompanyName
?:
string
logisticsCompanyCode
?:
string
selfOwned
?:
boolean
createTime
?:
string
updateTime
?:
string
version
?:
number
totalCustomsWeight
?:
number
totalCustomsValue
?:
number
statusName
?:
string
thirdOrderNumber
?:
string
}
export
interface
ProductListData
{
id
:
number
podOrderId
:
number
factoryCode
?:
string
productName
?:
string
baseSku
?:
string
variantSku
?:
string
variantImage
?:
string
variant_image
?:
string
productMark
?:
string
diyId
?:
string
templateType
?:
number
customTemplateItemId
?:
number
endProductId
?:
string
craftSource
?:
number
craftCode
?:
string
craftName
?:
string
craftType
?:
string
customizedQuantity
:
number
categoryId
?:
number
categoryName
?:
string
productPrice
?:
number
templatePrice
?:
number
craftPrice
?:
number
imageAry
?:
string
designImages
?:
string
trimDesignImages
?:
string
sizeType
?:
number
num
?:
number
passNum
?:
number
notPassNum
?:
number
payAmount
?:
number
weight
?:
number
createTime
?:
string
updateTime
?:
string
version
?:
number
remark
?:
string
}
export
interface
operateOrderListData
{
id
:
number
operationNo
?:
string
podOrderId
?:
number
podOrderNo
?:
string
podOrderProductId
?:
number
baseSku
?:
string
variantSku
?:
string
variantImage
?:
string
thirdSpuCode
?:
string
thirdSkuCode
?:
string
supplierProductNo
?:
string
productName
?:
string
productMark
?:
string
customizedQuantity
?:
number
quantity
?:
number
isReplenishment
?:
boolean
totalProductionNum
?:
number
status
?:
string
outOfStock
?:
boolean
arrange
?:
boolean
version
?:
number
createTime
?:
string
updateTime
?:
string
factoryNo
?:
number
factoryCode
?:
string
factoryCountryCode
?:
string
warehouseId
?:
number
namespace
?:
string
statusName
?:
string
[
key
:
string
]:
unknown
}
export
interface
LogListData
{
id
:
number
bizId
?:
number
|
string
employeeName
?:
string
description
?:
string
createTime
?:
string
}
export
interface
BatchManageData
{
id
:
number
factoryId
?:
number
batchArrangeNum
?:
string
billType
?:
string
url
?:
string
tiffUrl
?:
string
syntheticStatus
?:
boolean
downloadStatus
?:
boolean
productNum
?:
number
materialNum
?:
number
craftType
?:
string
employeeAccount
?:
string
employeeId
?:
number
createTime
?:
string
failReason
?:
string
failTime
?:
string
automaticComposing
?:
boolean
composingParam
?:
string
printProductOrder
?:
boolean
printPickOrder
?:
boolean
prnUrl
?:
string
prnDownloadStatus
?:
string
enableArrange
?:
boolean
standardDesignImage
?:
number
}
export
interface
RestockData
{
id
:
number
warehouseName
?:
string
skuImage
?:
string
productName
?:
string
styleNo
?:
string
stockSku
?:
string
shortageQuantity
?:
number
availableQuantity
?:
number
stockQuantity
?:
number
occupiedQuantity
?:
number
}
export
interface
PickCompleteData
{
id
:
number
warehouseName
?:
string
skuImage
?:
string
productName
?:
string
supplierProductNo
?:
string
thirdSkuCode
?:
string
selectedQuantity
?:
number
availableInventory
?:
number
inventory
?:
number
producingQuantity
?:
number
occupyInventory
?:
number
pickingStatus
?:
string
availableOrderIds
?:
number
[]
allOrderIds
:
number
[]
}
export
interface
PickFailData
{
id
:
number
warehouseName
?:
string
skuImage
?:
string
productName
?:
string
styleNo
?:
string
stockSku
?:
string
currentStock
?:
number
occupiedQuantity
?:
number
currentAvailableStock
?:
number
producingQuantity
?:
number
suggestOutQuantity
?:
number
afterOutStock
?:
number
afterOutOccupied
?:
number
afterOutAvailable
?:
number
}
src/views/order/components/ResultInfo.vue
View file @
c9cc32d2
...
...
@@ -53,17 +53,11 @@
import
{
ref
,
watch
}
from
'vue'
import
{
copyText
}
from
'@/utils/index'
import
{
ResultInfoDataItem
}
from
'@/types/api/order/common'
;
interface
IList
{
id
:
string
|
number
shopNumber
?:
string
factoryOrderNumber
?:
string
message
:
string
status
:
boolean
}
const
props
=
withDefaults
(
defineProps
<
{
list
:
IList
[]
list
:
ResultInfoDataItem
[]
}
>
(),
{
list
:
()
=>
[],
...
...
@@ -73,7 +67,7 @@ const props = withDefaults(
const
resultDialog
=
ref
(
false
)
const
isIndeterminate
=
ref
(
false
)
const
checkAll
=
ref
(
false
)
const
selectedList
=
ref
<
IList
[]
>
([])
const
selectedList
=
ref
<
ResultInfoDataItem
[]
>
([])
let
key
=
''
// 显示弹窗
const
showDialog
=
(
type
?:
string
)
=>
{
...
...
@@ -161,7 +155,7 @@ defineExpose({
showDialog
,
})
const
emits
=
defineEmits
<
{
(
e
:
'confirm'
,
data
:
IList
[]):
void
(
e
:
'confirm'
,
data
:
ResultInfoDataItem
[]):
void
}
>
()
</
script
>
...
...
src/views/order/factoryOrderNew/index.vue
View file @
c9cc32d2
...
...
@@ -884,7 +884,7 @@ import type {
ProductListData
,
SearchForm
,
StatusTreeNode
,
}
from
'@/types/api/factoryOrderNew'
}
from
'@/types/api/
order/
factoryOrderNew'
import
platformJson
from
'../../../json/platform.json'
import
{
getFactoryOrderNewDetailApi
,
...
...
@@ -944,6 +944,7 @@ import UpdateCustomDeclarationInfoDialog from '@/views/order/components/UpdateCu
import
WeightDialog
from
'@/views/order/components/WeightDialog.vue'
import
FastProduction
from
'@/views/order/components/FastProduction.vue'
import
PodMakeOrder
from
'@/views/order/podUs/PodMakeOrder.vue'
import
{
ResultInfoDataItem
}
from
'@/types/api/order/common'
const
cardLayoutStatuses
=
[
'PENDING_SCHEDULE'
,
...
...
@@ -981,14 +982,7 @@ const suspendedTabs = [
{
label
:
'其他'
,
value
:
'OTHER'
,
count
:
0
}
,
]
const
suspendedSubTab
=
ref
(
'CUSTOMER_INTERCEPT'
)
const
resultInfo
=
ref
<
{
id
:
string
|
number
status
:
boolean
factoryOrderNumber
?:
string
message
:
string
}
[]
>
([])
const
resultInfo
=
ref
<
ResultInfoDataItem
[]
>
([])
const
resultRefs
=
ref
()
const
treeRef
=
ref
()
const
searchForm
=
ref
<
SearchForm
>
({
}
)
...
...
@@ -1675,25 +1669,11 @@ const handleConfirmOrder = () => {
if
(
!
ensureSelection
())
return
confirmOrderDialogRef
.
value
?.
open
(
getSelectedIds
())
}
const
openResultInfoDialog
=
(
data
:
{
factoryOrderNumber
?:
string
message
?:
string
id
:
number
|
string
status
?:
boolean
}
[],
)
=>
{
const
openResultInfoDialog
=
(
data
:
ResultInfoDataItem
[])
=>
{
nextTick
(()
=>
{
const
isSuccess
=
data
.
every
((
item
)
=>
item
.
status
)
if
(
!
isSuccess
)
{
resultInfo
.
value
=
data
.
filter
((
item
)
=>
!
item
.
status
)
.
map
((
item
)
=>
({
id
:
item
.
id
,
status
:
item
.
status
??
false
,
factoryOrderNumber
:
item
.
factoryOrderNumber
??
''
,
message
:
item
.
message
??
''
,
}
))
resultInfo
.
value
=
data
.
filter
((
item
)
=>
!
item
.
status
)
resultRefs
.
value
?.
showDialog
()
}
else
{
refreshCurrentView
({
isRefreshTree
:
true
}
)
...
...
@@ -1707,7 +1687,9 @@ const handleCancelOrder = () => {
const
handleRefreshProductInfo
=
async
()
=>
{
if
(
!
ensureSelection
())
return
try
{
await
ElMessageBox
.
confirm
(
'确定刷新商品信息吗?'
,
'提示'
,
{
type
:
'warning'
}
)
await
ElMessageBox
.
confirm
(
'确定刷新商品信息吗?'
,
'提示'
,
{
type
:
'warning'
,
}
)
}
catch
{
return
}
...
...
@@ -1778,14 +1760,8 @@ const handleLogisticsCommand = async (command: string) => {
if
(
Array
.
isArray
(
res
.
data
))
{
const
isSuccess
=
res
.
data
.
every
((
item
)
=>
item
.
status
)
if
(
!
isSuccess
)
{
resultInfo
.
value
=
res
.
data
.
filter
((
item
)
=>
!
item
.
status
)
.
map
((
item
)
=>
({
id
:
item
.
id
,
status
:
item
.
status
??
false
,
factoryOrderNumber
:
item
.
factoryOrderNumber
??
''
,
message
:
item
.
message
??
''
,
}
))
resultInfo
.
value
=
res
.
data
.
filter
((
item
)
=>
!
item
.
status
)
resultRefs
.
value
?.
showDialog
()
}
else
{
refreshCurrentView
()
...
...
@@ -2203,24 +2179,10 @@ const getOperationByNo = (operationNo: string) =>
const
completeOperationById
=
(
ids
:
number
[])
=>
completeDeliveryApi
(
ids
)
const
downloadOperationById
=
(
ids
:
number
[])
=>
downloadOperationMaterialApi
(
ids
)
const
handleFastProductionSuccess
=
(
data
:
{
factoryOrderNumber
?:
number
id
:
number
message
?:
string
status
?:
boolean
}
[],
)
=>
{
const
handleFastProductionSuccess
=
(
data
:
ResultInfoDataItem
[])
=>
{
const
isSuccess
=
data
.
every
((
item
)
=>
item
.
status
)
if
(
!
isSuccess
)
{
resultInfo
.
value
=
data
.
filter
((
item
)
=>
!
item
.
status
)
.
map
((
item
)
=>
({
id
:
item
.
id
,
status
:
item
.
status
??
false
,
factoryOrderNumber
:
item
.
factoryOrderNumber
?
String
(
item
.
factoryOrderNumber
)
:
''
,
message
:
item
.
message
??
''
,
}
))
resultInfo
.
value
=
data
.
filter
((
item
)
=>
!
item
.
status
)
resultRefs
.
value
?.
showDialog
()
}
}
...
...
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