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
fd15d014
Commit
fd15d014
authored
Dec 14, 2018
by
duxinyuan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2
parent
0fd9e3fb
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
37 deletions
+29
-37
receivables.js
public/resource/js/receivables.js
+27
-35
receivables_template_tpl.html
public/resource/template/receivables_template_tpl.html
+2
-2
No files found.
public/resource/js/receivables.js
View file @
fd15d014
...
@@ -316,84 +316,81 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
...
@@ -316,84 +316,81 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
var
that
=
receiv
;
var
that
=
receiv
;
var
params
=
that
.
recervablesParams
();
var
params
=
that
.
recervablesParams
();
console
.
log
(
params
);
console
.
log
(
params
);
$
.
post
(
'/index/getCollectionEdit'
,
params
,
function
(
data
){
that
.
getList
(
that
.
pageNo
);
},
'json'
)
},
},
recervablesParams
:
function
(){
recervablesParams
:
function
(){
var
params
=
{}
;
var
params
=
{}
;
if
(
$
(
'#ruzhangId'
).
text
()){
//入账ID
if
(
$
(
'#ruzhangId'
).
text
()){
//入账ID
params
.
ruzhangI
d
=
$
(
'#ruzhangId'
).
text
()
params
.
pay_i
d
=
$
(
'#ruzhangId'
).
text
()
};
};
if
(
$
(
'#dingdanId'
).
text
()){
//订单ID
if
(
$
(
'#dingdanId'
).
text
()){
//订单ID
params
.
dingdanI
d
=
$
(
'#dingdanId'
).
text
()
params
.
order_i
d
=
$
(
'#dingdanId'
).
text
()
};
};
if
(
$
(
'#chengjiaobaogaoId'
).
text
()){
//成交报告ID
if
(
$
(
'#chengjiaobaogaoId'
).
text
()){
//成交报告ID
params
.
chengjiaobaogaoI
d
=
$
(
'#chengjiaobaogaoId'
).
text
()
params
.
bargain_i
d
=
$
(
'#chengjiaobaogaoId'
).
text
()
};
};
if
(
$
(
'#fangyuanId'
).
text
()){
//房源ID
if
(
$
(
'#fangyuanId'
).
text
()){
//房源ID
params
.
fangyuanI
d
=
$
(
'#fangyuanId'
).
text
()
params
.
house_i
d
=
$
(
'#fangyuanId'
).
text
()
};
};
if
(
$
(
'#tijiaoren'
).
text
()){
//提交人
if
(
$
(
'#tijiaoren'
).
text
()){
//提交人
params
.
tijiaoren
=
$
(
'#tijiaoren'
).
text
()
params
.
agent_name
=
$
(
'#tijiaoren'
).
text
()
};
};
if
(
$
(
'#address'
).
text
()){
//房源地址
if
(
$
(
'#address'
).
text
()){
//房源地址
params
.
address
=
$
(
'#address'
).
text
()
params
.
address
=
$
(
'#address'
).
text
()
};
};
if
(
$
(
'#comit_time'
).
text
()){
//提交时间
if
(
$
(
'#comit_time'
).
text
()){
//提交时间
params
.
c
omit
_time
=
$
(
'#comit_time'
).
text
()
params
.
c
reate
_time
=
$
(
'#comit_time'
).
text
()
};
};
if
(
$
(
'#intoType'
).
text
()){
//入账类型
if
(
$
(
'#intoType'
).
text
()){
//入账类型
params
.
intoT
ype
=
$
(
'#intoType'
).
text
()
params
.
t
ype
=
$
(
'#intoType'
).
text
()
};
};
if
(
$
(
'#shopNo'
).
val
()){
//商铺号
if
(
$
(
'#shopNo'
).
val
()){
//商铺号
params
.
shopNo
=
$
(
'#shopNo'
).
val
()
params
.
house_number
=
$
(
'#shopNo'
).
val
()
};
};
if
(
$
(
'#intoDate'
).
val
()){
//入账日期
if
(
$
(
'#intoDate'
).
val
()){
//入账日期
params
.
in
toDat
e
=
$
(
'#intoDate'
).
val
()
params
.
in
come_tim
e
=
$
(
'#intoDate'
).
val
()
};
};
if
(
$
(
'#salePrice'
).
val
()){
//成交价
if
(
$
(
'#salePrice'
).
val
()){
//成交价
params
.
saleP
rice
=
$
(
'#salePrice'
).
val
()
params
.
p
rice
=
$
(
'#salePrice'
).
val
()
};
};
if
(
$
(
'#intoPrice'
).
val
()){
//入账金额
if
(
$
(
'#intoPrice'
).
val
()){
//入账金额
params
.
intoPrice
=
$
(
'#intoPrice'
).
val
()
params
.
money
=
$
(
'#intoPrice'
).
val
()
};
};
if
(
$
(
'#shouxu'
).
val
()){
//手续费
if
(
$
(
'#shouxu'
).
val
()){
//手续费
params
.
shouxu
=
$
(
'#shouxu'
).
val
()
params
.
transaction_fee
=
$
(
'#shouxu'
).
val
()
};
};
if
(
$
(
'#realPrice'
).
val
()){
//实付金额
if
(
$
(
'#realPrice'
).
val
()){
//实付金额
params
.
realPrice
=
$
(
'#realPrice'
).
val
()
params
.
real_money
=
$
(
'#realPrice'
).
val
()
};
if
(
$
(
'#getPrice'
).
val
()){
//应收金额
params
.
getPrice
=
$
(
'#getPrice'
).
val
()
};
if
(
$
(
'#morePrice'
).
val
()){
//多收金额
params
.
morePrice
=
$
(
'#morePrice'
).
val
()
};
};
if
(
$
(
'#person'
).
text
()){
//业务员
if
(
$
(
'#person'
).
text
()){
//业务员
params
.
person
=
$
(
'#person'
).
text
()
params
.
current_agent_name
=
$
(
'#person'
).
text
()
};
};
if
(
$
(
'#belongT'
).
text
()){
//所属门店
if
(
$
(
'#belongT'
).
text
()){
//所属门店
params
.
belongT
=
$
(
'#belongT'
).
text
()
params
.
store_name
=
$
(
'#belongT'
).
text
()
};
};
if
(
$
(
'#payType'
).
val
()){
//支付方式
if
(
$
(
'#payType'
).
val
()){
//支付方式
params
.
pay
T
ype
=
$
(
'#payType'
).
val
()
params
.
pay
_t
ype
=
$
(
'#payType'
).
val
()
};
};
if
(
$
(
'#payNo'
).
val
()){
//支付户名
if
(
$
(
'#payNo'
).
val
()){
//支付户名
params
.
payNo
=
$
(
'#payNo'
).
val
()
params
.
transfer_name
=
$
(
'#payNo'
).
val
()
};
};
if
(
$
(
'#running'
).
val
()){
//是否开业 1是 0否
if
(
$
(
'#running'
).
val
()){
//是否开业 1是 0否
params
.
running
=
$
(
'#running'
).
val
()
params
.
is_open
=
$
(
'#running'
).
val
()
};
};
if
(
$
(
'#fenhong'
).
val
()){
//分红
if
(
$
(
'#fenhong'
).
val
()){
//分红
params
.
fenhong
=
$
(
'#fenhong'
).
val
()
params
.
is_dividend
=
$
(
'#fenhong'
).
val
()
};
};
if
(
$
(
'#comes'
).
text
()){
//来源
if
(
$
(
'#comes'
).
text
()){
//来源
params
.
comes
=
$
(
'#comes'
).
text
()
params
.
soucre
=
$
(
'#comes'
).
text
()
};
};
if
(
$
(
'#status'
).
text
()){
//装填
if
(
$
(
'#status'
).
text
()){
//装填
params
.
s
tatus
=
$
(
'#status'
).
text
()
params
.
s
oucre_id
=
$
(
'#status'
).
text
()
};
};
if
(
$
(
'#lastTime'
).
val
()){
//最后转定时间
if
(
$
(
'#lastTime'
).
val
()){
//最后转定时间
params
.
last
T
ime
=
$
(
'#lastTime'
).
val
()
params
.
last
_transfer_t
ime
=
$
(
'#lastTime'
).
val
()
};
};
return
params
;
return
params
;
},
},
...
@@ -428,10 +425,7 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
...
@@ -428,10 +425,7 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
$
.
post
(
''
,
params
,
function
(
data
){
$
.
post
(
''
,
params
,
function
(
data
){
console
.
log
(
data
);
console
.
log
(
data
);
})
})
window
.
open
(
'/index/getCollection?'
+
window
.
open
(
'/index/getCollection'
+
params
);
'excel=1&start_time='
+
params
.
start_time
+
'&end_time='
+
params
.
end_time
+
'&internal_address='
+
params
.
internal_address
+
'&id='
+
params
.
id
+
'&income_start_time='
+
params
.
income_start_time
+
'&income_end_time='
+
params
.
income_end_time
+
'&agent_name='
+
params
.
agent_name
+
'&store_id='
+
params
.
store_id
+
'&district_id='
+
params
.
district_id
+
'&pay_type='
+
params
.
pay_type
+
'&type='
+
params
.
type
);
},
},
/**
/**
...
@@ -479,8 +473,6 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
...
@@ -479,8 +473,6 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
params
.
pay_type
=
maintable_pay_type
;
params
.
pay_type
=
maintable_pay_type
;
paramsStr
+=
"pay_type="
+
maintable_pay_type
+
"&"
paramsStr
+=
"pay_type="
+
maintable_pay_type
+
"&"
}
}
if
(
come_from
)
{
if
(
come_from
)
{
params
.
soucre
=
come_from
;
params
.
soucre
=
come_from
;
paramsStr
+=
"soucre="
+
come_from
+
"&"
paramsStr
+=
"soucre="
+
come_from
+
"&"
...
@@ -594,7 +586,7 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
...
@@ -594,7 +586,7 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
doc
.
find
(
"#dingdanId"
).
text
(
data
.
order_id
);
doc
.
find
(
"#dingdanId"
).
text
(
data
.
order_id
);
doc
.
find
(
"#chengjiaobaogaoId"
).
text
(
data
.
bargain_id
);
doc
.
find
(
"#chengjiaobaogaoId"
).
text
(
data
.
bargain_id
);
doc
.
find
(
"#fangyuanId"
).
text
(
data
.
house_id
);
doc
.
find
(
"#fangyuanId"
).
text
(
data
.
house_id
);
doc
.
find
(
"#tijiaoren"
).
text
(
data
.
name
);
doc
.
find
(
"#tijiaoren"
).
text
(
data
.
agent_
name
);
doc
.
find
(
"#address"
).
text
(
data
.
address
);
doc
.
find
(
"#address"
).
text
(
data
.
address
);
doc
.
find
(
"#comit_time"
).
text
(
data
.
create_time
);
doc
.
find
(
"#comit_time"
).
text
(
data
.
create_time
);
doc
.
find
(
"#intoType"
).
text
(
data
.
type
);
doc
.
find
(
"#intoType"
).
text
(
data
.
type
);
...
...
public/resource/template/receivables_template_tpl.html
View file @
fd15d014
...
@@ -7,8 +7,8 @@
...
@@ -7,8 +7,8 @@
<
td
>
[
%=
it
[
item
][
'order_id'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'order_id'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'bargain_id'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'bargain_id'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'income_time'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'income_time'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
''
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'
name
'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'
repor
t_agent_name'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'
curren
t_agent_name'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'store_name'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'store_name'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'type'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'type'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'money'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'money'
]
%
]
<
/td
>
...
...
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