|
|
|
@ -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' |
|
|
|
<fui-form-item |
|
|
|
label="跟进类型" |
|
|
|
asterisk |
|
|
|
asteriskPosition="right" |
|
|
|
labelSize='26' |
|
|
|
prop="name" |
|
|
|
background='#434544' |
|
|
|
labelColor='#fff' |
|
|
|
:bottomBorder='false'> |
|
|
|
: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 |
|
|
|
|