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
d4344f94
Commit
d4344f94
authored
Dec 11, 2018
by
agping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
4e57ae42
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
214 additions
and
0 deletions
+214
-0
daily_list.html
application/index/view/finance/daily_list.html
+0
-0
financial_daily_list.js
public/resource/js/financial_daily_list.js
+191
-0
financial_daily_list_template_tpl.html
.../resource/template/financial_daily_list_template_tpl.html
+23
-0
No files found.
application/index/view/finance/daily_list.html
View file @
d4344f94
This diff is collapsed.
Click to expand it.
public/resource/js/financial_daily_list.js
0 → 100644
View file @
d4344f94
define
([
'doT'
,
'text!temp/financial_daily_list_template_tpl.html'
,
'css!style/home.css'
,
'css!style/report_list.css'
,
'ckfinder'
,
'ckfinderStart'
,
'pagination'
,
'bootstrapJs'
],
function
(
doT
,
template
,
template_tax
,
template_maid
,
template_maid_sub1
)
{
bargain
=
{
pageNo
:
1
,
/*第几页*/
pageSize
:
10
,
/*每页显示多少条*/
mainTabIndex
:
0
,
detailTabIndex
:
0
,
bargain_id
:
''
,
order_id
:
0
,
//订单id
maidTotalCommission
:
0
,
//应收总佣金
isBargaininfoSaveIngFlag
:
false
,
//成交信息保存是否正在保存
shouyong_date_active_sapn
:
null
,
init
:
function
()
{
//初始化dot
$
(
document
.
body
).
append
(
template
);
bargain
.
getList
(
1
);
bargain
.
event
();
},
event
:
function
()
{
var
_doc
=
$
(
document
);
//主页面一级审核,二级审核,三级审核,结单四个tab的点击事件
_doc
.
on
(
'click'
,
'.maintable-top-sub-tr>a'
,
function
(
e
){
e
.
preventDefault
();
e
.
stopPropagation
();
var
_this
=
$
(
this
);
_this
.
removeClass
(
'btn-default'
).
addClass
(
'btn-info'
).
siblings
().
removeClass
(
'btn-info'
).
addClass
(
'btn-default'
);
bargain
.
mainTabIndex
=
_this
.
index
();
console
.
log
(
bargain
.
mainTabIndex
);
bargain
.
getList
(
1
);
});
//搜索按钮的事件
_doc
.
on
(
'click'
,
'#maintable_search'
,
function
(
e
)
{
e
.
preventDefault
();
e
.
stopPropagation
();
bargain
.
getList
(
1
);
//一级审核搜索
});
//点击li 列表消失
$
(
document
).
delegate
(
".addphone"
,
"click"
,
function
()
{
//list消失新增客户 点击li事件 获取id ul消失
bargain
.
addphone
(
this
);
});
//搜索的重置
$
(
"#maintable_reset"
).
click
(
function
()
{
document
.
getElementById
(
"maintable_form_search"
).
reset
();
bargain
.
agent_id_phone
=
''
;
});
var
_doc
=
$
(
document
);
bargain
.
getDistrict
(
function
()
{
_doc
.
on
(
'input'
,
'[name=district_id],#district_id2'
,
function
()
{
var
_this
=
$
(
this
);
var
_id
=
_this
.
val
();
_this
.
next
().
html
(
''
);
//先清空
//新增 编辑
var
_objTemp
=
_this
.
parent
().
next
().
find
(
'select'
);
_objTemp
.
html
(
''
);
//先清空
if
(
_id
&&
_id
!=
'0'
)
{
bargain
.
getDistrictStoreList
(
_id
,
function
(
_data
)
{
// var _str = '';
var
_str
=
'<option value="0">全部</option>'
;
$
.
each
(
_data
,
function
(
i
,
item
)
{
_str
+=
'<option value="'
+
item
.
id
+
'">'
+
item
.
store_name
+
'</option>'
;
});
_objTemp
.
html
(
_str
);
_this
.
next
().
html
(
_str
);
});
}
else
{};
});
});
},
//获取一级审核,二级审核,三级审核,结单不同的ajax请求url
switchUrl
:
function
(){
switch
(
Number
(
this
.
mainTabIndex
)){
case
0
:
return
'/index/reportListAll/10'
;
case
1
:
return
'/index/reportListOne/1'
;
case
2
:
return
'/index/reportListTwo/2'
;
case
3
:
return
'/index/reportListThree/3'
;
case
4
:
return
'/index/reportListStatement/4'
;
default
:
return
''
;
}
},
//获取一级审核,二级审核,三级审核,结单数据列表共用的方法
getList
:
function
(
pageNo
){
console
.
count
(
'bar'
);
var
params
=
{
'pageNo'
:
pageNo
,
'pageSize'
:
bargain
.
pageSize
,
'shop_type'
:
$
(
'#maintable_shop_type'
).
val
(),
'create_time'
:
$
.
trim
(
$
(
'#maintable_create_time'
).
val
()),
'end_time'
:
$
.
trim
(
$
(
'#maintable_end_time'
).
val
()),
'internal_address'
:
$
.
trim
(
$
(
'#maintable_internal_address'
).
val
()),
'user_phone'
:
$
.
trim
(
$
(
'#maintable_user_phone'
).
val
()),
'house_number'
:
$
.
trim
(
$
(
'#maintable_shop_num'
).
val
()),
'district_id'
:
$
(
"select[name='district_id'] option:selected"
).
val
(),
'store_id'
:
$
(
"select[name='store_id'] option:selected"
).
val
(),
'agent_name'
:
$
.
trim
(
$
(
'#agent_name'
).
val
()),
'agent_phone'
:
$
.
trim
(
$
(
'#agent_phone'
).
val
()),
'bargain_id'
:
$
.
trim
(
$
(
'#bargain_id'
).
val
()),
'partial_id'
:
bargain
.
agent_id_phone
,
'user_id'
:
$
(
'#maintable_user_ID'
).
val
(),
};
$
.
ajax
({
type
:
'GET'
,
url
:
bargain
.
switchUrl
(),
data
:
params
,
timeout
:
30000
,
dataType
:
'json'
,
beforeSend
:
function
()
{
$
(
'#main_loading_pic'
).
show
();
},
success
:
function
(
data
)
{
if
(
typeof
data
===
'object'
)
{
if
(
data
.
code
==
200
)
{
var
doTtmpl
=
doT
.
template
(
document
.
getElementById
(
'financial_daily_list_tpl'
).
innerHTML
);
$
(
"#maintable_list"
).
html
(
doTtmpl
(
data
.
data
.
list
));
/*分页代码*/
add_page
(
data
.
data
.
total
,
pageNo
,
bargain
.
pageSize
,
bargain
.
getList
);
}
else
{
alert
(
data
[
'msg'
]);
};
}
else
{
alert
(
'数据错误'
);
};
},
error
:
function
()
{
alert
(
'error'
);
},
complete
:
function
(
xhr
,
textStatus
)
{
$
(
'#main_loading_pic'
).
hide
();
if
(
textStatus
===
'timeout'
)
{
alert
(
'请求超时'
);
};
}
});
},
getDistrict
:
function
(
fn
)
{
$
.
ajax
({
url
:
'/index/getDistrict'
,
type
:
'GET'
,
async
:
true
,
data
:
{
"pageSize"
:
1000
},
dataType
:
'json'
,
success
:
function
(
data
)
{
if
(
data
.
code
==
200
&&
data
.
data
!=
null
)
{
var
str
=
''
;
$
.
each
(
data
.
data
,
function
(
i
,
item
)
{
str
+=
'<option value="'
+
item
.
id
+
'">'
+
item
.
district_name
+
'</option>'
;
});
$
(
'[name=district_id]'
).
append
(
str
);
$
(
'#district_id2'
).
append
(
str
);
fn
&&
fn
();
}
}
});
},
getDistrictStoreList
:
function
(
id
,
fn
)
{
$
.
ajax
({
url
:
'/index/getDistrictStoreList'
,
type
:
'GET'
,
async
:
true
,
data
:
{
'id'
:
id
,
"pageSize"
:
1000
},
dataType
:
'json'
,
success
:
function
(
data
)
{
if
(
data
.
code
==
200
&&
data
.
data
!=
null
)
{
fn
&&
fn
(
data
.
data
);
}
}
});
},
};
return
bargain
;
});
\ No newline at end of file
public/resource/template/financial_daily_list_template_tpl.html
0 → 100644
View file @
d4344f94
<script
id=
"financial_daily_list_tpl"
type=
"text/template"
>
[
%
if
(
it
.
length
)
{
%
]
[
%
for
(
var
item
in
it
){
%
]
<
tr
>
<
td
>
[
%=
it
[
item
][
'create_time'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'id'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'name'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'phone'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'store_name'
]
%
]
<
/td
>
<
td
>
<
a
class
=
"btn1 btn-info"
href
=
"#modal_financial"
data
-
recordid
=
"[%= it[item]['id'] %]"
data
-
toggle
=
"modal"
>
审核
<
/a
>
<
/td
>
<
/tr
>
[
%
}
%
]
[
%
}
else
{
%
]
<
tr
>
<
td
colspan
=
"8"
style
=
"text-align:center;"
>
暂无数据
<
/td
>
<
/tr
>
[
%
}
%
]
</script>
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