|
|
|
<extend name="Public/base"/>
|
|
|
|
<block name="css">
|
|
|
|
<link rel="stylesheet" href="__CSS__/select2.min.css" type="text/css" />
|
|
|
|
<link rel="stylesheet" href="__CSS__/promote.css" type="text/css"/>
|
|
|
|
<script src="__STATIC__/laydate/laydate.js"></script>
|
|
|
|
<link rel="stylesheet" type="text/css" href="__STATIC__/webuploader/webuploader.css" media="all">
|
|
|
|
<style>
|
|
|
|
.select2-container--default .select2-selection--single {
|
|
|
|
color: #000;
|
|
|
|
resize: none;
|
|
|
|
border-width: 1px;
|
|
|
|
border-style: solid;
|
|
|
|
border-color: #a7b5bc #ced9df #ced9df #a7b5bc;
|
|
|
|
box-shadow: 0px 3px 3px #F7F8F9 inset;height:35px;
|
|
|
|
height:28px;border-radius:3px;font-size:12px;
|
|
|
|
}
|
|
|
|
.select2-container--default .select2-selection--single .select2-selection__rendered {
|
|
|
|
line-height:35px;
|
|
|
|
line-height:28px;
|
|
|
|
}
|
|
|
|
.select2-container--default .select2-selection--single .select2-selection__arrow {
|
|
|
|
height:26px;
|
|
|
|
}
|
|
|
|
.select2-container--default .select2-search--dropdown .select2-search__field {
|
|
|
|
height:26px;line-height:26px;font-size:12px;
|
|
|
|
}
|
|
|
|
.select2-results__option[aria-selected] {font-size:12px;}
|
|
|
|
.textarea-style {
|
|
|
|
width: 200px;
|
|
|
|
height: 80px;
|
|
|
|
border-radius: 5px;
|
|
|
|
padding: 5px;
|
|
|
|
}
|
|
|
|
.mustmark {
|
|
|
|
color: #FF0000;
|
|
|
|
font-style: normal;
|
|
|
|
margin: 0 3px;
|
|
|
|
}
|
|
|
|
.butnbox {
|
|
|
|
padding: 10px 0 10px;
|
|
|
|
}
|
|
|
|
.butnbox .butnlist .butn {
|
|
|
|
display: inline-block;
|
|
|
|
width: 120px;
|
|
|
|
height: 28px;
|
|
|
|
line-height: 28px;
|
|
|
|
text-align: center;
|
|
|
|
color: #FFF;
|
|
|
|
background: #3C95C8;
|
|
|
|
border-radius: 3px;
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
.data_list table td .status-0 {
|
|
|
|
color: #e6a23c;
|
|
|
|
}
|
|
|
|
.data_list table td .status-1 {
|
|
|
|
color: #67c23a;
|
|
|
|
}
|
|
|
|
.data_list table td .status-2 {
|
|
|
|
color: #f56c6c;
|
|
|
|
}
|
|
|
|
.select2-container--open {
|
|
|
|
z-index: 1001;
|
|
|
|
}
|
|
|
|
.data_list table.specail-table tbody tr:nth-child(even) {
|
|
|
|
background: #fff;
|
|
|
|
}
|
|
|
|
.data_list table.specail-table tbody tr:hover {
|
|
|
|
background: #e5ebee;
|
|
|
|
}
|
|
|
|
.data_list table.specail-table tbody tr.new_row {
|
|
|
|
border-top: 1px solid #ebeef5;
|
|
|
|
border-bottom: 1px solid #ebeef5;
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
</block>
|
|
|
|
<block name="body">
|
|
|
|
<script type="text/javascript" src="__JS__/bootstrap.min.js"></script>
|
|
|
|
<script type="text/javascript" src="__JS__/select2.min.js"></script>
|
|
|
|
<script type="text/javascript" src="__JS__/jquery.form.js"></script>
|
|
|
|
<script type="text/javascript" src="__STATIC__/uploadify/jquery.uploadify.min.js"></script>
|
|
|
|
|
|
|
|
<script src="__STATIC__/md5.js" type="text/javascript" charset="utf-8"></script>
|
|
|
|
<script type="text/javascript" src="__STATIC__/webuploader/webuploader.js"></script>
|
|
|
|
<script src="__STATIC__/layer/layer.js" type="text/javascript"></script>
|
|
|
|
<script type="text/javascript" src="__STATIC__/layer/extend/layer.ext.js"></script>
|
|
|
|
<div class="cf main-place top_nav_list navtab_list">
|
|
|
|
<h3 class="page_title">{$pageTypeName}</h3>
|
|
|
|
</div>
|
|
|
|
<div class="cf top_nav_list" style="height: 38px; margin-bottom: 10px;">
|
|
|
|
<!-- 高级搜索 -->
|
|
|
|
<div class="jssearch cf search_list">
|
|
|
|
<div class="input-list search-title-box">
|
|
|
|
<label>搜索:</label>
|
|
|
|
</div>
|
|
|
|
<div class="input-list input-list-promote search_label_rehab">
|
|
|
|
<select name="company_id" class="select_gallery" style="width:200px;">
|
|
|
|
<option value="0">推广公司</option>
|
|
|
|
<?php foreach($companies as $company):?>
|
|
|
|
<option value="<?=$company['id']?>"><?=$company['company_name']?></option>
|
|
|
|
<?php endforeach;?>
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
<div class="input-list input-list-promote search_label_rehab">
|
|
|
|
<select name="is_sign_contact" class="select_gallery" style="width:120px;">
|
|
|
|
<option value="-1">是否签约</option>
|
|
|
|
<option value="0" selected>否</option>
|
|
|
|
<option value="1">是</option>
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
<div class="input-list">
|
|
|
|
<a class="sch-btn" href="javascript:;" id="search" url="{:U('PromoteCompanyWarning/' . $pageType)}">搜索</a>
|
|
|
|
</div>
|
|
|
|
<div class="input-list">
|
|
|
|
<a class="sch-btn" href="javascript:;" id="downloadexcel" url="{:U(CONTROLLER_NAME.'/'.ACTION_NAME,array_merge(['is_export'=>1],I('get.')))}">导出excel</a>
|
|
|
|
</div>
|
|
|
|
<div class="input-list">
|
|
|
|
<a class="sch-btn" href="javascript:;" id="setting-add-btn">设置</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- 数据列表 -->
|
|
|
|
<div class="data_list">
|
|
|
|
<div class="">
|
|
|
|
<table class="specail-table">
|
|
|
|
<!-- 表头 -->
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>合作方名称</th>
|
|
|
|
<th> <?php if ($pageType=='total'):?>
|
|
|
|
累计
|
|
|
|
<?php endif;?>流水金额</th>
|
|
|
|
<?php if ($pageType=='monthly'):?>
|
|
|
|
<th>达标月份</th>
|
|
|
|
<?php endif;?>
|
|
|
|
<th>会长账号</th>
|
|
|
|
<th>市场专员</th>
|
|
|
|
<th>所属市场部</th>
|
|
|
|
<th>合作关系</th>
|
|
|
|
<th>是否签约</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
|
|
|
|
<!-- 列表 -->
|
|
|
|
<tbody>
|
|
|
|
<empty name="records">
|
|
|
|
<td colspan="99" class="text-center">aOh! 暂时还没有内容!</td>
|
|
|
|
<else />
|
|
|
|
<volist name="records" id="data">
|
|
|
|
<tr data-id="<?=$data['id']?>" <?php if($data['rowspan'] > 0):?>class="new_row"<?php endif;?>>
|
|
|
|
<?php if($data['rowspan']>0):?>
|
|
|
|
<td rowspan="{$data.rowspan}">{$data.company_name}</td>
|
|
|
|
<td rowspan="{$data.rowspan}">{$data.pay_amount}</td>
|
|
|
|
<?php if ($pageType=='monthly'):?>
|
|
|
|
<td rowspan="{$data.rowspan}">{$data.month}</td>
|
|
|
|
<?php endif;?>
|
|
|
|
<?php endif;?>
|
|
|
|
<td>{$data.account}</td>
|
|
|
|
<td>{$data.market_user_name}</td>
|
|
|
|
<td>{$data.market_department_name}</td>
|
|
|
|
<td>{$data.cooperation_status_text}</td>
|
|
|
|
<?php if($data['rowspan']>0):?>
|
|
|
|
<td rowspan="{$data.rowspan}">{$data.is_sign_contact_text}</td>
|
|
|
|
<?php endif;?>
|
|
|
|
</tr>
|
|
|
|
</volist>
|
|
|
|
</empty>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="page">
|
|
|
|
<!-- <a class="sch-btn export-btn"
|
|
|
|
href="{:U(CONTROLLER_NAME.'/'.ACTION_NAME,array_merge(['export'=>1],I('get.')))}" target="_blank">导出</a> -->
|
|
|
|
{$_page|default=''}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div id="setting-box" class="layer-box" style="display: none;">
|
|
|
|
<form method="post" enctype="multipart/form-data">
|
|
|
|
<input type="hidden" name="id" value="">
|
|
|
|
<div class="form-group">
|
|
|
|
<label>当月流水达</label>
|
|
|
|
<div class="form-item" style="width:200px">
|
|
|
|
<input type="text" class="form-input" name="monthly_amount" style="width:115px" value="<?=$monthlyWarningAmount?>" placeholder="请输入金额"> 万元
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
|
|
<label>累计流水达</label>
|
|
|
|
<div class="form-item" style="width:200px">
|
|
|
|
<input type="text" class="form-input" name="total_amount" style="width:115px" value="<?=$totalWarningAmount?>" placeholder="请输入金额"> 万元
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
|
|
<label></label>
|
|
|
|
<a id="save-setting-submit" href="javascript:;" class="add-submit btn">保存</a>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="common_settings">
|
|
|
|
<span class="plus_icon"><span><img src="__IMG__/zwmimages/icon_jia.png"></span></span>
|
|
|
|
<form class="addShortcutIcon">
|
|
|
|
<input type="hidden" name="title" value="{$m_title}">
|
|
|
|
<input type="hidden" name="url" value="Query/withdraw">
|
|
|
|
</form>
|
|
|
|
<a class="ajax-post add-butn <notempty name='commonset'>addSIsetted</notempty>" href="javascript:;" target-form="addShortcutIcon" url="{:U('Think/addShortcutIcon')}"><img src="__IMG__/zwmimages/icon_jia.png"><span><notempty name='commonset'>已添加<else />添加至常用设置</notempty></span></a>
|
|
|
|
</div>
|
|
|
|
</block>
|
|
|
|
|
|
|
|
<block name="script">
|
|
|
|
<script src="__STATIC__/layer/layer.js" type="text/javascript"></script>
|
|
|
|
<script type="text/javascript" src="__STATIC__/layer/extend/layer.ext.js" ></script>
|
|
|
|
<script src="__STATIC__/jquery.cookie.js" charset="utf-8"></script>
|
|
|
|
<script>
|
|
|
|
<volist name=":I('get.')" id="vo">
|
|
|
|
Think.setValue('{$key}',"{$vo}");
|
|
|
|
</volist>
|
|
|
|
$(".select_gallery").select2();
|
|
|
|
</script>
|
|
|
|
<script type="text/javascript">
|
|
|
|
//导航高亮
|
|
|
|
highlight_subnav("{:U('PromoteCompanyWarning/' . $pageType)}");
|
|
|
|
$(function(){
|
|
|
|
// 添加全部选项
|
|
|
|
var awardType = "{$awardType}"
|
|
|
|
if ('all' == "{:I('row', 0)}") {
|
|
|
|
|
|
|
|
$("#pagechange").prepend("<option value='all' selected>全部</option>");
|
|
|
|
} else {
|
|
|
|
$("#pagechange").prepend("<option value='all'>全部</option>");
|
|
|
|
}
|
|
|
|
|
|
|
|
$('.time-select').each(function(){
|
|
|
|
laydate.render({
|
|
|
|
elem: this,
|
|
|
|
type: 'date'
|
|
|
|
});
|
|
|
|
});
|
|
|
|
//搜索功能
|
|
|
|
$("#search").click(function(){
|
|
|
|
var url = $(this).attr('url');
|
|
|
|
var query = $('.jssearch').find('input').serialize();
|
|
|
|
query += "&"+$('.jssearch').find('select').serialize();
|
|
|
|
//query = query.replace(/(&|^)(\w*?\d*?\-*?_*?)*?=?((?=&)|(?=$))/g,'');
|
|
|
|
query = query.replace(/^&/g,'');
|
|
|
|
if( url.indexOf('?')>0 ){
|
|
|
|
url += '&' + query;
|
|
|
|
}else{
|
|
|
|
url += '?' + query;
|
|
|
|
}
|
|
|
|
window.location.href = url;
|
|
|
|
});
|
|
|
|
//回车自动提交
|
|
|
|
$('.jssearch').find('input').keyup(function(event){
|
|
|
|
if(event.keyCode===13){
|
|
|
|
$("#search").click();
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
|
|
|
$('#setting-add-btn').click(function () {
|
|
|
|
var box = $('#setting-box')
|
|
|
|
|
|
|
|
layer.open({
|
|
|
|
title: '预警设置',
|
|
|
|
type: 1,
|
|
|
|
content: box,
|
|
|
|
area: ['500px', '300px'],
|
|
|
|
zIndex: 250,
|
|
|
|
})
|
|
|
|
$(".select_gallery").select2();
|
|
|
|
});
|
|
|
|
$('#save-setting-submit').on({
|
|
|
|
click: function () {
|
|
|
|
var box = $('#setting-box')
|
|
|
|
var data = {}
|
|
|
|
data.monthly_amount = box.find('[name=monthly_amount]').val()
|
|
|
|
data.total_amount = box.find('[name=total_amount]').val()
|
|
|
|
saveSetting(data)
|
|
|
|
}
|
|
|
|
})
|
|
|
|
function saveSetting(data) {
|
|
|
|
$.ajax({
|
|
|
|
url: "{:U('saveSetting')}",
|
|
|
|
type: "post",
|
|
|
|
data: data,
|
|
|
|
dataType: 'json',
|
|
|
|
success: function (result ) {
|
|
|
|
if (result.status == 1) {
|
|
|
|
layer.msg(result.message, function(){
|
|
|
|
window.location.href = window.location.href
|
|
|
|
})
|
|
|
|
} else {
|
|
|
|
layer.msg(result.message)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
}
|
|
|
|
});
|
|
|
|
$("#downloadexcel").on("click",function(){
|
|
|
|
var url = $(this).attr("url");
|
|
|
|
var title = '<?=$pageTypeName?>导出,请耐心等待数据处理....';
|
|
|
|
var index = layer.load(2);
|
|
|
|
layer.open({
|
|
|
|
type: 2,
|
|
|
|
title: title,
|
|
|
|
shadeClose: false,
|
|
|
|
shade: 0.8,
|
|
|
|
area: ['40%', '30%'],
|
|
|
|
content: url,
|
|
|
|
success:function(){
|
|
|
|
layer.closeAll();
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
})
|
|
|
|
</script>
|
|
|
|
</block>
|