|
|
@@ -37,38 +37,6 @@ Page({
|
|
|
valueName: "followupmode",
|
|
|
required: true,
|
|
|
checking: "base"
|
|
|
- },
|
|
|
- {
|
|
|
- label: "跟进结果",
|
|
|
- error: false,
|
|
|
- errMsg: "",
|
|
|
- type: "radio",
|
|
|
- value: "继续跟进",
|
|
|
- radioList: [{
|
|
|
- id: "继续跟进",
|
|
|
- name: "继续跟进"
|
|
|
- },
|
|
|
- {
|
|
|
- id: "预约到店",
|
|
|
- name: "预约到店"
|
|
|
- },
|
|
|
- {
|
|
|
- id: "互加微信",
|
|
|
- name: "互加微信"
|
|
|
- },
|
|
|
- {
|
|
|
- id: "转化",
|
|
|
- name: "转化"
|
|
|
- },
|
|
|
- {
|
|
|
- id: "无效",
|
|
|
- name: "无效"
|
|
|
- }
|
|
|
- ],
|
|
|
- valueName: "logtype",
|
|
|
- required: true,
|
|
|
- checking: "base",
|
|
|
- interrupt: true
|
|
|
}, {
|
|
|
label: "跟进内容",
|
|
|
error: false,
|
|
|
@@ -85,7 +53,7 @@ Page({
|
|
|
"sat_orderclueid": "",
|
|
|
"content": "",
|
|
|
"followupmode": "",
|
|
|
- "logtype": ""
|
|
|
+ "logtype": "继续跟进"
|
|
|
}
|
|
|
},
|
|
|
onLoad(options) {
|
|
|
@@ -139,11 +107,12 @@ Page({
|
|
|
// 合并跟进日期和时间
|
|
|
let followDateTime = formData.followDate + ' ' + formData.followTime;
|
|
|
|
|
|
- // 构建content
|
|
|
+ // 构建content,使用默认的logtype值
|
|
|
let content = {
|
|
|
...this.data.content,
|
|
|
...formData,
|
|
|
- followTime: followDateTime
|
|
|
+ followTime: followDateTime,
|
|
|
+ logtype: "继续跟进"
|
|
|
};
|
|
|
|
|
|
// 删除不需要的字段
|
|
|
@@ -186,28 +155,7 @@ Page({
|
|
|
});
|
|
|
});
|
|
|
},
|
|
|
- interrupt({
|
|
|
- detail
|
|
|
- }) {
|
|
|
- if (detail.data.label == '跟进结果') {
|
|
|
- let form = detail.form;
|
|
|
- const contentField = form.find(v => v.valueName == 'content');
|
|
|
-
|
|
|
- if (detail.data.value == '无效') {
|
|
|
- // 当选择"无效"时,将跟进内容的label改为"无效原因"
|
|
|
- contentField.label = "无效原因";
|
|
|
- contentField.placeholder = "请输入无效原因";
|
|
|
- } else {
|
|
|
- // 当选择其他选项时,将label改回"跟进内容"
|
|
|
- contentField.label = "跟进内容";
|
|
|
- contentField.placeholder = "请输入跟进内容";
|
|
|
- }
|
|
|
|
|
|
- this.setData({
|
|
|
- form
|
|
|
- });
|
|
|
- }
|
|
|
- },
|
|
|
/* 表单必填项是否完成 */
|
|
|
onConfirm({
|
|
|
detail
|