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
f56cf599
Commit
f56cf599
authored
Sep 09, 2025
by
linjinhong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
分拣配置修改
parent
e2f049d1
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
41 additions
and
5 deletions
+41
-5
src/api/logistics.ts
+5
-2
src/assets/images/分拣口说明.png
+0
-0
src/types/api/logistics.ts
+2
-2
src/utils/hooks/useImagePreview..ts
+34
-1
src/views/logistics/sortingConfiguration.vue
+0
-0
No files found.
src/api/logistics.ts
View file @
f56cf599
...
@@ -467,11 +467,14 @@ export function updateSortingApi(data: IsortingInfo) {
...
@@ -467,11 +467,14 @@ export function updateSortingApi(data: IsortingInfo) {
data
,
data
,
)
)
}
}
export
function
deleteSortingApi
(
ids
:
string
)
{
export
function
deleteSortingApi
(
params
:
{
ids
:
string
type
:
string
|
number
})
{
return
axios
.
get
<
never
,
BaseRespData
<
never
>>
(
return
axios
.
get
<
never
,
BaseRespData
<
never
>>
(
'logistics/sortingConfig/delete'
,
'logistics/sortingConfig/delete'
,
{
{
params
:
{
ids
}
,
params
,
},
},
)
)
}
}
...
...
src/assets/images/分拣口说明.png
0 → 100644
View file @
f56cf599
59.3 KB
src/types/api/logistics.ts
View file @
f56cf599
...
@@ -19,4 +19,5 @@ export interface IsortingInfo {
...
@@ -19,4 +19,5 @@ export interface IsortingInfo {
sortingArea
:
number
|
null
sortingArea
:
number
|
null
sortingAreaName
?:
string
|
null
sortingAreaName
?:
string
|
null
serviceCode
:
string
|
null
serviceCode
:
string
|
null
}
type
?:
string
|
number
\ No newline at end of file
}
src/utils/hooks/useImagePreview..ts
View file @
f56cf599
...
@@ -37,11 +37,19 @@ export default function useImagePreview() {
...
@@ -37,11 +37,19 @@ export default function useImagePreview() {
}
}
}
}
const
mouseoverImg
=
(
ev
:
MouseEvent
,
url
:
string
)
=>
{
const
mouseoverImg
=
(
ev
:
MouseEvent
,
url
:
string
,
newWitdh
?:
string
,
newBorder
?:
boolean
,
positionBOOTTOM
?:
boolean
,
)
=>
{
ev
.
preventDefault
()
ev
.
preventDefault
()
if
(
show
.
value
===
true
)
return
if
(
show
.
value
===
true
)
return
img
.
src
=
url
img
.
src
=
url
img
.
style
.
backgroundColor
=
'#eee'
img
.
style
.
backgroundColor
=
'#eee'
if
(
newBorder
)
img
.
style
.
border
=
'1px solid #eee'
if
(
newWitdh
)
img
.
style
.
width
=
newWitdh
const
cW
=
document
.
body
.
clientWidth
const
cW
=
document
.
body
.
clientWidth
const
cH
=
document
.
body
.
clientHeight
const
cH
=
document
.
body
.
clientHeight
const
cX
=
ev
.
clientX
const
cX
=
ev
.
clientX
...
@@ -55,6 +63,31 @@ export default function useImagePreview() {
...
@@ -55,6 +63,31 @@ export default function useImagePreview() {
div
.
style
.
left
=
x
+
'px'
div
.
style
.
left
=
x
+
'px'
div
.
style
.
top
=
y
+
'px'
div
.
style
.
top
=
y
+
'px'
div
.
style
.
display
=
'block'
div
.
style
.
display
=
'block'
if
(
positionBOOTTOM
)
{
// 获取图片实际尺寸
const
imgWidth
=
img
.
clientWidth
const
imgHeight
=
img
.
clientHeight
// 计算新位置(鼠标正下方)
let
x
=
cX
/
2
let
y
=
cY
+
150
// 20px 垂直偏移
// 边界检测
if
(
x
+
imgWidth
>
cW
)
{
x
=
cW
-
imgWidth
-
10
}
if
(
x
<
0
)
{
x
=
10
}
if
(
y
+
imgHeight
>
cH
)
{
y
=
cY
-
imgHeight
-
20
}
if
(
y
<
0
)
{
y
=
10
}
div
.
style
.
left
=
x
+
'px'
div
.
style
.
top
=
y
+
'px'
}
show
.
value
=
true
show
.
value
=
true
currentTarget
=
ev
.
currentTarget
as
HTMLElement
currentTarget
=
ev
.
currentTarget
as
HTMLElement
window
.
addEventListener
(
'mousemove'
,
mousemoveHandler
)
window
.
addEventListener
(
'mousemove'
,
mousemoveHandler
)
...
...
src/views/logistics/sortingConfiguration.vue
View file @
f56cf599
This diff is collapsed.
Click to expand it.
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