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
700069dc
Commit
700069dc
authored
May 26, 2018
by
xishifeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
开票税费1
parent
bb97dc41
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
125 additions
and
30 deletions
+125
-30
account_statement.html
application/index/view/finance/account_statement.html
+5
-8
report_list.css
public/resource/css/report_list.css
+16
-6
public.js
public/resource/js/public.js
+15
-10
reportList.js
public/resource/js/reportList.js
+87
-4
reportList_shuiFee_template_tpl.html
...ic/resource/template/reportList_shuiFee_template_tpl.html
+2
-2
No files found.
application/index/view/finance/account_statement.html
View file @
700069dc
...
@@ -303,13 +303,13 @@
...
@@ -303,13 +303,13 @@
<div
class=
"modal-body"
>
<div
class=
"modal-body"
>
<div>
<div>
<div>
<div>
<div
class=
"form-group
detail
-modal-tax-commission-sec"
>
<div
class=
"form-group
addtax
-modal-tax-commission-sec"
>
<label
class=
""
>
开票金额:
</label>
<label
class=
""
>
开票金额:
</label>
<div
class=
"input-group"
><input
type=
"number"
class=
"form-control"
placeholder=
"请输入"
id=
""
>
<div
class=
"input-group"
><input
type=
"number"
class=
"form-control"
placeholder=
"请输入"
id=
"
addtax_commission_input
"
>
<div
class=
"input-group-addon"
>
元
</div>
<div
class=
"input-group-addon"
>
元
</div>
</div>
</div>
<label
class=
""
>
开票日期:
</label>
<label
class=
""
>
开票日期:
</label>
<div
class=
"input-group"
><input
type=
"date"
class=
"form-control"
placeholder=
"请输入"
></div>
<div
class=
"input-group"
><input
type=
"date"
class=
"form-control"
placeholder=
"请输入"
id=
"addtax_date"
></div>
</div>
</div>
<div>
<div>
<table
class=
"table-haveborder addtax-modal-tax-table"
>
<table
class=
"table-haveborder addtax-modal-tax-table"
>
...
@@ -331,11 +331,8 @@
...
@@ -331,11 +331,8 @@
</div>
</div>
</div>
</div>
<div
class=
"modal-footer"
>
<div
class=
"modal-footer"
>
<button
type=
"button"
class=
"btn btn-default"
data-dismiss=
"modal"
>
取消
<button
type=
"button"
class=
"btn btn-default"
data-dismiss=
"modal"
>
取消
</button>
</button>
<button
type=
"button"
class=
"btn btn-primary"
data-dismiss=
"modal"
id=
"addtax_commission_addok"
>
确定
</button>
<button
type=
"button"
class=
"btn btn-primary"
data-dismiss=
"modal"
>
确定
</button>
</div>
</div>
</div>
</div>
<!-- /.modal-content -->
<!-- /.modal-content -->
...
...
public/resource/css/report_list.css
View file @
700069dc
...
@@ -6,6 +6,7 @@ detail-modal-bargaininfo-
...
@@ -6,6 +6,7 @@ detail-modal-bargaininfo-
detail-modal-maid-
detail-modal-maid-
detail-modal-tax-
detail-modal-tax-
pass-modal-
pass-modal-
addtax-modal-
*
*
*
*
*
*
...
@@ -59,28 +60,28 @@ pass-modal-
...
@@ -59,28 +60,28 @@ pass-modal-
}
}
.detail-modal-bargaininfo-commission-sec
,
.detail-modal-bargaininfo-commission-sec
,
.
detail
-modal-tax-commission-sec
{
.
addtax
-modal-tax-commission-sec
{
overflow
:
hidden
;
overflow
:
hidden
;
}
}
.detail-modal-bargaininfo-commission-sec
>
label
,
.detail-modal-bargaininfo-commission-sec
>
label
,
.
detail
-modal-tax-commission-sec
>
label
{
.
addtax
-modal-tax-commission-sec
>
label
{
float
:
left
;
float
:
left
;
}
}
.detail-modal-bargaininfo-commission-sec
>
label
:nth-of-type
(
2
),
.detail-modal-bargaininfo-commission-sec
>
label
:nth-of-type
(
2
),
.
detail
-modal-tax-commission-sec
>
label
:nth-of-type
(
2
)
{
.
addtax
-modal-tax-commission-sec
>
label
:nth-of-type
(
2
)
{
margin-left
:
50px
;
margin-left
:
50px
;
}
}
.detail-modal-bargaininfo-commission-sec
>
div
,
.detail-modal-bargaininfo-commission-sec
>
div
,
.
detail
-modal-tax-commission-sec
>
div
{
.
addtax
-modal-tax-commission-sec
>
div
{
float
:
left
;
float
:
left
;
width
:
160px
;
width
:
160px
;
}
}
.detail-modal-bargaininfo-commission-sec
>
mark
,
.detail-modal-bargaininfo-commission-sec
>
mark
,
.
detail
-modal-tax-commission-sec
>
mark
{
.
addtax
-modal-tax-commission-sec
>
mark
{
float
:
left
;
float
:
left
;
overflow
:
hidden
;
overflow
:
hidden
;
background-color
:
transparent
;
background-color
:
transparent
;
...
@@ -89,7 +90,7 @@ pass-modal-
...
@@ -89,7 +90,7 @@ pass-modal-
}
}
.detail-modal-bargaininfo-commission-sec
>
mark
>
img
,
.detail-modal-bargaininfo-commission-sec
>
mark
>
img
,
.
detail
-modal-tax-commission-sec
>
mark
>
img
{
.
addtax
-modal-tax-commission-sec
>
mark
>
img
{
float
:
left
;
float
:
left
;
width
:
20px
;
width
:
20px
;
}
}
...
@@ -206,6 +207,15 @@ pass-modal-
...
@@ -206,6 +207,15 @@ pass-modal-
height
:
150px
;
height
:
150px
;
}
}
/*详情弹出框,开票税费下的表格*/
.detail-modal-tax-table
{
width
:
600px
;
}
.detail-modal-tax-table
td
{
height
:
40px
;
text-align
:
center
;
}
/*main-table部分,待补充*/
/*main-table部分,待补充*/
.maintable-tr-bar
{}
.maintable-tr-bar
{}
.maintable-tr-bar
>
th
:nth-of-type
(
1
)
{}
.maintable-tr-bar
>
th
:nth-of-type
(
1
)
{}
...
...
public/resource/js/public.js
View file @
700069dc
...
@@ -131,15 +131,20 @@ function check_auth(auth_rule) {
...
@@ -131,15 +131,20 @@ function check_auth(auth_rule) {
return
result
;
return
result
;
}
}
//分页插件封装
function
PaginationX
(
obj
){
obj
.
dom
.
html
(
'wrgwg'
);
var
_preHtml
=
'<div class="ui-page-x"><span class="ui-page ui-page-prev"><svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="200" height="200" viewBox="0 0 200 200"><path d="M85.876,100.5l49.537-50.526c4.089-4.215,4.089-11.049,0-15.262 c-4.089-4.218-10.719-4.218-14.808,0L63.586,92.868c-4.089,4.215-4.089,11.049,0,15.264l57.018,58.156 c4.089,4.215,10.719,4.215,14.808,0c4.089-4.215,4.089-11.049,0-15.262L85.876,100.5z"></path></svg></span>'
;
var
_aftHtml
=
''
;
};
//手机号码格式正则验证 by xishifeng
//手机号码格式正则验证 by xishifeng
function
is_mobile
(
text
)
{
function
is_mobile
(
text
)
{
return
/^1
[
1234567890
]\d{9}
$/
.
test
(
text
)?
true
:
false
;
return
/^1
[
1234567890
]\d{9}
$/
.
test
(
text
)?
true
:
false
;
}
}
\ No newline at end of file
//处理金额的数字,最多三位小数
function
dealJineNum
(
num
){
if
(
isFinite
(
num
)){
if
(
parseInt
(
num
)
==
num
||
num
.
toString
().
split
(
"."
)[
1
].
length
<
4
){
return
num
;
}
else
{
return
Number
((
num
).
toFixed
(
3
));
}
}
else
{
return
0
;
};
};
\ No newline at end of file
public/resource/js/reportList.js
View file @
700069dc
...
@@ -145,8 +145,32 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'text!temp/reportList_s
...
@@ -145,8 +145,32 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'text!temp/reportList_s
});
});
//点击开票税费下的新增税费,弹出框出来
//点击开票税费下的新增税费,弹出框出来
_doc
.
delegate
(
"[href=
\"
#modal_new_tax
\"
]"
,
"click"
,
function
()
{
_doc
.
on
(
'click'
,
'[href=
\
"#modal_new_tax
\
"]'
,
function
(
e
){
bargain
.
newAddTax
();
e
.
preventDefault
();
e
.
stopPropagation
();
var
_this
=
$
(
this
);
bargain
.
newAddTax
({
'type'
:
_this
.
attr
(
'data-recordid'
)?
'edit'
:
'new'
,
'id'
:
_this
.
attr
(
'data-recordid'
)
});
});
//新增开票税费,金额输入框输入后,自动计算税费
_doc
.
on
(
'input'
,
'#addtax_commission_input'
,
function
(
e
){
e
.
preventDefault
();
e
.
stopPropagation
();
var
_this
=
$
(
this
);
var
_trObj
=
$
(
'.addtax-modal-tax-table-datatr'
);
$
.
each
(
_trObj
,
function
(
i
,
v
)
{
v
.
childNodes
[
3
].
innerHTML
=
dealJineNum
(
Number
(
v
.
childNodes
[
2
].
innerHTML
.
split
(
'%'
)[
0
])
*
0.01
*
Number
(
$
.
trim
(
_this
.
val
()))
*
0.1
);
});
});
//新增开票税费,点击确定时的提交
_doc
.
on
(
'click'
,
'#addtax_commission_addok'
,
function
(
e
){
e
.
preventDefault
();
e
.
stopPropagation
();
bargain
.
newAddTaxOk
();
});
});
},
},
Timeline
:
function
()
{
//获取时间轴
Timeline
:
function
()
{
//获取时间轴
...
@@ -346,7 +370,17 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'text!temp/reportList_s
...
@@ -346,7 +370,17 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'text!temp/reportList_s
}
}
});
});
},
},
newAddTax
:
function
()
{
newAddTax
:
function
(
obj
)
{
var
_tempTableObj
=
$
(
'.addtax-modal-tax-table'
);
_tempTableObj
.
attr
(
'data-type'
,
obj
[
'type'
]);
if
(
obj
[
'type'
]
===
'new'
){
$
(
'.addtax_commission_input'
).
val
(
''
);
$
(
'.addtax_date'
).
val
(
''
);
}
else
{
$
(
'.addtax_commission_input'
).
val
(
''
);
$
(
'.addtax_date'
).
val
(
''
);
_tempTableObj
.
attr
(
'data-recordid'
,
obj
[
'id'
]);
};
$
.
ajax
({
$
.
ajax
({
type
:
'GET'
,
type
:
'GET'
,
url
:
'/index/searchBargainAgents'
,
url
:
'/index/searchBargainAgents'
,
...
@@ -362,10 +396,11 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'text!temp/reportList_s
...
@@ -362,10 +396,11 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'text!temp/reportList_s
if
(
_data
[
'data'
]
&&
_data
[
'data'
].
length
&&
_data
[
'data'
].
length
>
0
){
if
(
_data
[
'data'
]
&&
_data
[
'data'
].
length
&&
_data
[
'data'
].
length
>
0
){
var
_htmlTemp
=
'<tr><td>分佣方</td><td>业务员</td><td>分佣比例</td><td>税费</td></tr>'
;
var
_htmlTemp
=
'<tr><td>分佣方</td><td>业务员</td><td>分佣比例</td><td>税费</td></tr>'
;
$
.
each
(
_data
[
'data'
],
function
(
i
,
v
)
{
$
.
each
(
_data
[
'data'
],
function
(
i
,
v
)
{
_htmlTemp
+=
'<tr
data-id="{id
}"><td>{0}</td><td>{1}</td><td>{2}%</td><td contenteditable></td></tr>'
.
stringFormatObj
({
_htmlTemp
+=
'<tr
class="addtax-modal-tax-table-datatr" data-id="{id}" data-role="{role
}"><td>{0}</td><td>{1}</td><td>{2}%</td><td contenteditable></td></tr>'
.
stringFormatObj
({
'0'
:
v
.
role_name
,
'0'
:
v
.
role_name
,
'1'
:
v
.
name
+
'-'
+
v
.
phone
,
'1'
:
v
.
name
+
'-'
+
v
.
phone
,
'2'
:
v
.
scale
,
'2'
:
v
.
scale
,
'role'
:
v
.
role
,
'id'
:
v
.
id
'id'
:
v
.
id
});
});
});
});
...
@@ -391,6 +426,54 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'text!temp/reportList_s
...
@@ -391,6 +426,54 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'text!temp/reportList_s
}
}
});
});
},
},
newAddTaxOk
:
function
(){
var
_tempTableObj
=
$
(
'.addtax-modal-tax-table'
);
var
_data
=
{
'bargain_id'
:
bargain
.
bargain_id
,
'total_fee'
:
$
.
trim
(
$
(
'#addtax_commission_input'
).
val
()),
'operation_date'
:
$
(
'#addtax_date'
).
val
()
};
if
(
_tempTableObj
.
attr
(
'data-type'
)
===
'edit'
){
_data
[
'id'
]
=
_tempTableObj
.
attr
(
'data-recordid'
);
};
$
.
each
(
$
(
'.addtax-modal-tax-table-datatr'
),
function
(
i
,
v
)
{
_data
[
'tax['
+
i
+
']'
]
=
{
'fee'
:
v
.
childNodes
[
3
].
innerHTML
,
'agent_id'
:
JSON
.
parse
(
decodeURIComponent
(
sessionStorage
.
getItem
(
'pcUserInfo'
))).
id
,
'role'
:
v
.
getAttribute
(
'data-role'
),
'scale'
:
v
.
childNodes
[
2
].
innerHTML
.
split
(
'%'
)[
0
]
};
});
$
.
ajax
({
type
:
'POST'
,
url
:
'/index/addTallAge'
,
data
:
_data
,
timeout
:
30000
,
dataType
:
'json'
,
beforeSend
:
function
()
{},
success
:
function
(
_data
)
{
if
(
typeof
_data
===
'object'
)
{
if
(
_data
[
'code'
]
==
'200'
)
{
alert
(
'新增成功!'
);
bargain
.
taxShow
();
}
else
{
layerTipsX
(
_data
[
'msg'
]);
}
}
else
{
layerTipsX
(
'数据错误'
);
};
},
error
:
function
()
{
layerTipsX
(
'enter error'
);
},
complete
:
function
(
xhr
,
textStatus
){
if
(
textStatus
===
'timeout'
)
{
//处理超时的逻辑
layerTipsX
(
'请求超时,请重试'
);
};
}
});
},
newCommission
:
function
()
{
//新增分佣提成
newCommission
:
function
()
{
//新增分佣提成
$
.
ajax
({
$
.
ajax
({
'type'
:
'POST'
,
'type'
:
'POST'
,
...
...
public/resource/template/reportList_shuiFee_template_tpl.html
View file @
700069dc
...
@@ -19,7 +19,7 @@
...
@@ -19,7 +19,7 @@
<
/tr
>
<
/tr
>
[
%
if
(
it
[
item
][
'fee_list'
]
&&
it
[
item
][
'fee_list'
].
length
&&
it
[
item
][
'fee_list'
].
length
>
0
)
{
%
]
[
%
if
(
it
[
item
][
'fee_list'
]
&&
it
[
item
][
'fee_list'
].
length
&&
it
[
item
][
'fee_list'
].
length
>
0
)
{
%
]
[
%
for
(
var
item2
in
it
[
item
][
'fee_list'
]){
%
]
[
%
for
(
var
item2
in
it
[
item
][
'fee_list'
]){
%
]
<
tr
>
<
tr
data
-
id
=
"[%= it[item]['fee_list'][item2]['fee_id'] %]"
>
<
td
>
[
%=
getInfoType
(
it
[
item
][
'fee_list'
][
item2
][
'role'
])
%
]
<
/td
>
<
td
>
[
%=
getInfoType
(
it
[
item
][
'fee_list'
][
item2
][
'role'
])
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'fee_list'
][
item2
][
'name'
]
+
'-'
+
it
[
item
][
'fee_list'
][
item2
][
'phone'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'fee_list'
][
item2
][
'name'
]
+
'-'
+
it
[
item
][
'fee_list'
][
item2
][
'phone'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'fee_list'
][
item2
][
'scale'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'fee_list'
][
item2
][
'scale'
]
%
]
<
/td
>
...
@@ -32,7 +32,7 @@
...
@@ -32,7 +32,7 @@
<
/table
>
<
/table
>
<
/div
>
<
/div
>
<
div
>
<
div
>
<
a
class
=
"btn btn-default"
href
=
"#modal_new_
shuifee
"
>
编辑
<
/a
>
<
a
class
=
"btn btn-default"
href
=
"#modal_new_
tax"
data
-
recordid
=
"[%= it[item]['id'] %]"
data
-
toggle
=
"modal
"
>
编辑
<
/a
>
<
/div
>
<
/div
>
<
/section
>
<
/section
>
[
%
}
%
]
[
%
}
%
]
...
...
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