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
20417794
Commit
20417794
authored
Nov 28, 2025
by
zhuzhequan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:prn文件功能修改
parent
1aca4c94
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
41 additions
and
44 deletions
+41
-44
src/types/api/podUsOrder.ts
+1
-0
src/views/order/podUs/index.vue
+40
-44
No files found.
src/types/api/podUsOrder.ts
View file @
20417794
...
@@ -48,6 +48,7 @@ export interface SearchForm {
...
@@ -48,6 +48,7 @@ export interface SearchForm {
export
interface
PodUsOrderListData
{
export
interface
PodUsOrderListData
{
id
:
number
id
:
number
thirdOrderNumber
?:
string
thirdOrderNumber
?:
string
batchArrangeNumber
?:
string
prnUrl
?:
string
prnUrl
?:
string
factoryOrderNumber
?:
string
factoryOrderNumber
?:
string
prnDownloadStatus
?:
boolean
prnDownloadStatus
?:
boolean
...
...
src/views/order/podUs/index.vue
View file @
20417794
...
@@ -1761,17 +1761,30 @@
...
@@ -1761,17 +1761,30 @@
{{
row
.
automaticComposing
?
'是'
:
'否'
}}
{{
row
.
automaticComposing
?
'是'
:
'否'
}}
<
/div
>
<
/div
>
<
/template
>
<
/template
>
<
template
#
prn
=
"{ row
}
"
>
<
template
#
composingParam
=
"{ row
}
"
>
<
div
style
=
"display: flex"
>
<
div
style
=
"white-space: pre-line"
>
<
span
:
title
=
"fileName(row)"
class
=
"flex-1"
>
{{
{{
row
.
composingParam
?.
split
(
';'
).
join
(
'
\
n'
)
}}
fileName
(
row
)
<
/div
>
}}
<
/span
>
<
/template
>
<
template
#
failTime
=
"{ row
}
"
>
<
div
style
=
"white-space: pre-line"
>
{{
row
.
failTime
?.
replace
(
'T'
,
' '
)
}}
<
/div
>
<
/template
>
<
template
#
failReason
=
"{ row
}
"
>
<
span
style
=
"white-space: pre-line"
v
-
html
=
"row.failReason"
><
/span
>
<
/template
>
<
template
#
operate
=
"{ row
}
"
>
<
div
v
-
if
=
"status === 'BATCH_DOWNLOAD'"
class
=
"operate-box-vertical"
>
<
el
-
link
<
el
-
link
:
disabled
=
"row.isUpload"
:
disabled
=
"row.isUpload"
underline
=
"never"
underline
=
"never"
type
=
"success"
type
=
"success"
@
click
=
"uploadFile(row)"
@
click
=
"uploadFile(row)"
>
上传
<
/el-lin
k
>
上传
PRN
<
/el-lin
k
>
>
<
el
-
icon
<
el
-
icon
v
-
if
=
"row.isUpload"
v
-
if
=
"row.isUpload"
...
@@ -1784,9 +1797,10 @@
...
@@ -1784,9 +1797,10 @@
:
disabled
=
"!row.prnUrl"
:
disabled
=
"!row.prnUrl"
style
=
"margin-left: 8px"
style
=
"margin-left: 8px"
underline
=
"never"
underline
=
"never"
type
=
"primary"
:
title
=
"fileName(row)"
type
=
"success"
@
click
=
"downloadRowProFile(row)"
@
click
=
"downloadRowProFile(row)"
>
下载
>
下载
PRN
<
/el-link
>
<
/el-link
>
<
el
-
icon
<
el
-
icon
v
-
if
=
"row.prnDownloadStatus"
v
-
if
=
"row.prnDownloadStatus"
...
@@ -1795,30 +1809,12 @@
...
@@ -1795,30 +1809,12 @@
>
>
<
CircleCheckFilled
/>
<
CircleCheckFilled
/>
<
/el-icon
>
<
/el-icon
>
<
/div
>
<
/template
>
<
template
#
composingParam
=
"{ row
}
"
>
<
div
style
=
"white-space: pre-line"
>
{{
row
.
composingParam
?.
split
(
';'
).
join
(
'
\
n'
)
}}
<
/div
>
<
/template
>
<
template
#
failTime
=
"{ row
}
"
>
<
div
style
=
"white-space: pre-line"
>
{{
row
.
failTime
?.
replace
(
'T'
,
' '
)
}}
<
/div
>
<
/template
>
<
template
#
failReason
=
"{ row
}
"
>
<
span
style
=
"white-space: pre-line"
v
-
html
=
"row.failReason"
><
/span
>
<
/template
>
<
template
#
operate
=
"{ row
}
"
>
<
div
v
-
if
=
"status === 'BATCH_DOWNLOAD'"
class
=
"operate-box-vertical"
>
<
span
class
=
"operate-item"
>
<
span
class
=
"operate-item"
>
<
ElButton
<
ElButton
:
disabled
=
"!row.url && !row.tiffUrl"
:
disabled
=
"!row.url && !row.tiffUrl"
link
link
title
=
"下载PNG或TIFF"
type
=
"primary"
type
=
"primary"
@
click
=
"handleDownload(row)"
@
click
=
"handleDownload(row)"
>
>
...
@@ -3564,13 +3560,7 @@ const tableColumns = computed(() => {
...
@@ -3564,13 +3560,7 @@ const tableColumns = computed(() => {
prop
:
'employeeAccount'
,
prop
:
'employeeAccount'
,
align
:
'center'
,
align
:
'center'
,
}
,
}
,
{
label
:
'失败原因'
,
minWidth
:
250
,
prop
:
'failReason'
,
slot
:
'failReason'
,
align
:
'left'
,
}
,
{
{
label
:
'创建时间'
,
label
:
'创建时间'
,
width
:
180
,
width
:
180
,
...
@@ -3593,11 +3583,11 @@ const tableColumns = computed(() => {
...
@@ -3593,11 +3583,11 @@ const tableColumns = computed(() => {
align
:
'center'
,
align
:
'center'
,
}
,
}
,
{
{
label
:
'
PRN文件
'
,
label
:
'
失败原因
'
,
width
:
30
0
,
minWidth
:
25
0
,
prop
:
'
automaticComposing
'
,
prop
:
'
failReason
'
,
slot
:
'
pr
n'
,
slot
:
'
failReaso
n'
,
align
:
'
righ
t'
,
align
:
'
lef
t'
,
}
,
}
,
{
{
label
:
'排版参数'
,
label
:
'排版参数'
,
...
@@ -3609,7 +3599,7 @@ const tableColumns = computed(() => {
...
@@ -3609,7 +3599,7 @@ const tableColumns = computed(() => {
{
{
label
:
'操作'
,
label
:
'操作'
,
slot
:
'operate'
,
slot
:
'operate'
,
width
:
3
00
,
width
:
4
00
,
align
:
'center'
,
align
:
'center'
,
fixed
:
'right'
,
fixed
:
'right'
,
prop
:
'operate'
,
prop
:
'operate'
,
...
@@ -4207,19 +4197,25 @@ const uploadFile = (row: PodUsOrderListData) => {
...
@@ -4207,19 +4197,25 @@ const uploadFile = (row: PodUsOrderListData) => {
input
.
type
=
'file'
input
.
type
=
'file'
input
.
multiple
=
false
input
.
multiple
=
false
input
?.
click
()
input
?.
click
()
row
.
isUpload
=
true
input
.
onchange
=
async
function
()
{
input
.
onchange
=
async
function
()
{
try
{
try
{
if
(
input
.
files
&&
input
.
files
.
length
)
{
if
(
input
.
files
&&
input
.
files
.
length
)
{
if
(
!
input
.
files
[
0
].
name
.
startsWith
(
row
.
batchArrangeNumber
||
''
))
{
await
ElMessageBox
.
confirm
(
`文件名不是以批次号开头是否继续上传?`
,
'提示'
,
{
confirmButtonText
:
'确定'
,
type
:
'warning'
,
}
)
}
row
.
isUpload
=
true
uploadList
.
value
.
push
(
row
)
uploadList
.
value
.
push
(
row
)
const
fm
=
new
FormData
()
const
fm
=
new
FormData
()
fm
.
append
(
'file'
,
input
.
files
?.[
0
])
fm
.
append
(
'file'
,
(
input
.
files
as
never
)
?.[
0
])
row
.
fileName
=
input
.
files
?.[
0
]?.
name
row
.
fileName
=
input
.
files
?.[
0
]?.
name
// console.log(4219, input.files?.[0])
// console.log(4219, input.files?.[0])
const
res
=
await
uploadPRNFile
(
row
.
id
,
fm
)
const
res
=
await
uploadPRNFile
(
row
.
id
,
fm
as
never
)
row
.
prnUrl
=
res
.
message
row
.
prnUrl
=
res
.
message
}
}
}
finally
{
}
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