Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tl_estate
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hujun
tl_estate
Commits
399e0b98
Commit
399e0b98
authored
Jun 12, 2019
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
约带看
parent
0c1d0966
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
956 additions
and
10 deletions
+956
-10
OfficeReport.php
application/index/controller/OfficeReport.php
+120
-0
Report.php
application/index/controller/Report.php
+1
-1
reportList.html
application/index/view/office_report/reportList.html
+572
-0
userEntrusted.html
application/index/view/office_report/userEntrusted.html
+209
-0
OfficeOReportModel.php
application/model/OfficeOReportModel.php
+42
-0
route.php
application/route.php
+4
-1
inspectionRecordAllOffice.js
public/resource/js/inspectionRecordAllOffice.js
+8
-8
No files found.
application/index/controller/OfficeReport.php
0 → 100644
View file @
399e0b98
<?php
/**
* Created by PhpStorm.
* User: hu jun
* Date: 2018/10/31
* Time: 9:54
*/
namespace
app\index\controller
;
use
app\index\extend\Basic
;
use
app\model\AAgents
;
use
app\model\OfficeOReportModel
;
use
app\model\OReportModel
;
class
OfficeReport
extends
Basic
{
/**
* 获取报备列表 pc
*
* @return \think\Response
*/
public
function
inspectionRecordAll
()
{
if
(
!
$this
->
request
->
isAjax
())
{
return
view
(
'office_report/reportList'
);
}
$pageNo
=
empty
(
$this
->
params
[
'pageNo'
])
?
1
:
$this
->
params
[
'pageNo'
];
$pageSize
=
empty
(
$this
->
params
[
'pageSize'
])
?
15
:
$this
->
params
[
'pageSize'
];
$m_report
=
new
OfficeOReportModel
();
$m_agent
=
new
AAgents
();
switch
(
$this
->
params
[
'check_status'
])
{
case
0
:
$where
[
'a.report_agent_id'
]
=
$this
->
userId
;
break
;
case
1
:
$store_id
=
$m_agent
->
getAgentFieldById
(
$this
->
userId
,
'store_id'
);
$where
[
'd.store_id'
]
=
$store_id
;
break
;
case
2
:
$district_id
=
$m_agent
->
getAgentFieldById
(
$this
->
userId
,
'district_id'
);
$where
[
'd.district_id'
]
=
$district_id
;
break
;
case
3
:
break
;
}
$data
[
'code'
]
=
200
;
$data
[
'msg'
]
=
""
;
$where
[
"a.status"
]
=
0
;
if
(
!
empty
(
$this
->
params
[
'start_time'
])
&&
empty
(
$this
->
params
[
'end_time'
]))
{
$where
[
'a.create_time'
]
=
[
'> time'
,
$this
->
params
[
'start_time'
]
.
' 00:00:00'
];
}
if
(
!
empty
(
$this
->
params
[
'end_time'
])
&&
empty
(
$this
->
params
[
'start_time'
]))
{
$where
[
'a.create_time'
]
=
[
'< time'
,
$this
->
params
[
'end_time'
]
.
' 23:59:59'
];
}
if
(
!
empty
(
$this
->
params
[
'end_time'
])
&&
!
empty
(
$this
->
params
[
'start_time'
]))
{
$where
[
'a.create_time'
]
=
[
'between time'
,
[
$this
->
params
[
'start_time'
]
.
' 00:00:00'
,
$this
->
params
[
'end_time'
]
.
' 23:59:59'
]];
}
if
(
!
empty
(
$this
->
params
[
'user_phone'
]))
{
$where
[
'a.user_phone'
]
=
$this
->
params
[
'user_phone'
];
}
if
(
!
empty
(
$this
->
params
[
'internal_title'
]))
{
$where
[
'e.title'
]
=
$this
->
params
[
'internal_title'
];
}
if
(
!
empty
(
$this
->
params
[
'report_agent_name'
]))
{
$where
[
'a.report_agent_name'
]
=
$this
->
params
[
'report_agent_name'
];
}
if
(
!
empty
(
$this
->
params
[
'report_agent_phone'
]))
{
$where
[
'a.report_agent_phone'
]
=
$this
->
params
[
'report_agent_phone'
];
}
if
(
!
empty
(
$this
->
params
[
'order_id'
]))
{
$where
[
'b.id'
]
=
$this
->
params
[
'order_id'
];
}
//城市
if
(
!
empty
(
$this
->
params
[
'city'
]))
{
$where
[
'e.city'
]
=
$this
->
params
[
'city'
];
}
//商铺地址
if
(
!
empty
(
$this
->
params
[
'internal_address'
]))
{
$where
[
'e.address'
]
=
[
'like'
,
'%'
.
$this
->
params
[
'internal_address'
]
.
'%'
];
}
//商铺ID
if
(
!
empty
(
$this
->
params
[
'shop_id'
]))
{
$where
[
'c.id'
]
=
$this
->
params
[
'shop_id'
]
;
}
//客户ID
if
(
!
empty
(
$this
->
params
[
'user_id'
]))
{
$where
[
'a.user_id'
]
=
$this
->
params
[
'user_id'
]
;
}
$field
=
'b.id as order_id,a.user_name,a.user_phone,a.create_time,a.report_agent_name,e.title as house_title,a.predict_see_time'
;
$field
.=
',a.id,b.order_no'
;
try
{
$list
=
$m_report
->
getReportList
(
$pageNo
,
$pageSize
,
'a.id desc'
,
$field
,
$where
);
$data
[
'data'
][
'total'
]
=
$m_report
->
getAddReportListTotal
(
$where
);
$data
[
'data'
][
'list'
]
=
$list
;
}
catch
(
\Exception
$e
)
{
$data
[
'code'
]
=
101
;
$data
[
'code'
]
=
'内部错误:'
.
$e
->
getMessage
();
}
return
$this
->
response
(
$data
[
'code'
],
$data
[
'msg'
],
$data
[
'data'
]);
}
}
\ No newline at end of file
application/index/controller/Report.php
View file @
399e0b98
...
...
@@ -88,7 +88,7 @@ class Report extends Basic
//商铺地址
if
(
!
empty
(
$this
->
params
[
'internal_address'
]))
{
$where
[
'
c.internal_
address'
]
=
[
'like'
,
'%'
.
$this
->
params
[
'internal_address'
]
.
'%'
];
$where
[
'
e.
address'
]
=
[
'like'
,
'%'
.
$this
->
params
[
'internal_address'
]
.
'%'
];
}
//商铺ID
...
...
application/index/view/office_report/reportList.html
0 → 100644
View file @
399e0b98
{layout name="global/frame_two_tpl" /}
<input
type=
"hidden"
class=
"page-load"
id=
"inspectionRecordAllOffice"
/>
<style>
.modal-body
{
/*height: 600px;*/
overflow-y
:
auto
;
}
.user-ul2
{
width
:
100%
;
height
:
auto
;
padding-bottom
:
15px
;
float
:
left
;
}
.user-ul2
li
{
list-style
:
none
;
line-height
:
30px
;
}
.money_total_two
{
font-weight
:
bold
;
font-size
:
15px
;
}
#search
{
float
:
left
;
}
#reset
{
float
:
left
;
}
#district_id
{
width
:
16%
!important
;
}
.clear
{
clear
:
both
;
}
.modal-body-intention
{
width
:
900px
!important
;
}
.modal-body-intention
tr
{
height
:
36px
;
}
.modal-body-intention
input
,
.modal-body-intention
select
{
height
:
28px
;
border
:
1px
solid
#e0e0e0
;
outline-style
:
none
;
width
:
200px
;
}
.span-width-90
{
width
:
90px
;
display
:
inline-block
;
}
.tip-liu
{
font-size
:
15px
;
}
/*上传图片相关*/
.span-del2-du
,
.span-del-du
{
color
:
red
;
cursor
:
pointer
;
}
.modal-body-height
{
overflow-y
:
auto
;
height
:
432px
;
}
#container_body_img_area
>
div
{
float
:
left
;
width
:
172px
;
}
.img-pre-ul
{
padding-left
:
0
;
overflow
:
hidden
;
}
.img-pre-ul
>
li
{
list-style
:
no
;
float
:
left
;
width
:
210px
;
height
:
170px
;
overflow
:
hidden
;
margin-right
:
10px
;
margin-top
:
10px
;
}
.img-pre-ul
>
li
>
img
{
float
:
left
;
width
:
210px
;
height
:
140px
;
object-fit
:
contain
;
cursor
:
pointer
;
}
.img-pre-ul
>
li
>
a
{
float
:
left
;
width
:
210px
;
text-align
:
center
;
line-height
:
30px
;
}
#container_body_du
{
position
:
relative
;
overflow
:
hidden
;
}
#file_input_pic
{
opacity
:
0
;
position
:
absolute
;
top
:
0
;
left
:
145px
;
height
:
35px
;
width
:
80px
;
}
.result-du
{
text-align
:
center
;
width
:
150px
;
float
:
left
;
margin-right
:
10px
;
}
.result-du
img
{
width
:
150px
;
height
:
150px
;
}
/*上传图片相关*/
</style>
<div
id=
"page-content-wrapper"
>
<div
class=
"container"
>
<div
class=
"row"
>
<div
class=
""
>
<div
class=
"panel panel-default"
>
<div
class=
"panel-heading breadcrumb"
>
<li>
<a
href=
"javascript:;"
>
全部约带看记录
</a>
</li>
</div>
<div
class=
"panel-body"
>
<div
class=
"table-responsive"
>
<table
class=
"table table-striped table-bordered table-hover table-condensed"
>
<thead>
<!--同步app-->
<tr>
<td
colspan=
"14"
class=
"maintable-top-sub-tr"
>
<a
class=
"btn btn-info liudan_pic_btn"
id=
"our"
>
我的
</a>
<a
class=
"btn btn-default liudan_pic_btn"
id=
"is_show_store"
>
门店
</a>
<a
class=
"btn btn-default liudan_pic_btn"
id=
"is_show_district"
>
部门
</a>
<a
class=
"btn btn-default liudan_pic_btn"
id=
"is_show_all"
>
全部
</a>
</td>
</tr>
<tr>
<td
colspan=
"10"
>
<form
id=
"form_search"
>
<select
class=
"form-control btn2 ld-Marheight"
id=
"city-choose"
>
<option
value=
""
>
城市筛选
</option>
<option
value=
"上海市"
>
上海市
</option>
<option
value=
"杭州市"
>
杭州市
</option>
<option
value=
"深圳市"
>
深圳市
</option>
<option
value=
"广州市"
>
广州市
</option>
</select>
<span
class=
"fore-span ld-Marheight"
>
约带看时间:
</span>
<input
class=
"form-control btn4 ld-Marheight"
value=
""
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"create_time_start"
name=
"start_date1"
type=
"date"
>
<span
class=
"fore-span ld-Marheight"
>
-
</span>
<input
class=
"form-control btn4 ld-Marheight"
value=
""
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"create_time_end"
name=
"end_date1"
type=
"date"
>
<!--<select class="form-control btn4 ld-Marheight input" name="" id="district_id">
<option value="">约带看人所在部门</option>
</select>
<select class="form-control btn4 ld-Marheight input" name="" id="guest_stores" value="">
</select>-->
<input
class=
"form-control btn2 ld-Marheight"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"user_name"
placeholder=
"约带看人姓名"
type=
"text"
value=
""
>
<input
class=
"form-control btn2 ld-Marheight"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"user_phone"
placeholder=
"约带看人手机号"
type=
"text"
value=
""
>
<input
class=
"form-control btn2 ld-Marheight"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"house_title"
placeholder=
"商铺名称"
type=
"text"
value=
""
>
<div
class=
"clear"
></div>
<input
class=
"form-control btn2 ld-Marheight"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"report_agent_phone"
placeholder=
"客户手机号"
type=
"text"
value=
""
>
<input
class=
"form-control btn2 ld-Marheight"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"report_id"
placeholder=
"订单ID"
type=
"text"
value=
""
>
<input
class=
"form-control btn2 ld-Marheight"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"shop_id"
placeholder=
"商铺ID"
type=
"text"
value=
""
>
<input
class=
"form-control btn2 ld-Marheight"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"shop_address"
placeholder=
"商铺地址"
type=
"text"
value=
""
>
<input
class=
"form-control btn2 ld-Marheight"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"user_id"
placeholder=
"客户ID"
type=
"text"
value=
""
>
<span
class=
"btn btn-info btn3 ld-Marheight"
id=
"search"
>
搜索
</span>
<span
class=
"btn btn-info btn3 ld-Marheight"
id=
"reset"
>
重置
</span>
</form>
</td>
</tr>
<tr>
<th
class=
"text-center"
>
订单ID
</th>
<th
class=
"text-center"
>
客户姓名
</th>
<th
class=
"text-center"
>
客户电话
</th>
<th
class=
"text-center"
>
约带看提交时间
</th>
<th
class=
"text-center"
>
约带看人
</th>
<th
class=
"text-center"
>
商铺
</th>
<th
class=
"text-center"
>
预计到场时间
</th>
<th
class=
"text-center"
>
操作
</th>
</tr>
</thead>
<tbody
class=
"text-center"
id=
"follow_list"
>
</table>
</div>
<!-- /#page-content-wrapper -->
<div
class=
"text-right"
id=
"pagediv"
>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!--时间轴-->
<div
class=
"modal fade"
id=
"modal-time"
tabindex=
"-1"
role=
"dialog"
aria-labelledby=
"myModalLabel"
aria-hidden=
"true"
>
<div
class=
"modal-dialog"
>
<div
class=
"modal-content"
>
<div
class=
"modal-header"
>
<button
type=
"button"
class=
"close"
data-dismiss=
"modal"
aria-hidden=
"true"
>
×
</button>
<h4
class=
"modal-title"
>
时间轴
</h4>
</div>
<div
class=
"modal-body"
>
<iframe
class=
"iframe-time-line"
></iframe>
</div>
</div>
<!-- /.modal-content -->
</div>
<!-- /.modal -->
</div>
<!--提交成交 报告-->
<div
class=
"modal fade modal-iframe-750"
id=
"modal-report"
tabindex=
"-1"
role=
"dialog"
aria-labelledby=
"myModalLabel"
aria-hidden=
"true"
>
<div
class=
"modal-dialog modal-body-report"
>
<div
class=
"modal-content"
>
<div
class=
"modal-header"
>
<button
type=
"button"
class=
"close"
data-dismiss=
"modal"
aria-hidden=
"true"
>
×
</button>
<h4
class=
"modal-title"
>
提交成交报告
</h4>
</div>
<div
class=
"modal-body"
>
<iframe
class=
"iframe-submit-report"
></iframe>
</div>
</div>
<!-- /.modal-content -->
</div>
<!-- /.modal -->
</div>
<!--收意向金/保管金-->
<div
class=
"modal fade modal-iframe-750"
id=
"modal-intention"
tabindex=
"-1"
role=
"dialog"
aria-labelledby=
"myModalLabel"
aria-hidden=
"true"
>
<div
class=
"modal-dialog modal-body-intention"
>
<div
class=
"modal-content"
>
<div
class=
"modal-header"
>
<button
type=
"button"
class=
"close"
data-dismiss=
"modal"
aria-hidden=
"true"
>
×
</button>
<h4
class=
"modal-title"
>
收意向金/保管金
</h4>
</div>
<div
class=
"modal-body"
>
<table
width=
"100%"
>
<tr>
<td>
<span
class=
"span-width-90"
>
入账金额:
</span>
<input
type=
"number"
placeholder=
"请输入"
class=
"intention-money"
>
元
</td>
<td>
<span
class=
"span-width-90"
>
收条编号:
</span>
<input
type=
"text"
placeholder=
"请输入"
class=
"intention-num"
>
</td>
</tr>
<tr>
<td>
<span
class=
"span-width-90"
>
支付方式:
</span>
<select
class=
"intention-pay-type"
>
<option
value=
""
>
入账方式
</option>
<option
value=
"10"
>
施总支付宝
</option>
<option
value=
"11"
>
林老师支付宝
</option>
<option
value=
"12"
>
筠姐支付宝
</option>
<option
value=
"20"
>
施总微信
</option>
<option
value=
"21"
>
林老师微信
</option>
<option
value=
"22"
>
筠姐微信
</option>
<option
value=
"30"
>
POS机器
</option>
<option
value=
"40"
>
地产转账
</option>
<option
value=
"41"
>
世家公账
</option>
<option
value=
"42"
>
3000账号
</option>
<option
value=
"50"
>
现金
</option>
<option
value=
"70"
>
银满谷银行卡
</option>
<option
value=
"71"
>
筠姐上海银行卡
</option>
<option
value=
"72"
>
林老师建行卡
</option>
<option
value=
"73"
>
新同联福居银行卡
</option>
<!--<option value="60">其他</option>-->
<option
value=
"13"
>
陈志杰支付宝
</option>
<option
value=
"23"
>
陈志杰微信
</option>
<option
value=
"74"
>
陈志杰招商银行卡
</option>
</select>
</td>
<td>
<span
class=
"span-width-90"
>
转账户名:
</span>
<input
type=
"text"
placeholder=
"请输入"
class=
"intention-name"
>
</td>
</tr>
<tr>
<td>
<span
class=
"span-width-90"
>
入账类型:
</span>
<select
class=
"booked-type"
>
<option
value=
""
>
请选择
</option>
<option
value=
"10"
>
意向金
</option>
<option
value=
"30"
>
保管金
</option>
</select>
</td>
<td>
<span
class=
"span-width-90"
>
入账日期:
</span>
<!--<input type="date" placeholder="请输入" class="booked-date">-->
<input
class=
"input-width-m input-width"
type=
"text"
value=
""
id=
"booked-date"
onClick=
"WdatePicker({el:this,dateFmt:'yyyy-MM-dd HH:mm:ss',readOnly:true})"
/>
</td>
</tr>
<tr>
<td>
<span
class=
"span-width-90"
>
商铺号:
</span>
<input
type=
"text"
placeholder=
"请输入"
class=
"shop-num"
>
</td>
<td>
<span
class=
"span-width-90"
>
业态/品牌:
</span>
<input
type=
"text"
placeholder=
"请输入"
class=
"yetai"
>
</td>
</tr>
<tr>
<td>
<span
class=
"span-width-90"
>
备注:
</span>
<input
type=
"text"
placeholder=
"请输入"
class=
"beizhu"
>
</td>
<td>
<span
class=
"span-width-90"
>
最后转定时间:
</span>
<!--<input type="date" placeholder="请输入" class="zhuanding">-->
<input
class=
"input-width-m input-width"
type=
"text"
value=
""
id=
"zhuanding"
onClick=
"WdatePicker({el:this,dateFmt:'yyyy-MM-dd HH:mm:ss',readOnly:true})"
/>
</td>
</tr>
</table>
<div>
<div
class=
"form-group full-width-100 full-pic-area"
>
<!--input上传图片-->
<div
id=
"container_body_du"
>
<label>
请选择一个图像文件:
</label>
<button
type=
"button btn2"
class=
"btn btn-default"
>
上传图片
</button>
<input
type=
"file"
id=
"file_input_pic"
/>
<div
id=
"container_body_img_area_du"
></div>
</div>
</div>
<ul
class=
"img-pre-ul"
id=
"xiangqing_pic_ul"
>
</ul>
</div>
<div
class=
"tip-liu"
>
<p>
图片上传规则:
</p>
<p>
意向金:意向金收条,居间协议,客户身份证正反面,转账记录,佣金确认书,现场图(须两位业务员在场)(共6项)
</p>
<p>
转定:定金收条,意向金收条,居间协议,房东身份证正反面,佣金确认书,现场图(须两位业务员在场)(共6项)
</p>
<p>
签约:居间协议,佣金确认书,租赁合同(只传首页和尾页),转账记录,收据,现场图(须两位业务员在场)(共6项)
</p>
</div>
</div>
<div
class=
"modal-footer"
>
<button
type=
"button"
class=
"btn btn-primary"
id=
"save_intention"
>
提交
</button>
</div>
</div>
<!-- /.modal-content -->
</div>
<!-- /.modal -->
</div>
<!--收佣金 成交报告列表-->
<div
class=
"modal fade modal-iframe-750"
id=
"modal-commission"
tabindex=
"-1"
role=
"dialog"
aria-labelledby=
"myModalLabel"
aria-hidden=
"true"
>
<div
class=
"modal-dialog modal-body-report"
>
<div
class=
"modal-content"
>
<div
class=
"modal-header"
>
<button
type=
"button"
class=
"close"
data-dismiss=
"modal"
aria-hidden=
"true"
>
×
</button>
<h4
class=
"modal-title"
>
收佣金
</h4>
</div>
<div
class=
"modal-body"
>
<table
class=
"table table-striped table-bordered table-hover table-condensed"
>
<thead>
<tr>
<th
class=
"text-center"
>
成交报告ID
</th>
<th
class=
"text-center"
>
提交时间
</th>
<th
class=
"text-center"
>
商铺地址
</th>
<th
class=
"text-center"
>
商铺号
</th>
<th
class=
"text-center"
>
成交价(元)
</th>
<th
class=
"text-center"
>
应收佣金(佣金)
</th>
<th
class=
"text-center"
>
操作
</th>
</tr>
</thead>
<tbody
class=
"text-center"
id=
"report_list"
></tbody>
</table>
</div>
</div>
<!-- /.modal-content -->
</div>
<!-- /.modal -->
</div>
<!--收佣金-->
<div
class=
"modal fade modal-iframe-750"
id=
"modal-commissionConfirm"
tabindex=
"-1"
role=
"dialog"
aria-labelledby=
"myModalLabel"
aria-hidden=
"true"
>
<div
class=
"modal-dialog modal-body-intention"
>
<div
class=
"modal-content"
>
<div
class=
"modal-header"
>
<button
type=
"button"
class=
"close"
data-dismiss=
"modal"
aria-hidden=
"true"
>
×
</button>
<h4
class=
"modal-title"
>
收佣金
</h4>
</div>
<div
class=
"modal-body"
>
<table
width=
"100%"
>
<tr>
<td>
<span
class=
"span-width-90"
>
对应成交报告ID:
</span>
<input
type=
"number"
placeholder=
"请输入"
>
</td>
<td>
<span
class=
"span-width-90"
>
入账金额:
</span>
<input
type=
"number"
placeholder=
"请输入"
>
</td>
</tr>
<tr>
<td
colspan=
"2"
>
<span
class=
"span-width-90"
>
对应业务员:
</span>
<span
class=
"duiyingrole"
>
101周小雨(反签40%),203洛可可(独家50%),203王小兔(合作方20%)
</span>
</td>
</tr>
<tr>
<td>
<span
class=
"span-width-90"
>
支付方式:
</span>
<select>
<option
value=
""
>
请选择
</option>
<option
value=
"1"
>
是
</option>
<option
value=
"0"
>
否
</option>
</select>
</td>
<td>
<span
class=
"span-width-90"
>
转账户名:
</span>
<input
type=
"number"
placeholder=
"请输入"
>
</td>
</tr>
<tr>
<td>
<span
class=
"span-width-90"
>
入账类型:
</span>
<select>
<option
value=
""
>
请选择
</option>
<option
value=
"1"
>
是
</option>
<option
value=
"0"
>
否
</option>
</select>
</td>
<td>
<span
class=
"span-width-90"
>
入账日期:
</span>
<input
type=
"number"
placeholder=
"请输入"
>
</td>
</tr>
<tr>
<td>
<span
class=
"span-width-90"
>
是否开业:
</span>
<span>
是
</span>
</td>
<td>
<span
class=
"span-width-90"
>
是否分红:
</span>
<span>
是
</span>
</td>
</tr>
<tr>
<td>
<span
class=
"span-width-90"
>
之前已收佣:
</span>
<input
type=
"number"
placeholder=
"请输入"
>
</td>
<td>
<span
class=
"span-width-90"
>
成交价:
</span>
<span>
66666元
</span>
</td>
</tr>
<tr>
<td>
<span
class=
"span-width-90"
>
中介费类型:
</span>
<input
type=
"number"
placeholder=
"请输入"
>
</td>
<td>
<span
class=
"span-width-90"
>
应收金额:
</span>
<span>
66666元
</span>
</td>
</tr>
<tr>
<td>
<span
class=
"span-width-90"
>
多收金额:
</span>
<span>
66666元
</span>
</td>
<td>
</td>
</tr>
<tr>
<td>
<span
class=
"span-width-90"
>
商铺号:
</span>
<input
type=
"number"
placeholder=
"请输入"
>
</td>
<td>
<span
class=
"span-width-90"
>
业态/品牌:
</span>
<input
type=
"number"
placeholder=
"请输入"
>
</td>
</tr>
<tr>
<td>
<span
class=
"span-width-90"
>
来源:
</span>
<input
type=
"number"
placeholder=
"请输入"
>
</td>
<td>
<span
class=
"span-width-90"
>
状态:
</span>
<input
type=
"number"
placeholder=
"请输入"
>
</td>
</tr>
<tr>
<td>
<span
class=
"span-width-90"
>
手续费:
</span>
<input
type=
"number"
placeholder=
"请输入"
>
</td>
<td>
<span
class=
"span-width-90"
>
实付金额:
</span>
<input
type=
"number"
placeholder=
"请输入"
>
</td>
</tr>
<tr>
<td>
<span
class=
"span-width-90"
>
备注:
</span>
<input
type=
"text"
placeholder=
"请输入"
>
</td>
<td>
<span
class=
"span-width-90"
>
最后转定时间:
</span>
<input
type=
"text"
placeholder=
"请输入"
>
</td>
</tr>
</table>
<div>
<div
class=
"form-group full-width-100 full-pic-area"
>
<!--input上传图片-->
<div
id=
"container_body_du"
>
<label>
请选择一个图像文件:
</label>
<button
type=
"button btn2"
class=
"btn btn-default"
>
上传图片
</button>
<input
type=
"file"
id=
"file_input_pic"
/>
<div
id=
"container_body_img_area_du"
></div>
</div>
</div>
<ul
class=
"img-pre-ul"
id=
"xiangqing_pic_ul"
>
</ul>
</div>
<div
class=
"tip-liu"
>
<p>
图片上传规则:
</p>
<p>
意向金:意向金收条,居间协议,客户身份证正反面,转账记录,佣金确认书,现场图(须两位业务员在场)(共6项)
</p>
<p>
转定:定金收条,意向金收条,居间协议,房东身份证正反面,佣金确认书,现场图(须两位业务员在场)(共6项)
</p>
<p>
签约:居间协议,佣金确认书,租赁合同(只传首页和尾页),转账记录,收据,现场图(须两位业务员在场)(共6项)
</p>
</div>
</div>
</div>
<!-- /.modal-content -->
</div>
<!-- /.modal -->
</div>
application/index/view/office_report/userEntrusted.html
0 → 100644
View file @
399e0b98
{layout name="global/frame_two_tpl" /}
<input
type=
"hidden"
class=
"page-load"
id=
"userEntrusted"
/>
<style>
.modal-body
{
/*height: 600px;*/
overflow-y
:
auto
;
}
.user-ul2
{
width
:
100%
;
height
:
auto
;
padding-bottom
:
15px
;
float
:
left
;
}
.user-ul2
li
{
list-style
:
none
;
line-height
:
30px
;
}
.money_total_two
{
font-weight
:
bold
;
font-size
:
15px
;
}
#search
{
float
:
left
;
}
#reset
{
float
:
left
;
}
#district_id
{
width
:
16%
!important
;
}
.clear
{
clear
:
both
;
}
.modal-body-intention
{
width
:
900px
!important
;
}
.modal-body-intention
tr
{
height
:
36px
;
}
.modal-body-intention
input
,
.modal-body-intention
select
{
height
:
28px
;
border
:
1px
solid
#e0e0e0
;
outline-style
:
none
;
width
:
200px
;
}
.span-width-90
{
width
:
90px
;
display
:
inline-block
;
}
.tip-liu
{
font-size
:
15px
;
}
/*上传图片相关*/
.span-del2-du
,
.span-del-du
{
color
:
red
;
cursor
:
pointer
;
}
.modal-body-height
{
overflow-y
:
auto
;
height
:
432px
;
}
#container_body_img_area
>
div
{
float
:
left
;
width
:
172px
;
}
.img-pre-ul
{
padding-left
:
0
;
overflow
:
hidden
;
}
.img-pre-ul
>
li
{
list-style
:
no
;
float
:
left
;
width
:
210px
;
height
:
170px
;
overflow
:
hidden
;
margin-right
:
10px
;
margin-top
:
10px
;
}
.img-pre-ul
>
li
>
img
{
float
:
left
;
width
:
210px
;
height
:
140px
;
object-fit
:
contain
;
cursor
:
pointer
;
}
.img-pre-ul
>
li
>
a
{
float
:
left
;
width
:
210px
;
text-align
:
center
;
line-height
:
30px
;
}
#container_body_du
{
position
:
relative
;
overflow
:
hidden
;
}
#file_input_pic
{
opacity
:
0
;
position
:
absolute
;
top
:
0
;
left
:
145px
;
height
:
35px
;
width
:
80px
;
}
.result-du
{
text-align
:
center
;
width
:
150px
;
float
:
left
;
margin-right
:
10px
;
}
.result-du
img
{
width
:
150px
;
height
:
150px
;
}
/*上传图片相关*/
</style>
<div
id=
"page-content-wrapper"
>
<div
class=
"container"
>
<div
class=
"row"
>
<div
class=
""
>
<div
class=
"panel panel-default"
>
<div
class=
"panel-heading breadcrumb"
>
<li>
<a
href=
"javascript:;"
>
客户委托找铺
</a>
</li>
</div>
<div
class=
"panel-body"
>
<div
class=
"table-responsive"
>
<table
class=
"table table-striped table-bordered table-hover table-condensed"
>
<thead>
<!--同步app-->
<tr>
<td
colspan=
"14"
class=
"maintable-top-sub-tr"
>
<a
class=
"btn btn-info liudan_pic_btn"
id=
"our"
>
我的
</a>
<!--<a class="btn btn-default liudan_pic_btn" id="is_show_store">门店</a>
<a class="btn btn-default liudan_pic_btn" id="is_show_district">部门</a>-->
<a
class=
"btn btn-default liudan_pic_btn"
id=
"is_show_all"
>
全部
</a>
</td>
</tr>
<tr>
<td
colspan=
"10"
>
<form
id=
"form_search"
>
<span
class=
"fore-span ld-Marheight"
>
提交时间:
</span>
<input
class=
"form-control btn4 ld-Marheight"
value=
""
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"create_time_start"
name=
"start_date1"
type=
"date"
>
<span
class=
"fore-span ld-Marheight"
>
-
</span>
<input
class=
"form-control btn4 ld-Marheight"
value=
""
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"create_time_end"
name=
"end_date1"
type=
"date"
>
<input
class=
"form-control btn2 ld-Marheight"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"user_ID"
placeholder=
"客户ID"
type=
"text"
value=
""
>
<input
class=
"form-control btn2 ld-Marheight"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"user_phone"
placeholder=
"客户手机号"
type=
"text"
value=
""
>
<select
name=
""
id=
"is_kefang"
class=
"form-control btn2 ld-Marheight"
>
<option
value=
"0"
>
是否有客方
</option>
<option
value=
"1"
>
是
</option>
<option
value=
"2"
>
否
</option>
</select>
<span
class=
"btn btn-info btn3 ld-Marheight"
id=
"search"
>
搜索
</span>
<span
class=
"btn btn-info btn3 ld-Marheight"
id=
"reset"
>
重置
</span>
</form>
</td>
</tr>
<tr>
<th
class=
"text-center"
>
提交时间
</th>
<th
class=
"text-center"
>
客户ID
</th>
<th
class=
"text-center"
>
昵称
</th>
<th
class=
"text-center"
>
手机号
</th>
<th
class=
"text-center"
>
期望区域
</th>
<th
class=
"text-center"
>
计划经营
</th>
<th
class=
"text-center"
>
面积要求(m²)
</th>
<th
class=
"text-center"
>
租金预算
</th>
<th
class=
"text-center"
>
操作
</th>
</tr>
</thead>
<tbody
class=
"text-center"
id=
"follow_list"
>
</table>
</div>
<!-- /#page-content-wrapper -->
<div
class=
"text-right"
id=
"pagediv"
>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!--客户详情 跟进-->
<div
class=
"modal fade"
id=
"modal-record"
role=
"dialog"
aria-labelledby=
"myModalLabel"
aria-hidden=
"true"
data-backdrop=
"static"
>
<div
class=
"modal-dialog modal-body-details"
style=
"width: 900px;"
>
<div
class=
"modal-content"
>
<button
type=
"button"
class=
"close"
data-dismiss=
"modal"
aria-hidden=
"true"
style=
"display: none;"
>
×
</button>
<iframe
style=
"width: 100%;height: 756px;display: block;border: none;border-radius: 6px;"
></iframe>
</div>
<!-- /.modal-content -->
</div>
<!-- /.modal -->
</div>
application/model/OfficeOReportModel.php
View file @
399e0b98
...
...
@@ -744,6 +744,48 @@ class OfficeOReportModel extends Model
->
select
();
}
/**
* @param int $pageNo 7151
* @param int $pageSize
* @param string $order_
* @param string $field
* @param string $params
* @return false|\PDOStatement|string|\think\Collection
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
*/
public
function
getReportList
(
$pageNo
=
1
,
$pageSize
=
15
,
$order_
=
'a.id desc'
,
$field
=
''
,
$params
=
''
)
{
$result
=
$this
->
db
->
field
(
$field
)
->
alias
(
"a"
)
->
join
(
"a_agents d"
,
"a.report_agent_id = d.id"
,
"left"
)
->
join
(
"o_order b"
,
"a.id = b.f_id"
,
"left"
)
->
join
(
"office_g_room c"
,
"b.house_id = c.id"
,
"left"
)
->
join
(
"office_g_building e"
,
"c.building_id = e.id"
,
"left"
)
->
where
(
$params
)
->
limit
(
$pageSize
)
->
page
(
$pageNo
)
->
order
(
$order_
)
->
select
();
return
$result
;
}
/**
* @param string $params
* @return int|string
*/
public
function
getAddReportListTotal
(
$params
=
''
)
{
$result
=
$this
->
db
->
alias
(
"a"
)
->
join
(
"a_agents d"
,
"a.report_agent_id = d.id"
,
"left"
)
->
join
(
"o_order b"
,
"a.id = b.f_id"
,
"left"
)
->
join
(
"office_g_room c"
,
"b.house_id = c.id"
,
"left"
)
->
join
(
"office_g_building e"
,
"c.building_id = e.id"
,
"left"
)
->
where
(
$params
)
->
count
(
'a.id'
);
return
$result
;
}
}
...
...
application/route.php
View file @
399e0b98
...
...
@@ -1052,7 +1052,10 @@ Route::group('office_index', [
'bargainInfo'
=>
[
'index/officePayLog/bargainInfo'
,
[
'method'
=>
'GET'
]],
//成交报告详情
'commissionList'
=>
[
'index/officePayLog/commissionList'
,
[
'method'
=>
'GET'
]],
//成交报告分佣提成
'getTallAge'
=>
[
'index/officePayLog/getTallAgeV2'
,
[
'method'
=>
'GET'
]],
//成交报告分佣提成
'inspectionRecordOur/:check_status'
=>
[
'index/OfficeReport/inspectionRecordAll'
,
[
'method'
=>
'GET'
],
[
'check_status'
=>
0
]],
//我的约带看
'inspectionRecordStore/:check_status'
=>
[
'index/OfficeReport/inspectionRecordAll'
,
[
'method'
=>
'GET'
],
[
'check_status'
=>
1
]],
//门店约带看
'inspectionRecordDistrict/:check_status'
=>
[
'index/OfficeReport/inspectionRecordAll'
,
[
'method'
=>
'GET'
],
[
'check_status'
=>
2
]],
//部门约带看
'inspectionRecordAll/:check_status'
=>
[
'index/OfficeReport/inspectionRecordAll'
,
[
'method'
=>
'GET'
],
[
'check_status'
=>
3
]],
//全部约带看
]);
Route
::
group
(
'office_api'
,
[
...
...
public/resource/js/inspectionRecordAllOffice.js
View file @
399e0b98
...
...
@@ -186,7 +186,7 @@ define(['doT', 'text!temp/inspectionRecordAllOffice_list_template_tpl.html', 'cs
record
.
submitIntention
();
});
if
(
!
check_auth
(
'index/inspectionRecordStore/1'
))
{
if
(
!
check_auth
(
'
office_
index/inspectionRecordStore/1'
))
{
$
(
"#is_show_store"
).
hide
();
}
...
...
@@ -198,27 +198,27 @@ define(['doT', 'text!temp/inspectionRecordAllOffice_list_template_tpl.html', 'cs
$
(
"#is_show_all"
).
hide
();
}
$
(
"#our"
).
click
(
function
()
{
record
.
url
=
"/
broker
/reportListForPc"
;
record
.
url
=
"/
office
/reportListForPc"
;
});
$
(
"#is_show_store"
).
click
(
function
()
{
record
.
url
=
"/index/inspectionRecordStore/1"
;
record
.
url
=
"/
office_
index/inspectionRecordStore/1"
;
});
$
(
"#is_show_district"
).
click
(
function
()
{
record
.
url
=
"/index/inspectionRecordDistrict/2"
;
record
.
url
=
"/
office_
index/inspectionRecordDistrict/2"
;
});
$
(
"#is_show_all"
).
click
(
function
()
{
record
.
url
=
"/index/inspectionRecordAll/3"
;
record
.
url
=
"/
office_
index/inspectionRecordAll/3"
;
});
},
//获取一级审核,二级审核,三级审核,结单不同的ajax请求url
switchUrl
:
function
(){
switch
(
Number
(
this
.
mainTabIndex
)){
case
0
:
return
'/index/inspectionRecordAll/3'
;
return
'/
office_
index/inspectionRecordAll/3'
;
case
1
:
return
'/index/inspectionRecordDistrict/2'
;
return
'/
office_
index/inspectionRecordDistrict/2'
;
case
2
:
return
'/index/inspectionRecordStore/1'
;
return
'/
office_
index/inspectionRecordStore/1'
;
default
:
return
''
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment