Administrator
2022-12-15 9ce4bb2b6bd1378ba7b0bd6681d22cb37a5e1452
提交 | 用户 | 时间
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         #listTable input{
21             width: 100%;
22             height: 100%;
23             border: 0px;
24             padding: 0px
25         }
26         #simple-table th,#simple-table td{
27             text-align: center;
28             padding: 2px 8px;
29         }
30         .bigger-95{
31         font-size: 95% !important;
32         }
33         .btn-xs, .btn-group-xs > .btn{
34           padding-top: 0px;
35           padding-bottom: 0px;
36         }
37         #form .control-label {
38             margin-right: -14px
39         }
40         .t-error{
41             color: red;
42             position: relative;
43             right: 2px;
44             top: 3px;
45         }
46         .table-responsive {
47             overflow-x: visible
48         }
49         #listTable th,#listTable td{
50             padding: 2px 8px !important;
51             text-align: center;
52         }
53         .twitter-typeahead {
54             width: 100%
55         }
56         .gai-name{
57           width:26%;
58           float:left;
59           text-align: right;
60           padding-right: 10px;
61         }
62         .gai-info{
63           width:72%;
64           float:left;
65           text-align: center;
66           line-height:20px;
67           min-height:28px;
68           /*border:1px solid #ddd;*/
69         }
70         .tt-menu {
71             width: 472px;
72             padding: 0px;
73         }
74         .bh, .mc, .gg, .dw {
75             text-align: center;
76             height: 30px;
77             border: 1px solid #CCC;
78             display: block;
79             float: left;
80             border-left: none;
81         }
82         .bh {
83             border-left: 1px solid #CCC;
84             width: 80px;
85         }
86         .mc, .gg {
87             width: 170px;
88         }
89         .dw {
90             width: 50px
91         }
92         .tt-suggestion{
93             overflow: hidden;
94             padding: 0px;
95             font-size: 14px
96         }
97         #bx {
98             background: #F7F7F7;
99             color: #707070;
100              overflow: hidden;
101              font-size: 14px;
102              font-weight: bold;
103              height: 25px;
104         }
105         </style>
106     </ui:define>
107     <ui:define name="acontent">
108         <input type="hidden" value="#{param.page}" id="p" />
109         <input type="hidden" value="#{param.keyword}" id="k" />
110         <div class="row">
111             <div class="col-md-12">
112                 <form class="form-horizontal">
113                     <div class="form-body">
114                         <div class="form-group gai-wrap col-md-3 col-sm-6 col-xs-12">
115                             <label class=" control-label gai-name">类型</label>
116                             <div class="gai-info">
117                                 <!--<input type="text" class="form-control" placeholder="输入编号或名称查询" name="numberplates" data-bindd="value: o().numberplates, enable: canEdit" />-->
118                                 <select name="" id="" class="form-control" data-bind="value: type, options: tList, optionsText: 'key', optionsValue: 'value'"></select>
119                             </div>
120                         </div>
121                         <div class="form-group gai-wrap col-md-3 col-sm-6 col-xs-12">
122                             <label class=" control-label gai-name">一卡通</label>
123                             <div class="gai-info">
124                                 <input type="text" class="form-control" placeholder="输入编号或名称查询" name="numberplates" data-bind="value: skeyword" />
125                             </div>
126                         </div>
127                         <div class="form-group gai-wrap col-md-3 col-sm-6 col-xs-12">
128                             <label class=" control-label gai-name">ERP</label>
129                             <div class="gai-info">
130                                 <input type="text" class="form-control" placeholder="输入编号或名称查询" name="numberplates" data-bind="value: ckeyword" />
131                             </div>
132                         </div>
133                         <div class="form-group gai-wrap col-md-3 col-sm-6 col-xs-12">
134                             <button class="btn btn-sm btn-default" type="button" id="searchBtn">
135                                 <i class="ace-icon fa fa-search bigger-110"></i>
136                                 搜索
137                             </button>
138                         </div>
139                     </div>
140                 </form>
141             </div>
142             <!--<div class="col-xs-5">
143                 <div class="input-group">
144                     <input class="form-control input-mask-date" type="text" value="#{param.keyword}" id="keyword" placeholder="输入名称搜索" data-bind="value: keyword, valueUpdate: 'afterkeydown'" />
145                     <span class="input-group-btn">
146                         <button class="btn btn-sm btn-default" type="button" id="searchBtn">
147                             <i class="ace-icon fa fa-search bigger-110"></i>
148                             搜索
149                         </button>
150                     </span>
151                 </div>
152             </div>
153             <div class="col-xs-7" style="text-align: right;">
154                 <button class="btn btn-sm btn-success" type="button" id="save">
155                     <i class="ace-icon fa fa-save bigger-110"></i>
156                     保存
157                 </button>
158                 <button class="btn btn-sm btn-info" type="button" id="newObj">
159                     <i class="ace-icon fa fa-plus bigger-110"></i>
160                     添加
161                 </button>
162             </div>-->
163             <div class="col-xs-12 table-responsive" style="margin-top: 8px;">
164                 <table id="listTable" class="table  table-bordered table-hover">
165                     <thead>
166                         <tr>
167                             <th class="detail-col" style="min-width: 48px">序号</th>
168                             <th style="min-width: 255px">一卡通物料名称</th>
169                             <th class="hidden-480" style="min-width: 48px">一卡通物料规格</th>
170                             <th class="hidden-480" style="min-width: 48px">一卡通物料编号</th>
171                             <th style="min-width: 255px">ERP物料名称</th>
172                             <th class="hidden-480" style="min-width: 48px">ERP物料规格</th>
173                             <th class="hidden-480" style="min-width: 48px">ERP物料编号</th>
174                             <th class="hidden-480" style="min-width: 48px">ERP物料计量单位</th>
175                             <th style="min-width: 100px">换算</th>
176                             <th style="min-width: 100px">操作</th>
177                         </tr>
178                     </thead>
179
180                     <tbody data-bind="foreach: list">
181                         <tr>
182                             <td class="center">
183                                 <span data-bind="text: $index() + 1"></span>
184                             </td>
185
186                             <td class="hidden-480" data-bind="text: sysname"></td>
187                             <td class="hidden-480" data-bind="text: sysnorms"></td>
188                             <td class="hidden-480" data-bind="text: sysMaterielNo"></td>
189                             <td>
190                                 <input type="text" class="mtableTypeahead name" data-bind="value: cname"/>
191                             </td>
192                             <td class="hidden-480" data-bind="text: cnorms"></td>
193                             <td class="hidden-480" data-bind="text: cMaterielNo"></td>
194                             <td class="hidden-480" data-bind="text: cunitname"></td>
195                             <td>
196                                 <input type="text" class="name" data-bind="value: num, event: {blur: $parent.bind}"/>
197                             </td>
198                             <td>
199                                 <div class="btn-group">
200                                     <button class="btn btn-xs btn-danger" title="解绑" data-bind="click: $parent.unbind">
201                                         <!--<i class="ace-icon fa fa-pencil bigger-95"></i>-->
202                                         解绑
203                                     </button>
204                                 </div>
205                             </td>
206                         </tr>
207                     </tbody>
208                 </table>
209                 <div id="pagdiv" style="margin-bottom: 400px"></div>
210             </div>
211         </div>
212         <div id="dialog-confirm" class="hide">
213             <div class="alert alert-info bigger-110" id="modalContent">
214             </div>
215         </div>
216     </ui:define>
217     <ui:define name="myscript">
218         <script src="#{request.contextPath}/business/js/typeahead.bundle.js"></script>
219         <script src="js/mapMaterial.js"></script>
220     </ui:define>
221 </ui:composition>
222 </html>