hjg
2024-01-20 4a3404efc438b16044fd9170814e6545a3f86fae
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
<?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">
        <link rel="stylesheet" href="#{request.contextPath}/template/assets/css/jstree/themes/default/style.min.css"/>
        <style>
        #searchBtn {
            height: 34px;
        }
        p.error {
            color: #D9534F
        }
        input.error {
            border: 1px solid #D9534F;
        }
        #simple-table th,#simple-table td{
            text-align: center;
            padding: 2px 8px;
        }
        .btn-xs, .btn-group-xs > .btn{
            padding-top: 0px;
            padding-bottom: 0px;
        }
        .bigger-95{
        font-size: 95% !important;
        }
        .btn-xs, .btn-group-xs > .btn{
          padding-top: 0px;
          padding-bottom: 0px;
        }
        .chosen-container-multi .chosen-choices li.search-field input[type="text"] {
            height: 25px;
        }
        .chosen-container {
            width: 100% !important;
        }
        #form .control-label {
            margin-right: -14px
        }
        .t-error{
            color: red;
            position: relative;
            right: 2px;
            top: 3px;
        }
        </style>
    </ui:define>
    <ui:define name="acontent">
        <input type="hidden" value="#{param.page}" id="p" />
        <input type="hidden" value="#{param.keyword}" id="k" />
        <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-12 table-responsive" style="margin-top: 8px;">
                <table id="simple-table" class="table  table-bordered table-hover">
                    <thead>
                        <tr>
                            <th class="detail-col" style="min-width: 48px">序号</th>
                            <th style="min-width: 50px;width: 50px">操作</th>
                            <th style="min-width: 100px">编号</th>
                            <th style="min-width: 100px">业务类型名称</th>
                            <!--<th style="min-width: 100px">Key</th>
                            <th style="min-width: 100px">candidateGroups</th>
                            <th style="min-width: 75px">计划明细</th>-->
                            <th style="min-width: 48px">是否返厂</th>
                            <th style="min-width: 48px">物资流向</th>
                            <th style="min-width: 75px">默认称重</th>
                            <!--<th style="min-width: 75px">公司类型</th>-->
                            <th style="min-width: 75px">物资分类</th>
                            <th style="min-width: 100px">备注</th>
                          <!--   <th style="min-width: 100px; width: 100px">操作</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">
                                    <button class="btn btn-xs btn-info" title="编辑" data-bind="click: $parent.edit">
                                        <!--<i class="ace-icon fa fa-pencil bigger-95"></i>-->
                                        编辑
                                    </button>
 
                                   <!--  <button class="btn btn-xs btn-danger" title="删除" data-bind="click: $parent.del"> -->
                                        <!--<i class="ace-icon fa fa-trash-o bigger-95"></i>-->
                                        <!-- 删除 -->
                                    <!-- </button> -->
                                </div>
                            </td>
                            <td data-bind="text: businesstypeNo"></td>
                            <td data-bind="text: name"></td>
                            <!--<td data-bind="text: processKey"></td>
                            <td data-bind="text: candidateGroups"></td>
                            <td data-bind="text: planitem ? '是' : '否'"></td>-->
                            <td data-bind="text: factory ? '是' : '否'"></td>
                            <td data-bind="text: directName"></td>
                            <td data-bind="text: weighing ? '是' : '否'"></td> 
                            <!--<td data-bind="text: companytype"></td>-->
                            <td data-bind="text: wuzis"></td>
                            <td data-bind="text: note"></td>
 
                            <!-- <td>
                                <div class="btn-group">
                                    <button class="btn btn-xs btn-info" title="编辑" data-bind="click: $parent.edit">
                                        编辑
                                    </button>
 
                                    <button class="btn btn-xs btn-danger" title="删除" data-bind="click: $parent.del">
                                        删除
                                    </button>
                                </div>
                            </td> -->
                        </tr>
                    </tbody>
                </table>
                <div id="pagdiv"></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">
                        <form class="form-horizontal" id="form">
                            <div class="form-body">
                                <div class="form-group">
                                    <label class="col-md-3 control-label"><span class="t-error">*</span>业务类型编号</label>
                                    <div class="col-md-6">
                                        <input type="text" class="form-control" placeholder="" name="businesstypeNo" id="businesstypeNo" data-bind="value: o().businesstypeNo" readonly="readonly"/>
                                    </div>
                                    <div class="col-md-3">
                                        <p class="form-control-static text-error"></p>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-md-3 control-label"><span class="t-error">*</span>业务类型名称</label>
                                    <div class="col-md-6">
                                        <input type="text" class="form-control" name="name" placeholder="" data-bind="value: o().name"/>
                                    </div>
                                    <div class="col-md-3">
                                        <p class="form-control-static text-error"></p>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-md-3 control-label"><span class="t-error">*</span>默认建单部门</label>
                                    <div class="col-md-6">
                                        <input type="text" class="form-control" readonly="readonly" id="departName" placeholder="" data-bind="value: o().departname" name="departname"/>
                                    </div>
                                    <div class="col-md-3">
                                        <p class="form-control-static text-error"></p>
                                    </div>
                                </div>
                               <!--  <div class="form-group">
                                    <label class="col-md-3 control-label">processKey</label>
                                    <div class="col-md-6">
                                        <input type="text" class="form-control" placeholder="" data-bind="value: o().processKey"/>
                                    </div>
                                    <div class="col-md-3">
                                        <p class="form-control-static text-error"></p>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-md-3 control-label">candidateGroups</label>
                                    <div class="col-md-6">
                                        <input type="text" class="form-control" placeholder="" data-bind="value: o().candidateGroups"/>
                                    </div>
                                    <div class="col-md-3">
                                        <p class="form-control-static text-error"></p>
                                    </div>
                                </div> -->
                                <!--<div class="form-group">
                                    <label class="col-md-3 control-label">可用计划明细</label>
                                    <div class="col-md-6" style="padding-top: 7px">
                                       <input id="objPlanitemd" type="checkbox" data-bind="checked: o().planitem()" class="ace ace-switch ace-switch-4" />
                                        <span class="lbl middle"></span>
                                    </div>
                                    <div class="col-md-3">
                                        <p class="form-control-static text-error"></p>
                                    </div>
                                </div>-->
                                <div class="form-group">
                                    <label class="col-md-3 control-label">是否返厂</label>
                                    <div class="col-md-6" style="padding-top: 7px">
                                       <input id="objFactory" type="checkbox" data-bind="checked: o().factory()" class="ace ace-switch ace-switch-4" />
                                        <span class="lbl middle"></span>
                                    </div>
                                    <div class="col-md-3">
                                        <p class="form-control-static text-error"></p>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-md-3 control-label">默认称重</label>
                                    <div class="col-md-6" style="padding-top: 7px">
                                       <input id="objWeighing" type="checkbox" data-bind="checked: o().weighing()" class="ace ace-switch ace-switch-4" />
                                        <span class="lbl middle"></span>
                                    </div>
                                    <div class="col-md-3">
                                        <p class="form-control-static text-error"></p>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-md-3 control-label">物资流向</label>
                                    <div class="col-md-6">
                                        <select id="" class="form-control" data-bind="value: o().direct, options: dList, optionsText: 'name', optionsValue: 'value'"></select>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-md-3 control-label">物资分类</label>
                                    <div class="col-md-6">
                                        <select id="" class="form-control" data-bind="value: o().wuzis, options: tList"></select>
                                    </div>
                                </div>
                                <!--<div class="form-group">
                                    <label class="col-md-3 control-label">公司类型</label>
                                    <div class="col-md-6">
                                        <select id="" class="form-control" data-bind="value: o().companytype, options: cList"></select>
                                    </div>
                                </div>-->
                                <div class="form-group">
                                    <label class="col-md-3 control-label">厂区</label>
                                    <div class="col-md-6">
                                        <select data-placeholder="请选择厂区……"  id="dp" style="height: 34px; width: 100%;" multiple="multiple" class="chosen-select form-control tag-input-style" data-bind="selectedOptions: rList, options: sList, optionsText: 'name', optionsValue: 'shipmentNo'">
                                        </select>
                                        <!--<select id="" class="form-control" data-bind="value: o().companytype, options: sList"></select>-->
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-md-3 control-label">备注</label>
                                    <div class="col-md-6">
                                        <input type="text" class="form-control" placeholder="" data-bind="value: o().note"/>
                                    </div>
                                </div>
                            </div>
                        </form>
                    </div>
                    <div class="modal-footer">
                        <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
                        <button type="button" class="btn btn-primary" id="save">保存</button>
                    </div>
                </div>
            </div>
        </div>
        <div class="modal" id="departModal" data-backdrop="false">
            <div class="modal-dialog modal-sm">
                <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">
                        <input type="text" class="search" id="search" placeholder="搜索"/>
                        <div id="jstree_Enterprise"></div>
                    </div>
                    <div class="modal-footer">
                        <button type="button" class="btn btn-primary btn-xs" data-dismiss="modal" id="saveDepart">保存</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 type="text/javascript" src="#{request.contextPath}/template/nit/cdn/js/jstree.min.js"></script>
        <script type="text/javascript" src="#{request.contextPath}/template/assets/js/chosen.jquery.js"></script>
        <script src="#{request.contextPath}/basicinfo/js/businesstype.js"></script>
    </ui:define>
</ui:composition>
</html>