<!DOCTYPE html>
<html>

<head>
	<meta charset="utf-8">
	<title>无纸化集中业务管理系统</title>
	<meta name="renderer" content="webkit">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
	<link charset="utf-8" rel="stylesheet" href="/static/css/layui.css?v=1.0.0">
	<link rel="stylesheet" href="/static/css/temp.css" media="all">
	<script src="/static/js/jquery-1.8.2.min.js?v=1.0.0"></script>
	<script src="/static/js/layui.js?v=1.0.0"></script>
	<script src="/static/js/api.config.js"></script>
	<script src="/static/js/util.js?v=1.0.0"></script>
	<script src="/static/js/customform.js?v=1.0.0"></script>
	<script src="/static/js/url.js?v=1.0.0"></script>
	<script src="/static/js/lay/lay-config.js?v=1.0.0"></script>
	<script src="/static/css/inconfont/iconfont.js"></script>
	<script src="/static/js/jquery-ui.min.js"></script>
</head>

<body class="bg-info">

	<div class="layui-card layui-card-margin ">

		<form class="ag-form layui-form" ag-data-index="0" ag-form-callBack="getData">
			<input type="text" name="callback" class="layui-hide">
			<div class="param-left">

				<div class="layui-inline ">
					<label class="layui-form-label">工单名称：</label>
					<div class="layui-input-block">
						<input type="text" name="woTitle" autocomplete="off" placeholder="工单名称" class="layui-input">
					</div>
				</div>
				<div class="layui-inline ">
					<label class="layui-form-label">工单编号：</label>
					<div class="layui-input-block">
						<input type="text" name="woNo" autocomplete="off" placeholder="工单编号" class="layui-input">
					</div>
				</div>
				<div class="layui-inline ">
					<label class="layui-form-label">任务名称：</label>
					<div class="layui-input-block">
						<input type="text" name="taskName" autocomplete="off" placeholder="任务名称" class="layui-input">
					</div>
				</div>
				<div class="layui-inline ">
					<label class="layui-form-label">任务编号：</label>
					<div class="layui-input-block">
						<input type="text" name="taskId" autocomplete="off" placeholder="任务编号" class="layui-input">
					</div>
				</div>

			</div>


		</form>

		<!--xiacj 说明:注意按钮工具栏不要放到form表单中,查询ajax请求和出发form表单提交,导致url方式变化,导致ajax请求状态为canceld-->
		<div class="btns-right">

			<button class="ag-btn-query layui-btn layui-btn-sm layui-btn-normal" ag-data-index="0" ag-data-ctx="bpm"
				ag-data-url="/api/queryToDoTaskList">
				<i class="layui-icon layui-icon-search "></i>
				<span class="btn-span-middle">查询</span>
			</button>

			<button class="ag-btn-reset layui-btn layui-btn-sm layui-btn-normal" ag-data-index="0" type="reset">

				<i class="layui-icon layui-icon-refresh "></i>
				<span class="btn-span-middle">重置</span>
			</button>


		</div>

	</div>




	<div class=" layui-card  layui-card-list">

		<div class="layui-border-box ">

			<div class="layui-table-tool">
				<div class="layui-table-tool-temp">
					<div class="ag-btn-add layui-inline" lay-event ag-data-index="0" ag-win-id="0" ag-win-width="800"
						ag-win-height="600" ag-win-title="发起工单" ag-data-pk="id"
						ag-data-url="/static/views/wo/woLaunch.html?taskId=taskId"><i
							class="layui-icon layui-icon-add-1"></i>
					</div>
					<div class="ag-btn-update layui-inline" lay-event ag-data-index="0" ag-win-id="0" ag-win-width="800"
						ag-win-height="600" ag-win-title-key="actionName"
						ag-data-pk="taskId,taskName,woNo,woTitle,procId,stepId,createTime,procVersions"
						ag-data-url-key="actionUrl"><i class="layui-icon layui-icon-edit"></i></div>
				</div>

			</div>

		</div>

		<div style="display:none" class="ag-table-header" ag-data-index="0">

			[
			[{
			"type": "radio",
			"fixed": "left"
			}, {
			"field": "taskId",
			"title": "任务编码"
			}, {
			"field": "taskName",
			"title": "任务名称"
			}, {
			"field": "woNo",
			"title": "工单编号"
			}, {
			"field": "stepId",
			"title": "环节编码",
			"sort": true
			}, {
			"field": "stsDesc",
			"title": "工单状态",
			"sort": true
			}, {
			"field": "sts",
			"title": "状态",
			"hide": true
			}, {
			"field": "procId",
			"title": "流程编号"
			}, {
			"field": "procName",
			"title": "流程名称",
			"hide": true
			}, {
			"field": "procVersion",
			"title": "流程版本"
			}, {
			"field": "opNo",
			"title": "处理工号",
			"hide": true
			}, {
			"field": "opName",
			"title": "处理人",
			"hide": true
			}, {
			"field": "opTime",
			"title": "处理时间",
			"hide": true
			}, {
			"field": "actionUrl",
			"title": "处理页面地址",
			"hide":true
			}, {
			"field": "actionName",
			"title": "处理页面标题",
			"hide":true
			}, {
			"field": "roleCode",
			"title": "角色编码"
			}, {
			"field": "roleName",
			"title": "角色名称"
			}, {
			"field": "dealType",
			"title": "处理状态",
			"hide": true
			}, {
			"field": "dealTypeDesc",
			"title": "处理状态",
			"hide": true
			},{
			"width": 120,
			"title": "操作",
			"fixed": "right",
			"btns": [
			{
			"className": "",
			"openTitle":"执行环节查看",
			"btnVal":"轨迹",
			"width":"1000",
			"height":"800",
			"url":
			"/static/views/flow/flowDesignPrew.html?prevFlag=true&woNo=#woNo#&taskName=#actionName#&fqFlag=Y&procId=#procId#&woTitle=#procName#&procName=#procName#&procVersion=#procVersion#",
			"openType": "1"
			}
			]
			}
			]
			]
		</div>
		<table class="ag-table layui-hide" id="demo" lay-filter="test" ag-data-index="0">

		</table>

		<div class="pagging ag-area-page">

		</div>

	</div>

	<script>
		function getData() {
			if ($('input [name="callbcak"]').val() == 1) {
				$('.ag-btn-query').trigger('click')
			}

		}
	</script>
</body>

</html>
