Commit 763a8d36 authored by WangRui's avatar WangRui

[feature]融资意向调整

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