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
75a40f4a
Commit
75a40f4a
authored
Dec 11, 2025
by
sunyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
打印普货生产单
parent
7823de14
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
83 additions
and
1 deletions
+83
-1
src/api/podUsOrder.ts
+6
-0
src/views/order/podUs/index.vue
+77
-1
No files found.
src/api/podUsOrder.ts
View file @
75a40f4a
...
...
@@ -188,6 +188,12 @@ export function printProductionOrderApi(orderIds: number[]) {
orderIds
,
)
}
export
function
printNormalProductionOrderApi
(
orderIds
:
number
[])
{
return
axios
.
post
<
never
,
BaseRespData
<
string
>>
(
'factory/podJomallOrderProductUs/printNormalProducePdf'
,
orderIds
,
)
}
export
function
printPrintOrderApi
(
orderIds
:
number
[])
{
return
axios
.
post
<
never
,
BaseRespData
<
string
>>
(
'factory/podJomallOrderProductUs/printPickPdf'
,
...
...
src/views/order/podUs/index.vue
View file @
75a40f4a
...
...
@@ -901,6 +901,16 @@
</ElFormItem>
<ElFormItem
v-if=
"
status === 'WAIT_SHIPMENT'"
>
<span
class=
"item"
>
<ElButton
type=
"success"
@
click=
"printNormalProductionOrder(2, null)"
>
打印普胚生产单
</ElButton>
</span>
</ElFormItem>
<ElFormItem
v-if=
"
[
'STOCK_OUT',
'CREATE_LOGISTICS',
...
...
@@ -1583,7 +1593,7 @@
<div
v-if=
"
status === 'WAIT_SHIPMENT' &&
item.productMark
!== 'custom_normal
'
item.productMark
=== 'custom_part
'
"
style=
"
display: flex;
...
...
@@ -1600,6 +1610,26 @@
>
打印生产单
</el-button>
</div>
<div
v-if=
"
status === 'WAIT_SHIPMENT' &&
item.productMark === 'custom_normal' || item.productMark === 'normal'
"
style=
"
display: flex;
flex-direction: column;
align-items: start;
"
>
<el-button
link
size=
"small"
type=
"success"
style=
"height: 23px"
@
click=
"printNormalProductionOrder(1, item)"
>
打印普胚生产单
</el-button>
</div>
</div>
</div>
</div>
...
...
@@ -3091,6 +3121,7 @@ import {
downloadMaterialApi
,
updateExceptionOrderApi
,
printProductionOrderApi
,
printNormalProductionOrderApi
,
getOrderDetailById
,
updateRemarkApi
,
getProductionClientApi
,
...
...
@@ -4871,6 +4902,51 @@ const printProductionOrder = async (
loading
.
close
()
}
}
const
printNormalProductionOrder
=
async
(
type
:
1
|
2
,
item
:
PodUsOrderListData
|
null
,
)
=>
{
if
(
type
===
2
&&
selection
.
value
.
length
===
0
)
{
return
ElMessage
.
warning
(
'请选择数据'
)
}
const
orderIds
:
number
[]
=
[]
if
(
type
===
1
){
orderIds
.
push
(
item
!
.
id
)
}
else
{
if
(
!
selection
.
value
.
length
)
{
return
ElMessage
.
warning
(
'请选择订单'
)
}
selection
.
value
.
forEach
((
s
)
=>
{
s
.
productList
&&
s
.
productList
.
forEach
((
p
)
=>
{
if
(
p
.
productMark
===
'normal'
||
p
.
productMark
===
'custom_normal'
)
{
orderIds
.
push
(
p
.
id
)
}
}
)
}
)
}
if
(
!
orderIds
.
length
)
{
ElMessage
.
warning
(
'暂无可打印的普货生产单'
)
return
}
const
loading
=
ElLoading
.
service
({
fullscreen
:
true
,
text
:
'操作中...'
,
background
:
'rgba(0, 0, 0, 0.3)'
,
}
)
try
{
const
res
=
await
printNormalProductionOrderApi
(
orderIds
)
if
(
res
.
code
!==
200
)
return
ElMessage
.
success
(
'操作成功'
)
window
.
open
(
filePath
+
res
.
message
)
}
catch
(
e
)
{
console
.
error
(
e
)
}
finally
{
loading
.
close
()
}
}
const
printPickingOrder
=
async
()
=>
{
if
(
cardSelection
.
value
.
length
===
0
)
{
return
ElMessage
.
warning
(
'请选择数据'
)
...
...
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