rationConfig.jsp
8.58 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
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
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
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
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
<?xml version="1.0" encoding="UTF-8" ?>
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<c:set var="ctx" value="${pageContext.request.contextPath}" />
<!DOCTYPE html>
<html>
<head>
<jsp:include page="${ctx }/WEB-INF/view/meta.jsp"></jsp:include>
<script type="text/javascript" src="${ctx}/resource/js/ration/rationConfig.js?r=${random}"></script>
</head>
<body>
<div class="easyui-panel" data-options="fit:true">
<div class="easyui-panel" style="padding:10px;"
data-options="title:'查询条件', collapsible:true, width:'100%', height:'20%'">
<form id="search-form" action="" method="post">
<table class="search-table">
<tr>
<td>
藏品代码:<input name="otcCode" class="easyui-textbox search-input">
</td>
<td>
藏品名称:<input name="otcName" class="easyui-textbox search-input">
</td>
<td>
配售机构:<input name="userId" class="easyui-textbox search-input">
</td>
<td></td>
</tr>
<tr>
<td>
起始日期:<input name="confirmStartDate" class="easyui-datebox search-input">
</td>
<td>
结束日期:<input name="confirmEndDate" class="easyui-datebox search-input">
</td>
<td>
规则状态:
<select name="rationStatus" class="easyui-combobox search-input">
<option value="">全部</option>
<option value="1">待配售</option>
<option value="2">配售中</option>
<option value="0">已作废</option>
<option value="3">已配售</option>
<option value="4">配售失败</option>
</select>
</td>
<td><a href="javascript:RationConfig.search();" class="easyui-linkbutton search-button" data-options="iconCls:'icon-search'">搜索</a>
</td>
</tr>
</table>
</form>
</div>
<div class="easyui-panel" data-options="height:'80%',title:'查询结果'">
<div id="toolbar">
<a href="javascript:RationConfig.beforeAdd()" class="easyui-linkbutton">添加配售规则</a>
<a href="javascript:RationConfig.cancel()" class="easyui-linkbutton">作废配售规则</a>
<a href="javascript:RationConfig.beforeUpdate()" class="easyui-linkbutton">修改配售规则</a>
<a href="javascript:RationConfig.ration()" class="easyui-linkbutton">开始交割</a>
<a href="javascript:RationConfig.rationAgin()" class="easyui-linkbutton">再次交割</a>
<a href="javascript:RationConfig.sendMsg()" class="easyui-linkbutton" id="sendMsg">发送短信</a>
<a href="javascript:RationConfig.export()" class="easyui-linkbutton">导出确权文件</a>
<a href="javascript:RationConfig.AllRation()" class="easyui-linkbutton">全部同意配售</a>
<a href="javascript:RationConfig.costPrice()" class="easyui-linkbutton">修改成本价</a>
</div>
<!-- DataGrid -->
<table id="data-grid" class="easyui-datagrid"
data-options="fitColumns:true, singleSelect:true, fit:true, pagination:true, idField: 'id',
rownumbers:true, toolbar:'#toolbar', selectOnCheck:true, pageSize:20, url:'/ration/new/config/list'">
<thead>
<tr>
<th data-options="field:'id', checkbox:true"></th>
<th data-options="field:'otcCode'">藏品代码</th>
<th data-options="field:'otcName'">藏品名称</th>
<th data-options="field:'price'">过户价格</th>
<th data-options="field:'confirmStartDate'">确认开始时间</th>
<th data-options="field:'confirmEndDate'">确认结束时间</th>
<th data-options="field:'noticeUrl'">对应公告</th>
<th data-options="field:'rationType', formatter:RationConfig.formatType">上市方式</th>
<th data-options="field:'rationStatus', formatter:RationConfig.formatStatus">规则状态</th>
<th data-options="field:'', formatter:RationConfig.formatDetail">查看规则</th>
<th data-options="field:'createBy'">操作人</th>
<th data-options="field:'createAt'">操作时间</th>
<th data-options="field:'rationResult'">备注</th>
</tr>
</thead>
<tbody></tbody>
</table>
</div>
</div>
<!-- Add Form -->
<div id="add-dialog" class="easyui-dialog" style="padding: 10px; width: 620px;height: 510px;"
data-options="closed:true, title:'编辑', modal:true, buttons:'#add-dialog-buttons', onClose:RationConfig.clearDialog">
<form id="add-form" method="post" data-options="novalidate: false">
<input id="id" name="id" type="hidden" />
<ul class="simple-ul">
<li><label style="width:120px;">藏品代码:</label> <input name="otcCode" id="otcCode"
class="easyui-textbox add-input" data-options="required:true, onChange: RationConfig.otcCodeChange"></li>
<li><label style="width:120px;">藏品名称:</label> <input name="otcName" id="otcName"
class="easyui-textbox add-input" data-options="required:true, readonly:true">
</li>
<li><label style="width:120px;">对应公告:</label> <input name="noticeUrl" id="noticeUrl"
class="easyui-textbox add-input" data-options="required:true"></li>
<li><label style="width:120px;">上市方式:</label>
<input type="radio" name="rationType" value="1" onclick="RationConfig.rationType()"/>配售上市
<input type="radio" name="rationType" value="0" onclick="RationConfig.rationType()" />直接上市
</li>
<li><label style="width:120px;">确认开始日期:</label> <input name="confirmStartDate" id="confirmStartDate"
class="easyui-datetimebox add-input" data-options="required:true"></li>
<li><label style="width:120px;">确认结束日期:</label> <input name="confirmEndDate" id="confirmEndDate"
class="easyui-datetimebox add-input" data-options="required:true"></li>
<li><label style="width:120px;">过户价格:</label> <input name="price" id="price"
class="easyui-textbox add-input" data-options="required:true">
<label style="text-align: left;padding-left:10px;">元</label></li>
</ul>
<div id="ration">
<ul class="simple-ul">
<li><label style="width:120px;">是否需要用户确认:</label>
<input type="radio" name="needConfirm" class="ration" value="1" />是
<input type="radio" name="needConfirm" class="ration" value="0" />否
</li>
<li><label style="width:120px;">交易费率:</label> <input name="transactionFee" id="transactionFee"
class="easyui-textbox add-input ration">
<label style="text-align: left;padding-left:10px;">%</label></li>
<!-- <li><label style="width:120px;">内部账户:</label> <input name="innerAccount" id="innerAccount"
class="easyui-textbox add-input ration" data-options="required:true"></li> -->
</ul>
<div id="add-div"></div>
<ul class="simple-ul">
<li style="text-align: center;"><a href="javascript:RationConfig.addUser()" data-options="iconCls:'icon-add'" class="easyui-linkbutton">添加配售机构</a></li>
</ul>
</div>
</form>
</div>
<div id="add-dialog-buttons" style="text-align:center;">
<a href="javascript:RationConfig.add()" class="easyui-linkbutton c6 search-button" data-options="iconCls:'icon-ok'">发布规则</a>
<a href="javascript:App.closeAddDialog()" class="easyui-linkbutton search-button" data-options="iconCls:'icon-cancel'">取消</a>
</div>
<div id="detail-dialog" class="easyui-dialog" style="padding: 10px; width: 820px; height:400px;"
data-options="closed:true, title:'规则查看', onClose:RationConfig.clearDetail">
<table style="border: 0px;">
<tr>
<td>藏品代码:</td>
<td width="150px;"><label id="otc_Code"></label></td>
<td>藏品名称:</td>
<td><label id="otc_Name"></label></td>
</tr>
<tr>
<td>可配售总量:</td>
<td><label id="total_Num"></label></td>
<td>过户价格:</td>
<td><label id="detailPrice"></label>元</td>
</tr>
</table>
<table id="detail-grid" class="easyui-datagrid"
data-options="fitColumns:true, singleSelect:true, fit:true, pagination:true,
rownumbers:true, selectOnCheck:true, pageSize:10">
<thead>
<tr>
<th data-options="field:'clientId'">配售机构用户号</th>
<th data-options="field:'clientName'">配售机构名称</th>
<th data-options="field:'mobileTel'">联系方式</th>
<th data-options="field:'percent'">配售比例</th>
<th data-options="field:'rationCost'">配售费用</th>
<th data-options="field:'balance'">账户余额</th>
</tr>
</thead>
<tbody></tbody>
</table>
</div>
</body>
</html>