提交 | 用户 | 时间
|
58d006
|
1 |
<?xml version="1.0" encoding="UTF-8"?> |
A |
2 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
|
3 |
<html xmlns="http://www.w3.org/1999/xhtml" |
|
4 |
xmlns:c="http://java.sun.com/jsp/jstl/core" |
|
5 |
xmlns:h="http://java.sun.com/jsf/html" |
|
6 |
xmlns:f="http://java.sun.com/jsf/core" |
|
7 |
xmlns:ui="http://java.sun.com/jsf/facelets"> |
|
8 |
<ui:composition template="/template/nit/tmp_brief.xhtml"> |
|
9 |
<ui:define name="acss"> |
|
10 |
<link rel="stylesheet" href="#{request.contextPath}/template/assets/css/jstree/themes/default/style.min.css"/> |
|
11 |
<style> |
|
12 |
#searchBtn { |
|
13 |
height: 34px; |
|
14 |
} |
|
15 |
p.error { |
|
16 |
color: #D9534F |
|
17 |
} |
|
18 |
input.error { |
|
19 |
border: 1px solid #D9534F; |
|
20 |
} |
|
21 |
#simple-table th,#simple-table td{ |
|
22 |
text-align: center; |
|
23 |
padding: 2px 8px; |
|
24 |
} |
|
25 |
.btn-xs, .btn-group-xs > .btn{ |
|
26 |
padding-top: 0px; |
|
27 |
padding-bottom: 0px; |
|
28 |
} |
|
29 |
.bigger-95{ |
|
30 |
font-size: 95% !important; |
|
31 |
} |
|
32 |
.btn-xs, .btn-group-xs > .btn{ |
|
33 |
padding-top: 0px; |
|
34 |
padding-bottom: 0px; |
|
35 |
} |
|
36 |
.chosen-container-multi .chosen-choices li.search-field input[type="text"] { |
|
37 |
height: 25px; |
|
38 |
} |
|
39 |
.chosen-container { |
|
40 |
width: 100% !important; |
|
41 |
} |
|
42 |
#form .control-label { |
|
43 |
margin-right: -14px |
|
44 |
} |
|
45 |
.t-error{ |
|
46 |
color: red; |
|
47 |
position: relative; |
|
48 |
right: 2px; |
|
49 |
top: 3px; |
|
50 |
} |
|
51 |
</style> |
|
52 |
</ui:define> |
|
53 |
<ui:define name="acontent"> |
|
54 |
<input type="hidden" value="#{param.page}" id="p" /> |
|
55 |
<input type="hidden" value="#{param.keyword}" id="k" /> |
|
56 |
<div class="row"> |
|
57 |
<div class="col-xs-5"> |
|
58 |
<div class="input-group"> |
|
59 |
<input class="form-control input-mask-date" type="text" value="#{param.keyword}" id="keyword" placeholder="输入名称搜索" data-bind="value: keyword, valueUpdate: 'afterkeydown'" /> |
|
60 |
<span class="input-group-btn"> |
|
61 |
<button class="btn btn-sm btn-default" type="button" id="searchBtn"> |
|
62 |
<i class="ace-icon fa fa-search bigger-110"></i> |
|
63 |
搜索 |
|
64 |
</button> |
|
65 |
</span> |
|
66 |
</div> |
|
67 |
</div> |
|
68 |
<div class="col-xs-7" style="text-align: right;"> |
|
69 |
<!--<button class="btn btn-sm btn-info" type="button" id="newObj"> |
|
70 |
<i class="ace-icon fa fa-plus bigger-110"></i> |
|
71 |
新业务类型 |
|
72 |
</button>--> |
|
73 |
</div> |
|
74 |
<div class="col-xs-12 table-responsive" style="margin-top: 8px;"> |
|
75 |
<table id="simple-table" class="table table-bordered table-hover"> |
|
76 |
<thead> |
|
77 |
<tr> |
|
78 |
<th class="detail-col" style="min-width: 48px">序号</th> |
|
79 |
<th style="min-width: 50px;width: 50px">操作</th> |
|
80 |
<th style="min-width: 100px">编号</th> |
|
81 |
<th style="min-width: 100px">业务类型名称</th> |
|
82 |
<!--<th style="min-width: 100px">Key</th> |
|
83 |
<th style="min-width: 100px">candidateGroups</th> |
|
84 |
<th style="min-width: 75px">计划明细</th>--> |
|
85 |
<th style="min-width: 48px">是否返厂</th> |
|
86 |
<th style="min-width: 48px">物资流向</th> |
|
87 |
<th style="min-width: 75px">默认称重</th> |
|
88 |
<!--<th style="min-width: 75px">公司类型</th>--> |
|
89 |
<th style="min-width: 75px">物资分类</th> |
|
90 |
<th style="min-width: 100px">备注</th> |
|
91 |
<!-- <th style="min-width: 100px; width: 100px">操作</th> --> |
|
92 |
</tr> |
|
93 |
</thead> |
|
94 |
|
|
95 |
<tbody data-bind="foreach: list"> |
|
96 |
<tr> |
|
97 |
<td class="center"> |
|
98 |
<span data-bind="text: $index() + 1"></span> |
|
99 |
</td> |
|
100 |
<td> |
|
101 |
<div class="btn-group"> |
|
102 |
<button class="btn btn-xs btn-info" title="编辑" data-bind="click: $parent.edit"> |
|
103 |
<!--<i class="ace-icon fa fa-pencil bigger-95"></i>--> |
|
104 |
编辑 |
|
105 |
</button> |
|
106 |
|
|
107 |
<!-- <button class="btn btn-xs btn-danger" title="删除" data-bind="click: $parent.del"> --> |
|
108 |
<!--<i class="ace-icon fa fa-trash-o bigger-95"></i>--> |
|
109 |
<!-- 删除 --> |
|
110 |
<!-- </button> --> |
|
111 |
</div> |
|
112 |
</td> |
|
113 |
<td data-bind="text: businesstypeNo"></td> |
|
114 |
<td data-bind="text: name"></td> |
|
115 |
<!--<td data-bind="text: processKey"></td> |
|
116 |
<td data-bind="text: candidateGroups"></td> |
|
117 |
<td data-bind="text: planitem ? '是' : '否'"></td>--> |
|
118 |
<td data-bind="text: factory ? '是' : '否'"></td> |
|
119 |
<td data-bind="text: directName"></td> |
|
120 |
<td data-bind="text: weighing ? '是' : '否'"></td> |
|
121 |
<!--<td data-bind="text: companytype"></td>--> |
|
122 |
<td data-bind="text: wuzis"></td> |
|
123 |
<td data-bind="text: note"></td> |
|
124 |
|
|
125 |
<!-- <td> |
|
126 |
<div class="btn-group"> |
|
127 |
<button class="btn btn-xs btn-info" title="编辑" data-bind="click: $parent.edit"> |
|
128 |
编辑 |
|
129 |
</button> |
|
130 |
|
|
131 |
<button class="btn btn-xs btn-danger" title="删除" data-bind="click: $parent.del"> |
|
132 |
删除 |
|
133 |
</button> |
|
134 |
</div> |
|
135 |
</td> --> |
|
136 |
</tr> |
|
137 |
</tbody> |
|
138 |
</table> |
|
139 |
<div id="pagdiv"></div> |
|
140 |
</div> |
|
141 |
</div> |
|
142 |
<div class="modal fade" id="modal"> |
|
143 |
<div class="modal-dialog"> |
|
144 |
<div class="modal-content"> |
|
145 |
<div class="modal-header"> |
|
146 |
<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button> |
|
147 |
<h4 class="modal-title">编辑业务类型</h4> |
|
148 |
</div> |
|
149 |
<div class="modal-body"> |
|
150 |
<form class="form-horizontal" id="form"> |
|
151 |
<div class="form-body"> |
|
152 |
<div class="form-group"> |
|
153 |
<label class="col-md-3 control-label"><span class="t-error">*</span>业务类型编号</label> |
|
154 |
<div class="col-md-6"> |
|
155 |
<input type="text" class="form-control" placeholder="" name="businesstypeNo" id="businesstypeNo" data-bind="value: o().businesstypeNo" readonly="readonly"/> |
|
156 |
</div> |
|
157 |
<div class="col-md-3"> |
|
158 |
<p class="form-control-static text-error"></p> |
|
159 |
</div> |
|
160 |
</div> |
|
161 |
<div class="form-group"> |
|
162 |
<label class="col-md-3 control-label"><span class="t-error">*</span>业务类型名称</label> |
|
163 |
<div class="col-md-6"> |
|
164 |
<input type="text" class="form-control" name="name" placeholder="" data-bind="value: o().name"/> |
|
165 |
</div> |
|
166 |
<div class="col-md-3"> |
|
167 |
<p class="form-control-static text-error"></p> |
|
168 |
</div> |
|
169 |
</div> |
|
170 |
<div class="form-group"> |
|
171 |
<label class="col-md-3 control-label"><span class="t-error">*</span>默认建单部门</label> |
|
172 |
<div class="col-md-6"> |
|
173 |
<input type="text" class="form-control" readonly="readonly" id="departName" placeholder="" data-bind="value: o().departname" name="departname"/> |
|
174 |
</div> |
|
175 |
<div class="col-md-3"> |
|
176 |
<p class="form-control-static text-error"></p> |
|
177 |
</div> |
|
178 |
</div> |
|
179 |
<!-- <div class="form-group"> |
|
180 |
<label class="col-md-3 control-label">processKey</label> |
|
181 |
<div class="col-md-6"> |
|
182 |
<input type="text" class="form-control" placeholder="" data-bind="value: o().processKey"/> |
|
183 |
</div> |
|
184 |
<div class="col-md-3"> |
|
185 |
<p class="form-control-static text-error"></p> |
|
186 |
</div> |
|
187 |
</div> |
|
188 |
<div class="form-group"> |
|
189 |
<label class="col-md-3 control-label">candidateGroups</label> |
|
190 |
<div class="col-md-6"> |
|
191 |
<input type="text" class="form-control" placeholder="" data-bind="value: o().candidateGroups"/> |
|
192 |
</div> |
|
193 |
<div class="col-md-3"> |
|
194 |
<p class="form-control-static text-error"></p> |
|
195 |
</div> |
|
196 |
</div> --> |
|
197 |
<!--<div class="form-group"> |
|
198 |
<label class="col-md-3 control-label">可用计划明细</label> |
|
199 |
<div class="col-md-6" style="padding-top: 7px"> |
|
200 |
<input id="objPlanitemd" type="checkbox" data-bind="checked: o().planitem()" class="ace ace-switch ace-switch-4" /> |
|
201 |
<span class="lbl middle"></span> |
|
202 |
</div> |
|
203 |
<div class="col-md-3"> |
|
204 |
<p class="form-control-static text-error"></p> |
|
205 |
</div> |
|
206 |
</div>--> |
|
207 |
<div class="form-group"> |
|
208 |
<label class="col-md-3 control-label">是否返厂</label> |
|
209 |
<div class="col-md-6" style="padding-top: 7px"> |
|
210 |
<input id="objFactory" type="checkbox" data-bind="checked: o().factory()" class="ace ace-switch ace-switch-4" /> |
|
211 |
<span class="lbl middle"></span> |
|
212 |
</div> |
|
213 |
<div class="col-md-3"> |
|
214 |
<p class="form-control-static text-error"></p> |
|
215 |
</div> |
|
216 |
</div> |
|
217 |
<div class="form-group"> |
|
218 |
<label class="col-md-3 control-label">默认称重</label> |
|
219 |
<div class="col-md-6" style="padding-top: 7px"> |
|
220 |
<input id="objWeighing" type="checkbox" data-bind="checked: o().weighing()" class="ace ace-switch ace-switch-4" /> |
|
221 |
<span class="lbl middle"></span> |
|
222 |
</div> |
|
223 |
<div class="col-md-3"> |
|
224 |
<p class="form-control-static text-error"></p> |
|
225 |
</div> |
|
226 |
</div> |
|
227 |
<div class="form-group"> |
|
228 |
<label class="col-md-3 control-label">物资流向</label> |
|
229 |
<div class="col-md-6"> |
|
230 |
<select id="" class="form-control" data-bind="value: o().direct, options: dList, optionsText: 'name', optionsValue: 'value'"></select> |
|
231 |
</div> |
|
232 |
</div> |
|
233 |
<div class="form-group"> |
|
234 |
<label class="col-md-3 control-label">物资分类</label> |
|
235 |
<div class="col-md-6"> |
|
236 |
<select id="" class="form-control" data-bind="value: o().wuzis, options: tList"></select> |
|
237 |
</div> |
|
238 |
</div> |
|
239 |
<!--<div class="form-group"> |
|
240 |
<label class="col-md-3 control-label">公司类型</label> |
|
241 |
<div class="col-md-6"> |
|
242 |
<select id="" class="form-control" data-bind="value: o().companytype, options: cList"></select> |
|
243 |
</div> |
|
244 |
</div>--> |
|
245 |
<div class="form-group"> |
|
246 |
<label class="col-md-3 control-label">厂区</label> |
|
247 |
<div class="col-md-6"> |
|
248 |
<select data-placeholder="请选择厂区……" id="dp" style="height: 34px; width: 100%;" multiple="multiple" class="chosen-select form-control tag-input-style" data-bind="selectedOptions: rList, options: sList, optionsText: 'name', optionsValue: 'shipmentNo'"> |
|
249 |
</select> |
|
250 |
<!--<select id="" class="form-control" data-bind="value: o().companytype, options: sList"></select>--> |
|
251 |
</div> |
|
252 |
</div> |
|
253 |
<div class="form-group"> |
|
254 |
<label class="col-md-3 control-label">备注</label> |
|
255 |
<div class="col-md-6"> |
|
256 |
<input type="text" class="form-control" placeholder="" data-bind="value: o().note"/> |
|
257 |
</div> |
|
258 |
</div> |
|
259 |
</div> |
|
260 |
</form> |
|
261 |
</div> |
|
262 |
<div class="modal-footer"> |
|
263 |
<button type="button" class="btn btn-default" data-dismiss="modal">取消</button> |
|
264 |
<button type="button" class="btn btn-primary" id="save">保存</button> |
|
265 |
</div> |
|
266 |
</div> |
|
267 |
</div> |
|
268 |
</div> |
|
269 |
<div class="modal" id="departModal" data-backdrop="false"> |
|
270 |
<div class="modal-dialog modal-sm"> |
|
271 |
<div class="modal-content"> |
|
272 |
<div class="modal-header"> |
|
273 |
<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button> |
|
274 |
<h4 class="modal-title">选择部门</h4> |
|
275 |
</div> |
|
276 |
<div class="modal-body"> |
|
277 |
<input type="text" class="search" id="search" placeholder="搜索"/> |
|
278 |
<div id="jstree_Enterprise"></div> |
|
279 |
</div> |
|
280 |
<div class="modal-footer"> |
|
281 |
<button type="button" class="btn btn-primary btn-xs" data-dismiss="modal" id="saveDepart">保存</button> |
|
282 |
</div> |
|
283 |
</div> |
|
284 |
</div> |
|
285 |
</div> |
|
286 |
<div id="dialog-confirm" class="hide"> |
|
287 |
<div class="alert alert-info bigger-110" id="modalContent"> |
|
288 |
</div> |
|
289 |
</div> |
|
290 |
</ui:define> |
|
291 |
<ui:define name="myscript"> |
|
292 |
<script type="text/javascript" src="#{request.contextPath}/template/nit/cdn/js/jstree.min.js"></script> |
|
293 |
<script type="text/javascript" src="#{request.contextPath}/template/assets/js/chosen.jquery.js"></script> |
|
294 |
<script src="#{request.contextPath}/basicinfo/js/businesstype.js"></script> |
|
295 |
</ui:define> |
|
296 |
</ui:composition> |
|
297 |
</html> |