Blame view

src/main/resources/templates/config/receiptPreference/list.html 40.3 KB
1
2
3
<!DOCTYPE HTML>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<meta charset="utf-8">
4
<head th:include="include :: header">
5
6
7
8
    <style>
        .layui-input-block, .layui-input-inline{position: relative;}
        .layui-input-block{margin-left: 110px; min-height: 36px;}
    </style>
9
</head>
10
11
12
13
14
<body class="gray-bg">
<div class="container-div">
    <div class="row">
        <div class="col-sm-12 select-info">
            <form id="formId">
15
16
17
                <div class="box_all">
                    <div class="select-list box2">
                        <ul>
18
                            <!--
19
20
                            <li>
                                <label>仓库:</label>
21
22
                                    <select name="warehousecode" id="warehouse" >
                                    </select>
23
                            </li>
24
                            -->
25
26
27
28
29
30
31
32
                            <li>
                                <label>首选项代码:</label>
                                <input type="text" name="code"/>
                            </li>
                            <li>
                                <label>首选项名字:</label>
                                <input type="text" name="name"/>
                            </li>
33
                            <li class="time">
34
35
                                <label>创建时间:</label>
                                <input type="text" class="time-input" id="startTime" placeholder="开始时间"
36
                                       name="beginCreated"  />
37
38
                                <span>-</span>
                                <input type="text" class="time-input" id="endTime" placeholder="结束时间"
39
                                       name="endCreated"/>
40
                            </li>
41
42
43
44
45
                            <!--<li>
                                <label>入库流程:</label>
                                <input type="text" name="receivingflow"/>
                            </li>
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
                            <li>
                                <label>自动生成托盘号:</label>
                                <input type="text" name="autoassignlpn"/>
                            </li>
                            <li>
                                <label>允许超收:</label>
                                <select name="allowoverreceiving">
                                    <option value="">所有</option>
                                    <option value="-1">代码生成请选择字典属性</option>
                                </select>
                            </li>
                            <li>
                                <label>允许超收范围:</label>
                                <input type="text" name="allowoverreceivingqty"/>
                            </li>
                            <li>
                                <label>自动定位:</label>
63
64
65
66
                                <select name="autolocate">
                                    <option value="0">否</option>
                                    <option value="-1">是</option>
                                </select>
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
                            </li>
                            <li>
                                <label>RF显示未收数量:</label>
                                <input type="text" name="showopenqty"/>
                            </li>
                            <li>
                                <label>RF组车收货:</label>
                                <input type="text" name="groupputaway"/>
                            </li>
                            <li>
                                <label>人工组盘:</label>
                                <input type="text" name="manuallybuildlpn"/>
                            </li>
                            <li>
                                <label>定位规则:</label>
                                <input type="text" name="locationrule"/>
                            </li>
                            <li>
                                <label>空库位规则:</label>
                                <input type="text" name="emptylocrule"/>
                            </li>
                            <li>
                                <label>RF逐件收货:</label>
90
91
92
93
                                <select name="checkinbypiece">
                                    <option value="0">否</option>
                                    <option value="-1">是</option>
                                </select>
94
95
96
                            </li>
                            <li>
                                <label>RF自动提交收货:</label>
97
98
99
100
                                <select name="piececonfirm">
                                    <option value="0">否</option>
                                    <option value="-1">是</option>
                                </select>
101
102
103
104
                            </li>
                            <li>
                                <label>abc分类:</label>
                                <select name="allowoverreceiving">
105
106
                                    <option value="0">否</option>
                                    <option value="-1">是</option>
107
108
109
                                </select>
                            </li>
                            <li>
110
111
                                <label>保质期(天):</label>
                                <input type="number" name="daystoexpire"/>
112
113
114
                            </li>
                            <li>
                                <label>临期预警:</label>
115
116
117
118
                                <select name="expiringdays">
                                    <option value="0">否</option>
                                    <option value="-1">是</option>
                                </select>
119
120
121
                            </li>
                            <li>
                                <label>收货预警(天):</label>
122
                                <input type="number" name="minshelflifedays"/>
123
124
125
                            </li>
                            <li>
                                <label>RF快速上架:</label>
126
127
128
129
                                <select name="allowquickputaway">
                                    <option value="0">否</option>
                                    <option value="-1">是</option>
                                </select>
130
131
132
133
134
135
136
                            </li>
                            <li>
                                <label>属性模板:</label>
                                <input type="text" name="attributetemplatecode"/>
                            </li>
                            <li>
                                <label>快速入库:</label>
137
138
139
140
                                <select name="usequickcheckin">
                                    <option value="0">否</option>
                                    <option value="-1">是</option>
                                </select>
141
142
143
144
145
146
147
                            </li>
                            <li>
                                <label>创建用户:</label>
                                <input type="text" name="createdby"/>
                            </li>
                            <li>
                                <label>更新用户:</label>
148
149
150
151
                                <select name="lastupdatedby">
                                    <option value="0">否</option>
                                    <option value="-1">是</option>
                                </select>
152
                            </li>-->
153
154
                            <p style=" float:right;text-align: right; padding:5px 50px 0 0">
155
156
157
158
159
                                <a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i
                                        class="fa fa-search"></i>&nbsp;搜索</a>
                                <a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i
                                        class="fa fa-refresh"></i>&nbsp;重置</a>
                            </p>
160
                            <div class="div1" style="clear: both;width:16px;margin: auto"><img src="../img/down.png" onClick="test(this)"><!--this 指 img 对象 --> </div>
161
162
                        </ul>
                    </div>
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
                    <!--下拉-->
                    <div class="clink_more" id="div2" style="display:none;">
                        <!--分组-->
                        <div class="more_input">
                            <div class="col-lg-12">
                                <fieldset class="wms-field-title" style="margin-top: 20px;">
                                    <legend style="width:auto;padding: 0;margin-bottom: 10px;font-size: 16px;line-height: inherit;color: #333;border: 0;">通用</legend>
                                </fieldset>
                            </div>
                            <div class="col-lg-12 input_list">
                                <ul>
                                    <li>
                                        <label>入库流程:</label>
                                        <select name="checkinbypiece">
                                            <option value="0"></option>
                                            <option value="-1"></option>
                                        </select>
                                    </li>
                                </ul>
                                <ul>
                                    <li>
                                        <div class="col-lg-4"><label>自动生成托盘号:</label></div>
                                        <div class="col-lg-8">
                                            <div class="onoffswitch">
187
188
                                                <input type="checkbox" class="onoffswitch-checkbox" id="autoassignlpn" name="autoassignlpn" checked="checked">
                                                <label class="onoffswitch-label" for="autoassignlpn">
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
                                                    <span class="onoffswitch-inner"></span>
                                                    <span class="onoffswitch-switch"></span>
                                                </label>
                                            </div>
                                        </div>
                                    </li>
                                    <li>
                                        <label>托盘生成号:</label>
                                        <input type="text" name="autoassignlpn" placeholder="on 就调出正则表达式" />
                                    </li>
                                </ul>
                                <ul>
                                    <li>
                                        <div class="col-lg-4"><label>允许超收:</label></div>
                                        <div class="col-lg-8">
                                            <div class="onoffswitch">
205
206
                                                <input type="checkbox" class="onoffswitch-checkbox" id="allowoverreceiving" name="allowoverreceiving" checked="checked">
                                                <label class="onoffswitch-label" for="allowoverreceiving">
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
                                                    <span class="onoffswitch-inner"></span>
                                                    <span class="onoffswitch-switch"></span>
                                                </label>
                                            </div>
                                        </div>
                                    </li>
                                    <li>
                                        <label>允许超收范围:</label>
                                        <input type="text" name="allowoverreceivingqty" placeholder="%" />
                                    </li>
                                </ul>
                                <ul>
                                    <li>
                                        <div class="col-lg-4"><label>自动定位:</label></div>
                                        <div class="col-lg-8">
                                            <div class="onoffswitch">
223
224
                                                <input type="checkbox" class="onoffswitch-checkbox" id="autolocate"  name="autolocate" checked="checked">
                                                <label class="onoffswitch-label" for="autolocate">
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
                                                    <span class="onoffswitch-inner"></span>
                                                    <span class="onoffswitch-switch"></span>
                                                </label>
                                            </div>
                                        </div>
                                    </li>
                                    <li>
                                        <label>定位规则:</label>
                                        <select name="locationrule">
                                            <option value="0"></option>
                                            <option value="-1"></option>
                                        </select>
                                    </li>
                                    <li>
                                        <label>容器选择规则:</label>
                                        <select name="checkinbypiece">
                                            <option value="0"></option>
                                            <option value="-1"></option>
                                        </select>
                                    </li>
                                </ul>
                                <ul>
                                    <li>
                                        <div class="col-lg-4"><label>快速入库:</label></div>
                                        <div class="col-lg-8">
                                            <div class="onoffswitch">
251
252
                                                <input type="checkbox" class="onoffswitch-checkbox" id="usequickcheckin" name="usequickcheckin" checked="checked">
                                                <label class="onoffswitch-label" for="usequickcheckin">
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
                                                    <span class="onoffswitch-inner"></span>
                                                    <span class="onoffswitch-switch"></span>
                                                </label>
                                            </div>
                                        </div>
                                    </li>
                                </ul>
                            </div>
                        </div>

                        <div class="more_input">
                            <div class="col-lg-12">
                                <fieldset class="wms-field-title" style="margin-top: 20px;">
                                    <legend style="width:auto;padding: 0;margin-bottom:10px;font-size: 16px;line-height: inherit;color: #333;border: 0;">RF</legend>
                                </fieldset>
                            </div>
                            <div class="col-lg-12 input_list">
                                <ul>
                                    <li>
                                        <div class="col-lg-4"><label>组车收货:</label></div>
                                        <div class="col-lg-8">
                                            <div class="onoffswitch">
275
276
                                                <input type="checkbox" class="onoffswitch-checkbox" id="groupputaway"  name="groupputaway" checked="checked">
                                                <label class="onoffswitch-label" for="groupputaway">
277
278
279
280
281
282
283
284
285
286
                                                    <span class="onoffswitch-inner"></span>
                                                    <span class="onoffswitch-switch"></span>
                                                </label>
                                            </div>
                                        </div>
                                    </li>
                                    <li>
                                        <div class="col-lg-4"><label>显示未收货数量:</label></div>
                                        <div class="col-lg-8">
                                            <div class="onoffswitch">
287
288
                                                <input type="checkbox" class="onoffswitch-checkbox" id="showopenqty"  name="showopenqty" checked="checked">
                                                <label class="onoffswitch-label" for="showopenqty">
289
290
                                                    <span class="onoffswitch-inner"></span>
                                                    <span class="onoffswitch-switch"></span>
291
                                                </label>
292
293
294
295
296
297
298
                                            </div>
                                        </div>
                                    </li>
                                    <li>
                                        <div class="col-lg-4"><label>人工组盘:</label></div>
                                        <div class="col-lg-8">
                                            <div class="onoffswitch">
299
300
                                                <input type="checkbox" class="onoffswitch-checkbox" id="manuallybuildlpn"  name="manuallybuildlpn" checked="checked">
                                                <label class="onoffswitch-label" for="manuallybuildlpn">
301
302
303
304
305
306
307
308
309
310
                                                    <span class="onoffswitch-inner"></span>
                                                    <span class="onoffswitch-switch"></span>
                                                </label>
                                            </div>
                                        </div>
                                    </li>
                                    <li>
                                        <div class="col-lg-4"><label>逐件收货:</label></div>
                                        <div class="col-lg-8">
                                            <div class="onoffswitch">
311
312
                                                <input type="checkbox" class="onoffswitch-checkbox" id="checkinbypiece"  name="checkinbypiece" checked="checked">
                                                <label class="onoffswitch-label" for="checkinbypiece">
313
314
315
316
317
318
319
320
321
322
                                                    <span class="onoffswitch-inner"></span>
                                                    <span class="onoffswitch-switch"></span>
                                                </label>
                                            </div>
                                        </div>
                                    </li>
                                    <li>
                                        <div class="col-lg-4"><label>自动提交(平库):</label></div>
                                        <div class="col-lg-8">
                                            <div class="onoffswitch">
323
                                                <input type="checkbox" class="onoffswitch-checkbox" id="status"  name="status" checked="checked">
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
                                                <label class="onoffswitch-label" for="status">
                                                    <span class="onoffswitch-inner"></span>
                                                    <span class="onoffswitch-switch"></span>
                                                </label>
                                            </div>
                                        </div>
                                    </li>

                                </ul>
                            </div>
                        </div>
                        <div class="more_input">
                            <div class="col-lg-12">
                                <fieldset class="wms-field-title" style="margin-top: 20px;">
                                    <legend style="width:auto;padding: 0;margin-bottom: 10px;font-size: 16px;line-height: inherit;color: #333;border: 0;">物料</legend>
                                </fieldset>
                            </div>
                            <div class="col-lg-12 input_list">
                                <ul>
                                    <li>
                                        <div class="col-lg-4"><label>ABC分类:</label></div>
                                        <div class="col-lg-8">
                                            <div class="onoffswitch">
347
348
                                                <input type="checkbox" class="onoffswitch-checkbox"  id="classification" name="classification" checked="checked">
                                                <label class="onoffswitch-label" for="classification">
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
                                                    <span class="onoffswitch-inner"></span>
                                                    <span class="onoffswitch-switch"></span>
                                                </label>
                                            </div>
                                        </div>
                                    </li>
                                    <li>
                                        <label>属性模板:</label>
                                        <select name="checkinbypiece">
                                            <option value="0"></option>
                                            <option value="-1"></option>
                                        </select>
                                    </li>
                                </ul>
                                <ul>
                                    <li>
                                        <label>保质期(天):</label>
                                        <input type="text" name="autoassignlpn"/>
                                    </li>
                                    <li>
                                        <label>临期预警(天):</label>
                                        <input type="text" name="autoassignlpn"/>
                                    </li>
                                    <li>
                                        <label>收货预警(天):</label>
                                        <input type="text" name="autoassignlpn"/>
                                    </li>
                                </ul>
                            </div>
                        </div>
                        <!--分组//-->
                    </div>
                    <!--下拉//-->
382
                </div>
383
                <!--<div class="boxdown"></div>-->
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
            </form>
        </div>
        <div class="btn-group hidden-xs" id="toolbar" role="group">
            <a class="btn btn-outline btn-success btn-rounded" onclick="$.operate.add()"
               shiro:hasPermission="config:receiptPreference:add">
                <i class="fa fa-plus"></i> 新增
            </a>
            <a class="btn btn-outline btn-primary " onclick="$.operate.editUrl()"
               shiro:hasPermission="config:receiptPreference:edit">
                <i class="fa fa-edit"></i> 修改
            </a>
            <a class="btn btn-outline btn-danger btn-rounded " onclick="$.operate.batRemove()"
               shiro:hasPermission="config:receiptPreference:remove">
                <i class="fa fa-trash-o"></i> 删除
            </a>
        </div>

        <div class="col-sm-12 select-info table-striped">
402
            <table id="bootstrap-table" data-mobile-responsive="true" class="table table-bordered table-hover text-nowrap"></table>
403
404
405
406
407
        </div>
    </div>

</div>
<div th:include="include :: footer"></div>
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
<script th:inline="javascript">
    var editFlag = [[${@permission.hasPermi('task:receiptPreference:edit')}]];
    var removeFlag = [[${@permission.hasPermi('task:receiptPreference:remove')}]];
    var prefix = ctx + "config/receiptPreference"

    $(function () {
        var options = {
            url: prefix + "/list",
            createUrl: prefix + "/add",
            updateUrl: prefix + "/edit/{id}",
            removeUrl: prefix + "/remove",
            modalName: "入库首选",
            columns: [{
                checkbox: true
            },
                {
                    field: 'id',
                    title: 'ID',
                    visible: false
                },
                {
                    field: 'warehousecode',
                    title: '仓库'
                },
433
434
435
436
437
438
439
440
441
                // {
                //     field: 'warehousecode',
                //     title: '仓库',
                //     width: "10%",
                //     formatter: function (value, row, index) {
                //         var data = [{ index: index, warehousecode: value }];
                //         return $("#javaTypeTpl").tmpl(data).html();
                //     }
                // },
442
443
444
445
                {
                    field: 'code',
                    title: '首选项代码'
                },
446
447
448
449
                // {
                //     field: 'name',
                //     title: '首选项名字'
                // },
450
451
                {
                    field: 'name',
452
453
454
455
456
457
                    title: '首选项名字',
                    width: "10%",
                    formatter: function (value, row, index) {
                        var html = $.common.sprintf("<input class='form-control' type='text' name='columns[%s].columnComment' value='%s'>", index, $.common.nullToStr(value));
                        return html;
                    }
458
                },
459
460
461
462
                // {
                //     field: 'receivingflow',
                //     title: '入库流程'
                // },
463
                {
464
                    field: 'receivingFlow',
465
466
467
468
469
470
                    title: '入库流程',
                    width: "10%",
                    formatter: function (value, row, index) {
                        var html = $.common.sprintf("<input class='form-control' type='text' name='columns[%s].columnComment' value='%s'>", index, $.common.nullToStr(value));
                        return html;
                    }
471
                },
472
473
474
475
                // {
                //     field: 'autoassignlpn',
                //     title: '自动生成托盘号'
                // },
476
477
                {
                    field: 'autoassignlpn',
478
479
480
481
482
483
                    title: '自动生成托盘号',
                    width: "10%",
                    formatter: function (value, row, index) {
                        var html = $.common.sprintf("<input class='form-control' type='text' name='columns[%s].columnComment' value='%s'>", index, $.common.nullToStr(value));
                        return html;
                    }
484
                },
485
486
487
488
                // {
                //     field: 'allowoverreceiving',
                //     title: '允许超收'
                // },
489
490
                {
                    field: 'allowoverreceiving',
491
492
493
494
495
496
                    title: '允许超收',
                    width: "10%",
                    formatter: function (value, row, index) {
                        var html = $.common.sprintf("<input class='form-control' type='text' name='columns[%s].columnComment' value='%s'>", index, $.common.nullToStr(value));
                        return html;
                    }
497
                },
498
499
500
501
                // {
                //     field: 'allowoverreceivingqty',
                //     title: '允许超收范围'
                // },
502
503
                {
                    field: 'allowoverreceivingqty',
504
505
506
507
508
509
                    title: '允许超收范围',
                    width: "10%",
                    formatter: function (value, row, index) {
                        var html = $.common.sprintf("<input class='form-control' type='text' name='columns[%s].columnComment' value='%s'>", index, $.common.nullToStr(value));
                        return html;
                    }
510
                },
511
512
513
514
                // {
                //     field: 'autolocate',
                //     title: '自动定位'
                // },
515
516
                {
                    field: 'autolocate',
517
518
519
520
521
522
523
                    title: '自动定位',
                    width: "5%",
                    formatter: function (value, row, index) {
                        var isCheck = value == 1 ? 'checked' : '';
                        var html = $.common.sprintf("<label class='check-box'><input type='checkbox' name='columns[%s].isInsert' value='1' %s></label>", index, isCheck);
                        return html;
                    }
524
                },
525
526
527
528
                // {
                //     field: 'showopenqty',
                //     title: 'RF显示未收数量'
                // },
529
530
                {
                    field: 'showopenqty',
531
532
533
534
535
536
                    title: 'RF显示未收数量',
                    width: "10%",
                    formatter: function (value, row, index) {
                        var html = $.common.sprintf("<input class='form-control' type='text' name='columns[%s].columnComment' value='%s'>", index, $.common.nullToStr(value));
                        return html;
                    }
537
                },
538
539
540
541
542

                // {
                //     field: 'groupputaway',
                //     title: 'RF组车收货'
                // },
543
544
                {
                    field: 'groupputaway',
545
546
547
548
549
550
551
                    title: 'RF组车收货',
                    width: "5%",
                    formatter: function (value, row, index) {
                        var isCheck = value == 1 ? 'checked' : '';
                        var html = $.common.sprintf("<label class='check-box'><input type='checkbox' name='columns[%s].isInsert' value='1' %s></label>", index, isCheck);
                        return html;
                    }
552
                },
553
554
555
556
                // {
                //     field: 'manuallybuildlpn',
                //     title: '人工组盘'
                // },
557
558
                {
                    field: 'manuallybuildlpn',
559
560
561
562
563
564
                    title: '人工组盘',
                    width: "10%",
                    formatter: function (value, row, index) {
                        var html = $.common.sprintf("<input class='form-control' type='text' name='columns[%s].columnComment' value='%s'>", index, $.common.nullToStr(value));
                        return html;
                    }
565
                },
566
567
568
569
                // {
                //     field: 'locationrule',
                //     title: '定位规则'
                // },
570
571
                {
                    field: 'locationrule',
572
573
574
575
576
577
                    title: '定位规则',
                    width: "10%",
                    formatter: function (value, row, index) {
                        var html = $.common.sprintf("<input class='form-control' type='text' name='columns[%s].columnComment' value='%s'>", index, $.common.nullToStr(value));
                        return html;
                    }
578
                },
579
580
581
582
                // {
                //     field: 'emptylocrule',
                //     title: '空库位规则'
                // },
583
584
                {
                    field: 'emptylocrule',
585
586
587
588
589
590
                    title: '空库位规则',
                    width: "10%",
                    formatter: function (value, row, index) {
                        var html = $.common.sprintf("<input class='form-control' type='text' name='columns[%s].columnComment' value='%s'>", index, $.common.nullToStr(value));
                        return html;
                    }
591
                },
592
593
594
595
                // {
                //     field: 'checkinbypiece',
                //     title: 'RF逐件收货'
                // },
596
597
                {
                    field: 'checkinbypiece',
598
599
600
601
602
603
604
                    title: 'RF逐件收货',
                    width: "5%",
                    formatter: function (value, row, index) {
                        var isCheck = value == 1 ? 'checked' : '';
                        var html = $.common.sprintf("<label class='check-box'><input type='checkbox' name='columns[%s].isInsert' value='1' %s></label>", index, isCheck);
                        return html;
                    }
605
                },
606
607
608
609
                // {
                //     field: 'piececonfirm',
                //     title: 'RF自动提交收货'
                // },
610
611
                {
                    field: 'piececonfirm',
612
613
614
615
616
617
618
                    title: 'RF自动提交收货',
                    width: "5%",
                    formatter: function (value, row, index) {
                        var isCheck = value == 1 ? 'checked' : '';
                        var html = $.common.sprintf("<label class='check-box'><input type='checkbox' name='columns[%s].isInsert' value='1' %s></label>", index, isCheck);
                        return html;
                    }
619
                },
620
621
622
623
                // {
                //     field: 'abcclass',
                //     title: 'abc分类 0 否  1是'
                // },
624
625
                {
                    field: 'abcclass',
626
627
628
629
630
631
632
                    title: 'abc分类',
                    width: "5%",
                    formatter: function (value, row, index) {
                        var isCheck = value == 1 ? 'checked' : '';
                        var html = $.common.sprintf("<label class='check-box'><input type='checkbox' name='columns[%s].isInsert' value='1' %s></label>", index, isCheck);
                        return html;
                    }
633
                },
634
635
636
637
                // {
                //     field: 'daystoexpire',
                //     title: '保质期'
                // },
638
639
                {
                    field: 'daystoexpire',
640
641
642
643
644
645
                    title: '保质期',
                    width: "10%",
                    formatter: function (value, row, index) {
                        var html = $.common.sprintf("<input class='form-control' type='text' name='columns[%s].columnComment' value='%s'>", index, $.common.nullToStr(value));
                        return html;
                    }
646
                },
647
648
649
650
                // {
                //     field: 'expiringdays',
                //     title: '临期预警'
                // },
651
652
                {
                    field: 'expiringdays',
653
654
655
656
657
658
659
                    title: '临期预警',
                    width: "5%",
                    formatter: function (value, row, index) {
                        var isCheck = value == 1 ? 'checked' : '';
                        var html = $.common.sprintf("<label class='check-box'><input type='checkbox' name='columns[%s].isInsert' value='1' %s></label>", index, isCheck);
                        return html;
                    }
660
                },
661
662
663
664
                // {
                //     field: 'minshelflifedays',
                //     title: '收货预警(天)'
                // },
665
666
                {
                    field: 'minshelflifedays',
667
668
669
670
671
672
                    title: '收货预警(天)',
                    width: "10%",
                    formatter: function (value, row, index) {
                        var html = $.common.sprintf("<input class='form-control' type='text' name='columns[%s].columnComment' value='%s'>", index, $.common.nullToStr(value));
                        return html;
                    }
673
                },
674
675
676
677
                // {
                //     field: 'allowquickputaway',
                //     title: 'RF快速上架'
                // },
678
679
                {
                    field: 'allowquickputaway',
680
681
682
683
684
685
686
                    title: 'RF快速上架',
                    width: "5%",
                    formatter: function (value, row, index) {
                        var isCheck = value == 1 ? 'checked' : '';
                        var html = $.common.sprintf("<label class='check-box'><input type='checkbox' name='columns[%s].isInsert' value='1' %s></label>", index, isCheck);
                        return html;
                    }
687
                },
688
689
690
691
                // {
                //     field: 'attributetemplatecode',
                //     title: '属性模板'
                // },
692
693
                {
                    field: 'attributetemplatecode',
694
695
696
697
698
699
                    title: '属性模板',
                    width: "10%",
                    formatter: function (value, row, index) {
                        var html = $.common.sprintf("<input class='form-control' type='text' name='columns[%s].columnComment' value='%s'>", index, $.common.nullToStr(value));
                        return html;
                    }
700
                },
701
702
703
704
                // {
                //     field: 'usequickcheckin',
                //     title: '快速入库'
                // },
705
706
                {
                    field: 'usequickcheckin',
707
708
709
710
711
712
                    title: '快速入库',
                    width: "10%",
                    formatter: function (value, row, index) {
                        var html = $.common.sprintf("<input class='form-control' type='text' name='columns[%s].columnComment' value='%s'>", index, $.common.nullToStr(value));
                        return html;
                    }
713
714
715
716
717
                },
                {
                    field: 'created',
                    title: '创建时间'
                },
718
719
720
721
                // {
                //     field: 'createdby',
                //     title: '创建用户'
                // },
722
723
                {
                    field: 'createdby',
724
725
726
727
728
729
                    title: '创建用户',
                    width: "10%",
                    formatter: function (value, row, index) {
                        var html = $.common.sprintf("<input class='form-control' type='text' name='columns[%s].columnComment' value='%s'>", index, $.common.nullToStr(value));
                        return html;
                    }
730
                },
731
732
733
734
735
736
737
738
                // {
                //     field: 'lastupdated',
                //     title: '创建时间'
                // },
                // {
                //     field: 'lastupdatedby',
                //     title: '更新用户'
                // },
739
740
                {
                    field: 'lastupdatedby',
741
742
743
744
745
746
747
                    title: '更新用户',
                    width: "5%",
                    formatter: function (value, row, index) {
                        var isCheck = value == 1 ? 'checked' : '';
                        var html = $.common.sprintf("<label class='check-box'><input type='checkbox' name='columns[%s].isInsert' value='1' %s></label>", index, isCheck);
                        return html;
                    }
748
749
750
751
752
753
754
755
756
757
758
759
760
                },

                {
                    title: '操作',
                    align: 'center',
                    formatter: function (value, row, index) {
                        var actions = [];

                        return actions.join('');
                    }
                }]
        };
        $.table.init(options);
761
762
763
764
765
766
767
768
769
770
771
772
        var a =$(".box2 ul li:gt(3):not(:last)");
        a.hide();
        $(".boxdown").click(function(){
            if(a.is(':visible')){
                a.slideUp('fast');
                $(this).removeClass('up');
            }else{
                a.slideDown('fast').show();
                $(this).addClass('up');
            }
        });
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791


            $.ajax({
                url: "../getWarehouseByUserCode",
                type: 'post',
                dataType: "json",
                data: {
                    username: "fxh"
                },
                success: function (value) {
                    // console.log(value.data);
                    $("#warehouse").contents().remove();
                    if (value != null && value.data.length >= 1)
                        for (var i = 0; i < value.data.length; i++) {
                            $('<option value=' + value.data[i].id + ' code=' + value.data[i].code + '>' + value.data[i].name + '</option>').appendTo('#warehouse');
                        }
                }
            })
792
    });
793
    
794
</script>
795
796
797
798
799
800
801
802
803
804
805
806
<script type="text/javascript">
    function test(obj){
        var div1=document.getElementById("div2");
        if(div1.style.display=="block"){
            div1.style.display="none";
            obj.src="../img/down.png";
        }else{
            div1.style.display="block";
            obj.src="../img/up.png";
        }
    }
</script>
807
808
</body>
</html>