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

27
pages/market/clue/edit_clues.vue

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

Loading…
Cancel
Save