diff --git a/app/customer/model/Customer.php b/app/customer/model/Customer.php
index 1c898ef..61814be 100644
--- a/app/customer/model/Customer.php
+++ b/app/customer/model/Customer.php
@@ -34,6 +34,7 @@ class Customer extends Model
self::TWO => '意向模糊',
self::THREE => '意向一般',
self::FORE => '意向强烈',
+ self::FIVE => '已成交',
];
public static $Type = [
@@ -74,6 +75,7 @@ class Customer extends Model
$detail['create_time'] = date('Y-m-d', $detail['create_time']);
$detail['belong_department'] = Db::name('Department')->where(['id' => $detail['belong_did']])->value('title');
$detail['belong_name'] = Db::name('Admin')->where(['id' => $detail['belong_uid']])->value('name');
+ $detail['admin_name'] = Db::name('Admin')->where(['id' => $detail['admin_id']])->value('name');
$share_names = Db::name('Admin')->where([['id','in',$detail['share_ids']]])->column('name');
$detail['share_names'] = implode(',',$share_names);
diff --git a/app/customer/model/CustomerLog.php b/app/customer/model/CustomerLog.php
index 8a8db67..0dbdae5 100644
--- a/app/customer/model/CustomerLog.php
+++ b/app/customer/model/CustomerLog.php
@@ -15,7 +15,7 @@ class CustomerLog extends Model
{
public static $Sourse = [
'status' => ['未设置', '新进客户', '跟进客户', '正式客户', '流失客户'],
- 'intent_status' => ['未设置', '意向不明', '意向模糊', '意向一般', '意向强烈'],
+ 'intent_status' => ['未设置', '意向不明', '意向模糊', '意向一般', '意向强烈','已成交'],
'type' => ['其他','电话','微信','QQ','上门'],
'stage' => ['未设置','立项评估','初期沟通','需求分析','方案制定','商务谈判','合同签订','失单'],
'action' => [
diff --git a/app/customer/view/index/edit.html b/app/customer/view/index/edit.html
index d6679b1..462702a 100644
--- a/app/customer/view/index/edit.html
+++ b/app/customer/view/index/edit.html
@@ -19,9 +19,20 @@
联系地址* |
-
+ |
|
+ 客户等级* |
+
+
+ |
+
+
所属行业* |
|
- 客户等级* |
+ 意向状态 |
- |
+ 客户状态 |
+
+
+
+
+
+
+
|
diff --git a/app/customer/view/index/view.html b/app/customer/view/index/view.html
index c10d701..ca171b5 100644
--- a/app/customer/view/index/view.html
+++ b/app/customer/view/index/view.html
@@ -22,28 +22,51 @@ html{background-color:#fff;}
客户名称 |
{$detail.name} |
- 客户来源 |
+ 录入人 |
- {volist name=":customer_source()" id="v"}
- {eq name="$v.id" value="$detail.source_id" }{$v.title}{/eq}
- {/volist}
+ {$detail.admin_name}
|
联系地址 |
-
+ |
{$detail.address}
|
+ 客户等级 |
+
+ {volist name=":customer_grade()" id="v"}
+ {eq name="$v.id" value="$detail.grade_id"}{$v.title}{/eq}
+ {/volist}
+ |
+
+
所属行业 |
{volist name=":get_industry()" id="v"}
{eq name="$v.id" value="$detail.industry_id"}{$v.title}{/eq}
{/volist}
|
- 客户等级 |
+ 意向状态 |
- {volist name=":customer_grade()" id="v"}
- {eq name="$v.id" value="$detail.grade_id"}{$v.title}{/eq}
+ {eq name="$detail.intent_status" value="0"}-{/eq}
+ {eq name="$detail.intent_status" value="1"}意向不明{/eq}
+ {eq name="$detail.intent_status" value="2"}意向模糊{/eq}
+ {eq name="$detail.intent_status" value="3"}意向一般{/eq}
+ {eq name="$detail.intent_status" value="4"}意向强烈{/eq}
+ {eq name="$detail.intent_status" value="5"}已成交{/eq}
+ |
+ 客户状态 |
+
+ {eq name="$detail.status" value="0"}-{/eq}
+ {eq name="$detail.status" value="1"}新进客户{/eq}
+ {eq name="$detail.status" value="2"}跟进客户{/eq}
+ {eq name="$detail.status" value="3"}跟进客户{/eq}
+ {eq name="$detail.status" value="4"}流失客户{/eq}
+ |
+ 客户来源 |
+
+ {volist name=":customer_source()" id="v"}
+ {eq name="$v.id" value="$detail.source_id" }{$v.title}{/eq}
{/volist}
|
@@ -70,7 +93,7 @@ html{background-color:#fff;}
{$detail.remark} |
-
+ |
相关附件
{eq name="$detail.status" value="1" }{/eq}
|
@@ -95,7 +118,7 @@ html{background-color:#fff;}
首要联系人信息 |
- 联系人姓名 |
+ 姓名称呼 |
{$contact.name} |
手机号码 |
{$contact.mobile} |