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
63ba7cc3
Commit
63ba7cc3
authored
Nov 28, 2025
by
zhuzhequan
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' into 'master'
Dev See merge request
!112
parents
123e06cb
20417794
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
51 additions
and
47 deletions
+51
-47
components.d.ts
+1
-0
src/components/uploadBox.vue
+9
-3
src/types/api/podUsOrder.ts
+1
-0
src/views/order/podUs/index.vue
+40
-44
No files found.
components.d.ts
View file @
63ba7cc3
...
@@ -34,6 +34,7 @@ declare module 'vue' {
...
@@ -34,6 +34,7 @@ declare module 'vue' {
ElImage
:
typeof
import
(
'element-plus/es'
)[
'ElImage'
]
ElImage
:
typeof
import
(
'element-plus/es'
)[
'ElImage'
]
ElInput
:
typeof
import
(
'element-plus/es'
)[
'ElInput'
]
ElInput
:
typeof
import
(
'element-plus/es'
)[
'ElInput'
]
ElInputNumber
:
typeof
import
(
'element-plus/es'
)[
'ElInputNumber'
]
ElInputNumber
:
typeof
import
(
'element-plus/es'
)[
'ElInputNumber'
]
ElLink
:
typeof
import
(
'element-plus/es'
)[
'ElLink'
]
ElMenu
:
typeof
import
(
'element-plus/es'
)[
'ElMenu'
]
ElMenu
:
typeof
import
(
'element-plus/es'
)[
'ElMenu'
]
ElMenuItem
:
typeof
import
(
'element-plus/es'
)[
'ElMenuItem'
]
ElMenuItem
:
typeof
import
(
'element-plus/es'
)[
'ElMenuItem'
]
ElOption
:
typeof
import
(
'element-plus/es'
)[
'ElOption'
]
ElOption
:
typeof
import
(
'element-plus/es'
)[
'ElOption'
]
...
...
src/components/uploadBox.vue
View file @
63ba7cc3
...
@@ -20,11 +20,11 @@
...
@@ -20,11 +20,11 @@
:key=
"index"
:key=
"index"
class=
"upload-item"
class=
"upload-item"
>
>
<div
class=
"file-
name
"
:title=
"upload.batchArrangeNum"
>
<div
class=
"file-
batchArrangeNum
"
:title=
"upload.batchArrangeNum"
>
批次号:
{{
upload
.
batchArrangeNum
}}
{{
upload
.
batchArrangeNum
}}
</div>
</div>
<div
class=
"file-name"
:title=
"upload.fileName"
>
<div
class=
"file-name"
:title=
"upload.fileName"
>
文件名:
{{
upload
.
fileName
}}
{{
upload
.
fileName
}}
</div>
</div>
<div
<div
class=
"file-status"
class=
"file-status"
...
@@ -123,6 +123,12 @@ function toggleFn() {
...
@@ -123,6 +123,12 @@ function toggleFn() {
flex
:
1
;
flex
:
1
;
}
}
.file-batchArrangeNum
{
font-weight
:
600
;
font-size
:
14px
;
color
:
#333
;
white-space
:
nowrap
;
}
.file-name
{
.file-name
{
font-weight
:
600
;
font-weight
:
600
;
font-size
:
14px
;
font-size
:
14px
;
...
...
src/types/api/podUsOrder.ts
View file @
63ba7cc3
...
@@ -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 @
63ba7cc3
...
@@ -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