Commit 850feff8 authored by hujun's avatar hujun

分用方编辑,显示离职,搜索离职

parent 6eabc384
<script src='/resource/lib/js/require.min.js' data-main='/resource/js/main?version=20181201' charset='utf-8'></script>
<script src='/resource/lib/js/require.min.js' data-main='/resource/js/main?version=201812011' charset='utf-8'></script>
......@@ -1329,13 +1329,13 @@ class OBargainModel extends Model
$result['scale_fee'] = empty($result['should_commission']) ? $result['scale_fee'] : $result['should_commission'];
$m_agent = new AAgents();
$filed_agent = 'a.id,a.name,a.phone,b.store_name,c.district_name,a.store_id,a.district_id';
$agent_info = $m_agent->getAgentsInfoByAgentId($filed_agent, [ 'agent_id' => $result['agent_id'] ]);
$result['district_name'] = $agent_info[0]['district_name'];
$result['store_name'] = $agent_info[0]['store_name'];
$result['name'] = $agent_info[0]['name'];
$result['phone'] = $agent_info[0]['phone'];
$result['store_id'] = $agent_info[0]['store_id'];
$result['district_id'] = $agent_info[0]['district_id'];
$agent_info = $m_agent->getStoreDistrict($filed_agent, [ 'a.id' => $result['agent_id'] ]);
$result['district_name'] = $agent_info['district_name'];
$result['store_name'] = $agent_info['store_name'];
$result['name'] = $agent_info['name'];
$result['phone'] = $agent_info['phone'];
$result['store_id'] = $agent_info['store_id'];
$result['district_id'] = $agent_info['district_id'];
} catch (\Exception $ex) {
$result = $ex->getMessage();
......
......@@ -147,7 +147,8 @@ define(['doT', 'text!temp/commission_template_tpl.html', 'css!style/home.css', '
data: {
"district_id": $("select[name='district_id'] option:selected").val(),//部门
"store_id": $("select[name='store_id'] option:selected").val(),//门店
"phone": $("#partical_name").val()
"phone": $("#partical_name").val(),
"all" : 1
},
dataType: 'json',
success: function(data) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment