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
ae73ff91
Commit
ae73ff91
authored
Oct 11, 2025
by
wuqian
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev'
parents
21f7f9d0
b894be94
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
81 additions
and
24 deletions
+81
-24
src/api/podCnOrder.ts
+36
-7
src/types/api/podCnOrder.ts
+8
-0
src/types/api/podMakeOrder.ts
+2
-1
src/views/order/podCN/PodDistributionOrder.vue
+0
-0
src/views/order/podCN/PodMakeOrder.vue
+14
-13
src/views/order/podCN/index.vue
+21
-3
No files found.
src/api/podCnOrder.ts
View file @
ae73ff91
...
...
@@ -15,7 +15,7 @@ import {
ProductionClient
,
}
from
'@/types/api/podUsOrder'
import
axios
from
'./axios'
import
{
PodMakeOrderData
}
from
'@/types/api/podMakeOrder'
import
{
PodMakeOrderData
,
OrderData
}
from
'@/types/api/podMakeOrder'
export
function
exportPodCnInfo
(
data
:
ExportParams
)
{
return
axios
.
post
<
never
,
BasePaginationData
<
never
>>
(
'factory/podJomallOrderCn/exportPodCnOrder'
,
...
...
@@ -56,7 +56,31 @@ export function getPackingCnDataApi(
},
)
}
export
function
getSingleQueryApi
(
code
:
string
,
factoryNo
:
number
,
warehouseId
:
number
|
string
,
)
{
return
axios
.
get
<
never
,
BaseRespData
<
OrderData
>>
(
'/factory/podJomallOrderCn/getPodDetailsBySkuOrNo'
,
{
params
:
{
podJomallCnNo
:
code
,
factoryNo
,
warehouseId
,
},
},
)
}
interface
LabelFile
{
filePath
?:
string
// 文件地址
fileData
?:
string
// base64 文件流(二选一)
}
export
function
getPrintLogisticLabelApi
(
id
?:
number
)
{
return
axios
.
get
<
never
,
BaseRespData
<
LabelFile
>>
(
`factory/podJomallOrderCn/printLogisticLabel?id=
${
id
}
`
,
)
}
// 超级播种墙配货 扫码放入箱子
export
function
getSuperPackingCnDataApi
(
code
:
string
,
...
...
@@ -290,14 +314,19 @@ export function getSuperPodBoxListApi(factoryNo: number | string) {
// 播种墙配货 打单完成
export
function
submitInspectionApi
(
data
:
{
id
:
number
;
version
?:
number
}[],
boxIndex
:
number
|
null
,
warehouseId
:
number
|
string
,
boxIndex
?:
number
|
null
,
)
{
const
params
=
new
URLSearchParams
()
// 先放 warehouseId,再放 boxIndex
params
.
set
(
'warehouseId'
,
String
(
warehouseId
))
if
(
boxIndex
!==
undefined
&&
boxIndex
!==
null
)
{
params
.
set
(
'box'
,
String
(
boxIndex
))
}
return
axios
.
post
<
never
,
BaseRespData
<
never
>>
(
`factory/podJomallOrderCn/podPrintOrderComplete?box=
${
boxIndex
}
&warehouseId=
${
warehouseId
}
`
,
{
orderParamList
:
data
,
},
`factory/podJomallOrderCn/podPrintOrderComplete?
${
params
.
toString
()}
`
,
{
orderParamList
:
data
},
)
}
// 超级播种墙配货 打单完成
...
...
src/types/api/podCnOrder.ts
View file @
ae73ff91
...
...
@@ -219,3 +219,10 @@ export interface CraftListData {
craftName
:
string
craftCode
:
string
}
export
interface
PackingData
{
podProductionNo
?:
string
;
// 生产单号(PSCD 开头)
jomallCustomNo
?:
string
;
// 一件定制号(16 位数字 或 S- 开头)
jomallPsdCustomNo
?:
string
;
// 满印定制号(JMSC/GCSC 开头)
podJomallNo
?:
string
;
// POD 平台号(JMPSC/GCPS 经过正则提取)
sku
?:
string
;
// 普通 SKU(兜底)
}
\ No newline at end of file
src/types/api/podMakeOrder.ts
View file @
ae73ff91
...
...
@@ -9,7 +9,8 @@ export interface OrderData {
shipmentsNote
?:
string
filePath
?:
string
fileData
?:
string
logisticsWayName
?:
string
logisticsWayName
?:
string
|
null
company
?:
string
|
null
orderStatus
?:
number
salesPlatform
?:
string
logisticsCompanyId
?:
number
...
...
src/views/order/podCN/PodDistributionOrder.vue
0 → 100644
View file @
ae73ff91
This diff is collapsed.
Click to expand it.
src/views/order/podCN/PodMakeOrder.vue
View file @
ae73ff91
...
...
@@ -263,7 +263,12 @@ const props = defineProps<{
printOrder
:
(
data
:
OrderData
,
callback
:
(
status
:
boolean
)
=>
void
)
=>
void
warehouseList
:
WarehouseListData
[]
}
>
()
const
emit
=
defineEmits
([
'update:modelValue'
,
'set-printer'
,
'refresh'
])
const
emit
=
defineEmits
([
'update:modelValue'
,
'set-printer'
,
'refresh'
,
'set-warehouseId'
,
])
const
visible
=
computed
({
get
()
{
return
props
.
modelValue
...
...
@@ -342,17 +347,12 @@ watch(visible, async (value: boolean) => {
if
(
value
)
{
podOrderDetailsData
.
value
=
{}
currentCode
=
''
// warehouseId.value = props.warehouseList[0].id
// _warehouseId.value = props.warehouseList[0].id
const
locaclWarehouseId
=
sessionStorage
.
getItem
(
'locaclCnWarehouseId'
)
// 设置仓库ID,优先使用本地存储的值,否则使用列表中的第一个仓库
warehouseId
.
value
=
locaclWarehouseId
?
JSON
.
parse
(
locaclWarehouseId
)
:
props
.
warehouseList
[
0
].
id
_warehouseId
.
value
=
locaclWarehouseId
?
JSON
.
parse
(
locaclWarehouseId
)
:
props
.
warehouseList
[
0
].
id
const
localRaw
=
sessionStorage
.
getItem
(
'locaclCnWarehouseId'
)
const
localId
=
localRaw
?
JSON
.
parse
(
localRaw
)
:
''
/* 先找一次,确认本地值是否存在于列表 */
const
hit
=
props
.
warehouseList
.
find
((
w
)
=>
w
.
id
===
localId
)
warehouseId
.
value
=
hit
?
localId
:
props
.
warehouseList
[
0
].
id
_warehouseId
.
value
=
hit
?
localId
:
props
.
warehouseList
[
0
].
id
if
(
userStore
.
user
?.
factory
.
id
)
{
try
{
await
socket
.
init
(
...
...
@@ -648,8 +648,8 @@ const submitInspection = async (callback: () => void) => {
try
{
const
res
=
await
submitInspectionApi
(
data
,
boxIndex
.
value
,
warehouseId
.
value
,
boxIndex
.
value
,
)
if
(
res
.
code
!==
200
)
return
ElMessage
.
warning
(
res
.
message
)
...
...
@@ -961,6 +961,7 @@ const handleWarehouseChange = (value: string | number) => {
})
}
warehouseId
.
value
=
value
emit
(
'set-warehouseId'
,
value
)
socket
.
send
({
code
:
'STARTORDERCN'
,
factoryNo
:
userStore
.
user
?.
factory
.
id
,
...
...
src/views/order/podCN/index.vue
View file @
ae73ff91
...
...
@@ -497,10 +497,15 @@
</ElButton>
</span>
<span
v-if=
"status === 'WAIT_SHIPMENT'"
class=
"item"
>
<ElButton
type=
"
warning
"
@
click=
"printPodOrder"
>
<ElButton
type=
"
success
"
@
click=
"printPodOrder"
>
播种墙配货
</ElButton>
</span>
<span
v-if=
"status === 'WAIT_SHIPMENT'"
class=
"item"
>
<ElButton
type=
"primary"
@
click=
"podDistributionOrderShow"
>
单件打单
</ElButton>
</span>
<span
v-if=
"status === 'WAIT_SHIPMENT' && isSuperFactory"
class=
"item"
...
...
@@ -929,7 +934,7 @@
>
<img
:src=
"img.url"
alt=
"商品图片"
alt=
"商品图片
222
"
style=
"cursor: pointer"
@
click=
"handlePictureCardPreview(img.url)"
/>
...
...
@@ -2135,6 +2140,14 @@
@
set
-
warehouse
-
id
=
"handleWarehouseIdChange"
@
refresh
=
"onFastRefresh"
/>
<!--
:
print
-
order
-
one
=
"printOrderOne"
-->
<
PodDistributionOrder
v
-
model
=
"podDistributionOrderVisible"
:
print
-
order
=
"printOrder"
:
warehouse
-
list
=
"warehouseList"
@
set
-
printer
=
"handlePrinterChange"
@
refresh
=
"onFastRefresh"
/>
<
SuperPodMakeOrder
v
-
model
=
"superPodOrderVisible"
:
print
-
order
=
"printOrder"
...
...
@@ -2476,6 +2489,7 @@ import { computed, onMounted, ref, nextTick, reactive } from 'vue'
import
FastProduction
from
'./FastProduction.vue'
import
{
filePath
}
from
'@/api/axios'
import
PodMakeOrder
from
'./PodMakeOrder.vue'
import
PodDistributionOrder
from
'./PodDistributionOrder.vue'
import
SuperPodMakeOrder
from
'./SuperPodMakeOrder.vue'
import
{
OrderData
}
from
'@/types/api/podMakeOrder'
import
useLodop
,
{
LODOPObject
}
from
'@/utils/hooks/useLodop'
...
...
@@ -4335,7 +4349,10 @@ const printPodOrder = async () => {
sheetPrinter
.
value
=
lodop
.
GET_PRINTER_NAME
(
0
)
podOrderVisible
.
value
=
true
}
const
podDistributionOrderVisible
=
ref
(
false
)
const
podDistributionOrderShow
=
async
()
=>
{
podDistributionOrderVisible
.
value
=
true
}
const
superPodOrderVisible
=
ref
(
false
)
const
printSuperPodOrder
=
async
()
=>
{
const
lodop
=
getCLodop
(
null
,
null
)
...
...
@@ -4712,6 +4729,7 @@ const lodopCall = (fn: (lodop: LODOPObject) => string) => {
_lodopCallback
[
id
]
=
resolve
}
)
}
const
downloadPDF
=
(
url
:
string
)
=>
{
if
(
!
/^https
?
:/i
.
test
(
url
))
return
url
let
xhr
,
...
...
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