approvalProcessTask.html 4.9 KB
Newer Older
doc_wei's avatar
doc_wei 已提交
1
<!DOCTYPE html>
doc_wei's avatar
doc_wei 已提交
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
<html>
<head>
    <meta charset="utf-8" />
    <title></title>
    <link href="../../assets/lib/layui/css/layui.css" rel="stylesheet" />
    <link href="../../assets/lib/winui/css/winui.css" rel="stylesheet" />
    <link href="../../assets/lib/layui/lay/modules/timeaxis/timeaxis.css" rel="stylesheet" />
    <style type="text/css">
    	.history-date h2{
    		margin-bottom: 0px;
    	}
    	.history-date h2 a{
    		font-size: 12px;
    	}
    	.history-date ul li h3 a{
   		    color: currentColor;
    		font-size: 15px;
    	}
doc_wei's avatar
doc_wei 已提交
20 21 22
		.ver-center{
			padding-top: 6px;
		}
doc_wei's avatar
doc_wei 已提交
23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
    </style>
</head>
<body>
	<div style="margin:0 auto; height: 100%; overflow: hidden;">
		<div class="layui-tab layui-tab-card">
			<ul class="layui-tab-title">
				<li class="layui-this">基本信息</li>
				<li class="">流程图</li>
				<li class="">审批历史</li>
			</ul>
			<div class="layui-tab-content">
				<div class="layui-tab-item layui-show">
			    	<div id="showForm" style="height: auto; width: 100%; float: left;">
			    		
			    	</div>
doc_wei's avatar
doc_wei 已提交
38 39 40 41 42 43 44
			    	<div class="layui-form-item layui-col-xs12">
			   			<span class="hr-title">审批</span><hr>
			    	</div>
				    <form class="layui-form" action="">
						<div class="layui-form-item layui-col-xs12" id="multiInstanceBox">

						</div>
doc_wei's avatar
doc_wei 已提交
45 46 47 48 49 50
						<div class="layui-form-item layui-col-xs12">
							<label class="layui-form-label">当前审批人:</label>
							<div class="layui-input-block ver-center" id="taskCurrentAssignee">

							</div>
						</div>
doc_wei's avatar
doc_wei 已提交
51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76
				        <div class="layui-form-item layui-col-xs12">
							<label class="layui-form-label"><span id="resultTitle">审批结果</span><i class="red">*</i></label>
							<div class="layui-input-block winui-radio">
								<input type="radio" name="flag" value="1" title="同意" checked="checked"/>
								<input type="radio" name="flag" value="2" title="拒绝" />
							</div>
						</div>
						<div class="layui-form-item layui-col-xs12" id="approvalOpinionDom">
							<label class="layui-form-label">审批意见</label>
							<div class="layui-input-block">
								<textarea id="opinion" placeholder="请输入审批意见" maxlength="200" class="layui-textarea" style="height: 100px;"></textarea>
							</div>
						</div>
						<div class="layui-form-item layui-col-xs12" id="subBtnBox">
							<div class="layui-input-block">
								<button class="winui-btn" id="cancle"><language showName="com.skyeye.cancel"></language></button>
								<button class="winui-btn" lay-submit lay-filter="formAddBean">提交</button>
							</div>
						</div>
						<div class="layui-form-item layui-col-xs12">
							<label class="layui-form-label">其他操作:</label>
							<div class="layui-input-block" id="otherMenuOperator">

							</div>
						</div>
				    </form>
doc_wei's avatar
doc_wei 已提交
77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103
				</div>
				<div class="layui-tab-item">
					<img alt="" src="" id="processInstanceIdImg">
				</div>
				<div class="layui-tab-item">
					<div class="history" id="timeTreeApprovalHistoryList">
						
					</div>
				</div>
			</div>
		</div>
	</div>
	
    <!-- 时间线审批历史列表模板 -->
    <script type="text/x-handlebars-template" id="timeTreeApprovalHistory">
		{{#bean}}
			<div class="history-date">
				<h2 class="{{showClass}}"><a href="#nogo">{{createTime}}</a></h2>
				<ul>
					<li class="green">
						<h3><a>节点{{title}}</a><span>审批人:{{opName}}</span></h3>
						<div>[{{flagName}}]<br/>审批意见{{{opinion}}}</div>
					</li>
				</ul>
			</div>
		{{/bean}}
	</script>
doc_wei's avatar
doc_wei 已提交
104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139

	<!-- 多实例会签信息 -->
	<script type="text/x-handlebars-template" id="multiInstance">
		{{#bean}}
			<div class="layui-form-item layui-col-xs6">
				<label class="layui-form-label">完成条件</label>
				<div class="layui-input-block ver-center">
					{{completionCondition}}
				</div>
			</div>
			<div class="layui-form-item layui-col-xs6">
				<label class="layui-form-label">状态</label>
				<div class="layui-input-block ver-center" id="multiInstanceState">

				</div>
			</div>
			<div class="layui-form-item layui-col-xs4">
				<label class="layui-form-label">会签任务总数</label>
				<div class="layui-input-block ver-center">
					{{nrOfInstances}}
				</div>
			</div>
			<div class="layui-form-item layui-col-xs4">
				<label class="layui-form-label">正在执行的会签总数</label>
				<div class="layui-input-block ver-center">
					{{nrOfActiveInstances}}
				</div>
			</div>
			<div class="layui-form-item layui-col-xs4">
				<label class="layui-form-label">已完成的会签任务总数</label>
				<div class="layui-input-block ver-center">
					{{nrOfCompletedInstances}}
				</div>
			</div>
		{{/bean}}
	</script>
doc_wei's avatar
doc_wei 已提交
140 141 142 143
	
	<script src="../../assets/lib/layui/layui.js"></script>
   	<script src="../../assets/lib/layui/custom.js"></script>
   	<script type="text/javascript">
doc_wei's avatar
doc_wei 已提交
144
        layui.config({base: '../../js/approvalActiviti/'}).use('approvalProcessTask');
doc_wei's avatar
doc_wei 已提交
145 146 147
    </script>
</body>
</html>