This commit is contained in:
xiaoyu
2024-05-13 17:29:03 +08:00
parent bdfcb7bb07
commit 5fc163b902
3 changed files with 7 additions and 7 deletions
+4 -4
View File
@@ -587,14 +587,14 @@ class Clues extends HD_Controller
$biz = $this->bizs[$province_id]['list'][$biz_id];
if (!$biz) {
return $this->show_json(SYS_CODE_FAIL, '请选择分配门店!');
return $this->show_json(SYS_CODE_FAIL, '请选择派单门店!');
}
$biz['id'] = $biz_id;
$clue_row = $this->clues_model->get(['id' => $id]);
if ($clue_row) {
// if($clue_row['status']){
// return $this->show_json(SYS_CODE_FAIL, '已分配');
// return $this->show_json(SYS_CODE_FAIL, '已派单');
// }
$result = $this->push_neta($clue_row['name'], $clue_row['mobile'], $province_id, $biz, $intent, $remark);
@@ -612,11 +612,11 @@ class Clues extends HD_Controller
);
$this->clues_model->update($update, ['id' => $id]);
return $this->show_json(SYS_CODE_SUCCESS, '分配成功!');
return $this->show_json(SYS_CODE_SUCCESS, '派单成功!');
}
}
return $this->show_json(SYS_CODE_FAIL, '分配失败!');
return $this->show_json(SYS_CODE_FAIL, '派单失败!');
}
/**
+2 -2
View File
@@ -147,7 +147,7 @@
<tr>
<td><?= $v['void'] ?></td>
<td><?= $v['name'] ?></td>
<td><?= $v['mobile'] ?></td>
<td><?= $v['status'] ? substr($v['mobile'], 0, 3) . str_repeat('*', strlen($v['mobile']) - 7) . substr($v['mobile'], -4) : $v['mobile'] ?></td>
<td><?= $v['pro_name'] ?> <?= $v['biz_name'] ?></td>
<td><?= $v['status_name'] ?></td>
<td><?= date('Y-m-d H:i:s', $v['c_time']) ?></td>
@@ -292,7 +292,7 @@
});
function edit_adviser(id) {
return $.form.modal("/hdcloud/clues/get_adviser?id=" + id, 'open_type=modal', "分配门店");
return $.form.modal("/hdcloud/clues/get_adviser?id=" + id, 'open_type=modal', "派单门店");
}
function load_clue() {
@@ -27,7 +27,7 @@ class Hdcloud_clues_model extends HD_Model
public function statusAry($status = '')
{
$status_ary[0] = array('name' => '待处理', 'list' => array());
$status_ary[1] = array('name' => '已分配', 'list' => array());
$status_ary[1] = array('name' => '已派单', 'list' => array());
if (strlen($status)) {
$return_status = $status_ary[$status];