customers put add wxgr about, clues c_from fix
This commit is contained in:
@@ -185,7 +185,12 @@ class Clues extends HD_Controller
|
||||
}
|
||||
$dataInfo['editType'] = 0;
|
||||
$re_cf = $this->clues_cfrom_model->get(array('id' => $re['cf_id']));
|
||||
$info_show['cfrom_title'] = $re_cf['title'] ? $re_cf['title'] : '';
|
||||
$re_cf_title_p = '';
|
||||
if ($re_cf && $re_cf['pid']){
|
||||
$re_cf_pid = $this->clues_cfrom_model->get(array('id' => $re_cf['pid']));
|
||||
$re_cf_title_p = $re_cf_pid['title'] ? $re_cf_pid['title'].'-' : '';
|
||||
}
|
||||
$info_show['cfrom_title'] = $re_cf['title'] ? $re_cf_title_p.$re_cf['title'] : '';
|
||||
$info_show['statusList'] = $statusList;
|
||||
$info_show['status2List'] = $status2List;
|
||||
$info_show['c_time'] = date('Y-m-d H:i', $re['c_time']);
|
||||
|
||||
@@ -78,7 +78,7 @@
|
||||
</td>
|
||||
<td class="table-td">
|
||||
<div class="input-group">
|
||||
<div class="input-group-addon">渠道来源:</div>
|
||||
<div class="input-group-addon">线索来源:</div>
|
||||
{{infoShow.cfrom_title}}
|
||||
</div>
|
||||
</td>
|
||||
|
||||
@@ -86,7 +86,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="am-form-group fl">
|
||||
<label class="am-para-label w100">客户来源:</label>
|
||||
<label class="am-para-label w100">线索来源:</label>
|
||||
<div class="am-form-group am-para-inline w150">
|
||||
<select name="cfrom_id" v-model="cfrom_id">
|
||||
<option value=0>请选择</option>
|
||||
@@ -181,7 +181,7 @@
|
||||
<input type="checkbox" data-check-target=".order-ids"> 全选</label></th>
|
||||
<th width="5%"><span>客户姓名</span></th>
|
||||
<th width="5%"><span>客户电话</span></th>
|
||||
<th width="8%"><span>客户来源</span></th>
|
||||
<th width="8%"><span>线索来源</span></th>
|
||||
<th width="8%"><span>状态</span></th>
|
||||
<th width="4%"><span>跟进人</span></th>
|
||||
<th width="7%"><span>创建时间</span></th>
|
||||
|
||||
@@ -105,6 +105,7 @@ class Customers extends Wxapp
|
||||
'mobile' => ['value' => $this->get_mobile(['mobile' => $row['mobile'], 'of_id' => $row['of_id'], 'of2_id' => $row['of2_id']]), 'cn' => '客户电话'],
|
||||
'of_id' => ['value' => $of_title, 'of_id' => intval($row['of_id']), 'of2_id' => intval($row['of2_id']), 'cn' => '线索来源'],
|
||||
'buy_time' => ['value' => $row['buy_time'], 'cn' => '预计购车时间'],
|
||||
'wxgr' => $row['wxgr'],
|
||||
];
|
||||
return $data;
|
||||
}
|
||||
@@ -175,6 +176,7 @@ class Customers extends Wxapp
|
||||
$tag = $this->input_param('tag'); //客户标签
|
||||
$city_id = $this->input_param('city_id'); //城市id
|
||||
$county_id = $this->input_param('county_id'); //区id
|
||||
$wxgr = $this->input_param('wxgr'); //是否加个微
|
||||
$row = $this->customers_model->get(['id' => $id]);
|
||||
if (!$row) {
|
||||
throw new Exception('参数错误', ERR_PARAMS_ERROR);
|
||||
@@ -196,6 +198,7 @@ class Customers extends Wxapp
|
||||
$of2_id && $update['of2_id'] = $of2_id;
|
||||
$city_id && $update['city_id'] = $city_id;
|
||||
$county_id && $update['county_id'] = $county_id;
|
||||
$wxgr && $update['wxgr'] = intval($wxgr) ? 1 : 0;
|
||||
if ($buy_time) {
|
||||
$this->load->library('receiver/customers_entity');
|
||||
$update['level'] = $this->customers_entity->cal_level($buy_time);
|
||||
@@ -243,6 +246,7 @@ class Customers extends Wxapp
|
||||
$tag = $this->input_param('tag'); //客户标签
|
||||
$city_id = $this->input_param('city_id'); //城市id
|
||||
$county_id = $this->input_param('county_id'); //区id
|
||||
$wxgr = $this->input_param('wxgr'); //是否加个微
|
||||
if (!mobile_valid($mobile)) throw new Exception('请输入正确的手机号码', ERR_PARAMS_ERROR);
|
||||
if (!$city_id || !$county_id) {
|
||||
throw new Exception('请选择城市与行政区', API_CODE_FAIL);
|
||||
@@ -276,6 +280,7 @@ class Customers extends Wxapp
|
||||
'status' => $status,
|
||||
'city_id' => $city_id,
|
||||
'county_id' => $county_id,
|
||||
'wxgr' => intval($wxgr) ? 1 : 0,
|
||||
'c_time' => time()
|
||||
];
|
||||
if ($biz_row['type'] == 5) {//异业店
|
||||
|
||||
Reference in New Issue
Block a user