Commit 65af4d2f authored by clone's avatar clone

Merge branch '0618-v3.3.2' of https://gitee.com/zwyjjc/tl_estate into 0618-v3.3.2

parents 2312f8fe bf03be71
...@@ -104,7 +104,7 @@ class OfficePerformanceService ...@@ -104,7 +104,7 @@ class OfficePerformanceService
$params = $this->getAgentIdPcInfo($id, $type, $start_time, $end_time); $params = $this->getAgentIdPcInfo($id, $type, $start_time, $end_time);
if (!$params) if (!$params)
return [ "code" => 101, "date" => "传入的参数错误" ]; return [ "code" => 101, "date" => "传入的参数错误" ];
$field = "a.id,a.user_name,a.user_phone,a.predict_see_time,a.create_time,a.report_agent_name,c.internal_title as house_title,c.shop_type,e.store_name,b.id as order_id"; $field = "a.id,a.user_name,a.user_phone,a.predict_see_time,a.create_time,a.report_agent_name,d.title as house_title,d.type,e.store_name,b.id as order_id";
$reportList = $this->reportModel->getAddReportListPcInfo($params, $field, $page_no, $page_size); $reportList = $this->reportModel->getAddReportListPcInfo($params, $field, $page_no, $page_size);
$reportListTotal = $this->reportModel->getAddReportListPcInfoTotal($params, $field); $reportListTotal = $this->reportModel->getAddReportListPcInfoTotal($params, $field);
foreach ($reportList as $key => $val) { foreach ($reportList as $key => $val) {
......
...@@ -21,17 +21,19 @@ ...@@ -21,17 +21,19 @@
<section v-show="mainInit == 0"> <section v-show="mainInit == 0">
<div class="sec1-area1 oh"> <div class="sec1-area1 oh">
<ul> <ul>
<li v-if='is_office != 2'> <li>
<div>房源类型:</div> <!--<div>房源类型:</div>
<div>{{detailData.shop_type=='1'?'街铺':'商场'}}</div> <div>{{detailData.shop_type=='1'?'街铺':'商场'}}</div>-->
</li> </li>
<li v-if='is_office == 2'> <!--<li v-if='is_office == 2'>
<div>房源类型:</div> <div>房源类型:</div>
<div>{{detailData.type}}</div> <div>{{detailData.type}}</div>
</li> </li>-->
<li> <li>
<div>商铺地址:</div> <div>楼盘地址:</div>
<div>{{detailData.internal_address}}<button v-if="otherBtn!='no'" class="btn-pc btn-info-pc btn-show-shop-detail" @click.stop.prevent="showShopDetail">商铺</button></div> <div>{{detailData.internal_address}}
<button v-if="otherBtn!='no'" class="btn-pc btn-info-pc btn-show-shop-detail" @click.stop.prevent="showShopDetail">商铺</button>
</div>
</li> </li>
<li> <li>
<div>业态:</div> <div>业态:</div>
...@@ -55,7 +57,7 @@ ...@@ -55,7 +57,7 @@
</li> </li>
<li> <li>
<div>商铺号:</div> <div>楼盘号:</div>
<div>{{detailData.house_number}}</div> <div>{{detailData.house_number}}</div>
</li> </li>
<li> <li>
...@@ -64,7 +66,9 @@ ...@@ -64,7 +66,9 @@
</li> </li>
<li> <li>
<div>客户电话:</div> <div>客户电话:</div>
<div>{{hidePhone(detailData.user_phone)}}<button v-if="otherBtn!='no'" class="btn-pc btn-info-pc btn-show-customer-detail" @click.stop.prevent="showCustomerDetail">客户</button></div> <div>{{hidePhone(detailData.user_phone)}}
<button v-if="otherBtn!='no'" class="btn-pc btn-info-pc btn-show-customer-detail" @click.stop.prevent="showCustomerDetail">客户</button>
</div>
</li> </li>
<li> <li>
<div>成交日期:</div> <div>成交日期:</div>
......
...@@ -499,20 +499,34 @@ class OfficeRoomService ...@@ -499,20 +499,34 @@ class OfficeRoomService
$date = date('Y-m-d'); $date = date('Y-m-d');
foreach ($agent_id_arr as $v3) { foreach ($agent_id_arr as $v3) {
$agent_data = $this->agent->verifyUser('id,store_id,district_id,name', '', ['id' => $v3]); //新增人信息 $agent_data = $this->agent->getAgentInfo('id,store_id,district_id,name', $v3); //新增人信息
$sum->updateTotalByAgentId($agent_data['id'], $agent_data['store_id'], $agent_data['district_id'], $date, $site_id); $sum->updateTotalByAgentId($agent_data['id'], $agent_data['store_id'], $agent_data['district_id'], $date, $site_id);
} }
foreach ($del_agent_id as $v4) { foreach ($del_agent_id as $v4) {
$agent_data = $this->agent->verifyUser('id,store_id,district_id,name', '', ['id' => $v4]); //被删除人信息 $agent_data = $this->agent->getAgentInfo('id,store_id,district_id,name', $v4); //新增人信息
$sum->updateTotalByAgentId($agent_data['id'], $agent_data['store_id'], $agent_data['district_id'], $date, $site_id); $sum->updateTotalByAgentId($agent_data['id'], $agent_data['store_id'], $agent_data['district_id'], $date, $site_id);
} }
} }
if (!empty($remark)) { if (!empty($remark)) {
$records->record($operation_id, 1, $remark, $house_id); $records->record($operation_id, 1, $remark, $house_id);
} }
} }
if ($type == 3) {
$remark = '';
if ($del_agent_name) {
$remark .= '删除独家方:' . implode(',', $del_agent_name) . ',';
}
if ($agent_id_arr) {
$agent_name = $this->agent->getAgentsByWhereColumn(['id' => ['in', $agent_id_arr]], 'name');
$remark .= '新增独家方:' . implode(',', $agent_name);
}
if (!empty($remark)) {
$records->record($operation_id, 2, $remark, $house_id);
}
}
$result['status'] = 'successful'; $result['status'] = 'successful';
} catch (\Exception $e) { } catch (\Exception $e) {
$result['status'] = 'fail'; $result['status'] = 'fail';
...@@ -1660,11 +1674,15 @@ class OfficeRoomService ...@@ -1660,11 +1674,15 @@ class OfficeRoomService
} }
} }
if (strtotime($room_data['agent_start_time']) != strtotime($data['agent_start_time'])) { if (empty($room_data['agent_start_time'])) {
$remark[] = '新增独家开始时间('.$data['agent_start_time'].')';
} elseif (strtotime($room_data['agent_start_time']) != strtotime($data['agent_start_time'])) {
$remark[] = '独家开始时间由('.$room_data['agent_start_time'].')改为('.$data['agent_start_time'].')'; $remark[] = '独家开始时间由('.$room_data['agent_start_time'].')改为('.$data['agent_start_time'].')';
} }
if (strtotime($room_data['agent_end_time']) != strtotime($data['agent_end_time'])) { if (empty($room_data['agent_end_time'])) {
$remark[] = '新增独家结束时间('.$data['agent_end_time'].')';
} elseif (strtotime($room_data['agent_end_time']) != strtotime($data['agent_end_time'])) {
$remark[] = '独家结束时间由('.$room_data['agent_end_time'].')改为('.$data['agent_end_time'].')'; $remark[] = '独家结束时间由('.$room_data['agent_end_time'].')改为('.$data['agent_end_time'].')';
} }
......
...@@ -155,7 +155,7 @@ class OfficeOReportModel extends Model ...@@ -155,7 +155,7 @@ class OfficeOReportModel extends Model
return $this->db return $this->db
->field($filed) ->field($filed)
->alias("a") ->alias("a")
->join("office_o_order b", "a.id = b.f_id", "left") ->join("office_office_o_order b", "a.id = b.f_id", "left")
->join("a_agents c", "a.report_agent_id = c.id", "left") ->join("a_agents c", "a.report_agent_id = c.id", "left")
->join("a_store d", "c.store_id = d.id", "left") ->join("a_store d", "c.store_id = d.id", "left")
->where($where_) ->where($where_)
...@@ -181,7 +181,7 @@ class OfficeOReportModel extends Model ...@@ -181,7 +181,7 @@ class OfficeOReportModel extends Model
} }
return $this->db->field($filed) return $this->db->field($filed)
->alias("a") ->alias("a")
->join("o_order b", "a.id = b.f_id", "left") ->join("office_o_order b", "a.id = b.f_id", "left")
->join("a_agents c", "a.report_agent_id = c.id", "left") ->join("a_agents c", "a.report_agent_id = c.id", "left")
->where($where_) ->where($where_)
->order("a.create_time desc") ->order("a.create_time desc")
...@@ -198,7 +198,7 @@ class OfficeOReportModel extends Model ...@@ -198,7 +198,7 @@ class OfficeOReportModel extends Model
case 2: case 2:
$result = $this->db->field($filed) $result = $this->db->field($filed)
->alias("a") ->alias("a")
->join("office_o_order b", "a.id=b.f_id", "left") ->join("office_office_o_order b", "a.id=b.f_id", "left")
->join("office_o_march_in c", "b.id=c.order_id", "right") ->join("office_o_march_in c", "b.id=c.order_id", "right")
->where($where) ->where($where)
->order("b.id desc") ->order("b.id desc")
...@@ -209,7 +209,7 @@ class OfficeOReportModel extends Model ...@@ -209,7 +209,7 @@ class OfficeOReportModel extends Model
case 3: case 3:
$result = $this->db->field($filed) $result = $this->db->field($filed)
->alias("a") ->alias("a")
->join("office_o_order b", "a.id=b.f_id", "left") ->join("office_office_o_order b", "a.id=b.f_id", "left")
->join("office_o_paylog c", "b.id=c.order_id", "right") ->join("office_o_paylog c", "b.id=c.order_id", "right")
->where($where) ->where($where)
->order("b.id desc") ->order("b.id desc")
...@@ -221,7 +221,7 @@ class OfficeOReportModel extends Model ...@@ -221,7 +221,7 @@ class OfficeOReportModel extends Model
case 4: case 4:
$result = $this->db->field($filed) $result = $this->db->field($filed)
->alias("a") ->alias("a")
->join("office_o_order b", "a.id=b.f_id", "left") ->join("office_office_o_order b", "a.id=b.f_id", "left")
->join("office_o_bargain c", "b.id=c.order_id", "right") ->join("office_o_bargain c", "b.id=c.order_id", "right")
->where($where) ->where($where)
->order("b.id desc") ->order("b.id desc")
...@@ -233,7 +233,7 @@ class OfficeOReportModel extends Model ...@@ -233,7 +233,7 @@ class OfficeOReportModel extends Model
default: default:
$result = $this->db->field($filed) $result = $this->db->field($filed)
->alias("a") ->alias("a")
->join("office_o_order b", "a.id=b.f_id", "left") ->join("office_office_o_order b", "a.id=b.f_id", "left")
->where($where) ->where($where)
->order("b.id desc") ->order("b.id desc")
->page($pageNo) ->page($pageNo)
...@@ -331,7 +331,7 @@ class OfficeOReportModel extends Model ...@@ -331,7 +331,7 @@ class OfficeOReportModel extends Model
$filed $filed
FROM FROM
`office_o_report` `a` `office_o_report` `a`
LEFT JOIN `office_o_order` `b` ON `a`.`id` = `b`.`f_id` LEFT JOIN `office_office_o_order` `b` ON `a`.`id` = `b`.`f_id`
RIGHT JOIN `office_o_march_in` `c` ON `b`.`id` = `c`.`order_id` RIGHT JOIN `office_o_march_in` `c` ON `b`.`id` = `c`.`order_id`
WHERE WHERE
$report_agent_str $report_agent_str
...@@ -344,7 +344,7 @@ class OfficeOReportModel extends Model ...@@ -344,7 +344,7 @@ class OfficeOReportModel extends Model
$filed $filed
FROM FROM
`office_o_report` `a` `office_o_report` `a`
LEFT JOIN `office_o_order` `b` ON `a`.`id` = `b`.`f_id` LEFT JOIN `office_office_o_order` `b` ON `a`.`id` = `b`.`f_id`
RIGHT JOIN `office_o_march_in` `c` ON `b`.`id` = `c`.`order_id` RIGHT JOIN `office_o_march_in` `c` ON `b`.`id` = `c`.`order_id`
WHERE WHERE
$house_str $house_str
...@@ -364,7 +364,7 @@ class OfficeOReportModel extends Model ...@@ -364,7 +364,7 @@ class OfficeOReportModel extends Model
$filed $filed
FROM FROM
`office_o_report` `a` `office_o_report` `a`
LEFT JOIN `office_o_order` `b` ON `a`.`id` = `b`.`f_id` LEFT JOIN `office_office_o_order` `b` ON `a`.`id` = `b`.`f_id`
RIGHT JOIN `office_o_paylog` `c` ON `b`.`id` = `c`.`order_id` RIGHT JOIN `office_o_paylog` `c` ON `b`.`id` = `c`.`order_id`
WHERE WHERE
$report_agent_str $report_agent_str
...@@ -379,7 +379,7 @@ class OfficeOReportModel extends Model ...@@ -379,7 +379,7 @@ class OfficeOReportModel extends Model
$filed $filed
FROM FROM
`office_o_report` `a` `office_o_report` `a`
LEFT JOIN `office_o_order` `b` ON `a`.`id` = `b`.`f_id` LEFT JOIN `office_office_o_order` `b` ON `a`.`id` = `b`.`f_id`
RIGHT JOIN `office_o_paylog` `c` ON `b`.`id` = `c`.`order_id` RIGHT JOIN `office_o_paylog` `c` ON `b`.`id` = `c`.`order_id`
WHERE WHERE
$house_str $house_str
...@@ -399,7 +399,7 @@ class OfficeOReportModel extends Model ...@@ -399,7 +399,7 @@ class OfficeOReportModel extends Model
$filed $filed
FROM FROM
`office_o_report` `a` `office_o_report` `a`
LEFT JOIN `office_o_order` `b` ON `a`.`id` = `b`.`f_id` LEFT JOIN `office_office_o_order` `b` ON `a`.`id` = `b`.`f_id`
RIGHT JOIN `office_o_bargain` `c` ON `b`.`id` = `c`.`order_id` RIGHT JOIN `office_o_bargain` `c` ON `b`.`id` = `c`.`order_id`
WHERE WHERE
$report_agent_str $report_agent_str
...@@ -414,7 +414,7 @@ class OfficeOReportModel extends Model ...@@ -414,7 +414,7 @@ class OfficeOReportModel extends Model
$filed $filed
FROM FROM
`office_o_report` `a` `office_o_report` `a`
LEFT JOIN `office_o_order` `b` ON `a`.`id` = `b`.`f_id` LEFT JOIN `office_office_o_order` `b` ON `a`.`id` = `b`.`f_id`
RIGHT JOIN `office_o_bargain` `c` ON `b`.`id` = `c`.`order_id` RIGHT JOIN `office_o_bargain` `c` ON `b`.`id` = `c`.`order_id`
WHERE WHERE
$house_str $house_str
...@@ -436,7 +436,7 @@ class OfficeOReportModel extends Model ...@@ -436,7 +436,7 @@ class OfficeOReportModel extends Model
$filed $filed
FROM FROM
`office_o_report` `a` `office_o_report` `a`
LEFT JOIN `office_o_order` `b` ON `a`.`id` = `b`.`f_id` LEFT JOIN `office_office_o_order` `b` ON `a`.`id` = `b`.`f_id`
LEFT JOIN `office_g_room` `c` ON `b`.`house_id` = `c`.`id` LEFT JOIN `office_g_room` `c` ON `b`.`house_id` = `c`.`id`
LEFT JOIN `office_g_building` `d` ON `d`.`id` = `c`.`building_id` LEFT JOIN `office_g_building` `d` ON `d`.`id` = `c`.`building_id`
WHERE WHERE
...@@ -448,7 +448,7 @@ class OfficeOReportModel extends Model ...@@ -448,7 +448,7 @@ class OfficeOReportModel extends Model
$filed $filed
FROM FROM
`office_o_report` `a` `office_o_report` `a`
LEFT JOIN `office_o_order` `b` ON `a`.`id` = `b`.`f_id` LEFT JOIN `office_office_o_order` `b` ON `a`.`id` = `b`.`f_id`
LEFT JOIN `office_g_room` `c` ON `b`.`house_id` = `c`.`id` LEFT JOIN `office_g_room` `c` ON `b`.`house_id` = `c`.`id`
LEFT JOIN `office_g_building` `d` ON `d`.`id` = `c`.`building_id` LEFT JOIN `office_g_building` `d` ON `d`.`id` = `c`.`building_id`
WHERE WHERE
...@@ -524,7 +524,7 @@ class OfficeOReportModel extends Model ...@@ -524,7 +524,7 @@ class OfficeOReportModel extends Model
$filed $filed
FROM FROM
`office_o_report` `a` `office_o_report` `a`
LEFT JOIN `office_o_order` `b` ON `a`.`id` = `b`.`f_id` LEFT JOIN `office_office_o_order` `b` ON `a`.`id` = `b`.`f_id`
RIGHT JOIN `office_o_march_in` `c` ON `b`.`id` = `c`.`order_id` RIGHT JOIN `office_o_march_in` `c` ON `b`.`id` = `c`.`order_id`
WHERE WHERE
`a`.`report_agent_id` IN ($report_agent_id ) `a`.`report_agent_id` IN ($report_agent_id )
...@@ -537,7 +537,7 @@ class OfficeOReportModel extends Model ...@@ -537,7 +537,7 @@ class OfficeOReportModel extends Model
$filed $filed
FROM FROM
`office_o_report` `a` `office_o_report` `a`
LEFT JOIN `office_o_order` `b` ON `a`.`id` = `b`.`f_id` LEFT JOIN `office_office_o_order` `b` ON `a`.`id` = `b`.`f_id`
RIGHT JOIN `office_o_march_in` `c` ON `b`.`id` = `c`.`order_id` RIGHT JOIN `office_o_march_in` `c` ON `b`.`id` = `c`.`order_id`
WHERE WHERE
`b`.`house_id` IN ($house_ids) `b`.`house_id` IN ($house_ids)
...@@ -558,7 +558,7 @@ class OfficeOReportModel extends Model ...@@ -558,7 +558,7 @@ class OfficeOReportModel extends Model
$filed $filed
FROM FROM
`office_o_report` `a` `office_o_report` `a`
LEFT JOIN `office_o_order` `b` ON `a`.`id` = `b`.`f_id` LEFT JOIN `office_office_o_order` `b` ON `a`.`id` = `b`.`f_id`
RIGHT JOIN `office_o_paylog` `c` ON `b`.`id` = `c`.`order_id` RIGHT JOIN `office_o_paylog` `c` ON `b`.`id` = `c`.`order_id`
WHERE WHERE
`a`.`report_agent_id` IN ($report_agent_id ) `a`.`report_agent_id` IN ($report_agent_id )
...@@ -573,7 +573,7 @@ class OfficeOReportModel extends Model ...@@ -573,7 +573,7 @@ class OfficeOReportModel extends Model
$filed $filed
FROM FROM
`office_o_report` `a` `office_o_report` `a`
LEFT JOIN `office_o_order` `b` ON `a`.`id` = `b`.`f_id` LEFT JOIN `office_office_o_order` `b` ON `a`.`id` = `b`.`f_id`
RIGHT JOIN `office_o_paylog` `c` ON `b`.`id` = `c`.`order_id` RIGHT JOIN `office_o_paylog` `c` ON `b`.`id` = `c`.`order_id`
WHERE WHERE
`b`.`house_id` IN ($house_ids) `b`.`house_id` IN ($house_ids)
...@@ -593,7 +593,7 @@ class OfficeOReportModel extends Model ...@@ -593,7 +593,7 @@ class OfficeOReportModel extends Model
$filed $filed
FROM FROM
`office_o_report` `a` `office_o_report` `a`
LEFT JOIN `office_o_order` `b` ON `a`.`id` = `b`.`f_id` LEFT JOIN `office_office_o_order` `b` ON `a`.`id` = `b`.`f_id`
RIGHT JOIN `office_o_bargain` `c` ON `b`.`id` = `c`.`order_id` RIGHT JOIN `office_o_bargain` `c` ON `b`.`id` = `c`.`order_id`
WHERE WHERE
`a`.`report_agent_id` IN ($report_agent_id ) `a`.`report_agent_id` IN ($report_agent_id )
...@@ -608,7 +608,7 @@ class OfficeOReportModel extends Model ...@@ -608,7 +608,7 @@ class OfficeOReportModel extends Model
$filed $filed
FROM FROM
`office_o_report` `a` `office_o_report` `a`
LEFT JOIN `office_o_order` `b` ON `a`.`id` = `b`.`f_id` LEFT JOIN `office_office_o_order` `b` ON `a`.`id` = `b`.`f_id`
RIGHT JOIN `office_o_bargain` `c` ON `b`.`id` = `c`.`order_id` RIGHT JOIN `office_o_bargain` `c` ON `b`.`id` = `c`.`order_id`
WHERE WHERE
`b`.`house_id` IN ($house_ids) `b`.`house_id` IN ($house_ids)
...@@ -628,7 +628,7 @@ class OfficeOReportModel extends Model ...@@ -628,7 +628,7 @@ class OfficeOReportModel extends Model
$filed $filed
FROM FROM
`office_o_report` `a` `office_o_report` `a`
LEFT JOIN `office_o_order` `b` ON `a`.`id` = `b`.`f_id` LEFT JOIN `office_office_o_order` `b` ON `a`.`id` = `b`.`f_id`
WHERE WHERE
`a`.`report_agent_id` IN ($report_agent_id ) `a`.`report_agent_id` IN ($report_agent_id )
AND `a`.`status` = 0 AND `a`.`status` = 0
...@@ -638,7 +638,7 @@ class OfficeOReportModel extends Model ...@@ -638,7 +638,7 @@ class OfficeOReportModel extends Model
$filed $filed
FROM FROM
`o_report` `a` `o_report` `a`
LEFT JOIN `o_order` `b` ON `a`.`id` = `b`.`f_id` LEFT JOIN `office_o_order` `b` ON `a`.`id` = `b`.`f_id`
WHERE WHERE
`b`.`house_id` IN ($house_ids) `b`.`house_id` IN ($house_ids)
AND `a`.`status` = 0 AND `a`.`status` = 0
...@@ -727,7 +727,7 @@ class OfficeOReportModel extends Model ...@@ -727,7 +727,7 @@ class OfficeOReportModel extends Model
$result = Db::table($this->table) $result = Db::table($this->table)
->field($field) ->field($field)
->alias("a") ->alias("a")
->join("office_o_order b", "a.id = b.f_id", "left") ->join("office_office_o_order b", "a.id = b.f_id", "left")
->where($where_) ->where($where_)
->select(); ->select();
return $result; return $result;
...@@ -760,7 +760,7 @@ class OfficeOReportModel extends Model ...@@ -760,7 +760,7 @@ class OfficeOReportModel extends Model
$result = $this->db->field($field) $result = $this->db->field($field)
->alias("a") ->alias("a")
->join("a_agents d", "a.report_agent_id = d.id", "left") ->join("a_agents d", "a.report_agent_id = d.id", "left")
->join("office_o_order b", "a.id = b.f_id", "left") ->join("office_office_o_order b", "a.id = b.f_id", "left")
->join("office_g_room c", "b.house_id = c.id", "left") ->join("office_g_room c", "b.house_id = c.id", "left")
->join("office_g_building e", "c.building_id = e.id", "left") ->join("office_g_building e", "c.building_id = e.id", "left")
->where($params) ->where($params)
...@@ -779,7 +779,7 @@ class OfficeOReportModel extends Model ...@@ -779,7 +779,7 @@ class OfficeOReportModel extends Model
{ {
$result = $this->db->alias("a") $result = $this->db->alias("a")
->join("a_agents d", "a.report_agent_id = d.id", "left") ->join("a_agents d", "a.report_agent_id = d.id", "left")
->join("office_o_order b", "a.id = b.f_id", "left") ->join("office_office_o_order b", "a.id = b.f_id", "left")
->join("office_g_room c", "b.house_id = c.id", "left") ->join("office_g_room c", "b.house_id = c.id", "left")
->join("office_g_building e", "c.building_id = e.id", "left") ->join("office_g_building e", "c.building_id = e.id", "left")
->where($params) ->where($params)
...@@ -813,8 +813,9 @@ class OfficeOReportModel extends Model ...@@ -813,8 +813,9 @@ class OfficeOReportModel extends Model
$result = Db::table($this->table) $result = Db::table($this->table)
->field($field) ->field($field)
->alias("a") ->alias("a")
->join("o_order b", "a.id = b.f_id", "left") ->join("office_o_order b", "a.id = b.f_id", "left")
->join("g_houses c", "b.house_id = c.id", "left") ->join("office_g_room c", "b.house_id = c.id", "left")
->join("office_g_building d", "c.building_id = d.id", "left")
->join('a_store e', 'a.report_store_id = e.id', 'left') ->join('a_store e', 'a.report_store_id = e.id', 'left')
->where($where_) ->where($where_)
...@@ -841,10 +842,10 @@ class OfficeOReportModel extends Model ...@@ -841,10 +842,10 @@ class OfficeOReportModel extends Model
$result = Db::table($this->table) $result = Db::table($this->table)
->field($field) ->field($field)
->alias("a") ->alias("a")
->join("o_order b", "a.id = b.f_id", "left") ->join("office_o_order b", "a.id = b.f_id", "left")
->join("g_houses c", "b.house_id = c.id", "left") ->join("office_g_room c", "b.house_id = c.id", "left")
->join("office_g_building d", "c.building_id = d.id", "left")
->join('a_store e', 'a.report_store_id = e.id', 'left') ->join('a_store e', 'a.report_store_id = e.id', 'left')
->where($where_) ->where($where_)
->count(); ->count();
//echo Db::table($this->table)->getLastSql(); //echo Db::table($this->table)->getLastSql();
......
...@@ -270,6 +270,7 @@ Route::group('index', [ ...@@ -270,6 +270,7 @@ Route::group('index', [
'getTallAgeList' => ['index/Finance/getTallAgeList', ['method' => 'GET']], //税费承担明细表 'getTallAgeList' => ['index/Finance/getTallAgeList', ['method' => 'GET']], //税费承担明细表
'getCommissionTotalList' => ['index/Finance/getCommissionTotalList', ['method' => 'GET']], //分佣提成汇总表 'getCommissionTotalList' => ['index/Finance/getCommissionTotalList', ['method' => 'GET']], //分佣提成汇总表
'getCollection' => ['index/Finance/getCollection', ['method' => 'post|get']],//收款记录 'getCollection' => ['index/Finance/getCollection', ['method' => 'post|get']],//收款记录
'getCollectionDaily' => ['index/Finance/getCollection', ['method' => 'post|get']],//收款记录(财务日报用)
'getCollectionExcel' => ['index/Finance/getCollectionExcel', ['method' => 'post|get']],//收款记录 'getCollectionExcel' => ['index/Finance/getCollectionExcel', ['method' => 'post|get']],//收款记录
'addRealMoney' => ['index/Finance/addRealMoney', ['method' => 'post|get']],//新增实收 'addRealMoney' => ['index/Finance/addRealMoney', ['method' => 'post|get']],//新增实收
'visitShop' => ['index/Supervise/visitShop', ['method' => 'get']],//门店拜访 'visitShop' => ['index/Supervise/visitShop', ['method' => 'get']],//门店拜访
......
...@@ -53,12 +53,6 @@ require(['vue', 'css!style/bargaininfo_detail_static_pc.css', 'jquery0325', 'com ...@@ -53,12 +53,6 @@ require(['vue', 'css!style/bargaininfo_detail_static_pc.css', 'jquery0325', 'com
getFenyong() { getFenyong() {
let _thisV = this; let _thisV = this;
//获取分佣提成 //获取分佣提成
if(isOffice == 2){
isOfficeUrl = '/office_index/commissionList';
_thisV.otherBtn = 'no';
}else{
isOfficeUrl = '/index/commissionList';
}
$.ajax({ $.ajax({
'type': 'GET', 'type': 'GET',
...@@ -114,17 +108,10 @@ require(['vue', 'css!style/bargaininfo_detail_static_pc.css', 'jquery0325', 'com ...@@ -114,17 +108,10 @@ require(['vue', 'css!style/bargaininfo_detail_static_pc.css', 'jquery0325', 'com
getShuifei() { getShuifei() {
//获取开票税费 //获取开票税费
let _thisV = this; let _thisV = this;
if(isOffice == 2){
isOfficeUrl = '/office_index/getTallAge';
_thisV.otherBtn = 'no';
}else{
isOfficeUrl = '/index/getTallAge';
}
$.ajax({ $.ajax({
'type': 'GET', 'type': 'GET',
'url': isOfficeUrl, 'url': '/index/getTallAge',
data: { data: {
'bargain_id': order_id 'bargain_id': order_id
}, },
...@@ -143,17 +130,9 @@ require(['vue', 'css!style/bargaininfo_detail_static_pc.css', 'jquery0325', 'com ...@@ -143,17 +130,9 @@ require(['vue', 'css!style/bargaininfo_detail_static_pc.css', 'jquery0325', 'com
getDeatil() { getDeatil() {
//获取成交信息 //获取成交信息
let _thisV = this; let _thisV = this;
if(isOffice == 2){
isOfficeUrl = '/office_index/bargainInfo';
_thisV.otherBtn = 'no';
}else{
isOfficeUrl = '/index/bargainInfo';
}
$.ajax({ $.ajax({
'type': 'GET', 'type': 'GET',
'url': isOfficeUrl, 'url': '/index/bargainInfo',
data: { data: {
'id': order_id 'id': order_id
}, },
......
...@@ -53,13 +53,6 @@ require(['vue', 'css!style/bargaininfo_detail_static_pc.css', 'jquery0325', 'com ...@@ -53,13 +53,6 @@ require(['vue', 'css!style/bargaininfo_detail_static_pc.css', 'jquery0325', 'com
getFenyong() { getFenyong() {
let _thisV = this; let _thisV = this;
//获取分佣提成 //获取分佣提成
if(isOffice == 2){
isOfficeUrl = '/office_index/commissionList';
_thisV.otherBtn = 'no';
}else{
isOfficeUrl = '/index/commissionList';
}
$.ajax({ $.ajax({
'type': 'GET', 'type': 'GET',
'url': '/office_index/commissionList', 'url': '/office_index/commissionList',
...@@ -114,14 +107,6 @@ require(['vue', 'css!style/bargaininfo_detail_static_pc.css', 'jquery0325', 'com ...@@ -114,14 +107,6 @@ require(['vue', 'css!style/bargaininfo_detail_static_pc.css', 'jquery0325', 'com
getShuifei() { getShuifei() {
//获取开票税费 //获取开票税费
let _thisV = this; let _thisV = this;
if(isOffice == 2){
isOfficeUrl = '/office_index/getTallAge';
_thisV.otherBtn = 'no';
}else{
isOfficeUrl = '/index/getTallAge';
}
$.ajax({ $.ajax({
'type': 'GET', 'type': 'GET',
'url': isOfficeUrl, 'url': isOfficeUrl,
...@@ -143,17 +128,9 @@ require(['vue', 'css!style/bargaininfo_detail_static_pc.css', 'jquery0325', 'com ...@@ -143,17 +128,9 @@ require(['vue', 'css!style/bargaininfo_detail_static_pc.css', 'jquery0325', 'com
getDeatil() { getDeatil() {
//获取成交信息 //获取成交信息
let _thisV = this; let _thisV = this;
if(isOffice == 2){
isOfficeUrl = '/office_index/bargainInfo';
_thisV.otherBtn = 'no';
}else{
isOfficeUrl = '/index/bargainInfo';
}
$.ajax({ $.ajax({
'type': 'GET', 'type': 'GET',
'url': isOfficeUrl, 'url': '/office_index/bargainInfo',
data: { data: {
'id': order_id 'id': order_id
}, },
......
...@@ -83,7 +83,7 @@ define(['doT', 'text!temp/wait_backout_office_template_tpl.html', 'text!temp/rep ...@@ -83,7 +83,7 @@ define(['doT', 'text!temp/wait_backout_office_template_tpl.html', 'text!temp/rep
var _id = $(this).closest('tr').attr("data-id"); var _id = $(this).closest('tr').attr("data-id");
bargain.bargain_id = _id; bargain.bargain_id = _id;
bargain.father_id = $(this).closest('tr').attr("data-fatherid"); bargain.father_id = $(this).closest('tr').attr("data-fatherid");
$('.iframe-bargaininfo-static').attr('src', '/app_broker/bargaininfo_detail_static_pc?otherbtn=no&orderid='+_id).load; $('.iframe-bargaininfo-static').attr('src', '/app_broker/bargaininfo_detail_static_pc_office?otherbtn=no&orderid='+_id).load;
}); });
......
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