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
06efc3c0
Commit
06efc3c0
authored
Jul 03, 2025
by
linjinhong
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/linjinhong' into dev
parents
4c7d3c99
d24ac9d0
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
77 additions
and
43 deletions
+77
-43
components.d.ts
+1
-0
src/assets/images/UPARCEL物流编码.png
+0
-0
src/views/logistics/components/LogisticsWaySelect.tsx
+1
-0
src/views/logistics/logisticsCompany.vue
+0
-0
src/views/logistics/logisticsMethod.vue
+75
-43
No files found.
components.d.ts
View file @
06efc3c0
...
...
@@ -32,6 +32,7 @@ declare module 'vue' {
ElImage
:
typeof
import
(
'element-plus/es'
)[
'ElImage'
]
ElInput
:
typeof
import
(
'element-plus/es'
)[
'ElInput'
]
ElInputNumber
:
typeof
import
(
'element-plus/es'
)[
'ElInputNumber'
]
ElLink
:
typeof
import
(
'element-plus/es'
)[
'ElLink'
]
ElMenu
:
typeof
import
(
'element-plus/es'
)[
'ElMenu'
]
ElMenuItem
:
typeof
import
(
'element-plus/es'
)[
'ElMenuItem'
]
ElOption
:
typeof
import
(
'element-plus/es'
)[
'ElOption'
]
...
...
src/assets/images/UPARCEL物流编码.png
0 → 100644
View file @
06efc3c0
38.4 KB
src/views/logistics/components/LogisticsWaySelect.tsx
View file @
06efc3c0
...
...
@@ -21,6 +21,7 @@ const styles = {
display
:
'flex'
,
padding
:
'10px'
,
justifyContent
:
'flex-start'
,
flexWrap
:
'wrap'
,
backgroundColor
:
'#efefef'
,
},
}
as
const
...
...
src/views/logistics/logisticsCompany.vue
View file @
06efc3c0
This diff is collapsed.
Click to expand it.
src/views/logistics/logisticsMethod.vue
View file @
06efc3c0
...
...
@@ -42,7 +42,6 @@
v-model=
"editForm"
:config=
"formConfig"
form-item-width=
"100%"
labelWidth=
"125"
>
</CustomizeForm>
...
...
@@ -98,9 +97,9 @@ import { IFormConfig } from '@/components/CustomizeForm.tsx'
import
usePageList
from
'@/utils/hooks/usePageList'
import
{
useValue
}
from
'./hooks/useValue'
import
{
showConfirm
}
from
'@/utils/ui'
import
{
Edit
,
Delete
,
List
}
from
'@element-plus/icons-vue'
import
{
Edit
,
Delete
,
List
,
WarningFilled
}
from
'@element-plus/icons-vue'
import
{
debounce
}
from
'lodash-es'
import
UPARCELImage
from
'@/assets/images/UPARCEL物流编码.png'
const
[
searchForm
]
=
useValue
({})
const
[
editForm
,
resetEditForm
]
=
useValue
<
LogisticsMethod
>
({
platformList
:
[{
platform
:
''
,
logisticsName
:
''
,
showPlatform
:
[]
}],
...
...
@@ -131,6 +130,13 @@ const dialogVisible = ref(false)
const
logDialogVisible
=
ref
(
false
)
const
editFormRef
=
ref
<
InstanceType
<
typeof
CustomizeForm
>
|
null
>
(
null
)
const
selection
=
ref
([])
interface
ImageList
{
[
key
:
string
]:
string
}
const
imgeList
=
ref
<
ImageList
>
({
UPARCEL
:
UPARCELImage
,
})
const
searchConfig
=
ref
<
ISeachFormConfig
[]
>
([
{
prop
:
'name'
,
...
...
@@ -173,41 +179,6 @@ const logisticsCompanyList = ref([])
const
formConfig
=
computed
<
IFormConfig
[]
>
(()
=>
[
{
title
:
'物流基础信息'
},
{
prop
:
'name'
,
type
:
'input'
,
label
:
'物流名称'
,
attrs
:
{
placeholder
:
'请输入物流名称'
,
},
rules
:
[
{
required
:
true
,
message
:
'请输入物流名称'
,
},
],
},
{
prop
:
'warehouseId'
,
type
:
'select'
,
label
:
'仓库名称'
,
attrs
:
{
placeholder
:
'请选择仓库名称'
,
label
:
'name'
,
value
:
'id'
,
options
:
[...(
warehouseList
.
value
||
[])],
onChange
:
(
value
:
{
name
:
string
;
id
:
string
|
number
})
=>
{
editForm
.
value
.
warehouseName
=
value
.
name
},
},
rules
:
[
{
required
:
true
,
message
:
'请选择仓库名称'
,
},
],
},
{
prop
:
'companyId'
,
type
:
'select'
,
label
:
'物流公司'
,
...
...
@@ -282,15 +253,51 @@ const formConfig = computed<IFormConfig[]>(() => [
},
],
},
{
prop
:
'serviceCode'
,
type
:
'input'
,
label
:
'物流编码'
,
fixed
:
'last'
,
attrs
:
{
placeholder
:
'请输入物流编码'
,
render
:
()
=>
{
const
company
=
editForm
.
value
.
company
return
(
<
div
style
=
"display: flex; width:100%;height: 100%"
>
<
el
-
input
v
-
model
=
{
editForm
.
value
.
serviceCode
}
placeholder
=
"请输入物流编码"
/>
<
el
-
popover
placement
=
"bottom-end"
width
=
{
1050
}
v
-
slots
=
{{
default
:
()
=>
(
<
div
style
=
"width: 100%; height: 100%;"
>
<
div
style
=
"font-size: 20px; font-weight: bold;margin-bottom: 10px;"
>
{
company
?
`
${
company
}
物流编码来源图:`
:
'请先选择物流公司'
}
<
/div
>
{
company
&&
imgeList
.
value
[
company
]
&&
(
<
img
src
=
{
imgeList
.
value
[
company
]}
style
=
{{
width
:
'100%'
}}
alt
=
{
`
${
company
}
物流编码图`
}
/
>
)}
<
/div
>
),
reference
:
()
=>
(
<
el
-
icon
style
=
{{
marginLeft
:
'10px'
,
height
:
'100%'
}}
size
=
{
25
}
>
<
WarningFilled
/>
<
/el-icon
>
),
}}
><
/el-popover
>
<
/div
>
)
},
rules
:
[
{
required
:
true
,
...
...
@@ -299,6 +306,31 @@ const formConfig = computed<IFormConfig[]>(() => [
],
},
{
prop
:
'name'
,
type
:
'input'
,
label
:
'物流名称'
,
fixed
:
'last'
,
attrs
:
{
placeholder
:
'请输入物流名称'
,
},
rules
:
[
{
required
:
true
,
message
:
'请输入物流名称'
,
},
],
},
{
prop
:
'warehouseId'
,
type
:
'input'
,
label
:
'仓库名称'
,
fixed
:
'last'
,
attrs
:
{
placeholder
:
'请输入仓库名称'
,
},
},
{
prop
:
'siteUrl'
,
type
:
'input'
,
label
:
'查询网址'
,
...
...
@@ -376,7 +408,7 @@ const formConfig = computed<IFormConfig[]>(() => [
placeholder
=
"请输入物流名称"
/>
<
/el-form-item
>
<
div
style
=
"display: flex;flex:
20
%"
>
<
div
style
=
"display: flex;flex:
17
%"
>
{(
formData
?.
platformList
as
platformObj
[])?.
length
-
1
===
index
&&
(
<
el
-
button
...
...
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