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
44f61af3
Commit
44f61af3
authored
Aug 21, 2025
by
linjinhong
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/dev'
parents
2ac0682b
0f5c280a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
74 additions
and
15 deletions
+74
-15
src/api/podUsOrder.ts
+11
-0
src/views/order/podUs/index.vue
+63
-15
No files found.
src/api/podUsOrder.ts
View file @
44f61af3
...
...
@@ -574,3 +574,14 @@ export function printPickPdfByBatchNumberApi(params: {
},
)
}
// 打印生产单item
export
function
printProductionPdfByBatchNumberApi
(
params
:
{
batchArrangeNumber
:
string
})
{
return
axios
.
get
<
never
,
BaseRespData
<
never
>>
(
`factory/podJomallOrderProductUs/printProductionPdfByBatchNumber`
,
{
params
,
},
)
}
src/views/order/podUs/index.vue
View file @
44f61af3
...
...
@@ -262,7 +262,6 @@
<ElButton
type=
"primary"
@
click=
"search"
>
查询
</ElButton>
</span>
</ElFormItem>
<ElFormItem
v-if=
"
status === 'PICKING' ||
...
...
@@ -270,6 +269,33 @@
status === 'IN_PRODUCTION'
"
>
<ElDropdown>
<el-button
type=
"primary"
>
DTF排版
<el-icon
class=
"el-icon--right"
><ArrowDown
/></el-icon>
</el-button>
<
template
#
dropdown
>
<ElDropdownMenu>
<ElDropdownItem
:loading=
"tifDownloadLoading"
@
click=
"downloadTif('png')"
>
TIF排版
</ElDropdownItem
>
<ElDropdownItem
:loading=
"pngDownloadLoading"
@
click=
"downloadTif('png')"
>
PNG排版
</ElDropdownItem
>
</ElDropdownMenu></
template
></ElDropdown
></ElFormItem
>
<!-- <ElFormItem
v-if="
status === 'PICKING' ||
status === 'TO_BE_REPLENISHMENT' ||
status === 'IN_PRODUCTION'
"
>
<span class="item">
<ElButton
:loading="tifDownloadLoading"
...
...
@@ -296,7 +322,7 @@
PNG排版
</ElButton>
</span>
</ElFormItem>
</ElFormItem>
-->
<ElFormItem
v-if=
"status === 'TO_BE_CONFIRMED'"
>
<span
class=
"item"
>
<ElButton
type=
"success"
@
click=
"confirmProduct"
>
...
...
@@ -1449,7 +1475,7 @@
<
ElButton
link
type
=
"primary"
@
click
=
"printPickingOrderItem(row)"
@
click
=
"printPickingOrderItem(row
, 1
)"
>
打印拣货单
<
/ElButton
>
...
...
@@ -1457,6 +1483,15 @@
<
span
class
=
"operate-item"
>
<
ElButton
link
type
=
"primary"
@
click
=
"printPickingOrderItem(row, 2)"
>
打印生产单
<
/ElButton
>
<
/span
>
<
span
class
=
"operate-item"
>
<
ElButton
link
type
=
"warning"
:
loading
=
"reComposingLoadingMap[row.id]"
@
click
=
"handleReComposingDesign(row)"
...
...
@@ -2342,6 +2377,7 @@ import {
get17TrackInfoApi
,
getAccountCodeByFactoryIdApi
,
printPickPdfByBatchNumberApi
,
printProductionPdfByBatchNumberApi
,
}
from
'@/api/podUsOrder'
import
{
BaseRespData
}
from
'@/types/api'
...
...
@@ -2780,12 +2816,12 @@ const tableColumns = computed(() => {
{
label
:
'订单数量'
,
prop
:
'productNum'
,
width
:
10
0
,
width
:
9
0
,
align
:
'center'
,
}
,
{
label
:
'素材数量'
,
width
:
12
0
,
width
:
9
0
,
prop
:
'materialNum'
,
align
:
'center'
,
}
,
...
...
@@ -2797,21 +2833,21 @@ const tableColumns = computed(() => {
}
,
{
label
:
'失败原因'
,
minWidth
:
30
0
,
minWidth
:
25
0
,
prop
:
'failReason'
,
slot
:
'failReason'
,
align
:
'left'
,
}
,
{
label
:
'创建时间'
,
width
:
20
0
,
width
:
18
0
,
prop
:
'createTime'
,
slot
:
'createTime'
,
align
:
'center'
,
}
,
{
label
:
'完成时间'
,
width
:
20
0
,
width
:
18
0
,
prop
:
'finishTime'
,
slot
:
'finishTime'
,
align
:
'center'
,
...
...
@@ -2826,7 +2862,7 @@ const tableColumns = computed(() => {
{
label
:
'操作'
,
slot
:
'operate'
,
width
:
3
50
,
width
:
4
50
,
align
:
'center'
,
fixed
:
'right'
,
prop
:
'operate'
,
...
...
@@ -3540,7 +3576,10 @@ const printPickingOrder = async () => {
loading
.
close
()
}
}
const
printPickingOrderItem
=
async
(
row
:
{
batchArrangeNum
:
string
}
)
=>
{
const
printPickingOrderItem
=
async
(
row
:
{
batchArrangeNum
:
string
}
,
type
:
number
,
)
=>
{
console
.
log
(
333
,
row
)
const
loading
=
ElLoading
.
service
({
...
...
@@ -3548,13 +3587,22 @@ const printPickingOrderItem = async (row: { batchArrangeNum: string }) => {
text
:
'操作中...'
,
background
:
'rgba(0, 0, 0, 0.3)'
,
}
)
try
{
const
res
=
await
printPickPdfByBatchNumberApi
({
batchArrangeNumber
:
row
.
batchArrangeNum
,
}
)
if
(
res
.
code
!==
200
)
return
let
res
if
(
type
===
1
)
{
res
=
await
printPickPdfByBatchNumberApi
({
batchArrangeNumber
:
row
.
batchArrangeNum
,
}
)
}
else
if
(
type
===
2
)
{
res
=
await
printProductionPdfByBatchNumberApi
({
batchArrangeNumber
:
row
.
batchArrangeNum
,
}
)
}
if
(
res
?.
code
!==
200
)
return
ElMessage
.
success
(
'操作成功'
)
window
.
open
(
filePath
+
res
.
message
)
window
.
open
(
filePath
+
res
?
.
message
)
}
catch
(
e
)
{
console
.
error
(
e
)
}
finally
{
...
...
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