Commit 2bc53f73 authored by zw's avatar zw

Merge remote-tracking branch 'origin/1210-v3.0.2' into 1210-v3.0.2

parents 89725e66 4690515c
...@@ -26,6 +26,7 @@ use app\model\OMarchInModel; ...@@ -26,6 +26,7 @@ use app\model\OMarchInModel;
use app\model\OPayLogAdjustment; use app\model\OPayLogAdjustment;
use app\model\OrderModel; use app\model\OrderModel;
use app\model\ORealIncome; use app\model\ORealIncome;
use app\model\OReportModel;
use app\model\OTaxes; use app\model\OTaxes;
use app\model\OFinancialAudit; use app\model\OFinancialAudit;
use app\model\OPartialCommission; use app\model\OPartialCommission;
...@@ -2416,14 +2417,14 @@ class Finance extends Basic ...@@ -2416,14 +2417,14 @@ class Finance extends Basic
} }
if (empty($this->params['excel'])) { if (empty($this->params['excel'])) {
$field = 'a.id,a.create_time,a.order_id,a.father_id,a.money,a.real_money,a.pay_type,a.type,a.source,a.transaction_fee,a.source,'; $field = 'a.id,a.create_time,a.order_id,a.father_id,a.money,a.real_money,a.pay_type,a.type,a.source,a.transaction_fee,a.source,b.f_id,';
$field .= 'e.name,a.income_time,e.store_id,b.house_id,b.order_no,a.report_id,a.house_number,a.is_dividend,a.last_transfer_time,a.industry_type,a.agent_id'; $field .= 'e.name,a.income_time,e.store_id,b.house_id,b.order_no,a.report_id,a.house_number,a.is_dividend,a.last_transfer_time,a.industry_type,a.agent_id';
$list = $order->getAddPayLogOrderListLimit($pageNo, $pageSize, $order_ = 'a.id desc', $field, $where); $list = $order->getAddPayLogOrderListLimit($pageNo, $pageSize, $order_ = 'a.id desc', $field, $where);
$data['total'] = $order->getAddPayLogOrderListLimitTotal($where); $data['total'] = $order->getAddPayLogOrderListLimitTotal($where);
$m_store = new AStore(); $m_store = new AStore();
$m_pay_adjustment = new OPayLogAdjustment(); $m_pay_adjustment = new OPayLogAdjustment();
$m_march = new OMarchInModel(); $m_report = new OReportModel();
$m_agent_house = new GHousesToAgents(); $m_agent_house = new GHousesToAgents();
$m_agent = new AAgents(); $m_agent = new AAgents();
foreach ($list as $k=>$v) { foreach ($list as $k=>$v) {
...@@ -2444,12 +2445,12 @@ class Finance extends Basic ...@@ -2444,12 +2445,12 @@ class Finance extends Basic
if ($v['type'] == 10 || $v['type'] == 30 || $v['type'] == 91) { if ($v['type'] == 10 || $v['type'] == 30 || $v['type'] == 91) {
//意向金/保管金 10/30 对应业务员:约带看的人 即 反签方 //意向金/保管金 10/30 对应业务员:约带看的人 即 反签方
//中介费 对应业务员:约带看的人 即 反签方 //中介费 对应业务员:约带看的人 即 反签方
$current_agent_name = $m_march->getInfo('reception_name,reception_id', ['order_id'=>$v['order_id']]); $current_agent_name = $m_report->selectReportById('report_agent_name,report_store_id', ['id'=>$v['f_id']]);
if (!empty($current_agent_name['reception_id'])) { if (!empty($current_agent_name[0]['report_store_id'])) {
$store_name = $m_agent->getAgentByIdV2('b.store_name', ['a.id'=>$current_agent_name['reception_id']]); $store_name = $m_store->getStoreKeyById('store_name', ['id'=>$current_agent_name[0]['report_store_id']]);
$list[$k]['store_name'] = empty($store_name)? '' : $store_name; $list[$k]['store_name'] = empty($store_name)? '' : $store_name;
} }
$list[$k]['current_agent_name'] = empty($current_agent_name['reception_name']) ? '' : $current_agent_name['reception_name']; $list[$k]['current_agent_name'] = empty($current_agent_name[0]['report_agent_name']) ? '' : $current_agent_name[0]['report_agent_name'];
} }
if (!empty($v['income_time'])) { if (!empty($v['income_time'])) {
...@@ -2734,6 +2735,7 @@ class Finance extends Basic ...@@ -2734,6 +2735,7 @@ class Finance extends Basic
$pay_data = $m_pay->selectReceiptImgList($pay_fields, ['id'=>$this->params['pay_id']]); $pay_data = $m_pay->selectReceiptImgList($pay_fields, ['id'=>$this->params['pay_id']]);
$pay_data = $pay_data[0]; $pay_data = $pay_data[0];
//成交报告id //成交报告id
if (empty($pay_data['order_id'])) { if (empty($pay_data['order_id'])) {
$pay_data['bargain_id'] = ""; $pay_data['bargain_id'] = "";
$pay_data['is_open'] = 0; $pay_data['is_open'] = 0;
...@@ -2745,7 +2747,8 @@ class Finance extends Basic ...@@ -2745,7 +2747,8 @@ class Finance extends Basic
$pay_data['price'] = empty($bargain_data['price'])? 0:$bargain_data['price']; $pay_data['price'] = empty($bargain_data['price'])? 0:$bargain_data['price'];
$m_order = new OrderModel(); $m_order = new OrderModel();
$house_data = $m_order->selectOrderByOrderId('b.id,b.internal_address', ['order_id'=>$pay_data['order_id']]); $house_data = $m_order->selectOrderByOrderId('b.id,b.internal_address,a.f_id', ['order_id'=>$pay_data['order_id']]);
$pay_data['house_id'] = empty($house_data[0]['id']) ? '':$house_data[0]['id']; $pay_data['house_id'] = empty($house_data[0]['id']) ? '':$house_data[0]['id'];
$pay_data['address'] = empty($house_data[0]['internal_address']) ? '':$house_data[0]['internal_address']; $pay_data['address'] = empty($house_data[0]['internal_address']) ? '':$house_data[0]['internal_address'];
} }
...@@ -2757,7 +2760,7 @@ class Finance extends Basic ...@@ -2757,7 +2760,7 @@ class Finance extends Basic
$m_agent = new AAgents(); $m_agent = new AAgents();
$m_agent_house = new GHousesToAgents(); $m_agent_house = new GHousesToAgents();
$m_store = new AStore(); $m_store = new AStore();
$m_march = new OMarchInModel(); $m_report = new OReportModel();
$pay_data['current_agent_name'] = $pay_data['store_name'] = ""; $pay_data['current_agent_name'] = $pay_data['store_name'] = "";
if ($pay_data['type'] == 92) { if ($pay_data['type'] == 92) {
//案场费 对应业务员:盘方 //案场费 对应业务员:盘方
...@@ -2769,16 +2772,23 @@ class Finance extends Basic ...@@ -2769,16 +2772,23 @@ class Finance extends Basic
if ($pay_data['type'] == 10 || $pay_data['type'] == 30 || $pay_data['type'] == 91) { if ($pay_data['type'] == 10 || $pay_data['type'] == 30 || $pay_data['type'] == 91) {
//意向金/保管金 10/30 对应业务员:约带看的人 即 反签方 //意向金/保管金 10/30 对应业务员:约带看的人 即 反签方
//中介费 对应业务员:约带看的人 即 反签方 //中介费 对应业务员:约带看的人 即 反签方
$current_agent_name = $m_march->getInfo('reception_name,reception_id', ['order_id'=>$pay_data['order_id']]);
if (!empty($current_agent_name['reception_id'])) { if (isset($house_data[0]['f_id'])) {
$pay_data['store_name'] = $m_agent->getAgentByIdV2('b.store_name', ['a.id'=>$current_agent_name['reception_id']]); $current_agent_name = $m_report->selectReportById('report_agent_name,report_store_id', ['id'=>$house_data[0]['f_id']]);
if (!empty($current_agent_name[0]['report_store_id'])) {
$pay_data['store_name'] = $m_store->getStoreKeyById('store_name', ['id'=>$current_agent_name[0]['report_store_id']]);
}
$pay_data['current_agent_name'] = empty($current_agent_name[0]['report_agent_name']) ? "" : $current_agent_name[0]['report_agent_name'];
} else {
$pay_data['store_name'] = '';
$pay_data['current_agent_name'] = '';
} }
$pay_data['current_agent_name'] = empty($current_agent_name['reception_name']) ? "" : $current_agent_name['reception_name'];
} }
} catch (\Exception $e) { } catch (\Exception $e) {
$msg = '内部错误:'.$e->getMessage(); $msg = '内部错误:'.$e->getMessage();
} }
return $this->response(101, $msg, $pay_data); return $this->response(200, $msg, $pay_data);
} }
/** /**
......
...@@ -177,11 +177,11 @@ ...@@ -177,11 +177,11 @@
font-size: 15px; font-size: 15px;
text-align: center; text-align: center;
cursor: pointer; cursor: pointer;
float: left;
} }
.is-print{ .is-print{
width: 80px; width: 80px;
display: none; display: none;
float: left;
} }
.tip-con{ .tip-con{
margin-top: 5px; margin-top: 5px;
...@@ -200,11 +200,6 @@ ...@@ -200,11 +200,6 @@
<span class="manager-title ld-Marheight">杭州同联- 九部一组周小雨</span> <span class="manager-title ld-Marheight">杭州同联- 九部一组周小雨</span>
<input class="btn4-pk ld-Marheight input-pk-style" value="" data-rule-phoneus="false" data-rule-required="false" id="create_time_start" name="start_date1" type="date"> <input class="btn4-pk ld-Marheight input-pk-style" value="" data-rule-phoneus="false" data-rule-required="false" id="create_time_start" name="start_date1" type="date">
<span class="is-print ld-Marheight">打印</span> <span class="is-print ld-Marheight">打印</span>
<div class="clear">
</div>
</li> </li>
</div> </div>
<div class="panel-body manager-daily-detail"> <div class="panel-body manager-daily-detail">
...@@ -465,10 +460,11 @@ ...@@ -465,10 +460,11 @@
</div> </div>
</div> </div>
<div class="is-submit-div"> <div class="is-submit-div text-center" >
<div class="is-submit">提交</div> <!--<div class="is-submit">提交</div>-->
<a class="btn btn-primary is-submit">提交</a>
<a class="btn btn-primary is-submit-pass-btn" href="#modal_financialremark" data-toggle="modal">审核通过</a> <a class="btn btn-primary is-submit-pass-btn" href="#modal_financialremark" data-toggle="modal">审核通过</a>
<a class="btn btn-primary is-submit-passed">转到已审核</a> <a class="btn btn-primary is-submit-passed" style="margin-left: 20px;">转到已审核</a>
</div> </div>
<div class="tips-dian text-danger text-center" style="font-size: 16px; font-weight: 600;"> <div class="tips-dian text-danger text-center" style="font-size: 16px; font-weight: 600;">
...@@ -485,7 +481,7 @@ ...@@ -485,7 +481,7 @@
<div id="main_loading_pic"> <div id="main_loading_pic">
<img src="/resource/image/jz2.gif"> <img src="/resource/image/jz2.gif">
</div> </div>
<!--状态记录--> <!--收款图片-->
<div class="modal fade" id="modal_financial" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"> <div class="modal fade" id="modal_financial" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog"> <div class="modal-dialog">
<div class="modal-content"> <div class="modal-content">
......
...@@ -39,7 +39,12 @@ define(['doT', 'text!temp/financial_manager_daily_list_template_tpl.html', 'css! ...@@ -39,7 +39,12 @@ define(['doT', 'text!temp/financial_manager_daily_list_template_tpl.html', 'css!
$('.is-submit-pass-btn').hide(); $('.is-submit-pass-btn').hide();
bargain.isFinancial = 0; bargain.isFinancial = 0;
bargain.financialTime = $('#create_time_start').val(); bargain.financialTime = $('#create_time_start').val();
$('.manager-title').html(user_info_obj.store_name); if($.trim(user_info_obj.store_name)){
$('.manager-title').html(user_info_obj.store_name);
}else{
$('.manager-title').html('您还不是店长');
}
} }
$(document.body).append(template); $(document.body).append(template);
......
...@@ -36,7 +36,7 @@ ...@@ -36,7 +36,7 @@
<td>[%= it[item]['bargain_id'] %]</td> <td>[%= it[item]['bargain_id'] %]</td>
<td>[%= it[item]['house_address'] %]</td> <td>[%= it[item]['house_address'] %]</td>
<td>[%= it[item]['price']%]</td> <td>[%= it[item]['price']%]</td>
<td>[%= (it[item]['price']*0.8).toFixed(2) %]</td> <td>[%= it[item]['money']%]</td>
<td>[%= sw(it[item]['pay_type']) %]</td> <td>[%= sw(it[item]['pay_type']) %]</td>
<td>[%= it[item]['transfer_name'] %]</td> <td>[%= it[item]['transfer_name'] %]</td>
<td>[%= it[item]['agent_name']%]</td> <td>[%= it[item]['agent_name']%]</td>
......
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