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
0ed85ca1
Commit
0ed85ca1
authored
May 21, 2018
by
xishifeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
详情,成交信息
parent
da4cdf3b
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
138 additions
and
36 deletions
+138
-36
account_statement.html
application/index/view/finance/account_statement.html
+66
-13
reportList.js
public/resource/js/reportList.js
+72
-23
No files found.
application/index/view/finance/account_statement.html
View file @
0ed85ca1
...
@@ -26,10 +26,12 @@
...
@@ -26,10 +26,12 @@
width
:
340px
;
width
:
340px
;
line-height
:
36px
;
line-height
:
36px
;
}
}
.left
.btn5
{
.left
.btn5
{
width
:
32%
!important
;
width
:
32%
!important
;
}
}
.right
.btn5
{
.right
.btn5
{
width
:
20%
!important
;
width
:
20%
!important
;
}
}
...
@@ -84,9 +86,50 @@
...
@@ -84,9 +86,50 @@
.right-date
{
.right-date
{
margin-left
:
130px
;
margin-left
:
130px
;
}
}
.Tswitch_three
.btn_2
{
.Tswitch_three
.btn_2
{
width
:
80px
;
width
:
80px
;
}
}
/*输入框自定义样式*/
.input-box-0521-par
{
float
:
left
;
width
:
100%
;
overflow
:
hidden
;
clear
:
both
;
}
.input-box-0521
{
overflow
:
hidden
;
}
.input-box-0521
>
label
{
float
:
left
;
}
.input-box-0521
>
label
:nth-of-type
(
2
)
{
margin-left
:
50px
;
}
.input-box-0521
>
div
{
float
:
left
;
width
:
160px
;
}
.input-box-0521
>
mark
{
float
:
left
;
overflow
:
hidden
;
background-color
:
transparent
;
padding-top
:
5px
;
padding-left
:
10px
;
}
.input-box-0521
>
mark
>
img
{
float
:
left
;
width
:
20px
;
}
#input_yongjin_add_btn
{
width
:
100%
;
margin-bottom
:
20px
;
}
#input_yongjin_add_btn
>
img
{
display
:
block
;
margin
:
0
auto
;
}
</style>
</style>
<div
id=
"page-content-wrapper"
>
<div
id=
"page-content-wrapper"
>
<div
class=
"container"
>
<div
class=
"container"
>
...
@@ -188,7 +231,7 @@
...
@@ -188,7 +231,7 @@
<option
value=
"30"
>
代理
</option>
<option
value=
"30"
>
代理
</option>
<option
value=
"40"
>
好处费
</option>
<option
value=
"40"
>
好处费
</option>
</select>
<br
/>
</select>
<br
/>
<span>
应收总佣金:
</span>
<input
class=
"form-control btn_2 commission"
type=
"text
"
>
元
<br>
<span>
应收总佣金:
</span>
<input
class=
"form-control btn_2 commission"
type=
"number
"
>
元
<br>
</div>
</div>
<div
class=
"right"
>
<div
class=
"right"
>
...
@@ -202,21 +245,31 @@
...
@@ -202,21 +245,31 @@
<span>
客户电话:
</span><span
class=
"user_phone"
></span><br>
<span>
客户电话:
</span><span
class=
"user_phone"
></span><br>
<span>
成交日期:
</span><span
class=
"create_time"
></span><br>
<span>
成交日期:
</span><span
class=
"create_time"
></span><br>
</div>
</div>
<div
class=
"clear"
>
<div
class=
"input-box-0521-par"
>
<div><span>
实收佣金1:
</span>
<input
class=
"form-control btn_2 practical_fee"
type=
"text"
>
元
<div
id=
"input_yongjin_add_area"
>
<span
class=
"right-date"
>
收佣日期1:
</span>
<input
class=
"form-control btn5 right-data"
value=
""
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"end_date"
name=
"end_date"
type=
"date"
></div>
<div
class=
"form-group input-box-0521"
>
<div><span>
实收佣金2:
</span>
<input
class=
"form-control btn_2 practical_fee"
type=
"text"
>
元
<label
class=
""
>
实收佣金:
</label>
<span
class=
"right-date"
>
收佣日期2:
</span>
<input
class=
"form-control btn5 right-data"
value=
""
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"end_date"
name=
"end_date"
type=
"date"
></div>
<div
class=
"input-group"
>
<div><span>
实收佣金3:
</span>
<input
class=
"form-control btn_2 practical_fee"
type=
"text"
>
元
<input
type=
"number"
class=
"form-control input-100-width"
placeholder=
"请输入"
>
<span
class=
"right-date"
>
收佣日期3:
</span>
<input
class=
"form-control btn5 right-data"
value=
""
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"end_date"
name=
"end_date"
type=
"date"
></div>
<div
class=
"input-group-addon"
>
元
</div>
<div><span>
实收佣金4:
</span>
<input
class=
"form-control btn_2 practical_fee"
type=
"text"
>
元
</div>
<span
class=
"right-date"
>
收佣日期4:
</span>
<input
class=
"form-control btn5 right-data"
value=
""
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"end_date"
name=
"end_date"
type=
"date"
>
<label
class=
""
>
收佣日期:
</label>
<div
class=
"input-group"
>
<input
type=
"date"
class=
"form-control input-100-width"
placeholder=
"请输入"
>
</div>
<!--<mark href="javascript:;" class="input-yongjin-cancel-pic"><img src="/resource/image/search_gb.png" /></mark>-->
</div>
</div>
<div
id=
"input_yongjin_add_btn"
>
<img
src=
"/resource/image/jia2@2x.png"
/>
</div>
</div>
<input
type=
"hidden"
class=
"page-pass"
/>
<input
type=
"hidden"
class=
"page-pass"
/>
</div>
</div>
<div>
<span>
备注:
</span>
<span>
备注:
</span>
<textarea
name=
""
rows=
""
cols=
""
id=
"note_content"
></textarea>
<textarea
name=
""
rows=
""
cols=
""
id=
"note_content"
></textarea>
</div>
</form>
</form>
</div>
</div>
<div
class=
"Tswitch Tswitch_one"
>
<div
class=
"Tswitch Tswitch_one"
>
...
...
public/resource/js/reportList.js
View file @
0ed85ca1
...
@@ -18,22 +18,23 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'css!style/home.css', '
...
@@ -18,22 +18,23 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'css!style/home.css', '
bargain
.
event
();
bargain
.
event
();
},
},
event
:
function
()
{
event
:
function
()
{
$
(
document
).
on
(
'click'
,
'#search0'
,
function
(
e
)
{
var
_doc
=
$
(
document
);
_doc
.
on
(
'click'
,
'#search0'
,
function
(
e
)
{
e
.
preventDefault
();
e
.
preventDefault
();
e
.
stopPropagation
();
e
.
stopPropagation
();
bargain
.
getList
(
1
);
//一级审核搜索
bargain
.
getList
(
1
);
//一级审核搜索
});
});
$
(
document
)
.
on
(
'click'
,
'#search1'
,
function
(
e
)
{
_doc
.
on
(
'click'
,
'#search1'
,
function
(
e
)
{
e
.
preventDefault
();
e
.
preventDefault
();
e
.
stopPropagation
();
e
.
stopPropagation
();
bargain
.
Manager
(
1
);
//二级审核搜索
bargain
.
Manager
(
1
);
//二级审核搜索
});
});
$
(
document
)
.
on
(
'click'
,
'#search2'
,
function
(
e
)
{
_doc
.
on
(
'click'
,
'#search2'
,
function
(
e
)
{
e
.
preventDefault
();
e
.
preventDefault
();
e
.
stopPropagation
();
e
.
stopPropagation
();
bargain
.
Director
(
1
);
//三级级审核搜索
bargain
.
Director
(
1
);
//三级级审核搜索
});
});
$
(
document
)
.
on
(
'click'
,
'#searchStatement'
,
function
(
e
)
{
_doc
.
on
(
'click'
,
'#searchStatement'
,
function
(
e
)
{
e
.
preventDefault
();
e
.
preventDefault
();
e
.
stopPropagation
();
e
.
stopPropagation
();
bargain
.
Cashier
(
1
);
//结单搜索
bargain
.
Cashier
(
1
);
//结单搜索
...
@@ -41,65 +42,83 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'css!style/home.css', '
...
@@ -41,65 +42,83 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'css!style/home.css', '
$
(
"#reset"
).
click
(
function
()
{
//重置
$
(
"#reset"
).
click
(
function
()
{
//重置
document
.
getElementById
(
"form_search"
).
reset
();
document
.
getElementById
(
"form_search"
).
reset
();
});
});
$
(
document
)
.
delegate
(
".timeline"
,
"click"
,
function
()
{
//时间轴
_doc
.
delegate
(
".timeline"
,
"click"
,
function
()
{
//时间轴
bargain
.
Timeline
();
bargain
.
Timeline
();
});
});
$
(
document
)
.
delegate
(
".edit"
,
"click"
,
function
()
{
//点击编辑
_doc
.
delegate
(
".edit"
,
"click"
,
function
()
{
//点击编辑
bargain
.
bargain_id
=
$
(
this
).
attr
(
"data-id"
);
bargain
.
bargain_id
=
$
(
this
).
attr
(
"data-id"
);
bargain
.
Edit
();
bargain
.
Edit
();
});
});
$
(
document
)
.
delegate
(
".is_pass"
,
"click"
,
function
()
{
//点击编辑
_doc
.
delegate
(
".is_pass"
,
"click"
,
function
()
{
//点击编辑
bargain
.
bargain_id
=
$
(
this
).
attr
(
"data-id"
);
bargain
.
bargain_id
=
$
(
this
).
attr
(
"data-id"
);
});
});
$
(
document
)
.
delegate
(
"#confirm_edit"
,
"click"
,
function
()
{
//点击成交信息确定
_doc
.
delegate
(
"#confirm_edit"
,
"click"
,
function
()
{
//点击成交信息确定
bargain
.
confirmEdit
();
bargain
.
confirmEdit
();
});
});
$
(
document
)
.
delegate
(
".caozuo"
,
"click"
,
function
()
{
//点击分佣提成
_doc
.
delegate
(
".caozuo"
,
"click"
,
function
()
{
//点击分佣提成
bargain
.
Caozuo
();
bargain
.
Caozuo
();
});
});
$
(
document
)
.
delegate
(
"#records"
,
"click"
,
function
()
{
//点击收款记录
_doc
.
delegate
(
"#records"
,
"click"
,
function
()
{
//点击收款记录
bargain
.
Records
();
bargain
.
Records
();
});
});
$
(
document
)
.
delegate
(
"#confirm_pass"
,
"click"
,
function
()
{
//点击通过按钮
_doc
.
delegate
(
"#confirm_pass"
,
"click"
,
function
()
{
//点击通过按钮
bargain
.
confirmPass
();
bargain
.
confirmPass
();
});
});
// 点击新增分佣提成
// 点击新增分佣提成
$
(
document
)
.
delegate
(
"#new-commission"
,
"click"
,
function
()
{
//点击分佣提成
_doc
.
delegate
(
"#new-commission"
,
"click"
,
function
()
{
//点击分佣提成
bargain
.
newCommission
();
bargain
.
newCommission
();
bargain
.
Caozuo
();
bargain
.
Caozuo
();
});
});
//table切换
//table切换
$
(
document
)
.
delegate
(
"#information"
,
"click"
,
function
()
{
_doc
.
delegate
(
"#information"
,
"click"
,
function
()
{
bargain
.
Information
();
bargain
.
Information
();
});
});
$
(
document
)
.
delegate
(
"#fees"
,
"click"
,
function
()
{
_doc
.
delegate
(
"#fees"
,
"click"
,
function
()
{
bargain
.
Fees
();
bargain
.
Fees
();
});
});
//专员审核 总监审核 经理审核 出纳审核
//专员审核 总监审核 经理审核 出纳审核
$
(
document
)
.
delegate
(
"#commissioner"
,
"click"
,
function
()
{
_doc
.
delegate
(
"#commissioner"
,
"click"
,
function
()
{
bargain
.
Commissioner
();
bargain
.
Commissioner
();
$
(
".search"
).
attr
(
"id"
,
"search0"
);
$
(
".search"
).
attr
(
"id"
,
"search0"
);
});
});
$
(
document
)
.
delegate
(
"#manager"
,
"click"
,
function
()
{
_doc
.
delegate
(
"#manager"
,
"click"
,
function
()
{
bargain
.
Manager
();
bargain
.
Manager
();
$
(
".search"
).
attr
(
"id"
,
"search1"
);
$
(
".search"
).
attr
(
"id"
,
"search1"
);
});
});
$
(
document
)
.
delegate
(
"#director"
,
"click"
,
function
()
{
_doc
.
delegate
(
"#director"
,
"click"
,
function
()
{
bargain
.
Director
();
bargain
.
Director
();
$
(
".search"
).
attr
(
"id"
,
"search2"
);
$
(
".search"
).
attr
(
"id"
,
"search2"
);
});
});
$
(
document
)
.
delegate
(
"#cashier"
,
"click"
,
function
()
{
_doc
.
delegate
(
"#cashier"
,
"click"
,
function
()
{
bargain
.
Cashier
();
bargain
.
Cashier
();
$
(
".search"
).
attr
(
"id"
,
"searchStatement"
);
$
(
".search"
).
attr
(
"id"
,
"searchStatement"
);
});
});
var
_iYJAAObj
=
$
(
'#input_yongjin_add_area'
);
_doc
.
on
(
'click'
,
'#input_yongjin_add_btn'
,
function
(
e
){
e
.
preventDefault
();
e
.
stopPropagation
();
if
(
$
(
'#input_yongjin_add_area>div'
).
length
>=
5
){
alert
(
'最多添加5条'
);
return
false
;
}
else
{
_iYJAAObj
.
append
(
'<div class="form-group input-box-0521"><label class="">实收佣金:</label><div class="input-group"><input type="number"class="form-control input-100-width"placeholder="请输入"><div class="input-group-addon">元</div></div><label class="">收佣日期:</label><div class="input-group"><input type="date"class="form-control input-100-width"placeholder="请输入"></div><mark href="javascript:;"class="input-yongjin-cancel-pic"><img src="/resource/image/search_gb.png"/></mark></div>'
);
};
});
_doc
.
on
(
'click'
,
'.input-yongjin-cancel-pic'
,
function
(
e
){
e
.
preventDefault
();
e
.
stopPropagation
();
$
(
this
).
parent
().
remove
();
})
},
},
Timeline
:
function
()
{
//获取时间轴
Timeline
:
function
()
{
//获取时间轴
$
.
ajax
({
$
.
ajax
({
...
@@ -151,6 +170,26 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'css!style/home.css', '
...
@@ -151,6 +170,26 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'css!style/home.css', '
$
(
".commission"
).
val
(
data
.
data
.
commission
);
$
(
".commission"
).
val
(
data
.
data
.
commission
);
$
(
".create_time"
).
html
(
data
.
data
.
create_time
);
$
(
".create_time"
).
html
(
data
.
data
.
create_time
);
if
(
data
.
data
.
practical_fee
&&
data
.
data
.
practical_fee
.
length
===
0
){
$
(
'#input_yongjin_add_area'
).
html
(
'<div class="form-group input-box-0521"><label class="">实收佣金:</label><div class="input-group"><input type="number"class="form-control input-100-width"placeholder="请输入"><div class="input-group-addon">元</div></div><label class="">收佣日期:</label><div class="input-group"><input type="date"class="form-control input-100-width"placeholder="请输入"></div></div>'
);
};
$
.
each
(
data
.
data
.
practical_fee
,
function
(
i
,
v
)
{
if
(
i
==
0
)
{
$
(
'#input_yongjin_add_area'
).
html
(
'<div class="form-group input-box-0521"><label class="">实收佣金:</label><div class="input-group"><input type="number"class="form-control input-100-width"placeholder="请输入"value="{0}"><div class="input-group-addon">元</div></div><label class="">收佣日期:</label><div class="input-group"><input type="date"class="form-control input-100-width"placeholder="请输入"value="{1}"></div></div>'
.
stringFormatObj
({
'0'
:
v
.
fee
,
'1'
:
v
.
operation_date
}));
// var _tempObj = $('#input_yongjin_add_area>.input-box-0521:nth-of-type(1)');
// _tempObj.find('input').eq(0).val(v.fee);
// _tempObj.find('input').eq(1).val(v.operation_date);
}
else
{
$
(
'#input_yongjin_add_area'
).
append
(
'<div class="form-group input-box-0521"><label class="">实收佣金:</label><div class="input-group"><input type="number"class="form-control input-100-width"placeholder="请输入"value="{0}"><div class="input-group-addon">元</div></div><label class="">收佣日期:</label><div class="input-group"><input type="date"class="form-control input-100-width"placeholder="请输入"value="{1}"></div><mark href="javascript:;"class="input-yongjin-cancel-pic"><img src="/resource/image/search_gb.png"/></mark></div>'
.
stringFormatObj
({
'0'
:
v
.
fee
,
'1'
:
v
.
operation_date
}));
};
});
}
}
}
else
{
}
else
{
alert
(
'获取失败!'
);
alert
(
'获取失败!'
);
...
@@ -159,14 +198,24 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'css!style/home.css', '
...
@@ -159,14 +198,24 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'css!style/home.css', '
});
});
},
},
confirmEdit
:
function
()
{
//修改报告详情
confirmEdit
:
function
()
{
//修改报告详情
var
_tempArr
=
[];
//
var
_data
=
{
'id'
:
bargain
.
bargain_id
,
'commission'
:
$
.
trim
(
$
(
'.btn_2 commission'
).
val
())
};
$
.
each
(
$
(
'.input-box-0521'
),
function
(
i
,
v
)
{
var
_tempData
=
{
// 'fee_id': 0,
'fee'
:
$
.
trim
(
$
(
v
).
find
(
'input'
).
eq
(
0
).
val
()),
'operation_date'
:
$
.
trim
(
$
(
v
).
find
(
'input'
).
eq
(
1
).
val
())
};
console
.
log
(
_tempData
);
_data
[
'practical_fee'
+
'['
+
i
+
']'
]
=
_tempData
;
});
$
.
ajax
({
$
.
ajax
({
'type'
:
'POST'
,
'type'
:
'POST'
,
'url'
:
'/index/editBargainInfo'
,
'url'
:
'/index/editBargainInfo'
,
data
:
{
data
:
_data
,
"id"
:
bargain
.
bargain_id
,
"scale_fee"
:
$
(
".commission"
).
val
(),
"practical_fee"
:
$
(
".practical_fee"
).
val
()
},
dataType
:
"json"
,
dataType
:
"json"
,
success
:
function
(
data
)
{
success
:
function
(
data
)
{
if
(
data
.
code
==
200
)
{
if
(
data
.
code
==
200
)
{
...
...
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