puzhibing
2023-06-30 f58cca364b731eac2d60a440ffaa804be3cd43fd
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
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
@layout("/common/_container.html"){
<div class="ibox float-e-margins">
    <div class="ibox-content">
        <div class="form-horizontal" id="companyInfoForm">
            <input type="hidden" id="id" name="id" value="${item.id}">
            <input type="hidden" id="userId" name="userId" value="${user.id}">
            <div class="row">
                <div class="col-sm-6 b-r">
                    <#input id="name" name="分公司名称" value="${item.name}" />
                    <#input id="code" name="分公司代码" value="${item.code}" />
                    <#input id="principalName" name="分公司负责人" value="${item.principalName}" />
                    <#input id="adminName" name="分公司管理人" value="${item.adminName}" />
                    <#input id="documentAddress" name="行政文书送达地址" value="${item.documentAddress}" />
                    <#input id="setupTime" name="服务机构设立日期" value="${item.setupTime}" />
                    <#input id="licenseNumber" name="网络预约出租汽<br>车经营许可证号" value="${item.licenseNumber}" />
                    <#input id="addressCode" name="注册地行政区域划<br>分代码" value="${item.addressCode}" />
                    <#input id="licenseTime" name="经营许可证初次发证日期" value="${item.licenseTime}" />
                    <#input id="licenseEndTime" name="经营许可证有效期止" value="${item.licenseEndTime}" />
                    <#input id="regCapital" name="注册资本" value="${item.regCapital}" />
                    <#input id="driverNum" name="注册网络预约车驾驶员数量" value="${item.driverNum}" />
                    <#input id="legalId" name="法人代表身份证号" value="${item.legalId}" />
                    <#avatar id="idCardPositive" name="法定代表人身份<br>证照片(正面):" avatarImg="${item.idCardPositive}"/>
                    <#input id="contactAddress" name="通信地址" value="${item.contactAddress}"/>
                </div>
 
                <div class="col-sm-6">
                    <#input id="scopeCode" name="分公司区划代码" value="${item.scopeCode}"/>
                    <#input id="detailAddress" name="分公司具体地址" value="${item.detailAddress}"/>
                    <#input id="principalPhone" name="负责人电话" value="${item.principalPhone}"/>
                    <#input id="adminPhone" name="管理员电话" value="${item.adminPhone}"/>
                    <#input id="urgentPhoen" name="紧急联系电话" value="${item.urgentPhoen}"/>
                    <#input id="identifier" name="统一社会信用代码" value="${item.identifier}"/>
                    <#input id="serviceScope" name="经营区域" value="${item.serviceScope}"/>
                    <#input id="licensingAgency" name="经营许可证发证机构" value="${item.licensingAgency}"/>
                    <#input id="licenseStartTime" name="经营许可证有效期起" value="${item.licenseStartTime}"/>
                    <#input id="economicType" name="经营业户经济类型" value="${item.economicType}"/>
                    <#input id="carNum" name="注册网络预约出租车<br>车辆数" value="${item.carNum}"/>
                    <#input id="legalName" name="法人代表姓名" value="${item.legalName}"/>
                    <#input id="legalPhone" name="法人代表电话" value="${item.legalPhone}"/>
                    <#avatar id="idCardReverse" name="法定代表人身份<br>证照片(反面):" avatarImg="${item.idCardReverse}"/>
                    <#input id="businessScope" name="经营范围" value="${item.businessScope}"/>
                </div>
            </div>
            <div class="row">
                <div class="col-sm-12">
                    <div class="form-group">
                        <label class="col-sm-2 control-label">经营业务:</label>
                        <div class="col-sm-10">
                            <fieldset>
                                <div class="checkbox checkbox-success">
                                    <input name="checkbox" id="checkbox1" type="checkbox" value="1" ${1 == item.isSpe ? 'checked=checked' : ''} onclick="TCompanyInfoDlg.checkbox1()">
                                    <label for="checkbox1">
                                        专车
                                    </label>
                                    <fieldset>
                                        <div class="row" style="display: none;" id="zcDiv">
                                            <div class="col-sm-6">
                                                <div class="checkbox checkbox-circle">
                                                    <input type="radio" name="zc" id="zc1" value="1" ${1 == item.isSpeFixedOrProportional ? 'checked=checked' : ''}>
                                                    <label for="zc1">
                                                        <div style="position: relative;top: -8px;">
                                                            <span>按比例抽成,每笔订单抽取</span>
                                                            <input style="width: 50%;display: inline-block;" type="text" class="form-control" id="zcPercent" name="zcPercent"
                                                                            @if(1 == item.isSpeFixedOrProportional){
                                                                                value="${item.speMoney}"
                                                                            @}
                                                                            >
                                                            <span>%</span>
                                                        </div>
                                                    </label>
                                                </div>
                                                <div class="checkbox checkbox-circle">
                                                    <input type="radio" name="zc" id="zc2" value="2" ${2 == item.isSpeFixedOrProportional ? 'checked=checked' : ''}>
                                                    <label for="zc2">
                                                        <div style="position: relative;top: -8px;">
                                                            <span>按固定金额抽成,每笔订单抽取</span>
                                                            <input style="width: 50%;display: inline-block;" type="text" class="form-control" id="zcMoney" name="zcMoney"
                                                                             @if(2 == item.isSpeFixedOrProportional){
                                                                             value="${item.speMoney}"
                                                                             @}
                                                                             >
                                                            <span>元</span>
                                                        </div>
                                                    </label>
                                                </div>
                                            </div>
                                        </div>
                                    </fieldset>
                                </div>
                                <div class="checkbox checkbox-primary">
                                    <input name="checkbox" id="checkbox2" type="checkbox" value="2" ${1 == item.isTaxi ? 'checked=checked' : ''} onclick="TCompanyInfoDlg.checkbox2()">
                                    <label for="checkbox2">
                                        出租车
                                    </label>
                                    <fieldset>
                                        <div class="row" style="display: none;" id="czDiv">
                                            <div class="col-sm-6">
                                                <div class="checkbox checkbox-circle">
                                                    <input type="radio" name="cz" id="cz1" value="1" ${1 == item.isTaxiFixedOrProportional ? 'checked=checked' : ''}>
                                                    <label for="cz1">
                                                        <div style="position: relative;top: -8px;">
                                                            <span>按比例抽成,每笔订单抽取</span>
                                                            <input style="width: 50%;display: inline-block;" type="text" class="form-control" id="czPercent" name="czPercent"
                                                                               @if(1 == item.isTaxiFixedOrProportional){
                                                                               value="${item.taxiMoney}"
                                                                               @}
                                                                               >
                                                            <span>%</span>
                                                        </div>
                                                    </label>
                                                </div>
                                                <div class="checkbox checkbox-circle">
                                                    <input type="radio" name="cz" id="cz2" value="2" ${2 == item.isTaxiFixedOrProportional ? 'checked=checked' : ''}>
                                                    <label for="cz2">
                                                        <div style="position: relative;top: -8px;">
                                                            <span>按固定金额抽成,每笔订单抽取</span>
                                                            <input style="width: 50%;display: inline-block;" type="text" class="form-control" id="czMoney" name="czMoney"
                                                                             @if(2 == item.isTaxiFixedOrProportional){
                                                                             value="${item.taxiMoney}"
                                                                             @}
                                                                             >
                                                            <span>元</span>
                                                        </div>
                                                    </label>
                                                </div>
                                            </div>
                                        </div>
                                    </fieldset>
                                </div>
                                <div class="checkbox checkbox-success">
                                    <input name="checkbox" id="checkbox3" type="checkbox" value="3" ${1 == item.isCross ? 'checked=checked' : ''} onclick="TCompanyInfoDlg.checkbox3()">
                                    <label for="checkbox3">
                                        跨城出行
                                    </label>
                                </div>
                                <div class="checkbox checkbox-info">
                                    <input name="checkbox" id="checkbox4" type="checkbox" value="4" ${1 == item.isSameLogistics ? 'checked=checked' : ''} onclick="TCompanyInfoDlg.checkbox4()">
                                    <label for="checkbox4">
                                        同城小件物流
                                    </label>
                                    <fieldset>
                                        <div class="row" style="display: none;" id="tcxDiv">
                                            <div class="col-sm-6">
                                                <div class="checkbox checkbox-circle">
                                                    <input type="radio" name="tcx" id="tcx1" value="1" ${1 == item.isSameLogisticsFixedOrProportional ? 'checked=checked' : ''}>
                                                    <label for="tcx1">
                                                        <div style="position: relative;top: -8px;">
                                                            <span>按比例抽成,每笔订单抽取</span>
                                                            <input style="width: 50%;display: inline-block;" type="text" class="form-control" id="tcxPercent" name="tcxPercent"
                                                                           @if(1 == item.isSameLogisticsFixedOrProportional){
                                                                           value="${item.sameLogisticsMoney}"
                                                                           @}
                                                                           >
                                                            <span>%</span>
                                                        </div>
                                                    </label>
                                                </div>
                                                <div class="checkbox checkbox-circle">
                                                    <input type="radio" name="tcx" id="tcx2" value="2" ${2 == item.isSameLogisticsFixedOrProportional ? 'checked=checked' : ''}>
                                                    <label for="tcx2">
                                                        <div style="position: relative;top: -8px;">
                                                            <span>按固定金额抽成,每笔订单抽取</span>
                                                            <input style="width: 50%;display: inline-block;" type="text" class="form-control" id="tcxMoney" name="tcxMoney"
                                                                             @if(2 == item.isSameLogisticsFixedOrProportional){
                                                                             value="${item.sameLogisticsMoney}"
                                                                             @}
                                                                             >
                                                            <span>元</span>
                                                        </div>
                                                    </label>
                                                </div>
                                            </div>
                                        </div>
                                    </fieldset>
                                </div>
                                <div class="checkbox checkbox-warning">
                                    <input name="checkbox" id="checkbox5" type="checkbox" value="5" ${1 == item.isCrossLogistics ? 'checked=checked' : ''} onclick="TCompanyInfoDlg.checkbox5()">
                                    <label for="checkbox5">
                                        跨城小件物流
                                    </label>
                                    <fieldset>
                                        <div class="row" style="display: none;" id="kcxDiv">
                                            <div class="col-sm-6">
                                                <div class="checkbox checkbox-circle">
                                                    <input type="radio" name="kcx" id="kcx1" value="1" ${1 == item.isCrossLogisticsFixedOrProportional ? 'checked=checked' : ''}>
                                                    <label for="kcx1">
                                                        <div style="position: relative;top: -8px;">
                                                            <span>按比例抽成,每笔订单抽取</span>
                                                            <input style="width: 50%;display: inline-block;" type="text" class="form-control" id="kcxPercent" name="kcxPercent"
                                                                           @if(1 == item.isCrossLogisticsFixedOrProportional){
                                                                           value="${item.crossLogisticsMoney}"
                                                                           @}
                                                                           >
                                                            <span>%</span>
                                                        </div>
                                                    </label>
                                                </div>
                                                <div class="checkbox checkbox-circle">
                                                    <input type="radio" name="kcx" id="kcx2" value="2" ${2 == item.isCrossLogisticsFixedOrProportional ? 'checked=checked' : ''}>
                                                    <label for="kcx2">
                                                        <div style="position: relative;top: -8px;">
                                                            <span>按固定金额抽成,每笔订单抽取</span>
                                                            <input style="width: 50%;display: inline-block;" type="text" class="form-control" id="kcxMoney" name="kcxMoney"
                                                                             @if(2 == item.isCrossLogisticsFixedOrProportional){
                                                                             value="${item.crossLogisticsMoney}"
                                                                             @}
                                                                             >
                                                            <span>元</span>
                                                        </div>
                                                    </label>
                                                </div>
                                            </div>
                                        </div>
                                    </fieldset>
                                </div>
                                <div class="checkbox checkbox-danger">
                                    <input name="checkbox" id="checkbox6" type="checkbox" value="6" ${1 == item.isCharter ? 'checked=checked' : ''} onclick="TCompanyInfoDlg.checkbox6()">
                                    <label for="checkbox6">
                                        包车
                                    </label>
                                </div>
                            </fieldset>
                        </div>
                    </div>
                </div>
            </div>
 
            <div class="row">
                <div class="col-sm-12">
                    <div class="form-group">
                        <label class="col-sm-2 control-label">经营区域:</label>
                        <div class="col-sm-2">
                            <select class="form-control" id="province" onchange="TCompanyInfoDlg.provinceChange(this)">
                                <option value="">选择省</option>
                                @for(obj in provinceList){
                                <option value="${obj.code}">${obj.name}</option>
                                @}
                            </select>
                        </div>
                        <div class="col-sm-2">
                            <select class="form-control" id="city" onchange="TCompanyInfoDlg.cityChage(this)">
                                <option value="">选择市</option>
                            </select>
                        </div>
                        <div class="col-sm-2">
                            <select class="form-control" id="area">
                                <option value="">选择区</option>
                            </select>
                        </div>
                        <div class="col-sm-1">
                            <#button btnCss="info" name="添加" id="ensure" icon="fa-check" clickFun="TCompanyInfoDlg.addScope()"/>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">添加区域</label>
                        <div class="col-sm-9">
                            <div style="height: 200px; border: 1px solid #e5e6e7;overflow-y: auto;">
                                <table class="table table-striped table-bordered table-hover table-condensed">
                                    <thead>
                                    <tr>
                                        <th style="width: 300px;">区域</th>
                                        <th style="width: 200px;">操作</th>
                                    </tr>
                                    </thead>
                                    <tbody id="conn">
                                    @for(obj in scopeList){
                                    <tr class="timeClass">
                                        <td><input type="hidden" id="recordId" name="recordId" value="${obj.id}">
                                            <input type="hidden" id="provinceCode" name="provinceCode" value="${obj.provinceCode}">
                                            <input type="hidden" id="cityCode" name="cityCode" value="${obj.cityCode}">
                                            <input type="hidden" id="areaCode" name="areaCode" value="${obj.areaCode}">${obj.value}</td>
                                        <td><button onclick="deleteSub(this)">移除</button></td>
                                    </tr>
                                    @}
                                    </tbody>
                                </table>
                            </div>
                        </div>
                    </div>
 
                    <div class="form-group">
                        <label class="col-sm-2 control-label">是否需要摆渡车:</label>
                        <div class="col-sm-9"  style="display: flex;align-items: center;">
                            <div class="radio radio-info radio-inline">
                                <input type="radio" id="isNeedFerry1" value="1" name="isNeedFerry" ${1 == item.isNeedFerry ? 'checked=checked' : ''} >
                                <label for="isNeedFerry1"> 是 </label>
                            </div>
                            <div class="radio radio-success radio-inline">
                                <input type="radio" id="isNeedFerry2" value="2" name="isNeedFerry" ${2 == item.isNeedFerry ? 'checked=checked' : ''}>
                                <label for="isNeedFerry2"> 否 </label>
                            </div>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">限登录MAC地址:</label>
                        <div class="col-sm-9">
                            <input type="text" class="form-control" id="mac" name="mac" value="${item.mac}">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">登录账号:</label>
                        <div class="col-sm-9">
                            <input type="text" class="form-control" id="account" name="account" value="${user.account}">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">登录密码:</label>
                        <div class="col-sm-9">
                            <input type="password" class="form-control" id="password" name="password" >
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">确认密码:</label>
                        <div class="col-sm-9">
                            <input type="password" class="form-control" id="rePassword" name="rePassword" >
                        </div>
                    </div>
                </div>
            </div>
 
            <div class="row btn-group-m-t">
                <div class="col-sm-10 col-sm-offset-5">
                    <#button btnCss="info" name="提交" id="ensure" icon="fa-check" clickFun="TCompanyInfoDlg.editSubmit()"/>
                    <#button btnCss="danger" name="取消" id="cancel" icon="fa-eraser" clickFun="TCompanyInfoDlg.close()"/>
                </div>
            </div>
        </div>
 
    </div>
</div>
<script src="${ctxPath}/static/modular/system/tCompany/tCompany_info.js"></script>
<script type="application/javascript">
    laydate.render({
        elem: '#setupTime'
    });
    laydate.render({
        elem: '#licenseTime'
    });
    laydate.render({
        elem: '#licenseStartTime'
    });
    laydate.render({
        elem: '#licenseEndTime'
    });
 
    $(function() {
        TCompanyInfoDlg.checkbox1();
        TCompanyInfoDlg.checkbox2();
        TCompanyInfoDlg.checkbox3();
        TCompanyInfoDlg.checkbox4();
        TCompanyInfoDlg.checkbox5();
        TCompanyInfoDlg.checkbox6();
 
        var zc = $("input[name='zc']:checked").val();
        var cz = $("input[name='cz']:checked").val();
        var tcx = $("input[name='tcx']:checked").val();
        var kcx = $("input[name='kcx']:checked").val();
        if (zc == "" || zc == null || zc == undefined){
            $("#zc1").attr("checked","checked")
        }
        if (cz == "" || cz == null || cz == undefined){
            $("#cz1").attr("checked","checked")
        }
        if (tcx == "" || tcx == null || tcx == undefined){
            $("#tcx1").attr("checked","checked")
        }
        if (kcx == "" || kcx == null || kcx == undefined){
            $("#kcx1").attr("checked","checked")
        }
    });
</script>
@}