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
8cca5b82
Commit
8cca5b82
authored
Oct 18, 2025
by
linjinhong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:修改物流方式Tik Tok模式
parent
fe99190c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
src/views/logistics/components/LogisticsWaySelect.tsx
+9
-5
No files found.
src/views/logistics/components/LogisticsWaySelect.tsx
View file @
8cca5b82
...
@@ -82,12 +82,14 @@ export default defineComponent({
...
@@ -82,12 +82,14 @@ export default defineComponent({
const
selectedList
=
ref
<
(
string
|
number
)[]
>
([])
const
selectedList
=
ref
<
(
string
|
number
)[]
>
([])
const
selectedRadioList
=
ref
<
string
|
number
>
()
const
selectedRadioList
=
ref
<
string
|
number
>
()
const
waysName
=
ref
(
''
)
const
waysName
=
ref
(
''
)
const
selectedRadioName
=
ref
(
''
)
watch
(
watch
(
()
=>
props
.
modelValue
,
()
=>
props
.
modelValue
,
(
newVal
)
=>
{
(
newVal
)
=>
{
if
(
props
.
isRadio
)
{
if
(
props
.
isRadio
)
{
selectedRadioList
.
value
=
newVal
as
string
|
number
selectedRadioList
.
value
=
newVal
as
string
|
number
console
.
log
(
'waysName'
,
waysName
.
value
)
}
else
{
}
else
{
selectedList
.
value
=
newVal
as
(
string
|
number
)[]
selectedList
.
value
=
newVal
as
(
string
|
number
)[]
}
}
...
@@ -109,7 +111,12 @@ export default defineComponent({
...
@@ -109,7 +111,12 @@ export default defineComponent({
if
(
props
.
isRadio
)
{
if
(
props
.
isRadio
)
{
emit
(
'update:modelValue'
,
newVal
[
2
])
emit
(
'update:modelValue'
,
newVal
[
2
])
companyList
.
value
=
newVal
[
1
]
as
ICompanyList
[]
companyList
.
value
=
newVal
[
1
]
as
ICompanyList
[]
waysName
.
value
=
selectedRadioName
.
value
const
allWayLists
:
IwayList
[]
=
props
.
companyList
.
flatMap
(
(
company
)
=>
company
.
wayList
,
)
as
IwayList
[]
waysName
.
value
=
allWayLists
.
find
((
el
:
IwayList
)
=>
newVal
[
2
]
===
el
.
id
)?.
name
||
''
}
else
{
}
else
{
emit
(
'update:modelValue'
,
newVal
[
0
])
emit
(
'update:modelValue'
,
newVal
[
0
])
allList
.
value
=
newVal
[
1
]
as
IAllList
[]
allList
.
value
=
newVal
[
1
]
as
IAllList
[]
...
@@ -221,9 +228,6 @@ export default defineComponent({
...
@@ -221,9 +228,6 @@ export default defineComponent({
onUpdate
:
modelValue=
{
(
value
)
=>
{
onUpdate
:
modelValue=
{
(
value
)
=>
{
console
.
log
(
'company'
,
value
)
console
.
log
(
'company'
,
value
)
selectedRadioList
.
value
=
value
as
string
|
number
selectedRadioList
.
value
=
value
as
string
|
number
selectedRadioName
.
value
=
company
.
wayList
.
find
(
(
el
)
=>
el
.
id
===
value
,
)?.
name
as
string
}
}
}
}
style=
{
styles
.
checkboxGroup
}
style=
{
styles
.
checkboxGroup
}
>
>
...
...
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