<extend name="Common/layui_list" />
<!-- +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| 房开源（综合房产ERP管理系统）
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| © 2019-2023 http://www.kaidandashi.com/ All rights reserved.
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| 本系统由淮南市银泰软件科技有限公司提供技术支持
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| QQ号：984784483
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
<block name="content">
	<form class="layui-form">
		<blockquote class="layui-elem-quote" style="padding: 5px;">
			<!-- 排序所需要的两个字段 开始 -->
			<input type="hidden" name="field">
			<input type="hidden" name="order">
			<!-- 排序所需要的两个字段 结束 -->
			<div class="layui-form-item" style="margin-top: 5px;">
				<div class="layui-inline" style="float: left;margin-left: 20px;width:120px;">
					<select name="zylx" lay-verify="">
						<option value="">资源类型</option>
						<option value="13">写字楼</option>
						<option value="14">商铺</option>
						<option value="1">住宅</option>
						<option value="15">写字楼客源</option>
						<option value="16">商铺客源</option>
						<option value="2">住宅客源</option>
						<option value="17">新房客源</option>
						<option value="18">金融客源</option>
						<option value="19">装修客源</option>
						<option value="20">工商客源</option>
						<option value="21">会计客源</option>
						<option value="22">家具客源</option>
					</select>
				</div>
				<div class="layui-inline" style="width: 120px;">
					<select name="type" lay-verify="">
						<option value="">审核状态</option>
						<option value="3">审核中</option>
						<option value="1">已通过</option>
						<option value="2">已驳回</option>
					</select>
				</div>
				<div class="layui-inline" style="width: 120px;">
					<select name="czlx" lay-verify="">
						<option value="">操作类型</option>
						<option value="1">封盘</option>
						<option value="2">开盘</option>
					</select>
				</div>
				<div class="layui-inline" style="width: 120px;">
					<select name="fkplx">
						<option value="">封/开盘类型</option>
						<option value="1">封/开电话</option>
						<option value="2">封/开地址</option>
						<option value="3">封/开底价</option>
						<option value="4">封/开调取</option>
						<option value="5">封/开查看</option>
					</select>
				</div>
				<div class="layui-inline" style="width: 150px;">
					<input type="text" name="shijian1" id="test1" autocomplete="off" class="layui-input" placeholder="开始日" readonly="">
				</div>
				<div class="layui-inline" style="width: 150px;">
					<input type="text" name="shijian2" id="test2" autocomplete="off" class="layui-input" placeholder="结束日" readonly="">
				</div>
				<button class="layui-btn k-search layui-btn-primary" lay-submit="" lay-filter="search" type="submit" id="submit_one">
					搜索
				</button>
				<button class="" style="display: none;" lay-submit="" lay-filter="search_hidden" type="button" id="submit_two">
					搜索
				</button>
				<button class="layui-btn layui-btn-primary" type="reset">
					重置
				</button>
				<a class="layui-btn pull-right layui-btn-primary" href="javascript:;" onClick="parent.removeIframe()" style="text-decoration:none">
					关闭
				</a>
				<a class="layui-btn pull-right layui-btn-primary" href="javascript:location.replace(location.href);" title="刷新" style="text-decoration:none">
					刷新
				</a>
			</div>
		</blockquote>
	</form>
	<table id="table" lay-filter="table" class="layui-table" lay-data="{height:'full-84', url:'__ACTION__?is_ajax=1',limit:30,limits:[30,60,90],page:true, id:'table',request: {pageName: 'p'}}" >
		<thead>
			<tr>
				<th lay-data="{type:'numbers',align: 'center'}">序号</th>
				<th lay-data="{field:'czlxm',align: 'center'}">操作类型</th>
				<th lay-data="{field:'type',align: 'center'}">审核状态</th>
				<th lay-data="{field:'',align: 'center',templet: '#zybh'}">资源编号</th>
				<th lay-data="{field:'zylxm',align: 'center'}">资源类型</th>
				<th lay-data="{field:'fkprxx',align: 'center'}">封开盘人</th>
				<th lay-data="{field:'fkplx',align: 'center'}">封开盘类型</th>
				<th lay-data="{field:'yuanyin',align: 'center'}">封开盘原因</th>
				<th lay-data="{field:'endunix',align: 'center',sort: 'true'}">结束时间</th>
				<th lay-data="{field:'sqren',align: 'center'}">申请人</th>
				<th lay-data="{field:'addtime',align: 'center',sort: 'true'}">申请时间</th>
				<th lay-data="{field:'',align: 'center',fixed: 'right',width: 150,templet: '#btn',unresize: true}">操作</th>
			</tr>
		</thead>
	</table>
</block>
<block name="js">
	<script type="text/html" id="zybh">
		{{# if(d.rbacxq == 1) { }}
			<a title="资源详情" data-href="{{d.zyxqlj}}" data-title="{{d.zybh}}" href="javascript:;" onClick="parent.Hui_admin_tab(this)" style="text-decoration:none;color:red;">
		{{# } }}
		{{d.zybh}}
		{{# if(d.rbacxq == 1) { }}
			</a>
		{{# } }}
	</script>
	<script type="text/html" id="btn">
		{{# if(d.rbacsh == 1) { }}
			<a class="layui-btn layui-btn-xs layui-btn-primary" lay-event="fkpsh">审核</a>
		{{# } }}
		{{# if(d.rbacrz == 1) { }}
			<a class="layui-btn layui-btn-xs layui-btn-primary" lay-event="fkprz">日志</a>
		{{# } }}
	</script>
	<script>
		$(document).ready(function(){
			$(document).bind("contextmenu",function(e){
				return false;
			});
			//监听工具条
			table.on('tool(table)', function(obj){ //注：tool是工具条事件名，test是table原始容器的属性 lay-filter="对应的值"
				var data = obj.data; //获得当前行数据
				var layEvent = obj.event; //获得 lay-event 对应的值（也可以是表头的 event 参数对应的值）
				var tr = obj.tr; //获得当前行 tr 的DOM对象
				if(layEvent === 'fkpsh'){ //审核
					var id = data.id;
					k_open_leyer('封开盘审核','{:U('fkyfkp/fkpshenhe')}?id='+id,'700','400');
				} else if(layEvent === 'fkprz'){
					var id = data.id;
					k_open_leyer('封开盘日志','{:U('fkyfkp/fkprizhi')}?id='+id+'&rzlx=2','700','300');
				}
			});
			var laydate = layui.laydate;
			laydate.render({
				elem: '#test1'
				,max: '{:date("Y-m-d",time())}'
			});
			laydate.render({
				elem: '#test2'
				,max: '{:date("Y-m-d",time())}'
			});
		});
	</script>
</block>