去掉无用的参数
修改表单构建关联字段的逻辑 修改外部插件说明
This commit is contained in:
@@ -148,8 +148,6 @@ class BusinessController extends DefaultController
|
||||
|
||||
$user = User::find($gets['user_id']);
|
||||
|
||||
NotificationService::sms([$gets['contacts_phone']], '感谢您对川南公司的关注', '负责您的业务人员是'.$user['name'].',电话'.$user['phone'].'。您可与其沟通或登陆www.cnnzfood.com');
|
||||
|
||||
return $this->json('恭喜你,操作成功。', true);
|
||||
}
|
||||
|
||||
|
||||
@@ -138,7 +138,7 @@ class RegionTaskController extends AuditController
|
||||
],[
|
||||
'form_type' =>'dialog',
|
||||
'field' => 'region_id',
|
||||
'name' => '销售团队',
|
||||
'name' => '销售组',
|
||||
'options' => ['url' => 'customer/region/dialog', 'query' => ['layer' => 3]]
|
||||
],
|
||||
], 'model');
|
||||
|
||||
+3
-3
@@ -13,12 +13,12 @@ use Gdoo\Customer\Services\CustomerService;
|
||||
|
||||
use Gdoo\Index\Controllers\DefaultController;
|
||||
|
||||
class AccountReportController extends DefaultController
|
||||
class ReportController extends DefaultController
|
||||
{
|
||||
public $permission = [];
|
||||
|
||||
// 客户对账单
|
||||
public function indexAction()
|
||||
public function accountStatementAction()
|
||||
{
|
||||
$sdate = date('Y-01-01');
|
||||
$edate = date('Y-m-d');
|
||||
@@ -67,7 +67,7 @@ class AccountReportController extends DefaultController
|
||||
$json = collect();
|
||||
$one = [];
|
||||
|
||||
// 获取用友数据
|
||||
// 获取外部接口数据
|
||||
$res = plugin_sync_api('acclist/code/'.$taxs->implode('code', ',').'/start_dt/'.$start_dt.'/end_dt/'.$end_dt);
|
||||
if (count($res['data'])) {
|
||||
// 获取初期余额
|
||||
@@ -132,7 +132,7 @@ class TaskController extends AuditController
|
||||
],[
|
||||
'form_type' =>'dialog',
|
||||
'field' => 'region_id',
|
||||
'name' => '销售团队',
|
||||
'name' => '销售组',
|
||||
'options' => ['url' => 'customer/region/dialog', 'query' => ['layer' => 3]]
|
||||
],
|
||||
], 'model');
|
||||
|
||||
@@ -60,16 +60,6 @@ class CustomerApplyHook
|
||||
bank_address
|
||||
')->first();
|
||||
|
||||
// 自动处理区域
|
||||
if ($apply['region_id']) {
|
||||
$regions = DB::table('customer_region')->get()->keyBy('id');
|
||||
$region1 = $regions[$apply['region_id']];
|
||||
$region2 = $regions[$region1['parent_id']];
|
||||
$region3 = $regions[$region2['parent_id']];
|
||||
$apply['region2_id'] = $region2['id'];
|
||||
$apply['region3_id'] = $region3['id'];
|
||||
}
|
||||
|
||||
// 新建客户
|
||||
$customer = new Customer;
|
||||
$customer->fill($apply);
|
||||
@@ -113,7 +103,7 @@ class CustomerApplyHook
|
||||
$_apply->code = $customer['code'];
|
||||
$_apply->save();
|
||||
|
||||
// 客户档案写入用友
|
||||
// 客户档案写入外部接口
|
||||
$department = DB::table('department')->where('id', $customer['department_id'])->first();
|
||||
$class = DB::table('customer_class')->where('id', $customer['class_id'])->first();
|
||||
$customer['class_code'] = $class['code'];
|
||||
|
||||
@@ -40,16 +40,6 @@ class CustomerHook
|
||||
}
|
||||
$user->fill($_user)->save();
|
||||
$master['user_id'] = $user->id;
|
||||
|
||||
// 自动处理区域
|
||||
if ($master['region_id']) {
|
||||
$regions = DB::table('customer_region')->get()->keyBy('id');
|
||||
$region1 = $regions[$master['region_id']];
|
||||
$region2 = $regions[$region1['parent_id']];
|
||||
$region3 = $regions[$region2['parent_id']];
|
||||
$master['region2_id'] = $region2['id'];
|
||||
$master['region3_id'] = $region3['id'];
|
||||
}
|
||||
$params['master'] = $master;
|
||||
|
||||
return $params;
|
||||
@@ -78,7 +68,7 @@ class CustomerHook
|
||||
'status' => 1,
|
||||
]);
|
||||
|
||||
// 客户档案写入用友
|
||||
// 客户档案写入外部接口
|
||||
$department = DB::table('department')->where('id', $master['department_id'])->first();
|
||||
$class = DB::table('customer_class')->where('id', $customer['class_id'])->first();
|
||||
$customer['class_code'] = $class['code'];
|
||||
@@ -105,13 +95,5 @@ class CustomerHook
|
||||
$row = $params['row'];
|
||||
$ret = $params['ret'];
|
||||
abort_error('客户档案暂时无法导入');
|
||||
// $row['password']
|
||||
if ($ret['id']) {
|
||||
//DB::table($table)->where('id', $ret['id'])->update($row);
|
||||
} else {
|
||||
//$row['id'] = DB::table($table)->insertGetId($row);
|
||||
}
|
||||
//print_r($row);
|
||||
// exit;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -36,7 +36,7 @@ class TaxHook
|
||||
$customer->tax_max_id = $max_id;
|
||||
$customer->save();
|
||||
|
||||
// 客户档案写入用友
|
||||
// 客户档案写入外部接口
|
||||
$department = DB::table('department')->where('id', $tax['department_id'])->first();
|
||||
$class = DB::table('customer_class')->where('id', $tax['class_id'])->first();
|
||||
$tax['class_code'] = $class['code'];
|
||||
|
||||
@@ -9,7 +9,7 @@ class CustomerRegion extends BaseModel
|
||||
public static $tabs = [
|
||||
'name' => 'tab',
|
||||
'items' => [
|
||||
['value' => 'region.index', 'url' => 'customer/region/index', 'name' => '销售团队'],
|
||||
['value' => 'region.index', 'url' => 'customer/region/index', 'name' => '销售组'],
|
||||
]
|
||||
];
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
return [
|
||||
"name" => "客户管理",
|
||||
"version" => "1.0",
|
||||
"description" => "潜在客户资料上传,通过手机客户端收集客户资料。",
|
||||
"description" => "客户管理。",
|
||||
'dialogs' => [
|
||||
'customer_price' => [
|
||||
'name' => '客户销售价格',
|
||||
@@ -10,7 +10,7 @@ return [
|
||||
'url' => 'customer/price/dialog',
|
||||
],
|
||||
'customer_region' => [
|
||||
'name' => '销售团队',
|
||||
'name' => '销售组',
|
||||
'model' => 'Gdoo\Customer\Models\Region::Dialog',
|
||||
'url' => 'customer/region/dialog',
|
||||
],
|
||||
@@ -128,7 +128,7 @@ return [
|
||||
]
|
||||
],
|
||||
"region" => [
|
||||
"name" => "销售团队",
|
||||
"name" => "销售组",
|
||||
"actions" => [
|
||||
"index" => [
|
||||
"name" => "列表"
|
||||
@@ -226,7 +226,7 @@ return [
|
||||
]
|
||||
],
|
||||
"regionTask" => [
|
||||
"name" => "区域任务",
|
||||
"name" => "销售任务",
|
||||
"actions" => [
|
||||
"index" => [
|
||||
"name" => "列表"
|
||||
@@ -254,6 +254,7 @@ return [
|
||||
],
|
||||
]
|
||||
],
|
||||
/*
|
||||
"business" => [
|
||||
"name" => "客户商机",
|
||||
"actions" => [
|
||||
@@ -274,6 +275,7 @@ return [
|
||||
]
|
||||
]
|
||||
],
|
||||
*/
|
||||
"price" => [
|
||||
"name" => "客户销售价格",
|
||||
"actions" => [
|
||||
@@ -378,10 +380,10 @@ return [
|
||||
]
|
||||
]
|
||||
],
|
||||
"accountReport" => [
|
||||
"name" => "客户对账单",
|
||||
"report" => [
|
||||
"name" => "客户报表",
|
||||
"actions" => [
|
||||
"index" => [
|
||||
"accountStatement" => [
|
||||
"name" => "客户对账单"
|
||||
],
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user