Browse Source

feat(market): 添加决策人字段并优化客户状态默认值

- 在 add_clues 和 edit_clues 页面中添加决策人字段
- 将客户状态的默认值设置为 "pending"
- 优化决策人字段的展示和选择逻辑- 更新相关数据结构和方法以支持决策人功能
master
liutong 10 months ago
parent
commit
790b648930
  1. 30
      pages/market/clue/add_clues.vue
  2. 27
      pages/market/clue/edit_clues.vue

30
pages/market/clue/add_clues.vue

@ -226,15 +226,12 @@
labelColor='#fff' labelColor='#fff'
:bottomBorder='false'> :bottomBorder='false'>
<view class="input-title" style="margin-right:14rpx;"> <view class="input-title" style="margin-right:14rpx;">
<fui-input <view
:borderBottom="false" class="input-title"
:padding="[0]" style="margin-right:14rpx;"
placeholder="点击填写" @click="openCicker(`decision_maker`)">
v-model="formData.decision_maker" {{ (formData.decision_maker) ? picker_config.decision_maker.text : '点击选择' }}
backgroundColor="#434544" </view>
size="26"
color="#fff"
></fui-input>
</view> </view>
</fui-form-item> </fui-form-item>
<!--客户初步意向度--> <!--客户初步意向度-->
@ -258,6 +255,7 @@
</fui-form-item> </fui-form-item>
<!--客户状态--> <!--客户状态-->
<fui-form-item <fui-form-item
v-show="false"
label="客户状态" label="客户状态"
asterisk asteriskPosition="right" asterisk asteriskPosition="right"
labelSize='26' labelSize='26'
@ -609,7 +607,7 @@ export default {
demand:'',// demand:'',//
decision_maker:'',// decision_maker:'',//
initial_intent:'',//: high-, medium-, low- initial_intent:'',//: high-, medium-, low-
status:'',//: active-, inactive-, pending- status:'pending',//: active-, inactive-, pending-
// //
purchasing_power:'',// purchasing_power:'',//
@ -667,6 +665,11 @@ export default {
text:'', text:'',
options:[], options:[],
}, },
//
decision_maker:{
text:'',
options:[],
},
// //
campus:{ campus:{
text:'', text:'',
@ -725,6 +728,7 @@ export default {
await this.getDict('initial_intent')//- await this.getDict('initial_intent')//-
await this.getDict('cognitive_idea')//- await this.getDict('cognitive_idea')//-
await this.getDict('status')//- await this.getDict('status')//-
await this.getDict('decision_maker')//-
// this.getStaffList()// // this.getStaffList()//
// this.getAreaTree()// // this.getAreaTree()//
}, },
@ -855,6 +859,10 @@ export default {
case 'cognitive_idea': case 'cognitive_idea':
key = 'cognitive_concept' key = 'cognitive_concept'
break; break;
//
case 'decision_maker':
key = 'decision_maker'
break;
// //
case 'initial_intent': case 'initial_intent':
key = 'preliminarycustomerintention' key = 'preliminarycustomerintention'
@ -1135,7 +1143,7 @@ export default {
}, },
//- //-
changeCicker(e) { changeCicker(e) {
console.log('监听-下拉选择器', this.picker_input_name, e) console.log('监听-下拉选择器', this.picker_input_name, e,this.formData)
let input_name = this.picker_input_name let input_name = this.picker_input_name
this.formData[input_name] = e.value this.formData[input_name] = e.value
this.picker_config[input_name]['text'] = e.text this.picker_config[input_name]['text'] = e.text

27
pages/market/clue/edit_clues.vue

@ -226,15 +226,12 @@
labelColor='#fff' labelColor='#fff'
:bottomBorder='false'> :bottomBorder='false'>
<view class="input-title" style="margin-right:14rpx;"> <view class="input-title" style="margin-right:14rpx;">
<fui-input <view
:borderBottom="false" class="input-title"
:padding="[0]" style="margin-right:14rpx;"
placeholder="点击填写" @click="openCicker(`decision_maker`)">
v-model="formData.decision_maker" {{ (formData.decision_maker) ? picker_config.decision_maker.text : '点击选择' }}
backgroundColor="#434544" </view>
size="26"
color="#fff"
></fui-input>
</view> </view>
</fui-form-item> </fui-form-item>
@ -719,6 +716,11 @@ export default {
status:{ status:{
text:'', text:'',
options:[], options:[],
},
//
decision_maker:{
text:'',
options:[],
} }
},// },//
@ -769,6 +771,7 @@ export default {
await this.getDict('initial_intent')//- await this.getDict('initial_intent')//-
await this.getDict('cognitive_idea')//- await this.getDict('cognitive_idea')//-
await this.getDict('status')//- await this.getDict('status')//-
await this.getDict('decision_maker')//-
// this.getStaffList()// // this.getStaffList()//
// this.getAreaTree()// // this.getAreaTree()//
@ -833,6 +836,8 @@ export default {
this.picker_config.initial_intent.text = customerResource.initial_intent_name || '点击选择'// this.picker_config.initial_intent.text = customerResource.initial_intent_name || '点击选择'//
this.picker_config.status.text = customerResource.status_name || '点击选择'// this.picker_config.status.text = customerResource.status_name || '点击选择'//
this.picker_config.decision_maker.text = customerResource.decision_maker || '点击选择'//
// //
this.picker_config.purchasing_power.text = sixSpeed.purchase_power_name || '点击选择'// this.picker_config.purchasing_power.text = sixSpeed.purchase_power_name || '点击选择'//
this.picker_config.cognitive_idea.text = sixSpeed.concept_awareness_name || '点击选择'// this.picker_config.cognitive_idea.text = sixSpeed.concept_awareness_name || '点击选择'//
@ -947,6 +952,10 @@ export default {
case 'cognitive_idea': case 'cognitive_idea':
key = 'cognitive_concept' key = 'cognitive_concept'
break; break;
//
case 'decision_maker':
key = 'decision_maker'
break;
// //
case 'initial_intent': case 'initial_intent':
key = 'preliminarycustomerintention' key = 'preliminarycustomerintention'

Loading…
Cancel
Save