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
1668d76c
Commit
1668d76c
authored
Dec 14, 2018
by
duxinyuan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
commite
parent
95537329
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
39 additions
and
23 deletions
+39
-23
receivables.html
application/index/view/finance/receivables.html
+2
-2
receivables.js
public/resource/js/receivables.js
+34
-18
receivables_template_tpl.html
public/resource/template/receivables_template_tpl.html
+3
-3
No files found.
application/index/view/finance/receivables.html
View file @
1668d76c
...
...
@@ -655,8 +655,8 @@
<strong><span
class=
"col-xs-3 ld-Marheight"
>
是否开业:
</span></strong>
<div
class=
"col-xs-6"
>
<select
class=
"form-control"
id=
"running"
>
<option
value=
"
1
"
>
是
</option>
<option
value=
"
0
"
>
否
</option>
<option
value=
"
0
"
>
是
</option>
<option
value=
"
1
"
>
否
</option>
</select>
</div>
</div>
...
...
public/resource/js/receivables.js
View file @
1668d76c
...
...
@@ -570,21 +570,6 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
}
});
},
/**
* 时间轴
* @param {Object} id
*/
getTimmerLine
:
function
(
id
){
var
that
=
receiv
;
console
.
log
(
"get the timmerLine with id = "
+
id
);
var
params
=
{
'id'
:
id
};
$
.
post
(
''
,
params
,
function
(
data
){
console
.
log
(
data
);
that
.
getValueFunction
();
},
'json'
)
},
/**
* 收款详情
* @param {Object} id
...
...
@@ -593,13 +578,44 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
var
that
=
receiv
;
console
.
log
(
"get the timmerLine with id = "
+
id
);
var
params
=
{
'id'
:
id
'
pay_
id'
:
id
};
$
.
post
(
''
,
params
,
function
(
data
){
$
.
post
(
'/index/getCollectionDetail'
,
params
,
function
(
data
){
console
.
log
(
"12321321321321313213213"
)
console
.
log
(
data
);
that
.
getValueFunction
();
that
.
getValueFunction
(
data
.
data
);
},
'json'
)
},
getValueFunction
:
function
(
data
){
var
doc
=
$
(
'#modal-addPic'
);
doc
.
find
(
"#ruzhangId"
).
text
(
data
.
id
);
doc
.
find
(
"#dingdanId"
).
text
(
data
.
order_id
);
doc
.
find
(
"#chengjiaobaogaoId"
).
text
(
data
.
bargain_id
);
doc
.
find
(
"#fangyuanId"
).
text
(
data
.
house_id
);
doc
.
find
(
"#tijiaoren"
).
text
(
data
.
name
);
doc
.
find
(
"#address"
).
text
(
data
.
address
);
doc
.
find
(
"#comit_time"
).
text
(
data
.
create_time
);
doc
.
find
(
"#intoType"
).
text
(
data
.
type
);
doc
.
find
(
"#shopNo"
).
val
(
data
.
house_number
);
doc
.
find
(
"#intoDate"
).
val
(
data
.
income_time
);
doc
.
find
(
"#salePrice"
).
val
(
data
.
price
);
doc
.
find
(
"#intoPrice"
).
val
(
data
.
money
);
doc
.
find
(
"#shouxu"
).
val
(
data
.
transaction_fee
);
doc
.
find
(
"#realPrice"
).
val
(
data
.
real_money
);
doc
.
find
(
"#getPrice"
).
val
((
data
.
price
-
0
)
*
0.7
);
doc
.
find
(
"#morePrice"
).
val
(
data
.
money
-
((
data
.
price
-
0
)
*
0.7
));
doc
.
find
(
"#person"
).
val
(
data
.
current_agent_name
);
doc
.
find
(
"#belongT"
).
val
(
data
.
store_name
);
doc
.
find
(
"#payType"
).
val
(
data
.
pay_type
);
doc
.
find
(
"#payNo"
).
val
(
data
.
transfer_name
);
doc
.
find
(
"#running"
).
val
(
data
.
is_open
);
doc
.
find
(
"#fenhong"
).
val
(
data
.
is_dividend
);
doc
.
find
(
"#comes"
).
val
(
data
.
soucre
);
doc
.
find
(
"#status"
).
val
(
data
.
soucre_id
);
doc
.
find
(
"#lastTime"
).
val
(
data
.
last_transfer_time
);
},
/**
* 调整
* @param {Object} id
...
...
public/resource/template/receivables_template_tpl.html
View file @
1668d76c
...
...
@@ -14,15 +14,15 @@
<
td
>
[
%=
it
[
item
][
'money'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'real_money'
]
%
]
<
/td
>
[
%
if
(
it
[
item
][
'soucre'
]
==
0
)
{
%
]
<
td
>
APP
<
/td
>
<
td
>
正常
<
/td
>
[
%
}
else
if
(
it
[
item
][
'soucre'
]
==
1
)
{
%
]
<
td
>
智能
pos
机
<
/td
>
<
td
>
正常
<
/td
>
[
%
}
else
if
(
it
[
item
][
'soucre'
]
==
2
)
{
%
]
<
td
>
调整
<
/td
>
[
%
}
else
{
%
]
<
td
>--<
/td
>
[
%
}
%
]
<
td
>
[
%=
it
[
item
][
'sou
cr
e_id'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'sou
rc
e_id'
]
%
]
<
/td
>
<
td
>
<
a
class
=
"btn1 btn-success timeline"
href
=
"#modal-time"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["order_id"] %]'
>
时间轴
<
/a
>
<
a
class
=
"btn1 btn-success add-pic"
href
=
"#modal-addPic"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"] %]'
>
收款详情
<
/a
>
...
...
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