Commit 763a8d36 authored by WangRui's avatar WangRui

[feature]融资意向调整

parent 12651f8a
...@@ -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
......
...@@ -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>
......
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