Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
monorepo
/
venus
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
1
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 1ed4770d
authored
Apr 17, 2026
by
zhangxw
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix(venus-usedcar-quality): bug修复
1 parent
67fedf36
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
8 deletions
apps/web/venus-usedcar-quality/src/components/ConsultantPicker.vue
apps/web/venus-usedcar-quality/src/views/vehicle-detail/index.vue
apps/web/venus-usedcar-quality/src/components/ConsultantPicker.vue
View file @
1ed4770
...
@@ -3,7 +3,7 @@ import { computed, ref, watch } from "vue";
...
@@ -3,7 +3,7 @@ import { computed, ref, watch } from "vue";
import
{
showToast
}
from
"vant"
;
import
{
showToast
}
from
"vant"
;
type
OptionItem
=
{
sellerName
:
string
;
sellerUserId
:
string
};
type
OptionItem
=
{
sellerName
:
string
;
sellerUserId
:
string
,
staffPhone
:
string
};
const
props
=
withDefaults
(
const
props
=
withDefaults
(
defineProps
<
{
defineProps
<
{
...
@@ -25,6 +25,7 @@ const emit = defineEmits<{
...
@@ -25,6 +25,7 @@ const emit = defineEmits<{
(
e
:
"update:show"
,
v
:
boolean
):
void
;
(
e
:
"update:show"
,
v
:
boolean
):
void
;
(
e
:
"update:modelValue"
,
v
:
string
):
void
;
(
e
:
"update:modelValue"
,
v
:
string
):
void
;
(
e
:
"update:sellerUserId"
,
v
:
string
):
void
;
(
e
:
"update:sellerUserId"
,
v
:
string
):
void
;
(
e
:
"update:staffPhone"
,
v
:
string
):
void
;
}
>
();
}
>
();
const
showProxy
=
computed
({
const
showProxy
=
computed
({
...
@@ -34,7 +35,7 @@ const showProxy = computed({
...
@@ -34,7 +35,7 @@ const showProxy = computed({
const
keywordInput
=
ref
(
""
);
const
keywordInput
=
ref
(
""
);
const
keywordApplied
=
ref
(
""
);
const
keywordApplied
=
ref
(
""
);
const
tempSelected
=
ref
<
OptionItem
>
({
sellerName
:
""
,
sellerUserId
:
""
});
const
tempSelected
=
ref
<
OptionItem
>
({
sellerName
:
""
,
sellerUserId
:
""
,
staffPhone
:
""
});
const
hasInput
=
computed
(()
=>
keywordInput
.
value
.
trim
().
length
>
0
);
const
hasInput
=
computed
(()
=>
keywordInput
.
value
.
trim
().
length
>
0
);
const
isFocused
=
ref
(
false
);
const
isFocused
=
ref
(
false
);
...
@@ -46,11 +47,11 @@ watch(
...
@@ -46,11 +47,11 @@ watch(
keywordApplied
.
value
=
""
;
keywordApplied
.
value
=
""
;
const
byId
=
(
props
.
options
||
[]).
find
((
o
)
=>
o
.
sellerUserId
===
props
.
sellerUserId
);
const
byId
=
(
props
.
options
||
[]).
find
((
o
)
=>
o
.
sellerUserId
===
props
.
sellerUserId
);
if
(
byId
)
{
if
(
byId
)
{
tempSelected
.
value
=
{
sellerName
:
byId
.
sellerName
,
sellerUserId
:
byId
.
sellerUserId
};
tempSelected
.
value
=
{
sellerName
:
byId
.
sellerName
,
sellerUserId
:
byId
.
sellerUserId
,
staffPhone
:
byId
.
staffPhone
};
return
;
return
;
}
}
const
byName
=
(
props
.
options
||
[]).
find
((
o
)
=>
o
.
sellerName
===
props
.
modelValue
);
const
byName
=
(
props
.
options
||
[]).
find
((
o
)
=>
o
.
sellerName
===
props
.
modelValue
);
tempSelected
.
value
=
byName
?
{
sellerName
:
byName
.
sellerName
,
sellerUserId
:
byName
.
sellerUserId
}
:
{
sellerName
:
""
,
sellerUserId
:
""
};
tempSelected
.
value
=
byName
?
{
sellerName
:
byName
.
sellerName
,
sellerUserId
:
byName
.
sellerUserId
}
:
{
sellerName
:
""
,
sellerUserId
:
""
,
staffPhone
:
""
};
}
}
}
}
);
);
...
@@ -82,15 +83,16 @@ function onConfirm() {
...
@@ -82,15 +83,16 @@ function onConfirm() {
}
}
emit
(
"update:modelValue"
,
tempSelected
.
value
.
sellerName
);
emit
(
"update:modelValue"
,
tempSelected
.
value
.
sellerName
);
emit
(
"update:sellerUserId"
,
tempSelected
.
value
.
sellerUserId
);
emit
(
"update:sellerUserId"
,
tempSelected
.
value
.
sellerUserId
);
emit
(
"update:staffPhone"
,
tempSelected
.
value
.
staffPhone
);
showProxy
.
value
=
false
;
showProxy
.
value
=
false
;
}
}
function
toggleSelect
(
o
:
OptionItem
)
{
function
toggleSelect
(
o
:
OptionItem
)
{
if
(
tempSelected
.
value
.
sellerUserId
===
o
.
sellerUserId
)
{
if
(
tempSelected
.
value
.
sellerUserId
===
o
.
sellerUserId
)
{
tempSelected
.
value
=
{
sellerName
:
""
,
sellerUserId
:
""
};
tempSelected
.
value
=
{
sellerName
:
""
,
sellerUserId
:
""
,
staffPhone
:
""
};
return
;
return
;
}
}
tempSelected
.
value
=
{
sellerName
:
o
.
sellerName
,
sellerUserId
:
o
.
sellerUserId
};
tempSelected
.
value
=
{
sellerName
:
o
.
sellerName
,
sellerUserId
:
o
.
sellerUserId
,
staffPhone
:
o
.
staffPhone
};
}
}
</
script
>
</
script
>
...
...
apps/web/venus-usedcar-quality/src/views/vehicle-detail/index.vue
View file @
1ed4770
...
@@ -43,6 +43,7 @@ const form = reactive({
...
@@ -43,6 +43,7 @@ const form = reactive({
sellerUserId
:
""
,
sellerUserId
:
""
,
carConditionCode
:
""
,
carConditionCode
:
""
,
sellerName
:
""
,
sellerName
:
""
,
staffPhone
:
""
,
media
:
{
media
:
{
xsz
:
[]
as
UploadItem
[],
xsz
:
[]
as
UploadItem
[],
mp
:
[]
as
UploadItem
[],
mp
:
[]
as
UploadItem
[],
...
@@ -122,6 +123,7 @@ function fillFormFromDetail(detail: Record<string, any>) {
...
@@ -122,6 +123,7 @@ function fillFormFromDetail(detail: Record<string, any>) {
form
.
sellerUserId
=
String
(
detail
.
sellerUserId
??
""
);
form
.
sellerUserId
=
String
(
detail
.
sellerUserId
??
""
);
form
.
carConditionCode
=
String
(
detail
.
carConditionCode
??
""
);
form
.
carConditionCode
=
String
(
detail
.
carConditionCode
??
""
);
form
.
sellerName
=
String
(
detail
.
sellerName
??
""
);
form
.
sellerName
=
String
(
detail
.
sellerName
??
""
);
form
.
staffPhone
=
String
(
detail
.
staffPhone
??
""
);
setSingle
((
form
.
media
as
any
).
xsz
,
String
(
detail
.
drivingLicenseImgUrl
??
""
));
setSingle
((
form
.
media
as
any
).
xsz
,
String
(
detail
.
drivingLicenseImgUrl
??
""
));
setSingle
((
form
.
media
as
any
).
mp
,
String
(
detail
.
nameplateImgUrl
??
""
));
setSingle
((
form
.
media
as
any
).
mp
,
String
(
detail
.
nameplateImgUrl
??
""
));
setSingle
((
form
.
media
as
any
).
lf45
,
String
(
detail
.
leftFrontImgUrl
??
""
));
setSingle
((
form
.
media
as
any
).
lf45
,
String
(
detail
.
leftFrontImgUrl
??
""
));
...
@@ -160,7 +162,7 @@ function buildSubmitPayload() {
...
@@ -160,7 +162,7 @@ function buildSubmitPayload() {
otherDetailImgUrl
:
firstUrl
((
form
.
media
as
any
).
others
),
otherDetailImgUrl
:
firstUrl
((
form
.
media
as
any
).
others
),
source
:
pageSource
.
value
,
source
:
pageSource
.
value
,
openId
:
route
.
query
.
openId
??
""
,
openId
:
route
.
query
.
openId
??
""
,
phone
:
route
.
query
.
phone
??
""
,
phone
:
pageSource
.
value
==
3
?
(
route
.
query
.
phone
??
""
)
:
(
form
.
staffPhone
??
""
)
,
operatorId
:
route
.
query
.
operatorId
??
""
,
operatorId
:
route
.
query
.
operatorId
??
""
,
operator
:
route
.
query
.
operator
??
""
,
operator
:
route
.
query
.
operator
??
""
,
conversionMerchantId
:
route
.
query
.
conversionMerchantId
??
""
,
conversionMerchantId
:
route
.
query
.
conversionMerchantId
??
""
,
...
@@ -192,7 +194,7 @@ onMounted(() => {
...
@@ -192,7 +194,7 @@ onMounted(() => {
function
getSalesData
()
{
function
getSalesData
()
{
getSalesConsultant
({
sessionId
:
String
(
route
.
query
.
sessionId
??
""
),
merchantId
:
String
(
route
.
query
.
merchantId
??
""
)
}).
then
((
res
)
=>
{
getSalesConsultant
({
sessionId
:
String
(
route
.
query
.
sessionId
??
""
),
merchantId
:
String
(
route
.
query
.
merchantId
??
""
)
}).
then
((
res
)
=>
{
consultants
.
value
=
(
res
as
any
)?.
map
((
it
:
any
)
=>
({
sellerName
:
it
.
staffName
??
""
,
sellerUserId
:
it
.
uuid
??
""
}))
??
[];
consultants
.
value
=
(
res
as
any
)?.
map
((
it
:
any
)
=>
({
sellerName
:
it
.
staffName
??
""
,
sellerUserId
:
it
.
uuid
??
""
,
staffPhone
:
it
.
staffPhone
}))
??
[];
});
});
}
}
...
@@ -383,6 +385,7 @@ function share() {
...
@@ -383,6 +385,7 @@ function share() {
<ConsultantPicker
v-model=
"form.sellerName"
<ConsultantPicker
v-model=
"form.sellerName"
v-model:seller-user-id=
"form.sellerUserId"
v-model:seller-user-id=
"form.sellerUserId"
v-model:show=
"consultantPickerVisible"
v-model:show=
"consultantPickerVisible"
v-model:staff-phone=
"form.staffPhone"
:is-pad=
"isPad"
:is-pad=
"isPad"
:options=
"consultants"
/>
:options=
"consultants"
/>
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment