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
08f1bfa7
Commit
08f1bfa7
authored
Sep 17, 2019
by
agping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
编辑收款人
parent
248b9d99
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
100 additions
and
2 deletions
+100
-2
costCheck.html
application/index/view/cost/costCheck.html
+1
-0
publicCostDetails.html
application/index/view/cost/publicCostDetails.html
+27
-1
publicCostDetails.js
public/resource/js/publicCostDetails.js
+71
-1
cost_check_template_tpl.html
public/resource/template/cost_check_template_tpl.html
+1
-0
No files found.
application/index/view/cost/costCheck.html
View file @
08f1bfa7
...
@@ -239,6 +239,7 @@
...
@@ -239,6 +239,7 @@
<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>
</tr>
</thead>
</thead>
...
...
application/index/view/cost/publicCostDetails.html
View file @
08f1bfa7
{layout name="global/frame_two_tpl" /}
{layout name="global/frame_two_tpl" /}
<input
type=
"hidden"
class=
"page-load"
id=
"publicCostDetails"
/>
<input
type=
"hidden"
class=
"page-load"
id=
"publicCostDetails"
/>
<style>
<style>
.user-ul-store-pay
{
float
:
right
;
position
:
relative
;
overflow-y
:
scroll
;
height
:
100px
;
left
:
8px
;
width
:
100%
;
line-height
:
30px
;
}
.user-ul-store-pay
li
{
list-style
:
none
;
line-height
:
20px
;
font-size
:
12px
;
}
.is_hide_details
{
.is_hide_details
{
display
:
none
;
display
:
none
;
}
}
...
@@ -287,6 +300,19 @@
...
@@ -287,6 +300,19 @@
</div>
</div>
</div>
</div>
</div>
<div
class=
"col-xs-12 margain-10"
>
<div
class=
"col-xs-12"
>
<div
class=
"form-group"
>
<strong><span
class=
"col-xs-2 ld-Marheight top-5"
>
收款人:
</span></strong>
<span
id=
""
class=
"col-xs-4 ld-Marheight"
>
<input
class=
"form-control"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"comit_store_pay"
placeholder=
"请输入经纪人姓名进行搜索"
type=
"text"
value=
""
>
<ul
class=
"user-ul-store-pay"
style=
"display:none"
></ul>
</span>
</div>
</div>
</div>
</div>
<div
class=
"col-xs-12"
style=
"padding: 0 30px;"
>
<div
class=
"col-xs-12"
style=
"padding: 0 30px;"
>
<p
style=
"font-size: 16px;font-weight: 600;"
>
成本明细
</p>
<p
style=
"font-size: 16px;font-weight: 600;"
>
成本明细
</p>
...
...
public/resource/js/publicCostDetails.js
View file @
08f1bfa7
...
@@ -11,6 +11,7 @@ define(['doT', 'text!temp/cost_check_template_tpl.html', 'css!style/home.css', '
...
@@ -11,6 +11,7 @@ define(['doT', 'text!temp/cost_check_template_tpl.html', 'css!style/home.css', '
store_id
:
''
,
store_id
:
''
,
main_index
:
''
,
main_index
:
''
,
agent_id
:
''
,
//编辑费用的经纪人id
agent_id
:
''
,
//编辑费用的经纪人id
agent_id_store_pay
:
''
,
//收款人
init
:
function
()
{
init
:
function
()
{
//初始化dot
//初始化dot
$
(
document
.
body
).
append
(
template
);
$
(
document
.
body
).
append
(
template
);
...
@@ -36,7 +37,18 @@ define(['doT', 'text!temp/cost_check_template_tpl.html', 'css!style/home.css', '
...
@@ -36,7 +37,18 @@ define(['doT', 'text!temp/cost_check_template_tpl.html', 'css!style/home.css', '
$
(
document
).
on
(
'click'
,
'.close'
,
function
(
e
){
$
(
document
).
on
(
'click'
,
'.close'
,
function
(
e
){
$
(
parent
.
document
).
find
(
'.close'
).
click
();
$
(
parent
.
document
).
find
(
'.close'
).
click
();
});
});
//编辑报销 收款人
$
(
document
).
delegate
(
".addphoneStorePay"
,
"click"
,
function
()
{
that
.
addphoneStorePay
(
this
);
});
$
(
document
).
on
(
"input"
,
"#comit_store_pay"
,
function
()
{
if
(
$
(
"#comit_store_pay"
).
val
()
==
''
)
{
that
.
agent_id_store_pay
=
''
;
$
(
".user-ul-store-pay"
).
html
(
''
);
}
else
{
that
.
search_store_pay
();
}
});
//编辑 费用类型切换
//编辑 费用类型切换
$
(
"#payType"
).
change
(
function
()
{
$
(
"#payType"
).
change
(
function
()
{
...
@@ -235,6 +247,8 @@ define(['doT', 'text!temp/cost_check_template_tpl.html', 'css!style/home.css', '
...
@@ -235,6 +247,8 @@ define(['doT', 'text!temp/cost_check_template_tpl.html', 'css!style/home.css', '
$
(
'#bank'
).
val
(
data
.
data
.
bank
);
$
(
'#bank'
).
val
(
data
.
data
.
bank
);
$
(
'#count_time'
).
val
(
data
.
data
.
count_time
);
$
(
'#count_time'
).
val
(
data
.
data
.
count_time
);
$
(
'#kaoqin'
).
html
(
data
.
data
.
office_attendance_num
);
//考勤
$
(
'#kaoqin'
).
html
(
data
.
data
.
office_attendance_num
);
//考勤
$
(
'#comit_store_pay'
).
val
(
data
.
data
.
payee_agent_name
);
//获取收款人
cost
.
agent_id_store_pay
=
data
.
data
.
payee_agent_id
;
//根据费用类型 显示费用项目
//根据费用类型 显示费用项目
// 费用类型 1办公室成本 2上海总部成本 3分部成本 4同联发展基金 5门店单独成本。
// 费用类型 1办公室成本 2上海总部成本 3分部成本 4同联发展基金 5门店单独成本。
if
(
data
.
data
.
type
==
1
){
//办公室
if
(
data
.
data
.
type
==
1
){
//办公室
...
@@ -452,6 +466,54 @@ define(['doT', 'text!temp/cost_check_template_tpl.html', 'css!style/home.css', '
...
@@ -452,6 +466,54 @@ define(['doT', 'text!temp/cost_check_template_tpl.html', 'css!style/home.css', '
}
}
});
});
},
},
//收款人 编辑报销
search_store_pay
:
function
()
{
//手机号新增客户
$
.
ajax
({
url
:
'/index/getBroker_new'
,
type
:
'GET'
,
async
:
true
,
data
:
{
"phone"
:
$
(
"#comit_store_pay"
).
val
(),
'all'
:
1
},
dataType
:
'json'
,
success
:
function
(
data
)
{
if
(
data
.
code
==
200
)
{
var
user_ul
=
""
;
$
.
each
(
data
.
data
,
function
(
i
,
item
)
{
if
(
item
.
status
==
0
||
item
.
status
==
4
){
var
status
=
' '
;
};
if
(
item
.
status
==
1
){
var
status
=
'-长假'
;
};
if
(
item
.
status
==
2
){
var
status
=
'-离职'
;
};
if
(
item
.
status
==
3
){
var
status
=
'-转勤'
;
}
user_ul
+=
'<li class="addphoneStorePay" data-id="'
+
item
.
id
+
'">'
+
item
.
id
+
'-'
+
item
.
name
+
'-'
+
item
.
phone
+
status
+
'</li>'
;
});
$
(
".user-ul-store-pay"
).
html
(
user_ul
);
$
(
".user-ul-store-pay"
).
show
();
}
else
{
alert
(
data
.
msg
);
}
}
});
},
//编辑报销 收款人
addphoneStorePay
:
function
(
obj
)
{
var
that
=
cost
;
var
user_ht
=
$
(
obj
).
html
()
+
''
;
var
user_ht_str
=
user_ht
.
substring
(
0
,
user_ht
.
length
-
3
);
$
(
"#comit_store_pay"
).
val
(
user_ht_str
);
$
(
".user-ul-store-pay"
).
html
(
''
);
$
(
".user-ul-store-pay"
).
hide
();
that
.
agent_id_store_pay
=
$
(
obj
).
attr
(
"data-id"
);
},
//删除图片
//删除图片
spandelList
:
function
(
id
)
{
spandelList
:
function
(
id
)
{
$
.
ajax
({
$
.
ajax
({
...
@@ -539,6 +601,12 @@ define(['doT', 'text!temp/cost_check_template_tpl.html', 'css!style/home.css', '
...
@@ -539,6 +601,12 @@ define(['doT', 'text!temp/cost_check_template_tpl.html', 'css!style/home.css', '
alert
(
'请选择计入月份'
);
alert
(
'请选择计入月份'
);
return
;
return
;
}
}
if
(
$
(
"#comit_store_pay"
).
val
()){
}
else
{
alert
(
'请填写收款人'
);
return
;
}
params
.
card_name
=
$
(
'#card_name'
).
val
();
params
.
card_name
=
$
(
'#card_name'
).
val
();
params
.
bank
=
$
(
'#bank'
).
val
();
params
.
bank
=
$
(
'#bank'
).
val
();
params
.
card_no
=
$
(
'#card_no'
).
val
();
params
.
card_no
=
$
(
'#card_no'
).
val
();
...
@@ -546,6 +614,8 @@ define(['doT', 'text!temp/cost_check_template_tpl.html', 'css!style/home.css', '
...
@@ -546,6 +614,8 @@ define(['doT', 'text!temp/cost_check_template_tpl.html', 'css!style/home.css', '
params
.
id
=
cost
.
id
;
params
.
id
=
cost
.
id
;
params
.
agent_id
=
cost
.
agent_id
;
params
.
agent_id
=
cost
.
agent_id
;
params
.
store_id
=
cost
.
store_id
;
params
.
store_id
=
cost
.
store_id
;
params
.
payee_agent_id
=
cost
.
agent_id_store_pay
;
//收款人
// params.office_id = cost.office_id;
// params.office_id = cost.office_id;
$
.
ajax
({
$
.
ajax
({
...
...
public/resource/template/cost_check_template_tpl.html
View file @
08f1bfa7
...
@@ -51,6 +51,7 @@
...
@@ -51,6 +51,7 @@
[
%
}
else
{
%
]
[
%
}
else
{
%
]
<
td
>--<
/td
>
<
td
>--<
/td
>
[
%
}
%
]
[
%
}
%
]
<
td
>
[
%=
it
[
item
][
'payee_agent_name'
]
%
]
<
/td
>
<
td
>
<
td
>
[
%
if
(
check_auth
(
'index/getDetailCost'
))
{
%
]
[
%
if
(
check_auth
(
'index/getDetailCost'
))
{
%
]
...
...
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