|
@@ -144,13 +144,13 @@ Page({
|
|
|
this.setData({
|
|
this.setData({
|
|
|
selectMode: options.selectMode === 'true'
|
|
selectMode: options.selectMode === 'true'
|
|
|
});
|
|
});
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
// 检查是否是从线索详情页面跳转过来的
|
|
// 检查是否是从线索详情页面跳转过来的
|
|
|
if (options.clueId && options.clueInfo) {
|
|
if (options.clueId && options.clueInfo) {
|
|
|
try {
|
|
try {
|
|
|
const clueInfo = JSON.parse(decodeURIComponent(options.clueInfo));
|
|
const clueInfo = JSON.parse(decodeURIComponent(options.clueInfo));
|
|
|
let form = this.data.form;
|
|
let form = this.data.form;
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
// 填充线索信息到表单
|
|
// 填充线索信息到表单
|
|
|
form = form.map(v => {
|
|
form = form.map(v => {
|
|
|
switch (v.valueName) {
|
|
switch (v.valueName) {
|
|
@@ -175,7 +175,7 @@ Page({
|
|
|
case "sat_orderclueid":
|
|
case "sat_orderclueid":
|
|
|
// 禁用选择线索字段
|
|
// 禁用选择线索字段
|
|
|
v.disabled = true;
|
|
v.disabled = true;
|
|
|
- v.value = [clueInfo.name,[clueInfo.sat_orderclueid]] || '';
|
|
|
|
|
|
|
+ v.value = [clueInfo.name, [clueInfo.sat_orderclueid]] || '';
|
|
|
break;
|
|
break;
|
|
|
case "ext_no":
|
|
case "ext_no":
|
|
|
v.value = clueInfo.ext_no || '';
|
|
v.value = clueInfo.ext_no || '';
|
|
@@ -198,14 +198,14 @@ Page({
|
|
|
}
|
|
}
|
|
|
return v
|
|
return v
|
|
|
});
|
|
});
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
this.setData({
|
|
this.setData({
|
|
|
"content.sat_orderclueid": [options.clueId, [options.clueId]],
|
|
"content.sat_orderclueid": [options.clueId, [options.clueId]],
|
|
|
form
|
|
form
|
|
|
});
|
|
});
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
this.selectComponent("#Form").confirm()
|
|
this.selectComponent("#Form").confirm()
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
// 设置页面标题为转化客户
|
|
// 设置页面标题为转化客户
|
|
|
wx.setNavigationBarTitle({
|
|
wx.setNavigationBarTitle({
|
|
|
title: '转化客户'
|
|
title: '转化客户'
|
|
@@ -334,6 +334,7 @@ Page({
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
} else if (content.sa_customersid == 0) {
|
|
} else if (content.sa_customersid == 0) {
|
|
|
|
|
+ getCurrentPages().find(v => v.__route__ == 'CRM/lead/detail').selectComponent("#FollowRecord").getList("", true)
|
|
|
// 非选择模式,跳转到客户详情
|
|
// 非选择模式,跳转到客户详情
|
|
|
wx.redirectTo({
|
|
wx.redirectTo({
|
|
|
url: '/CRM/customer/detail?id=' + res.data,
|
|
url: '/CRM/customer/detail?id=' + res.data,
|