hjg
2024-02-05 301115d5e96b56cd093eee3fcff2d60a15184162
提交 | 用户 | 时间
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         <style>
11         #searchBtn {
12             height: 34px;
13         }
14         p.error {
15             color: #D9534F
16         }
17         input.error {
18             border: 1px solid #D9534F;
19         }
20         #simple-table th,#simple-table td{
21             text-align: center;
22             padding: 1px 8px;
23         }
24         #form .control-label {
25             margin-right: -14px
26         }
27         .t-error{
28             color: red;
29             position: relative;
30             right: 2px;
31             top: 3px;
32         }
33         .pagination {
34             margin: 10px 0;
35         }
36         #simple-table th {
37             padding: 0
38         }
39         .th {
40             position: relative;
41             width: 100%;
42             display: block;
43             background: #F2F2F2;
44             border: 1px solid #DDDDDD;
45             z-index: 1;
46             border-left: none;
47         }
48         .gai-info{
49           width:72%;
50           float:left;
51           text-align: center;
52           line-height:20px;
53           min-height:28px;
54           /*border:1px solid #ddd;*/
55         }
56         </style>
57     </ui:define>
58     <ui:define name="acontent">
59         <input type="hidden" value="#{param.page}" id="p" />
60         <input type="hidden" value="#{param.keyword}" id="k" />
61         <div class="row">
62             <div class="col-xs-5">
63                 <div class="input-group">
64                     <input class="form-control input-mask-date" type="text" value="#{param.keyword}" id="keyword" placeholder="输入名称搜索" data-bind="value: keyword, valueUpdate: 'afterkeydown'" />
65                     <span class="input-group-btn">
66                         <button class="btn btn-sm btn-default" type="button" id="searchBtn">
67                             <i class="ace-icon fa fa-search bigger-110"></i>
68                             搜索
69                         </button>
70                     </span>
71                 </div>
72             </div>
73             <div class="col-xs-7" style="text-align: right;">
74                 <button class="btn btn-sm btn-info" type="button" id="newObj">
75                     <i class="ace-icon fa fa-plus bigger-110"></i>
76                     新运输公司
77                 </button>
78             </div>
79             <div class="col-xs-12 table-responsive" style="margin-top: 8px;">
80                 <table id="simple-table" class="table  table-bordered table-hover table-striped">
81                     <thead>
82                         <tr>
83                             <th class="detail-col" style="min-width: 48px">序号</th>
efbf82 84                             <th style="min-width: 80px"><span class="th">编号</span></th>
58d006 85                             <th style="min-width: 100px"><span class="th">名称</span></th>
efbf82 86                             <th style="min-width: 80px"><span class="th">简称</span></th>
58d006 87                             <th style="min-width: 150px"><span class="th">备注</span></th>
A 88                             <th style="min-width: 100px"><span class="th">自提权限</span></th>
89                             <th style="min-width: 200px"><span class="th">业务厂区</span></th>
90                             <th style="min-width: 100px"><span class="th">操作</span></th>
91                         </tr>
92                     </thead>
93
94                     <tbody data-bind="foreach: list">
95                         <tr>
96                             <td class="center">
97                                 <span data-bind="text: $index() + 1"></span> 
98                             </td>
99
100                             <td data-bind="text: companyNo"></td>
101                             <td data-bind="text: name"></td>
efbf82 102                             <td data-bind="text: shortName"></td>
58d006 103                             <td data-bind="text: note"></td>
A 104                             <td data-bind="text: hasSPR()?'有':'无'"></td>
105                             <td data-bind="text: ywdyNames"></td>
106                             <td>
107                                 <div class="btn-group">
108                                     <button class="btn btn-xs btn-info" title="编辑" data-bind="click: $parent.edit">
109                                         <!--<i class="ace-icon fa fa-pencil bigger-120"></i>-->
110                                         编辑
111                                     </button>
112
113                                     <button class="btn btn-xs btn-danger" title="删除" data-bind="click: $parent.del">
114                                         <!--<i class="ace-icon fa fa-trash-o bigger-120"></i>-->
115                                         删除
116                                     </button>
117                                 </div>
118                             </td>
119                         </tr>
120                     </tbody>
121                 </table>
122             </div>
123             <div class="col-md-12">
124                 <div id="pagdiv"></div>
125             </div>
126         </div>
127         <div class="modal fade" id="modal">
128             <div class="modal-dialog">
129                 <div class="modal-content">
130                     <div class="modal-header">
131                         <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
132                         <h4 class="modal-title">编辑运输公司</h4>
133                     </div>
134                     <div class="modal-body">
135                         <form class="form-horizontal" id="form">
136                             <div class="form-body">
137                                 <div class="form-group">
138                                     <label class="col-md-3 control-label"><span class="t-error">*</span>运输公司编号</label>
139                                     <div class="col-md-6">
140                                         <input type="text" class="form-control" name="companyNo" placeholder="" data-bind="value: o().companyNo"/>
141                                     </div>
142                                     <div class="col-md-3">
143                                         <p class="form-control-static text-error"></p>
144                                     </div>
145                                 </div>
146                             </div>
147                             <div class="form-body">
148                                 <div class="form-group">
149                                     <label class="col-md-3 control-label"><span class="t-error">*</span>运输公司名称</label>
150                                     <div class="col-md-6">
151                                         <input type="text" class="form-control" name="name" placeholder="" data-bind="value: o().name"/>
152                                     </div>
153                                     <div class="col-md-3">
154                                         <p class="form-control-static text-error"></p>
155                                     </div>
156                                 </div>
157                             </div>
efbf82 158                             <div class="form-body">
H 159                                 <div class="form-group">
160                                     <label class="col-md-3 control-label"><span class="t-error">*</span>运输公司简称</label>
161                                     <div class="col-md-6">
162                                         <input type="text" class="form-control" name="shortName" placeholder="" data-bind="value: o().shortName"/>
163                                     </div>
164                                     <div class="col-md-3">
165                                         <p class="form-control-static text-error"></p>
166                                     </div>
167                                 </div>
168                             </div>
58d006 169                             <div class="form-group">
A 170                                 <label class="col-md-3 col-sm-3 control-label" for="form-field-1-1"> 自提权限 </label>
171                                 <div class="col-md-6 col-sm-6">
172                                     <label style="padding-top: 9px;">
173                                         <input name="switch-field-1" class="ace ace-switch" type="checkbox" data-bind="checked: o().hasSPR()" id="hasSPR"/>
174                                         <span class="lbl"></span>
175                                     </label>
176                                 </div>
177                             </div>
178                             <div class="form-group">
179                                 <label class="col-md-3 col-sm-3 control-label" for="form-field-1-1">业务单元</label>
180                                 <div class="col-md-6 col-sm-6">
181                                         <select data-placeholder="请选择业务单元……" id="dp" style="height: 34px" multiple="multiple" class="chosen-select form-control tag-input-style" data-bind="selectedOptions: yvList, options: ywdyList, optionsText: 'name', optionsValue: 'code'">
182                                          </select> 
183                                 </div>
184                             </div>
185                             <div class="form-body">
186                                 <div class="form-group">
187                                     <label class="col-md-3 control-label">备注</label>
188                                     <div class="col-md-6">
189                                         <input type="text" class="form-control" placeholder="" data-bind="value: o().note"/>
190                                     </div>
191                                 </div>
192                             </div>
193                         </form>
194                     </div>
195                     <div class="modal-footer">
196                         <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
197                         <button type="button" class="btn btn-primary" id="save">保存</button>
198                     </div>
199                 </div>
200             </div>
201         </div>
202         <div id="dialog-confirm" class="hide">
203             <div class="alert alert-info bigger-110" id="modalContent">
204             </div>
205         </div>
206     </ui:define>
207     <ui:define name="myscript">
208         <script type="text/javascript" src="#{request.contextPath}/template/assets/js/jquery.colorbox.js"></script>
209         <script type="text/javascript" src="#{request.contextPath}/template/assets/js/chosen.jquery.js"></script>
210         <script src="js/company.js?v=#{sessionScope.login_page_vesion}"></script>
211     </ui:define>
212 </ui:composition>
213 </html>