Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
K
komatsu-lease-app
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
komatsu
komatsu-lease-app
Commits
763a8d36
Commit
763a8d36
authored
Feb 03, 2023
by
WangRui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[feature]融资意向调整
parent
12651f8a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
5 deletions
+12
-5
AuForm.vue
src/components/AuForm.vue
+3
-2
intentionForm.vue
src/modules/intention/views/intentionForm.vue
+9
-3
No files found.
src/components/AuForm.vue
View file @
763a8d36
...
@@ -109,7 +109,7 @@ defineProps({
...
@@ -109,7 +109,7 @@ defineProps({
default
:
''
default
:
''
},
},
})
})
const
emit
=
defineEmits
([
'update:modelValue'
])
const
emit
=
defineEmits
([
'update:modelValue'
,
'afterSelect'
])
const
nowItem
=
ref
({})
const
nowItem
=
ref
({})
const
typeShow
=
ref
(
false
)
const
typeShow
=
ref
(
false
)
...
@@ -168,6 +168,7 @@ function chooser(formItem) {
...
@@ -168,6 +168,7 @@ function chooser(formItem) {
function
typeOnConfirm
(
value
,
type
)
{
function
typeOnConfirm
(
value
,
type
)
{
emit
(
'afterSelect'
,
{...
value
})
if
(
type
===
'picker'
)
{
if
(
type
===
'picker'
)
{
if
(
isObject
(
value
))
{
if
(
isObject
(
value
))
{
nowItem
.
value
.
value
=
value
.
value
nowItem
.
value
.
value
=
value
.
value
...
...
src/modules/intention/views/intentionForm.vue
View file @
763a8d36
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
<div
class=
"content"
>
<div
class=
"content"
>
<section
class=
"form-area"
>
<section
class=
"form-area"
>
<AuForm
v-model=
"formConfig"
:key=
"form"
/>
<AuForm
v-model=
"formConfig"
:key=
"form"
@
afterSelect=
"handleSelect"
/>
<Field
v-model=
"message"
rows=
"2"
autosize
:readonly=
"messageDisabled"
label=
"备注说明"
type=
"textarea"
<Field
v-model=
"message"
rows=
"2"
autosize
:readonly=
"messageDisabled"
label=
"备注说明"
type=
"textarea"
maxlength=
"200"
placeholder=
"最多可编写200字"
show-word-limit
/>
maxlength=
"200"
placeholder=
"最多可编写200字"
show-word-limit
/>
</section>
</section>
...
@@ -149,9 +149,10 @@ const handleAgent = async () => {
...
@@ -149,9 +149,10 @@ const handleAgent = async () => {
cityIdN
:
item
.
cityIdN
||
''
,
cityIdN
:
item
.
cityIdN
||
''
,
bpName
:
item
.
bpName
,
bpName
:
item
.
bpName
,
bpCode
:
item
.
bpCode
,
bpCode
:
item
.
bpCode
,
cellPhone
:
item
.
cellPhone
,
})
})
).
map
(
item
=>
{
).
map
(
item
=>
{
return
{
text
:
item
.
provinceIdN
+
item
.
cityIdN
+
item
.
bpName
,
value
:
item
.
bpName
}
return
{
text
:
item
.
provinceIdN
+
item
.
cityIdN
+
item
.
bpName
,
value
:
item
.
bpName
,
...
item
}
}).
sort
((
a
,
b
)
=>
(
a
.
text
.
localeCompare
(
b
.
text
)))
}).
sort
((
a
,
b
)
=>
(
a
.
text
.
localeCompare
(
b
.
text
)))
formStore
.
agentList
=
agentList
;
formStore
.
agentList
=
agentList
;
}
}
...
@@ -195,6 +196,11 @@ const getFormVal = () => {
...
@@ -195,6 +196,11 @@ const getFormVal = () => {
}
}
}
}
getFormVal
()
getFormVal
()
const
handleSelect
=
(
value
)
=>
{
console
.
log
(
'选择框选择后拿到的值:'
,
value
)
formConfig
.
setFormValue
(
'agentPhone'
,
'value'
,
value
.
cellPhone
)
}
</
script
>
</
script
>
<
style
lang=
"less"
scoped
>
<
style
lang=
"less"
scoped
>
...
...
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