Administrator
2023-04-21 195945efc5db921a4c9eb8cf9421c172273293f5
提交 | 用户 | 时间
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>
84                             <th style="min-width: 100px"><span class="th">编号</span></th>
85                             <th style="min-width: 100px"><span class="th">名称</span></th>
86                             <th style="min-width: 150px"><span class="th">备注</span></th>
87                             <th style="min-width: 100px"><span class="th">自提权限</span></th>
88                             <th style="min-width: 200px"><span class="th">业务厂区</span></th>
89                             <th style="min-width: 100px"><span class="th">操作</span></th>
90                         </tr>
91                     </thead>
92
93                     <tbody data-bind="foreach: list">
94                         <tr>
95                             <td class="center">
96                                 <span data-bind="text: $index() + 1"></span> 
97                             </td>
98
99                             <td data-bind="text: companyNo"></td>
100                             <td data-bind="text: name"></td>
101                             <td data-bind="text: note"></td>
102                             <td data-bind="text: hasSPR()?'有':'无'"></td>
103                             <td data-bind="text: ywdyNames"></td>
104                             <td>
105                                 <div class="btn-group">
106                                     <button class="btn btn-xs btn-info" title="编辑" data-bind="click: $parent.edit">
107                                         <!--<i class="ace-icon fa fa-pencil bigger-120"></i>-->
108                                         编辑
109                                     </button>
110
111                                     <button class="btn btn-xs btn-danger" title="删除" data-bind="click: $parent.del">
112                                         <!--<i class="ace-icon fa fa-trash-o bigger-120"></i>-->
113                                         删除
114                                     </button>
115                                 </div>
116                             </td>
117                         </tr>
118                     </tbody>
119                 </table>
120             </div>
121             <div class="col-md-12">
122                 <div id="pagdiv"></div>
123             </div>
124         </div>
125         <div class="modal fade" id="modal">
126             <div class="modal-dialog">
127                 <div class="modal-content">
128                     <div class="modal-header">
129                         <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
130                         <h4 class="modal-title">编辑运输公司</h4>
131                     </div>
132                     <div class="modal-body">
133                         <form class="form-horizontal" id="form">
134                             <div class="form-body">
135                                 <div class="form-group">
136                                     <label class="col-md-3 control-label"><span class="t-error">*</span>运输公司编号</label>
137                                     <div class="col-md-6">
138                                         <input type="text" class="form-control" name="companyNo" placeholder="" data-bind="value: o().companyNo"/>
139                                     </div>
140                                     <div class="col-md-3">
141                                         <p class="form-control-static text-error"></p>
142                                     </div>
143                                 </div>
144                             </div>
145                             <div class="form-body">
146                                 <div class="form-group">
147                                     <label class="col-md-3 control-label"><span class="t-error">*</span>运输公司名称</label>
148                                     <div class="col-md-6">
149                                         <input type="text" class="form-control" name="name" placeholder="" data-bind="value: o().name"/>
150                                     </div>
151                                     <div class="col-md-3">
152                                         <p class="form-control-static text-error"></p>
153                                     </div>
154                                 </div>
155                             </div>
156                             <div class="form-group">
157                                 <label class="col-md-3 col-sm-3 control-label" for="form-field-1-1"> 自提权限 </label>
158                                 <div class="col-md-6 col-sm-6">
159                                     <label style="padding-top: 9px;">
160                                         <input name="switch-field-1" class="ace ace-switch" type="checkbox" data-bind="checked: o().hasSPR()" id="hasSPR"/>
161                                         <span class="lbl"></span>
162                                     </label>
163                                 </div>
164                             </div>
165                             <div class="form-group">
166                                 <label class="col-md-3 col-sm-3 control-label" for="form-field-1-1">业务单元</label>
167                                 <div class="col-md-6 col-sm-6">
168                                         <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'">
169                                          </select> 
170                                 </div>
171                             </div>
172                             <div class="form-body">
173                                 <div class="form-group">
174                                     <label class="col-md-3 control-label">备注</label>
175                                     <div class="col-md-6">
176                                         <input type="text" class="form-control" placeholder="" data-bind="value: o().note"/>
177                                     </div>
178                                 </div>
179                             </div>
180                         </form>
181                     </div>
182                     <div class="modal-footer">
183                         <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
184                         <button type="button" class="btn btn-primary" id="save">保存</button>
185                     </div>
186                 </div>
187             </div>
188         </div>
189         <div id="dialog-confirm" class="hide">
190             <div class="alert alert-info bigger-110" id="modalContent">
191             </div>
192         </div>
193     </ui:define>
194     <ui:define name="myscript">
195         <script type="text/javascript" src="#{request.contextPath}/template/assets/js/jquery.colorbox.js"></script>
196         <script type="text/javascript" src="#{request.contextPath}/template/assets/js/chosen.jquery.js"></script>
197         <script src="js/company.js?v=#{sessionScope.login_page_vesion}"></script>
198     </ui:define>
199 </ui:composition>
200 </html>