Administrator
2023-04-21 195945efc5db921a4c9eb8cf9421c172273293f5
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
<?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{
            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 {
            padding: 0
        }
        .th {
            position: relative;
            width: 100%;
            display: block;
            background: #F2F2F2;
            border: 1px solid #DDDDDD;
            z-index: 1;
            border-left: none;
        }
        </style>
    </ui:define>
    <ui:define name="acontent">
        <input type="hidden" data-bind="value: decodeURI('#{param.numberplates}')" id="_numberplates" />
        <input type="hidden" value="#{param.id}" id="_id" />
        <input type="hidden" value="#{param.bsNo}" id="_bsNo" />
        <div class="row">
            <!-- <div class="col-xs-5">
                <div class="input-group">
                    <input class="form-control input-mask-date" type="text" value="#{param.keyword}" id="keyword" placeholder="输入名称搜索" data-bind="value: keyword, valueUpdate: 'afterkeydown'" />
                    <span class="input-group-btn">
                        <button class="btn btn-sm btn-default" type="button" id="searchBtn">
                            <i class="ace-icon fa fa-search bigger-110"></i>
                            搜索
                        </button>
                    </span>
                </div>
            </div>
            <div class="col-xs-7" style="text-align: right;">
                <button class="btn btn-sm btn-info" type="button" id="newObj">
                    <i class="ace-icon fa fa-plus bigger-110"></i>
                    新运输公司
                </button>
            </div> -->
            <div class="col-xs-9">
                <h3 style="margin: 0"><span data-bind="text: decodeURI('#{param.numberplates}')"></span>的已配车物资,总数量:<span data-bind="text: list().length"></span>,总毛重:<span data-bind="text: totalMZ"></span>,总净重:<span data-bind="text: totalJZ"></span>,载重:<span data-bind="text: vehicleLoadweight"></span>,超重:<span data-bind="text: (totalMZ() - vehicleLoadweight()) > 0 ? (totalMZ() - vehicleLoadweight()) : 0"></span>。</h3>
            </div>
            <div class="col-xs-3" style="text-align: right;">
                <button class="btn btn-sm btn-info" type="button" id="addCarPersons">
                    <i class="ace-icon fa fa-plus center bigger-110"></i>  添加随行人员
                </button>
                <button class="btn btn-sm btn-info" type="button" id="remark" data-bind="click:addRemark">
                    备注
                </button>
                <button class="btn btn-sm btn-info" type="button" id="printBtn">
                    <i class="ace-icon fa fa-print bigger-110"></i>
                    打印
                </button>
            </div>
            <div class="col-xs-12 table-responsive" style="margin-top: 8px;">
                <table id="simple-table" class="table  table-bordered table-hover table-striped">
                    <thead>
                        <tr>
                            <th class="detail-col" style="min-width: 48px"><span class="th">序号</span></th>
                            <th style="min-width: 70px"><span class="th">删除</span></th>
                            <th style="min-width: 140px"><span class="th">提单编号</span></th>
                            <th style="min-width: 120px;"><span class="th">物料编号</span></th>
                            <th style="min-width: 100px;"><span class="th">物料名称</span></th>
                            <th style="min-width: 100px"><span class="th">规格型号</span></th>
                            <th style="min-width: 100px"><span class="th">夹纸覆膜</span></th>
                            <th style="min-width: 100px"><span class="th">尺寸</span></th>
                            <th style="min-width: 100px"><span class="th">货位</span></th>
                            <th style="min-width: 70px"><span class="th">毛重</span></th>
                            <th style="min-width: 70px"><span class="th">净重</span></th>
                            <th style="min-width: 250px"><span class="th">批次号</span></th>
                            <!-- <th style="min-width: 250px"><span class="th">收货单位</span></th> -->
                           <!--  <th style="min-width: 250px"><span class="th">备注</span></th>
                            <th style="min-width: 100px"><span class="th">业务日期</span></th>
                            <th style="min-width: 100px"><span class="th">销售部门</span></th>
                            <th style="min-width: 100px"><span class="th">制单人</span></th> -->
                        </tr>
                    </thead>
 
                    <tbody data-bind="foreach: list">
                        <tr>
                            <td class="center">
                                <span data-bind="text: $index() + 1"></span>
                            </td>
                             <td>
                                <div class="btn-group" data-bind="visible: tdmx_sfzc=='' ">
                                    <button class="btn btn-xs btn-danger" title="删除" data-bind="click: $parent.del">
                                        <!--<i class="ace-icon fa fa-trash-o bigger-120"></i>-->
                                        删除
                                    </button>
                                </div>
                            </td>
                            <td data-bind="text: tdmx_tdbh"></td>
                            <td data-bind="text: tdmx_wlbh"></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_hwmc"></td>
                            <td data-bind="text: tdmx_mz"></td>
                            <td data-bind="text: tdmx_jz"></td>
                            <!-- <td data-bind="text: tdmx_sl"></td> -->
                            <td data-bind="text: tdmx_pch"></td>
                           <!--  <td data-bind="text: tdmx_shdw"></td> -->
                            <!-- <td data-bind="text: td_bz"></td>
                            <td data-bind="text: td_ywrq"></td>
                            <td data-bind="text: td_bmmc"></td>
                            <td data-bind="text: td_zdr"></td> -->
                        </tr>
                    </tbody>
                </table>
            </div>
            <div class="col-xs-12" style="margin-top: 2px;">
                <div class="widget-container-col ui-sortable" id="widget-container-col-12">
                    <div class="widget-box transparent ui-sortable-handle" id="widget-box-12">
                        <div class="widget-header">
                            <h4 class="widget-title lighter">备注</h4>
                        </div>
                        <div class="widget-body">
                            <div class="widget-main padding-6 no-padding-left no-padding-right">
                                <div data-bind="text: remark"></div>
                            </div>
                        </div>
                    </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">
                       备注:<textarea style="width:100%; resize:none;" rows="8" data-bind="value: remark"></textarea>
                    </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="confirmBtn" >确定</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/vehicleBindMaterials.js?v=12321"></script>
    </ui:define>
</ui:composition>
</html>