Commit e2ecf9b8 authored by WangRui's avatar WangRui

[feature]融资意向调整

parent c1e92f84
...@@ -168,7 +168,7 @@ function chooser(formItem) { ...@@ -168,7 +168,7 @@ function chooser(formItem) {
function typeOnConfirm(value, type) { function typeOnConfirm(value, type) {
emit('afterSelect', {...value}) emit('afterSelect', {...value, type})
if (type === 'picker') { if (type === 'picker') {
if (isObject(value)) { if (isObject(value)) {
nowItem.value.value = value.value nowItem.value.value = value.value
......
...@@ -103,9 +103,9 @@ const formRaw = [ ...@@ -103,9 +103,9 @@ const formRaw = [
] ]
const form = $ref(); const form = $ref();
const message = $ref('') let message = $ref('')
const formConfig = $ref(new AuFormClass(formRaw)) const formConfig = $ref(new AuFormClass(formRaw))
const messageDisabled = $ref(false) let messageDisabled = $ref(false)
let agentList = [] let agentList = []
const router = useRouter() const router = useRouter()
...@@ -175,8 +175,10 @@ const getLocation = () => { ...@@ -175,8 +175,10 @@ const getLocation = () => {
if (temp2.length) { if (temp2.length) {
formConfig.setFormValue('agentBpName', 'value', temp2[0].text) formConfig.setFormValue('agentBpName', 'value', temp2[0].text)
formConfig.setFormValue('agentPhone', 'value', temp2[0].cellPhone)
} else { } else {
formConfig.setFormValue('agentBpName', 'value', temp1[0].text) formConfig.setFormValue('agentBpName', 'value', temp1[0].text)
formConfig.setFormValue('agentPhone', 'value', temp1[0].cellPhone)
} }
} }
...@@ -199,7 +201,9 @@ getFormVal() ...@@ -199,7 +201,9 @@ getFormVal()
const handleSelect = (value) => { const handleSelect = (value) => {
console.log('选择框选择后拿到的值:', value) console.log('选择框选择后拿到的值:', value)
if(value.type === "picker"){
formConfig.setFormValue('agentPhone', 'value', value.cellPhone) formConfig.setFormValue('agentPhone', 'value', value.cellPhone)
}
} }
</script> </script>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment