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
0fdc9778
Commit
0fdc9778
authored
Jan 20, 2026
by
zhuzhequan
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev_replenishment' into 'release'
feat: CN & US 订单 打印生产单接口替换 See merge request
!142
parents
d840ce93
7ac3a66b
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
37 deletions
+14
-37
src/api/podCnOrder.ts
+2
-2
src/api/podUsOrder.ts
+2
-2
src/views/order/podCN/index.vue
+5
-1
src/views/order/podUs/index.vue
+5
-32
No files found.
src/api/podCnOrder.ts
View file @
0fdc9778
...
@@ -246,9 +246,9 @@ export function productionQueryApi(id: number, podJomallOrderCnId: number) {
...
@@ -246,9 +246,9 @@ export function productionQueryApi(id: number, podJomallOrderCnId: number) {
},
},
)
)
}
}
export
function
printProductionOrderApi
(
orderIds
:
number
[])
{
export
function
printProductionOrderApi
(
url
:
string
,
orderIds
:
number
[])
{
return
axios
.
post
<
never
,
BaseRespData
<
string
>>
(
return
axios
.
post
<
never
,
BaseRespData
<
string
>>
(
'factory/podJomallOrderProductCn/printProducePdf'
,
url
,
orderIds
,
orderIds
,
)
)
}
}
...
...
src/api/podUsOrder.ts
View file @
0fdc9778
...
@@ -179,9 +179,9 @@ export function productionQueryApi(id: number, podJomallOrderUsId: number) {
...
@@ -179,9 +179,9 @@ export function productionQueryApi(id: number, podJomallOrderUsId: number) {
},
},
)
)
}
}
export
function
printProductionOrderApi
(
orderIds
:
number
[])
{
export
function
printProductionOrderApi
(
url
:
string
,
orderIds
:
number
[])
{
return
axios
.
post
<
never
,
BaseRespData
<
string
>>
(
return
axios
.
post
<
never
,
BaseRespData
<
string
>>
(
'factory/podJomallOrderProductUs/printProducePdf'
,
url
,
orderIds
,
orderIds
,
)
)
}
}
...
...
src/views/order/podCN/index.vue
View file @
0fdc9778
...
@@ -4519,8 +4519,12 @@ const printProductionOrder = async () => {
...
@@ -4519,8 +4519,12 @@ const printProductionOrder = async () => {
text
:
'操作中...'
,
text
:
'操作中...'
,
background
:
'rgba(0, 0, 0, 0.3)'
,
background
:
'rgba(0, 0, 0, 0.3)'
,
}
)
}
)
const
url
=
status
.
value
===
'TO_BE_REPLENISHMENT'
?
'factory/podJomallOrderProductCn/replenishmentPrintProducePdf'
:
'factory/podJomallOrderProductCn/printProducePdf'
try
{
try
{
const
res
=
await
printProductionOrderApi
(
orderIds
)
const
res
=
await
printProductionOrderApi
(
url
,
orderIds
)
if
(
res
.
code
!==
200
)
return
if
(
res
.
code
!==
200
)
return
ElMessage
.
success
(
'操作成功'
)
ElMessage
.
success
(
'操作成功'
)
window
.
open
(
filePath
+
res
.
message
)
window
.
open
(
filePath
+
res
.
message
)
...
...
src/views/order/podUs/index.vue
View file @
0fdc9778
...
@@ -4837,37 +4837,6 @@ const assignOrder = async () => {
...
@@ -4837,37 +4837,6 @@ const assignOrder = async () => {
currentOrderIds
.
value
=
selection
.
value
.
map
((
item
)
=>
item
.
id
)
currentOrderIds
.
value
=
selection
.
value
.
map
((
item
)
=>
item
.
id
)
exceptionDialogVisible
.
value
=
true
exceptionDialogVisible
.
value
=
true
}
}
// const handleExceptionOrder = async () =>
{
// if (selection.value.length === 0)
{
// return ElMessage.warning('请选择数据')
//
}
// try
{
// await showConfirm('确定处理异常吗?',
{
// confirmButtonText: '确认',
// cancelButtonText: '取消',
// type: 'warning',
//
}
)
//
}
catch
{
// return
//
}
// const orderIds = selection.value.map((item) => item.id)
// const loading = ElLoading.service(
{
// fullscreen: true,
// text: '操作中...',
// background: 'rgba(0, 0, 0, 0.3)',
//
}
)
// try
{
// const res = await handleExceptionOrderApi(orderIds)
// if (res.code !== 200) return
// ElMessage.success('操作成功')
// search()
// loadTabData()
//
}
catch
(
e
)
{
// console.error(e)
//
}
finally
{
// loading.close()
//
}
//
}
const
printProductionOrder
=
async
(
const
printProductionOrder
=
async
(
type
:
1
|
2
,
type
:
1
|
2
,
item
:
PodUsOrderListData
|
null
,
item
:
PodUsOrderListData
|
null
,
...
@@ -4883,8 +4852,12 @@ const printProductionOrder = async (
...
@@ -4883,8 +4852,12 @@ const printProductionOrder = async (
text
:
'操作中...'
,
text
:
'操作中...'
,
background
:
'rgba(0, 0, 0, 0.3)'
,
background
:
'rgba(0, 0, 0, 0.3)'
,
}
)
}
)
const
url
=
status
.
value
===
'TO_BE_REPLENISHMENT'
?
'factory/podJomallOrderProductUs/replenishmentPrintProducePdf'
:
'factory/podJomallOrderProductUs/printProducePdf'
try
{
try
{
const
res
=
await
printProductionOrderApi
(
orderIds
)
const
res
=
await
printProductionOrderApi
(
url
,
orderIds
)
if
(
res
.
code
!==
200
)
return
if
(
res
.
code
!==
200
)
return
ElMessage
.
success
(
'操作成功'
)
ElMessage
.
success
(
'操作成功'
)
window
.
open
(
filePath
+
res
.
message
)
window
.
open
(
filePath
+
res
.
message
)
...
...
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