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
123e06cb
Commit
123e06cb
authored
Nov 28, 2025
by
qinjianhui
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' into 'master'
Dev See merge request
!111
parents
c43da699
8a280ddb
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
176 additions
and
2 deletions
+176
-2
components.d.ts
+1
-0
src/api/axios.ts
+1
-1
src/components/uploadBox.vue
+171
-0
src/types/api/podUsOrder.ts
+2
-0
src/views/order/podUs/index.vue
+0
-0
src/views/supply/supplierManagement/index.vue
+1
-1
No files found.
components.d.ts
View file @
123e06cb
...
...
@@ -72,6 +72,7 @@ declare module 'vue' {
SplitDiv
:
typeof
import
(
'./src/components/splitDiv/splitDiv.vue'
)[
'default'
]
'Switch '
:
typeof
import
(
'./src/components/Form/Switch .vue'
)[
'default'
]
TableView
:
typeof
import
(
'./src/components/TableView.vue'
)[
'default'
]
UploadBox
:
typeof
import
(
'./src/components/uploadBox.vue'
)[
'default'
]
UploadExcel
:
typeof
import
(
'./src/components/UploadExcel.vue'
)[
'default'
]
UploadImage
:
typeof
import
(
'./src/components/UploadImage.vue'
)[
'default'
]
WangEditor
:
typeof
import
(
'./src/components/WangEditor.vue'
)[
'default'
]
...
...
src/api/axios.ts
View file @
123e06cb
...
...
@@ -4,7 +4,7 @@ import { showError } from '@/utils/ui.ts'
const
axios
=
Axios
.
create
({
baseURL
:
import
.
meta
.
env
.
VITE_API_BASE
,
timeout
:
3
0
*
60
*
1000
,
//半小时
timeout
:
6
0
*
60
*
1000
,
//半小时
})
const
TOKEN_KEY
=
'token'
...
...
src/components/uploadBox.vue
0 → 100644
View file @
123e06cb
<
template
>
<div
class=
"upload-list-container"
>
<div
class=
"list-header"
@
click=
"toggleFn"
>
<div>
上传列表 (
{{
props
.
uploadList
.
length
||
0
}}
)
</div>
<span
class=
"toggle-icon"
:style=
"
{ transform: isExpanded ? 'rotate(0deg)' : 'rotate(-180deg)' }"
>▼
</span
>
</div>
<div
class=
"list-content"
:class=
"
{ collapsed: !isExpanded }">
<div
v-if=
"!props.uploadList.length"
class=
"upload-item"
>
暂无上传任务
</div>
<div
v-else
v-for=
"(upload, index) in props.uploadList"
:key=
"index"
class=
"upload-item"
>
<div
class=
"file-name"
:title=
"upload.batchArrangeNum"
>
批次号:
{{
upload
.
batchArrangeNum
}}
</div>
<div
class=
"file-name"
:title=
"upload.fileName"
>
文件名:
{{
upload
.
fileName
}}
</div>
<div
class=
"file-status"
:class=
"
{ success: !upload.isUpload, loading: upload.isUpload }"
>
{{
upload
.
isUpload
?
'上传中'
:
'已上传'
}}
<el-icon
v-if=
"upload.isUpload"
class=
"is-loading"
>
<Loading
/>
</el-icon>
</div>
</div>
</div>
</div>
</
template
>
<
script
setup
lang=
"ts"
>
import
{
PodUsOrderListData
}
from
'@/types/api/podUsOrder'
import
{
PropType
}
from
'vue'
import
{
Loading
}
from
'@element-plus/icons-vue'
const
props
=
defineProps
({
uploadList
:
{
type
:
Array
as
PropType
<
PodUsOrderListData
[]
>
,
default
:
()
=>
[],
},
})
watch
(
()
=>
props
.
uploadList
,
(
value
)
=>
{
console
.
log
(
43
,
value
)
},
{
deep
:
true
},
)
const
isExpanded
=
ref
(
false
)
function
toggleFn
()
{
isExpanded
.
value
=
!
isExpanded
.
value
}
</
script
>
<
style
lang=
"scss"
scoped
>
.upload-list-container
{
position
:
fixed
;
right
:
3%
;
bottom
:
30px
;
width
:
400px
;
background
:
white
;
border-radius
:
12px
;
box-shadow
:
0
10px
30px
rgba
(
0
,
0
,
0
,
0.1
);
overflow
:
hidden
;
transition
:
all
0.3s
ease
;
z-index
:
100
;
}
.list-header
{
display
:
flex
;
justify-content
:
space-between
;
align-items
:
center
;
padding
:
5px
10px
;
background
:
#4a6ee0
;
color
:
white
;
cursor
:
pointer
;
user-select
:
none
;
}
.list-header
h2
{
font-size
:
18px
;
font-weight
:
600
;
}
.toggle-icon
{
font-size
:
16px
;
transition
:
transform
0.3s
ease
;
}
.list-header
:hover
{
background
:
#3a5bc7
;
}
.list-content.collapsed
{
max-height
:
0
;
opacity
:
0
;
}
.list-content
{
max-height
:
300px
;
overflow-y
:
auto
;
transition
:
max-height
0.4s
ease
,
opacity
0.3s
ease
;
}
.upload-item
{
display
:
flex
;
padding
:
10px
;
border-bottom
:
1px
solid
#f0f0f0
;
align-items
:
center
;
justify-content
:
space-between
;
transition
:
background
0.2s
;
gap
:
10px
;
}
.file-icon
{
flex
:
1
;
}
.file-name
{
font-weight
:
600
;
font-size
:
14px
;
color
:
#333
;
white-space
:
nowrap
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
}
.file-details
{
display
:
flex
;
justify-content
:
space-between
;
font-size
:
12px
;
color
:
#777
;
}
.success
{
color
:
#67c23a
;
}
.loading
{
color
:
#e6a23c
;
}
.file-status
{
display
:
flex
;
white-space
:
nowrap
;
align-items
:
center
;
}
.status-uploading
{
background
:
#e1f0ff
;
color
:
#0066cc
;
}
.progress-bar
{
height
:
4px
;
background
:
#e0e0e0
;
border-radius
:
2px
;
margin-top
:
8px
;
overflow
:
hidden
;
}
.progress
{
height
:
100%
;
background
:
#4a6ee0
;
width
:
0%
;
transition
:
width
0.3s
ease
;
}
</
style
>
src/types/api/podUsOrder.ts
View file @
123e06cb
...
...
@@ -94,6 +94,8 @@ export interface PodUsOrderListData {
tiffUrl
?:
string
|
null
lanshouAddress
?:
string
|
null
customTagList
?:
{
name
:
string
}[]
batchArrangeNum
?:
string
fileName
?:
string
}
export
interface
ProductList
{
id
:
number
...
...
src/views/order/podUs/index.vue
View file @
123e06cb
This diff is collapsed.
Click to expand it.
src/views/supply/supplierManagement/index.vue
View file @
123e06cb
...
...
@@ -1039,7 +1039,7 @@ const updateTableSelection = () => {
})
console
.
log
(
'rowsToSelect'
,
rowsToSelect
)
select
ion
.
value
=
[...(
rowsToSelect
||
[])]
select
PirceList
.
value
=
[...(
rowsToSelect
||
[])]
}
// 获取应该选中的行
...
...
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