hjg
2024-02-05 301115d5e96b56cd093eee3fcff2d60a15184162
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:c="http://java.sun.com/jsp/jstl/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:ui="http://java.sun.com/jsf/facelets">
<ui:composition template="/template/nit/tmp_brief.xhtml">
    <ui:define name="acss">
        <style>
        #searchBtn {
            height: 34px;
        }
        p.error {
            color: #D9534F
        }
        input.error {
            border: 1px solid #D9534F;
        }
        #simple-table th,#simple-table td, #vehicle-table th,#vehicle-table td{
            text-align: center;
            padding: 1px 8px;
        }
        #form .control-label {
            margin-right: -14px
        }
        .t-error{
            color: red;
            position: relative;
            right: 2px;
            top: 3px;
        }
        .pagination {
            margin: 10px 0;
        }
        #simple-table th, #vehicle-table th {
            padding: 0
        }
        .th {
            position: relative;
            width: 100%;
            display: block;
            background: #F2F2F2;
            border: 1px solid #DDDDDD;
            z-index: 1;
            border-left: none;
        }
        i.fa.danger {
            color: #D15B47
        }
        i.fa.success {
            color: #87B87F
        }
        #selectNoBtn {
            display: none;
        }
        .split {
            width: 12px;
            height: 517px;
            position: absolute;
            display: block;
            background: #f1f1f1;
            margin-top: 41px;
            z-index: 999;
        }
        #vehicleMessage {
            display: none;
        }
        .table-dark{
            background: #ccc;
        }
        </style>
    </ui:define>
    <ui:define name="acontent">
        <input type="hidden" value="#{param.no}" id="no" />
        <div class="row">
            <div class="col-xs-6" style="width: 100%;">
                <table id="simple-table" class="table  table-bordered table-hover table-striped">
                    <tr>
                        <td style="width: 80px">提单编号</td>
                        <td data-bind="text: td().td_tdbh"></td>
                        <td style="width: 80px">制单日期</td>
                        <td data-bind="text: td().td_djrq"></td>
                    </tr>
                    <tr>
                        <td>备  注</td>
                        <td data-bind="text: td().td_bz"></td>
                        <td>客户名称</td>
                        <td data-bind="text: td().td_khmc"></td>
                    </tr>
                    <tr>
                        <td>制单部门-销售人</td>
                        <td data-bind="text: (td().td_bmmc==null?'':td().td_bmmc)+'  '+(td().td_xsr==null?'':td().td_xsr)"></td>
                        <td>制单人员-发票编号</td>
                        <td data-bind="text: (td().td_zdr==null?'': td().td_zdr)+'  '+(td().td_fpbh==null?'':td().td_fpbh)"></td>
                    </tr>
                </table>
            </div>
           <!-- <div class="col-xs-6 alert alert-info" style="width:36%;">
                <p class="bg-info" style="font-weight: bold" id="vehicleMessage">
                    当前车牌号:<span id="_vhicleId"></span>,
                    可配重量:<span id="_lastweight"></span>,
                    载重:<span id="_loadweight"></span>,
                    已配重量:<span id="_fdweight"></span>,
                    已配数量:<span id="_fdnum"></span>。
                </p>
                <p class="bg-info" style="font-weight: bold">
                    已选择:<span data-bind="text: selectedNum"></span>个,
                    毛重:<span data-bind="text: selectedMZ"></span>吨,
                    净重:<span data-bind="text: selectedJZ"></span>吨。
                </p>
            </div>-->
        </div>
        <div class="row" style="padding:2px;">
            <div class="col-xs-3" style="width: 25%;padding-left: 2px;padding-right: 2px;">
                <button class="btn btn-sm btn-info" type="button" id="clearSelectBtn" title="清除选中的所有物资">清除</button>
                <button class="btn btn-sm btn-info" type="button" id="selectAllBtn" data-bind="style: {display: isSelectAll() ? 'none' : 'inline-block'}" title="选中列表显示的所有物资">全选</button>
                <button class="btn btn-sm btn-info" type="button" id="selectNoBtn" data-bind="style: {display: isSelectAll() ? 'inline-block' : 'none'}" title="取消选中列表显示的所有物资">全不选</button>
                <button type="button" class="btn btn-primary btn-sm" id="sxBtn" style="font-size: 10px;padding-left: 0px;padding-right: 0px;" title="重新获取最新的物资信息">
                    <i class="ace-icon fa fa-refresh bigger-110" ></i>
                </button>
            </div>
            <div class="col-xs-4" >
                <div class="row">
                    <div style="float:left;" >
                        <input class="form-control input-mask-date" type="text" readonly="readonly" data-bind="value:companyName"   placeholder="选择物流公司" />
                    </div >
                    <div style="float:left;padding-right: 5px; padding-left: 5px;">
                        <button class="btn btn-sm btn-info mStatus" type="button" id="companyButton" style="font-size: 10px;"> 更换物流公司 </button>
                    </div>
                    <div style="float:left;padding-right: 2px; ">
                        <button class="btn btn-sm btn-info mStatus" type="button" id="changeCompanyButton" style="font-size: 10px;"> 提交 </button>
                    </div>
                </div>
            </div>
            <div class="col-xs-4"  >
                 <div class="input-group" style="float:left;width:60%;padding-right: 5px;">
                    <input class="form-control input-mask-date" type="text" id="piciKeyword" placeholder="批次号检索" />
                    <span class="input-group-btn">
                        <button class="btn btn-sm btn-default searchBtn" type="button" id="searchpiciBtn">
                            <i class="ace-icon fa fa-search bigger-110"></i>
                            搜索
                        </button>
                    </span>
                </div>
                <button class="btn btn-sm btn-info mStatus" type="button" id="SortBtn" style="font-size: 10px;">排序 </button>
            </div>
        </div>
        <div class="row">
            <div class="col-xs-6 table-responsive" style="width:100%;padding-right: 2px">
                <table id="vehicle-table" class="table table-bordered" onselectstart="return true;">
                    <thead>
                        <tr>
                            <th class="detail-col" style="min-width: 30px"><span class="th">序号</span></th>
                            <th class="detail-col" style="min-width: 80px"><span class="th">物流公司编号</span></th>
                            <th class="detail-col" style="min-width: 150px"><span class="th">物流公司名称</span></th>
                            <th class="detail-col" style="min-width: 80px"><span class="th">车牌号</span></th>
                            <th class="detail-col" style="min-width: 140px"><span class="th">配车时间</span></th>
                            <th class="detail-col" style="min-width: 140px"><span class="th">时长(分)</span></th>
                            <th class="detail-col" style="min-width: 140px"><span class="th">批次号</span></th>
                            <th class="detail-col" style="min-width: 100px"><span class="th">物料名称</span></th>
                            <th class="detail-col" style="min-width: 120px"><span class="th">规格型号</span></th>
                            <th class="detail-col" style="min-width: 120px"><span class="th">夹纸覆膜</span></th>
                            <th class="detail-col" style="min-width: 80px"><span class="th">尺寸</span></th>
                            <th class="detail-col" style="min-width: 80px"><span class="th">外包装尺寸</span></th>
                            <th class="detail-col" style="min-width: 80px"><span class="th">货位</span></th>
                            <th class="detail-col" style="min-width: 50px"><span class="th">毛重</span></th>
                            <th class="detail-col" style="min-width: 50px"><span class="th">净重</span></th>
                        </tr>
                    </thead>
                    <tbody data-bind="foreach: list">
                        <tr class="mitem" data-bind="attr: {'data-indx': indx,class:fkStatus>0?'table-dark mitem':'mitem table-hover',title:fkStatus>0?'车辆已发卡':''}" >
                            <td class="center">
                                <span data-bind="text: $index() + 1"></span>
                            </td>
                            <td data-bind="text: mxwlgsNo"></td>
                            <td data-bind="text: mxwlgsName"></td>
                            <td data-bind="text: tdmx_fdcph"></td>
                            <td data-bind="text: ctime"></td>
                            <td data-bind="text: timeMinus"></td>
                            <td data-bind="text: tdmx_pch"></td>
                            <td data-bind="text: tdmx_wlmc"></td>
                            <td data-bind="text: tdmx_ggxh"></td>
                            <td data-bind="text: tdmx_zpbz"></td>
                            <td data-bind="text: tdmx_cc"></td>
                            <td data-bind="text: tdmx_wbzcc"></td>
                            <td data-bind="text: tdmx_hwmc"></td>
                            <td data-bind="text: tdmx_mz"></td>
                            <td data-bind="text: tdmx_jz"></td>
                        </tr>
                    </tbody>
                </table>
            </div>
        </div>
 
        <div class="modal fade" id="companyModal">
            <div class="modal-dialog modal-lg">
                <div class="modal-content">
                    <div class="modal-header">
                        <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
                        <h4 class="modal-title" style="display: inline-block; float: left;line-height: 34px;">选择物流公司</h4>
                        <div class="col-xs-4">
                            <div class="input-group">
                                <input class="form-control input-mask-date" type="text" id="companyKeyword" placeholder="输入物流公司检索" />
                                <span class="input-group-btn">
                                    <button class="btn btn-sm btn-default searchBtn" type="button" id="searchVehicleBtn">
                                        <i class="ace-icon fa fa-search bigger-110"></i>
                                        搜索
                                    </button>
                                </span>
                            </div>
                        </div>
                    </div>
                    <div class="modal-body table-responsive" style="max-height: 400px; overflow-Y: scroll">
                        <table class="table table-bordered table-hover table-striped">
                            <thead>
                            <tr>
                                <th class="detail-col" style="min-width: 48px">序号</th>
                                <th style="min-width: 100px">编号</th>
                                <th style="min-width: 100px">名称</th>
                                <th style="min-width: 150px">备注</th>
                                <th style="min-width: 100px">自提权限</th>
                                <th style="min-width: 200px">业务厂区</th>
                            </tr>
                            </thead>
                            <tbody data-bind="foreach: vList">
                            <tr class="vitem" data-bind="attr: {'data-indx': indx}">
                                <td class="center">
                                    <span data-bind="text: $index() + 1"></span>
                                </td>
                                <td data-bind="text: companyNo"></td>
                                <td data-bind="text: name"></td>
                                <td data-bind="text: note"></td>
                                <td data-bind="text: hasSPR?'有':'无'"></td>
                                <td data-bind="text: ywdyNames"></td>
                            </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="modal-footer">
                        <!--  <button type="button" class="btn btn-primary btn-sm" id="refreshVehicleBtn" style="float: left">
                             <i class="ace-icon fa fa-refresh bigger-110"></i>
                             更新车辆状态
                         </button> -->
                        <button type="button" class="btn btn-default btn-sm" data-dismiss="modal">取消</button>
                        <button type="button" class="btn btn-primary btn-sm" id="companyBindBtn">确定选择</button>
                    </div>
                </div>
            </div>
        </div>
 
        <div class="modal fade" id="modal">
            <div class="modal-dialog">
                <div class="modal-content">
                    <div class="modal-header">
                        <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
                        <h4 class="modal-title">排序</h4>
                    </div>
                    <div class="modal-body" style="overflow: hidden">
                        <table class="table table-bordered table-hover table-striped" style="width: 30%; float: left">
                            <thead>
                                <tr>
                                    <th>选择</th>
                                </tr>
                            </thead>
                            <tbody data-bind="foreach: oList">
                                <tr data-bind="visible: visible">
                                    <td>
                                        <a href="javascript:;" data-bind="text: key, click: $parent.addSort"></a>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                        <table class="table  table-bordered table-hover table-striped" style="width: 70%; float: left">
                            <thead>
                                <tr>
                                    <th>规则</th>
                                    <th>升序</th>
                                    <th>降序</th>
                                </tr>
                            </thead>
                            <tbody data-bind="foreach: soList">
                                <tr>
                                    <td>
                                        <a href="javascript:;" data-bind="text: key, click: $parent.removeSort"></a>
                                    </td>
                                    <td>
                                        <input type="radio" value="asc" data-bind="checked: result, attr: {name: target}"/>
                                    </td>
                                    <td>
                                        <input type="radio" value="desc" data-bind="checked: result, attr: {name: target}"/>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="modal-footer">
                        <button type="button" class="btn btn-default btn-sm" ddata-dismiss="modal" id="clearSortBtn">清除</button>
                        <button type="button" class="btn btn-primary btn-sm" data-dismiss="modal" id="searchSortBtn" >确定</button>
                    </div>
                </div>
            </div>
        </div>
        <div id="dialog-confirm" class="hide">
            <div class="alert alert-info bigger-110" id="modalContent">
            </div>
        </div>
    </ui:define>
    <ui:define name="myscript">
        <script src="js/billofLadingSplit.js?v=#{sessionScope.login_page_vesion}"></script>
    </ui:define>
</ui:composition>
</html>