Browse Source

feat(market): 初始化市场线索跟进页面数据

- 添加字典数据获取方法,包括跟进类型和提醒方式
- 实现签单意向联系人和跟进人员的数据获取接口
- 优化页面加载逻辑,确保数据及时加载显示
master
liutong 1 year ago
parent
commit
ef4bd92526
  1. 93
      pages/market/clue/writing_followUp.vue

93
pages/market/clue/writing_followUp.vue

@ -3,9 +3,16 @@
<view class="form-style">
<fui-form ref="form" top="0" :model="formData" :show="false">
<view class="input-style">
<fui-form-item label="跟进类型" asterisk asteriskPosition="right" labelSize='26' prop="name" background='#434544'
labelColor='#fff'
:bottomBorder='false'>
<fui-form-item
label="跟进类型"
asterisk
asteriskPosition="right"
labelSize='26'
prop="name"
background='#434544'
labelColor='#fff'
:bottomBorder='false'
>
<view class="input-title" style="margin-right:14rpx;" v-if="result_leixing == ''"
@click="selectCon(2)">点击选择
</view>
@ -130,6 +137,9 @@
</template>
<script>
import commonApi from '@/api/common.js';
import marketApi from '@/api/market.js';
const rules = [{
name: "mobile",
rule: ["required", "isMobile"],
@ -156,16 +166,8 @@ export default {
options: [],
linkage: true,
options_type: undefined,
options_leixing: [{
'value': 1,
'text': '类型1'
}, {
'value': 2,
'text': '类型2'
}, {
'value': 3,
'text': '类型3'
}],
options_leixing: [],//
options_student: [{
'value': 1,
'text': '张三'
@ -219,10 +221,72 @@ export default {
}, {
'value': 2,
'text': '微信'
}]
}],
follow_up_type:[],//
signing_intention_contact:[],//
follow_up_personnel:[],//
reminder_method:[],//
}
},
onLoad(options) {
},
onShow() {
this.init()
},
methods: {
//
async init() {
this.getDicFollow_up_type()//-
this.getDicReminder_method()//-
this.getSigning_intention_contact()//
this.getFollow_up_personnel()//
},
//-
async getDicFollow_up_type() {
let key = 'follow_up_type'
let res = await commonApi.getDictionary(key)
if (res.code != 1) {
uni.showToast({
title: res.msg,
icon: 'none'
})
return
}
this.follow_up_type = res.data.dictionary
this.options_leixing = []
res.data.dictionary.forEach((v,k)=>{
this.options_leixing.push({
value:v.value,
text:v.name,
})
})
},
//-
async getDicReminder_method() {
let key = 'reminder_method'
let res = await commonApi.getDictionary(key)
if (res.code != 1) {
uni.showToast({
title: res.msg,
icon: 'none'
})
return
}
this.reminder_method = res.data.dictionary
},
//
async getSigning_intention_contact() {},
//
async getFollow_up_personnel() {},
submit() {
console.log(this.formData)
this.$refs.form.validator(null, null, true).then(res => {
@ -243,6 +307,7 @@ export default {
this.options_date_type = 1
this.show_date = true
} else if (type == 2) {
//
this.options_type = 2
this.options = this.options_leixing
this.show = true

Loading…
Cancel
Save