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
Hide 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({
default
:
''
},
})
const
emit
=
defineEmits
([
'update:modelValue'
])
const
emit
=
defineEmits
([
'update:modelValue'
,
'afterSelect'
])
const
nowItem
=
ref
({})
const
typeShow
=
ref
(
false
)
...
...
@@ -168,6 +168,7 @@ function chooser(formItem) {
function
typeOnConfirm
(
value
,
type
)
{
emit
(
'afterSelect'
,
{...
value
})
if
(
type
===
'picker'
)
{
if
(
isObject
(
value
))
{
nowItem
.
value
.
value
=
value
.
value
...
...
@@ -199,7 +200,7 @@ function typeOnCancel() {
function
fieldOnFocus
(
obj
)
{
if
(
!
obj
.
value
||
+
obj
.
value
==
0
)
{
obj
.
value
=
''
}
}
}
function
getClass
(
item
)
{
...
...
src/modules/intention/views/intentionForm.vue
View file @
763a8d36
...
...
@@ -4,7 +4,7 @@
<div
class=
"content"
>
<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"
maxlength=
"200"
placeholder=
"最多可编写200字"
show-word-limit
/>
</section>
...
...
@@ -149,9 +149,10 @@ const handleAgent = async () => {
cityIdN
:
item
.
cityIdN
||
''
,
bpName
:
item
.
bpName
,
bpCode
:
item
.
bpCode
,
cellPhone
:
item
.
cellPhone
,
})
).
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
)))
formStore
.
agentList
=
agentList
;
}
...
...
@@ -195,6 +196,11 @@ const getFormVal = () => {
}
}
getFormVal
()
const
handleSelect
=
(
value
)
=>
{
console
.
log
(
'选择框选择后拿到的值:'
,
value
)
formConfig
.
setFormValue
(
'agentPhone'
,
'value'
,
value
.
cellPhone
)
}
</
script
>
<
style
lang=
"less"
scoped
>
...
...
@@ -211,4 +217,4 @@ getFormVal()
height: calc(100% - var(--van-nav-bar-height));
overflow-y: auto;
}
</
style
>
\ No newline at end of file
</
style
>
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