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
ecb69775
Commit
ecb69775
authored
Jul 31, 2019
by
agping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
3542f300
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
330 additions
and
25 deletions
+330
-25
Index.php
application/app_broker/controller/Index.php
+4
-0
timeline_pc_financial.html
application/app_broker/view/index/timeline_pc_financial.html
+0
-0
tax.html
application/index/view/finance/tax.html
+4
-4
route.php
application/route.php
+1
-0
timeline_pc_financial.js
public/app/js/timeline_pc_financial.js
+299
-0
performance_subsidiary.js
public/resource/js/performance_subsidiary.js
+2
-0
tax.js
public/resource/js/tax.js
+20
-21
No files found.
application/app_broker/controller/Index.php
View file @
ecb69775
...
...
@@ -182,6 +182,10 @@ class Index
{
return
view
(
'index/timeline_pc_office'
);
}
public
function
timeline_pc_financial
()
{
return
view
(
'index/timeline_pc_financial'
);
}
public
function
bargaininfo_detail_static_pc
()
{
return
view
(
'index/bargaininfo_detail_static_pc'
);
...
...
application/app_broker/view/index/timeline_pc_financial.html
0 → 100644
View file @
ecb69775
This diff is collapsed.
Click to expand it.
application/index/view/finance/tax.html
View file @
ecb69775
...
...
@@ -93,8 +93,8 @@
<input
class=
"form-control btn4 ld-Marheight"
value=
""
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"create_time"
name=
"start_date"
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=
"end_time"
name=
"end_date"
type=
"date"
>
<input
class=
"form-control btn2 ld-Marheight"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"internal_address"
placeholder=
"
商铺
地址"
type=
"text"
value=
""
>
<input
class=
"form-control btn2 ld-Marheight"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"internal_num"
placeholder=
"
商铺
号"
type=
"text"
value=
""
>
<input
class=
"form-control btn2 ld-Marheight"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"internal_address"
placeholder=
"
房源
地址"
type=
"text"
value=
""
>
<input
class=
"form-control btn2 ld-Marheight"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"internal_num"
placeholder=
"
房源
号"
type=
"text"
value=
""
>
<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=
""
>
...
...
@@ -114,8 +114,8 @@
<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>
<th
class=
"text-center"
>
税费(元)
</th>
<th
class=
"text-center"
>
操作
</th>
</tr>
...
...
application/route.php
View file @
ecb69775
...
...
@@ -49,6 +49,7 @@ Route::group('app_broker', [
'customerinfo_genjin'
=>
[
'app_broker/index/customerinfo_genjin'
,
[
'method'
=>
'get'
]],
'timeline_pc'
=>
[
'app_broker/index/timeline_pc'
,
[
'method'
=>
'get'
]],
'timeline_pc_office'
=>
[
'app_broker/index/timeline_pc_office'
,
[
'method'
=>
'get'
]],
'timeline_pc_financial'
=>
[
'app_broker/index/timeline_pc_financial'
,
[
'method'
=>
'get'
]],
'shop_detail_pc'
=>
[
'app_broker/index/shop_detail_pc'
,
[
'method'
=>
'get'
]],
'office_detail_pc'
=>
[
'app_broker/index/office_detail_pc'
,
[
'method'
=>
'get'
]],
'submit_report_pc'
=>
[
'app_broker/index/submit_report_pc'
,
[
'method'
=>
'get'
]],
...
...
public/app/js/timeline_pc_financial.js
0 → 100644
View file @
ecb69775
'use strict'
;
require
([
'vue'
,
'css!style/timeline_pc.css'
,
'jquery0325'
,
'common'
],
function
(
Vue
,
VConsole
){
var
order_id
=
getUrlParam
(
'order_id'
);
var
isOffice
=
getUrlParam
(
'type'
);
var
urlOffice
=
''
;
var
user_info_obj
=
JSON
.
parse
(
decodeURIComponent
(
localStorage
.
getItem
(
'pcUserInfo'
)));
//读取缓存
var
vm
=
new
Vue
({
el
:
'#app'
,
data
:
{
mainDataList
:
[]
},
created
:
function
()
{
var
_this
=
this
;
document
.
body
.
style
.
display
=
'block'
;
if
(
isOffice
==
2
){
urlOffice
=
"/office/selectReportAll"
;
}
else
{
urlOffice
=
"/index/selectReportAll"
;
}
$
.
ajax
({
type
:
'POST'
,
url
:
'/office_index/selectReportAll'
,
data
:
{
'order_id'
:
order_id
,
'AuthToken'
:
user_info_obj
.
AuthToken
,
},
timeout
:
30000
,
dataType
:
'json'
,
beforeSend
:
function
()
{},
success
:
function
(
_data
)
{
if
(
typeof
_data
===
'object'
)
{
if
(
_data
[
'code'
]
==
'200'
)
{
_this
.
mainDataList
=
_data
.
data
;
}
else
{
layerTipsX
(
_data
[
'msg'
]);
}
}
else
{
layerTipsX
(
'数据错误'
);
};
},
error
:
function
()
{
layerTipsX
(
'enter error'
);
},
complete
:
function
(
xhr
,
textStatus
){
if
(
textStatus
===
'timeout'
)
{
//处理超时的逻辑
layerTipsX
(
'请求超时,请重试'
);
};
}
});
$
(
document
).
on
(
'click'
,
'.click-big-img-a'
,
function
(
e
){
e
.
preventDefault
();
e
.
stopPropagation
();
var
_$this
=
$
(
this
);
var
_index
=
_$this
.
parent
().
index
();
var
_tempNodeItem
=
window
.
parent
.
document
.
getElementById
(
'preview_big_img_ol'
);
if
(
_tempNodeItem
){
_tempNodeItem
.
innerHTML
=
_$this
.
closest
(
'.li-img-list'
).
html
();
}
else
{
$
(
'body'
,
parent
.
document
).
append
(
'<ol id="preview_big_img_ol" style="display: none;">'
+
_$this
.
closest
(
'.li-img-list'
).
html
()
+
'</ol>'
);
}
$
(
window
.
parent
.
document
.
getElementById
(
'preview_big_img_ol'
)).
find
(
'.J_preview'
)[
_index
].
click
();
//巧妙调用父页面的方法
})
},
methods
:
{
loadMain
:
function
(){
var
_this
=
this
;
},
switchTitle
:
function
(
str
){
switch
(
str
){
case
'report'
:
return
'约带看'
;
case
'march_in'
:
return
'进场'
;
case
'follow_up_log'
:
return
'跟进'
;
case
'pay_log'
:
return
'收款'
;
case
'refund'
:
return
'提交退款'
;
case
'bargain'
:
return
'成交报告'
;
case
'adjustment'
:
return
"调整"
;
default
:
return
'暂无数据'
;
}
},
switchTitle2
:
function
(
str
,
str2
){
if
(
str
==
'report'
){
return
'约带看'
;
};
if
(
str
==
'march_in'
){
return
'进场'
;
};
if
(
str
==
'follow_up_log'
){
return
'跟进'
;
};
if
(
str
==
'pay_log'
){
return
'收款'
;
};
if
(
str
==
'refund'
){
return
'提交退款'
;
};
if
(
str
==
'bargain'
){
return
'成交报告'
;
};
if
(
str
==
'adjustment'
){
return
'调整'
;
};
if
(
str
==
'refund_check'
&&
str2
*
1
==
4
){
return
'驳回退款'
;
};
if
(
str
==
'refund_check'
&&
str2
*
1
==
2
){
return
'已退款'
;
}
else
{
return
'暂无数据'
;
};
},
hideTel
:
function
(
str
){
if
(
str
!==
''
&&
str
!==
null
&&
str
!==
undefined
){
var
_arr
=
String
(
str
).
split
(
''
);
_arr
.
splice
(
3
,
4
,
'****'
);
return
_arr
.
join
(
''
);
}
else
{
return
str
;
}
},
switchRzType
(
str
){
//入账类型 10意向金 20定金 30保管金 40押金 50 租金 60 进场费 70转让费 80其他
switch
(
String
(
str
)){
case
'10'
:
return
'意向金'
;
case
'20'
:
return
'定金'
;
case
'30'
:
return
'保管金'
;
case
'40'
:
return
'押金'
;
case
'50'
:
return
'租金'
;
case
'60'
:
return
'进场费'
;
case
'70'
:
return
'转让费'
;
case
'80'
:
return
'其他'
;
case
'90'
:
return
'佣金'
;
case
'91'
:
return
'中介费'
;
case
'92'
:
return
'案场费'
;
default
:
return
'暂无数据'
;
}
},
switchPayType
(
str
){
//支付方式 10支付宝 20 微信 30pos机器 40转账 50现金
//10施总支付宝 11林老师支付宝 20 施总微信 21林老师微信 30pos机器 40地产转账 41世家公账 42 3000账号 50现金 60其他
switch
(
String
(
str
)){
// case '10':
// return '支付宝';
// case '20':
// return '微信';
// case '30':
// return 'pos机';
// case '40':
// return '转账';
// case '50':
// return '现金';
// default:
// return '暂无数据';
case
'10'
:
return
'施总支付宝'
;
case
'11'
:
return
'林老师支付宝'
;
case
'12'
:
return
'筠姐支付宝'
;
case
'13'
:
return
'陈志杰支付宝'
;
case
'20'
:
return
'施总微信'
;
case
'21'
:
return
'林老师微信'
;
case
'22'
:
return
'筠姐微信'
;
case
'23'
:
return
'陈志杰微信'
;
case
'30'
:
return
'pos机器'
;
case
'40'
:
return
'地产转账'
;
case
'41'
:
return
'世家公账'
;
case
'42'
:
return
'3000账号'
;
case
'50'
:
return
'现金'
;
case
'60'
:
return
'其他'
;
case
'70'
:
return
'银满谷银行卡'
;
case
'71'
:
return
'筠姐上海银行卡'
;
case
'72'
:
return
'林老师建行卡'
;
case
'73'
:
return
'新同联福居银行卡'
;
case
'74'
:
return
'陈志杰招商银行卡'
;
default
:
return
'暂无数据'
;
}
},
switchTradeType
(
str
){
//成交类型 10出租 20 增佣 30 代理 40 好处费
switch
(
String
(
str
)){
case
'10'
:
return
'出租'
;
case
'20'
:
return
'增佣'
;
case
'30'
:
return
'代理'
;
case
'40'
:
return
'好处费'
;
default
:
return
'暂无数据'
;
}
},
switchRoleType
(
str
){
//分佣方 1盘方 2客方 3 反签 4独家 5合作方
switch
(
String
(
str
)){
case
'1'
:
return
'盘方'
;
case
'2'
:
return
'客方'
;
case
'3'
:
return
'反签'
;
case
'4'
:
return
'独家'
;
case
'5'
:
return
'合作方'
;
case
'6'
:
return
'APP盘下载方'
;
case
'7'
:
return
'APP客下载方'
;
default
:
return
'暂无数据'
;
}
},
switchPayTypeStr
(
str
){
//分佣方 1盘方 2客方 3 反签 4独家 5合作方
switch
(
String
(
str
)){
case
'1'
:
return
'盘方'
;
case
'2'
:
return
'客方'
;
case
'3'
:
return
'反签'
;
case
'4'
:
return
'独家'
;
case
'5'
:
return
'合作方'
;
case
'6'
:
return
'APP盘下载方'
;
case
'7'
:
return
'APP客下载方'
;
default
:
return
'暂无数据'
;
}
},
switchRefundTypeStr
(
str
){
//退款类型:0 退意向金 1 意向金转定 2 退保管金 3 保管金转定 4 退中介费 5 退案场费',
switch
(
String
(
str
)){
case
'0'
:
return
'退意向金'
;
case
'1'
:
return
'意向金转定'
;
case
'2'
:
return
'退保管金'
;
case
'3'
:
return
'保管金转定'
;
case
'4'
:
return
'退中介费'
;
case
'5'
:
return
'退案场费'
;
default
:
return
'暂无数据'
;
}
},
}
});
});
public/resource/js/performance_subsidiary.js
View file @
ecb69775
...
...
@@ -9,6 +9,8 @@ define(['doT','text!temp/performance_subsidiary_template_tpl.html', 'text!temp/r
order_id
:
0
,
//订单id
detail_user_id
:
''
,
//用户id
detail_shop_id
:
''
,
//商铺id
listUrl
:
'/index/performanceInfo'
,
//业绩明细url
exportUrl
:
'/index/getPerformanceInfoExcel'
,
//业绩明细导出url
init
:
function
()
{
//初始化dot
$
(
document
.
body
).
append
(
template
+
template_tax
);
...
...
public/resource/js/tax.js
View file @
ecb69775
...
...
@@ -8,6 +8,7 @@ define(['doT','text!temp/tax_template_tpl.html', 'css!style/home.css', 'css!styl
bargain_id
:
''
,
father_id
:
''
,
order_id
:
0
,
//订单id
listUrl
:
'/index/getTallAgeList'
,
//业绩明细url
init
:
function
()
{
//初始化dot
$
(
document
.
body
).
append
(
template
);
...
...
@@ -22,11 +23,13 @@ define(['doT','text!temp/tax_template_tpl.html', 'css!style/home.css', 'css!styl
e
.
stopPropagation
();
var
_this
=
$
(
this
);
_this
.
removeClass
(
'btn-default'
).
addClass
(
'btn-info'
).
siblings
().
removeClass
(
'btn-info'
).
addClass
(
'btn-default'
);
bargain
.
mainTabIndex
=
$
(
this
).
index
();
//下标值
if
(
$
(
this
).
index
()
==
0
){
bargain
.
listUrl
=
'/index/getTallAgeList'
;
//商铺
}
else
if
(
$
(
this
).
index
()
==
1
){
bargain
.
listUrl
=
'/office_index/getTallAgeList'
;
//办公楼
}
bargain
.
getList
(
1
)
});
$
(
"#search"
).
click
(
function
()
{
bargain
.
getList
(
1
);
...
...
@@ -34,18 +37,7 @@ define(['doT','text!temp/tax_template_tpl.html', 'css!style/home.css', 'css!styl
$
(
"#reset"
).
click
(
function
()
{
//重置
document
.
getElementById
(
"form_search"
).
reset
();
});
//主页面一级审核,二级审核,三级审核,结单四个tab的点击事件
//专员审核 总监审核 经理审核 出纳审核
_doc
.
on
(
'click'
,
'.maintable-top-sub-tr>a'
,
function
(
e
){
e
.
preventDefault
();
e
.
stopPropagation
();
var
_this
=
$
(
this
);
_this
.
removeClass
(
'btn-default'
).
addClass
(
'btn-info'
).
siblings
().
removeClass
(
'btn-info'
).
addClass
(
'btn-default'
);
bargain
.
mainTabIndex
=
_this
.
index
();
console
.
log
(
bargain
.
mainTabIndex
);
bargain
.
getList
(
1
);
});
$
(
"#export"
).
click
(
function
()
{
//导出列表
bargain
.
exportList
();
});
...
...
@@ -67,7 +59,12 @@ define(['doT','text!temp/tax_template_tpl.html', 'css!style/home.css', 'css!styl
var
_id
=
$
(
this
).
attr
(
"data-id"
);
bargain
.
bargain_id
=
_id
;
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
;
if
(
bargain
.
mainTabIndex
==
0
){
//商铺
$
(
'.iframe-bargaininfo-static'
).
attr
(
'src'
,
'/app_broker/bargaininfo_detail_static_pc?otherbtn=no&orderid='
+
_id
).
load
;
}
else
{
//办公楼
$
(
'.iframe-bargaininfo-static'
).
attr
(
'src'
,
'/app_broker/bargaininfo_detail_static_pc_office?orderid='
+
_id
+
'&otherbtn=no'
).
load
;
}
});
//时间轴点击事件
...
...
@@ -76,8 +73,12 @@ define(['doT','text!temp/tax_template_tpl.html', 'css!style/home.css', 'css!styl
e
.
stopPropagation
();
var
_this
=
$
(
this
);
var
_id
=
_this
.
closest
(
'tr'
).
data
(
'orderid'
);
console
.
log
(
_id
);
$
(
'.iframe-time-line'
).
attr
(
'src'
,
'/app_broker/timeline_pc?order_id='
+
_id
);
if
(
bargain
.
mainTabIndex
==
0
){
//商铺
$
(
'.iframe-time-line'
).
attr
(
'src'
,
'/app_broker/timeline_pc?order_id='
+
_id
);
}
else
{
//办公楼
$
(
'.iframe-time-line'
).
attr
(
'src'
,
'/app_broker/timeline_pc_office?order_id='
+
_id
);
}
});
},
getDepart
:
function
(
s
,
fn
){
...
...
@@ -125,18 +126,16 @@ define(['doT','text!temp/tax_template_tpl.html', 'css!style/home.css', 'css!styl
params
.
house_number
=
$
(
'#internal_num'
).
val
();
params
.
bargain_id
=
$
(
'#bargain_id'
).
val
();
//税费明细 成交报告ID筛选
$
.
ajax
({
url
:
'/index/getTallAgeList'
,
//获取列表
url
:
bargain
.
listUrl
,
//获取列表
type
:
'GET'
,
async
:
true
,
data
:
params
,
dataType
:
'json'
,
success
:
function
(
data
)
{
// console.log(data);
var
temp
=
document
.
getElementById
(
'tax_list_tpl'
).
innerHTML
;
var
doTtmpl
=
doT
.
template
(
temp
);
$
(
"#business_list"
).
html
(
doTtmpl
(
data
.
data
.
list
));
$
(
"#taxTotal"
).
html
(
data
.
data
.
total_fee
);
/*分页代码*/
add_page
(
data
.
data
.
total
,
pageNo
,
bargain
.
pageSize
,
bargain
.
getList
);
//总的税费
...
...
@@ -154,7 +153,7 @@ define(['doT','text!temp/tax_template_tpl.html', 'css!style/home.css', 'css!styl
var
user_phone
=
$
(
'#user_phone'
).
val
();
var
house_number
=
$
(
'#internal_num'
).
val
();
var
bargain_id
=
$
(
'#bargain_id'
).
val
();
window
.
open
(
'/index/getTallAgeList
?create_time='
+
create_time
+
'&end_time='
+
end_time
+
'&internal_address='
+
internal_address
+
'&name='
+
agent
+
'&phone='
+
user_phone
+
'&house_number='
+
house_number
+
'&bargain_id='
+
bargain_id
+
'&excel='
+
1
);
window
.
open
(
bargain
.
listUrl
+
'
?create_time='
+
create_time
+
'&end_time='
+
end_time
+
'&internal_address='
+
internal_address
+
'&name='
+
agent
+
'&phone='
+
user_phone
+
'&house_number='
+
house_number
+
'&bargain_id='
+
bargain_id
+
'&excel='
+
1
);
},
};
...
...
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