hjg
2023-10-14 f6c2f15c37aef4675dda01fb5ec17cde4e141c3f
提交 | 用户 | 时间
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         i.fa.danger {
34             color: #D15B47
35         }
36         i.fa.success {
37             color: #87B87F
38         }
39         .pagination {
40             margin: 10px 0;
41         }
42         #simple-table th {
43             padding: 0
44         }
45         .th {
46             position: relative;
47             width: 100%;
48             display: block;
49             background: #F2F2F2;
50             border: 1px solid #DDDDDD;
51             z-index: 1;
52             border-left: none;
53         }
54         .btn-xs, .btn-group-xs > .btn{
55             padding-top: 0px;
56             padding-bottom: 0px;
57         }
58         </style>
59     </ui:define>
60     <ui:define name="acontent">
61         <input type="hidden" value="#{param.page}" id="p" />
62         <input type="hidden" value="#{param.keyword}" id="k" />
63         <div class="row">
64             <div class="col-xs-2" data-bind="visible: isAdmin">
65                 <select name="" id="" class="form-control" data-bind="value: mtid, options: tList, optionsText: 'name', optionsValue: 'companyNo', optionsCaption: '全部运输公司', event:{change: change}"></select>
66             </div>
67             <div class="col-xs-2" >
68                <select class="form-control" data-bind="value: cqVal, options: cqList, optionsText: 'name', optionsValue: 'cqval', event:{change:cqchange}"></select>
69             </div>
70             <div class="col-xs-5">
71                 <div class="input-group" data-bind="style: {'margin-left': isAdmin() ? '-31px': '0px'}">
72                     <input class="form-control input-mask-date" type="text" id="keyword" placeholder="输入车牌号搜索" data-bind="value: keyword, valueUpdate: 'afterkeydown'" />
73                     <span class="input-group-btn">
74                         <button class="btn btn-sm btn-default" type="button" id="searchBtn">
75                             <i class="ace-icon fa fa-search bigger-110"></i>
76                             搜索
77                         </button>
78                     </span>
79                 </div>
80             </div>
81             <div class="col-xs-5" style="text-align: right;">
82                 <!-- <button class="btn btn-sm btn-info" type="button" id="sendBtn">
83                     <i class="ace-icon fa fa-envelope-o bigger-110"></i>
84                     发送派车通知
85                 </button> -->
86             </div>
87             <div class="col-xs-12 table-responsive main-table" style="margin-top: 8px;">
88                 <table id="simple-table" class="table  table-bordered table-hover table-striped">
89                     <thead>
90                         <tr>
91                             <th style="min-width: 48px"><span class="th">序号</span></th>
92                             <th style="min-width: 100px"><span class="th">操作</span></th>
93                             <th style="min-width: 100px"><span class="th">单据编号</span></th>
94                             <th style="min-width: 100px"><span class="th">车牌号</span></th>
95                             <th style="min-width: 100px"><span class="th">本公司配车重量</span></th>
96                             <th style="min-width: 100px"><span class="th">本公司配车数量</span></th>
97                             <th style="min-width: 80px"><span class="th">配车总重量</span></th>
98                             <th style="min-width: 80px"><span class="th">配车总数量</span></th>
99                             <th style="min-width: 100px"><span class="th">司机</span></th>
100                             <th style="min-width: 75px"><span class="th">联系电话</span></th>
101                             <th style="min-width: 120px; width: 100px"><span class="th">邀请码</span></th>
102                             <th style="min-width: 230px"><span class="th">分单物流公司</span></th>
103                             <th style="min-width: 230px"><span class="th">收货单位</span></th>
104                             <th style="min-width: 230px"><span class="th">发货单位</span></th>
105                         </tr>
106                     </thead>
107
108                     <tbody data-bind="foreach: list">
109                         <tr class="titem" data-bind="attr: {'data-no': bussinessNo}">
110                             <td class="center">
111                                 <span data-bind="text: $index() + 1"></span>
112                             </td>
113                             <td>
114                                 <div class="btn-group">
115                                    <!--  <a class="btn btn-xs btn-info" title="编辑" data-bind="click: $parent.changeVehicle, visible: !hasCard">换车</a> -->
116                                     <button class="btn btn-xs btn-danger" title="取消派车" data-bind="click: $parent.del.bind($data)">取消派车</button>
117                                 </div>
118                             </td>
119
120                             <td>
121                                 <a href="javascript:;" data-bind="text: bussinessNo, click: $parent.vehicleTasks" title="查看详情"></a>
122                             </td>
123                             <td>
124                                 <a href="javascript:;" data-bind="text: vehicleId, click: $parent.vehicleTasks" title="配车物资"></a>
125                             </td>
126                             <td data-bind="text: fdweight"></td>
127                             <td data-bind="text: fdnum"></td>
128                             <td data-bind="text: fdCweight"></td>
129                             <td data-bind="text: fdCnum"></td>
130                             <td data-bind="text: driver"></td>
131                             <td data-bind="text: phone"></td>
132                             <td>
133                                 <span data-bind="text: invitecode"></span>&nbsp;
134                                 <a href="javascript:;" class="btn btn-xs btn-info" title="重发验证码" data-bind="click: $parent.resend.bind($data)">
135                                     <i class="ace-icon fa fa-refresh bigger-95"></i>
136                                 </a>
137                             </td>
138                             <td data-bind="text: companyName" style="text-align: left"></td>
139                             <td data-bind="text: rcompany" style="text-align: left"></td>
140                             <td data-bind="text: sdepartNo=='04'?'明泰科技':'河南明晟' " style="text-align: left"></td>
141
142                         </tr>
143                     </tbody>
144                 </table>
145             </div>
146             <div class="col-md-12">
147                 <div id="pagdiv"></div>
148             </div>
149         </div>
150
151         <div class="modal fade" id="vehicleModal">
152             <div class="modal-dialog modal-lg">
153                 <div class="modal-content">
154                     <div class="modal-header">
155                         <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
156                         <h4 class="modal-title" style="display: inline-block; float: left;line-height: 34px;">选择车辆</h4>
157                         <div class="col-xs-4">
158                             <div class="input-group">
159                                 <input class="form-control input-mask-date" type="text" id="vehicleKeyword" placeholder="输入车牌号检索" />
160                                 <span class="input-group-btn">
161                                     <button class="btn btn-sm btn-default searchBtn" type="button" id="searchVehicleBtn">
162                                         <i class="ace-icon fa fa-search bigger-110"></i>
163                                         搜索
164                                     </button>
165                                 </span>
166                             </div>
167                         </div>
168                     </div>
169                     <div class="modal-body table-responsive" style="max-height: 400px; overflow-Y: scroll">
170                         <table class="table table-bordered table-hover table-striped">
171                             <thead>
172                                 <tr>
173                                     <th style="min-width: 100px">车牌号</th>
174                                     <th style="min-width: 150px">可配车重量</th>
175                                     <th style="min-width: 350px">特征</th>
176                                     <th style="min-width: 100px">车重</th>
177                                     <th style="min-width: 100px">载重</th>
178                                     <th style="min-width: 150px">已配车数量</th>
179                                     <th style="min-width: 150px">已配车重量</th>
180                                     <th style="min-width: 400px;">备注</th>
181                                     <th style="min-width: 80px">司机</th>
182                                     <th style="min-width: 100px">联系电话</th>
183                                      <th style="min-width: 150px">身份证号</th>
184                                 </tr>
185                             </thead>
186                             <tbody data-bind="foreach: vList">
187                                 <tr class="vitem" data-bind="attr: {'data-indx': indx}">
188                                     <td data-bind="text: vehicleId"></td>
189                                     <td data-bind="text: lastweight"></td>
190                                     <td data-bind="text: feature"></td>
191                                     <td data-bind="text: vehicleweight"></td>
192                                     <td data-bind="text: loadweight"></td>
193                                     <td data-bind="text: fdnum"></td>
194                                     <td data-bind="text: fdweight"></td>
195                                     <td data-bind="text: note"></td>
196                                     <td data-bind="text: driver"></td>
197                                     <td data-bind="text: phone"></td>
198                                     <td data-bind="text: IDNum"></td>
199                                 </tr>
200                             </tbody>
201                         </table>
202                     </div>
203                     <div class="modal-footer">
204                         <button type="button" class="btn btn-primary btn-sm" id="addTempVehicle" style="float: left">换车到临时车辆</button>
205                         <button type="button" class="btn btn-primary btn-sm" id="refreshVehicleBtn" style="float: left">
206                             <i class="ace-icon fa fa-refresh bigger-110"></i>
207                             更新车辆状态
208                         </button>
209                         <button type="button" class="btn btn-default btn-sm" data-dismiss="modal">取消</button>
210                         <button type="button" class="btn btn-primary btn-sm" id="vehicleBindBtn">确定换车</button>
211                     </div>
212                 </div>
213             </div>
214         </div>
215         
216         <div class="modal fade" id="tempVehicleModal">
217             <div class="modal-dialog">
218                 <div class="modal-content">
219                     <div class="modal-header">
220                         <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
221                         <h4 class="modal-title">编辑临时车辆</h4>
222                     </div>
223                     <div class="modal-body">
224                         <form class="form-horizontal" id="form">
225                             <div class="form-body">
226                                 <div class="form-group">
227                                     <label class="col-md-3 control-label"><span class="t-error">*</span> 车牌号</label>
228                                     <div class="col-md-6">
229                                         <input type="text" class="form-control" style="text-transform:uppercase" id="vehicleId" name="vehicleId" placeholder="" data-bind="value: o().vehicleId"/>
230                                     </div>
231                                     <div class="col-md-3">
232                                         <p class="form-control-static text-error"></p>
233                                     </div>
234                                 </div>
235                                 <div class="form-group">
236                                     <label class="col-md-3 control-label"><span class="t-error">*</span> 司机</label>
237                                     <div class="col-md-6">
238                                         <input type="text" class="form-control" placeholder="" name="driver" data-bind="value: o().driver"/>
239                                     </div>
240                                     <div class="col-md-3">
241                                         <p class="form-control-static text-error"></p>
242                                     </div>
243                                 </div>
244                                 <div class="form-group">
245                                     <label class="col-md-3 control-label"><span class="t-error">*</span> 手机号</label>
246                                     <div class="col-md-6">
247                                         <input type="text" class="form-control" placeholder="" name="phone" data-bind="value: o().phone"/>
248                                     </div>
249                                     <div class="col-md-3">
250                                         <p class="form-control-static text-error"></p>
251                                     </div>
252                                 </div>
253                                    <div class="form-group">
254                                     <label class="col-md-3 control-label"><span class="t-error">*</span> 身份证号</label>
255                                     <div class="col-md-6">
256                                         <input type="text" class="form-control" placeholder="" name="IDNum" data-bind="value: o().phone"/>
257                                     </div>
258                                     <div class="col-md-3">
259                                         <p class="form-control-static text-error"></p>
260                                     </div>
261                                 </div>
262                                 <div class="form-group">
263                                     <label class="col-md-3 control-label"> 车辆重量(吨)</label>
264                                     <div class="col-md-6">
265                                         <input type="text" class="form-control" placeholder="" name="vehicleweight" data-bind="value: o().vehicleweight"/>
266                                     </div>
267                                     <div class="col-md-3">
268                                         <p class="form-control-static text-error"></p>
269                                     </div>
270                                 </div>
271                                 <div class="form-group">
272                                     <label class="col-md-3 control-label"> 载重重量(吨)</label>
273                                     <div class="col-md-6">
274                                         <input type="text" class="form-control" placeholder="" name="vehicleweight" data-bind="value: o().loadweight"/>
275                                     </div>
276                                     <div class="col-md-3">
277                                         <p class="form-control-static text-error"></p>
278                                     </div>
279                                 </div>
280                                 <div class="form-group">
281                                     <label class="col-md-3 control-label">特征</label>
282                                     <div class="col-md-6">
283                                         <input type="text" class="form-control" placeholder="" data-bind="value: o().feature"/>
284                                     </div>
285                                     <div class="col-md-3">
286                                         <p class="form-control-static text-error"></p>
287                                     </div>
288                                 </div>
289                                     <div class="form-group">
290                                     <label class="col-md-3 control-label">备注</label>
291                                     <div class="col-md-6">
292                                         <input type="text" class="form-control" placeholder="" data-bind="value: o().note"/>
293                                     </div>
294                                     <div class="col-md-3">
295                                         <p class="form-control-static text-error"></p>
296                                     </div>
297                                 </div>
298                             </div>
299                         </form>
300                     </div>
301                     <div class="modal-footer">
302                         <button type="button" class="btn btn-sm btn-default" data-dismiss="modal">取消</button>
303                         <button type="button" class="btn btn-sm btn-primary" id="tempVehicleSaveBtn">保存并换车</button>
304                     </div>
305                 </div>
306             </div>
307         </div>
308
309         <div id="dialog-confirm" class="hide">
310             <div class="alert alert-info bigger-110" id="modalContent">
311             </div>
312         </div>
313     </ui:define>
314     <ui:define name="myscript">
315     <script type="text/javascript" src="#{request.contextPath}/template/assets/js/chosen.jquery.js"></script>
316         <script src="js/vehicleTask.js?v=#{sessionScope.login_page_vesion}"></script>
317     </ui:define>
318 </ui:composition>
319 </html>