From 39c58fe1a0469b99bd5ef0a24f6b254693826a18 Mon Sep 17 00:00:00 2001
From: puzhibing <393733352@qq.com>
Date: 星期五, 24 二月 2023 10:01:49 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'

---
 management/guns-admin/src/main/webapp/WEB-INF/view/system/tDriver/tDriver_edit.html |  141 ++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 139 insertions(+), 2 deletions(-)

diff --git a/management/guns-admin/src/main/webapp/WEB-INF/view/system/tDriver/tDriver_edit.html b/management/guns-admin/src/main/webapp/WEB-INF/view/system/tDriver/tDriver_edit.html
index 4ca8c12..d2b958c 100644
--- a/management/guns-admin/src/main/webapp/WEB-INF/view/system/tDriver/tDriver_edit.html
+++ b/management/guns-admin/src/main/webapp/WEB-INF/view/system/tDriver/tDriver_edit.html
@@ -1,5 +1,121 @@
 @layout("/common/_container.html"){
-<div class="ibox float-e-margins">
+<div class="row">
+    <div class="col-sm-12">
+        <div class="ibox float-e-margins">
+            <div class="ibox-title">
+                <h5>添加</h5>
+            </div>
+            <div class="ibox-content">
+                <div class="row row-lg">
+                    <div class="col-sm-12">
+                        <input hidden id="id" value="${item.id}"/>
+                        <input hidden id="areaId" value="${item.areaId}">
+                        <hr/>
+                        <div class="initialLevel col-sm-12 control-label form-group"  >
+                            <div style="background-color: gray;height: 35px;line-height: 35px">
+                                <label style="color: #0C0C0C;text-align:left;">司机信息</label>
+                            </div>
+                        </div>
+                        <hr/>
+                        <div class="col-sm-12"  style="cursor: pointer;text-align: right;">
+                            <div class="initialLevel col-sm-12 control-label form-group"  >
+                                <div class="initialLevel col-sm-3 control-label form-group"  >
+                                    <span style="color:red">*</span>
+                                    <label class="control-label" >姓名:</label>
+                                    <input id="name" value="${item.name}" type="text" style="height: 30px" required>
+                                </div>
+                                <div class="initialLevel col-sm-3 control-label form-group"  >
+                                    <span style="color:red">*</span>
+                                    <label class="control-label" >手机号:</label>
+                                    <input id="phone" value="${item.phone}" type="number" style="height: 30px" required>
+                                </div>
+                            </div>
+
+                            <div class="initialLevel col-sm-12 control-label form-group"  >
+                                <div class="initialLevel col-sm-3 control-label form-group"  >
+                                    <span style="color:red">*</span>
+                                    <label class="control-label" >紧急联系人姓名:</label>
+                                    <input id="emergencyContact" value="${item.emergencyContact}" type="text" style="height: 30px" required>
+                                </div>
+                                <div class="initialLevel col-sm-3 control-label form-group"  >
+                                    <span style="color:red">*</span>
+                                    <label class="control-label" >紧急联系人电话:</label>
+                                    <input id="emergencyPhone" value="${item.emergencyPhone}" type="number" style="height: 30px" required>
+                                </div>
+                            </div>
+
+                            <div class="initialLevel col-sm-12 control-label form-group"  >
+                                <div class="initialLevel col-sm-3 control-label form-group"  >
+                                    <label class="control-label" >邀约人姓名:</label>
+                                    <input id="inviterName" value="${item.inviterName}" type="text" style="height: 30px">
+                                </div>
+                                <div class="initialLevel col-sm-3 control-label form-group"  >
+                                    <label class="control-label" >邀约人电话:</label>
+                                    <input id="inviterPhone" value="${item.inviterPhone}" type="number" style="height: 30px">
+                                </div>
+                            </div>
+
+                            <div class="initialLevel col-sm-12 control-label form-group"  >
+                                <div class="initialLevel col-sm-3 control-label form-group"  >
+                                    <span style="color:red">*</span>
+                                    <label class="control-label" >服务区域:</label>
+                                    <input id="area" value="${item.area}" onclick="TDriver.area()" name="area" placeholder="请选择" style="height: 30px" readonly required>
+                                </div>
+                            </div>
+                        </div>
+
+                        <hr/>
+                        <div class="initialLevel col-sm-12 control-label form-group"  >
+                            <div style="background-color: gray;height: 35px;line-height: 35px">
+                                <label style="color: #0C0C0C;text-align:right">认证资料</label>
+                            </div>
+                        </div>
+                        <hr/>
+
+                        <div class="col-sm-12">
+                            <div class="initialLevel col-sm-12 control-label form-group"  >
+                                <div class="initialLevel col-sm-3 control-label form-group"  >
+                                    <span style="color:red">*</span>
+                                    <label class="control-label" >身份证号码:</label>
+                                    <input id="idcard" value="${item.idcard}" type="text" style="height: 30px" required>
+                                </div>
+                            </div>
+
+                            <div class="initialLevel col-sm-12 control-label form-group"  >
+                                <div class="initialLevel col-sm-3 control-label form-group"  >
+                                    <span style="color:red">*</span>
+                                    <label class="control-label" >身份证正面照:</label>
+                                    <#uploadImg id="idcardFront" fileImg="${item.idcardFront}"/>
+                                </div>
+                                <div class="initialLevel col-sm-3 control-label form-group"  >
+                                    <span style="color:red">*</span>
+                                    <label class="control-label" >身份证背面照:</label>
+                                    <#uploadImg id="idcardBack" fileImg="${item.idcardBack}"/>
+                                </div>
+                            </div>
+
+                            <div class="initialLevel col-sm-12 control-label form-group"  >
+                                <div class="initialLevel col-sm-3 control-label form-group"  >
+                                    <span style="color:red">*</span>
+                                    <label class="control-label" >驾驶证:</label>
+                                    <#uploadImg id="driverLicense" fileImg="${item.driverLicense}"/>
+                                </div>
+                            </div>
+                        </div>
+                    </div>
+                </div>
+
+                <div class="row btn-group-m-t">
+                    <div class="col-sm-10" style="text-align: center">
+                        <#button btnCss="danger" name="取消" id="cancel" icon="fa-eraser" clickFun="TDriverInfoDlg.close()"/>
+                        <#button btnCss="info" name="提交" id="ensure" icon="fa-check" clickFun="TDriverInfoDlg.editSubmit()"/>
+                    </div>
+                </div>
+            </div>
+        </div>
+    </div>
+</div>
+<!--<div class="ibox float-e-margins">
     <div class="ibox-content">
         <div class="form-horizontal">
 
@@ -48,6 +164,27 @@
         </div>
 
     </div>
-</div>
+</div>-->
 <script src="${ctxPath}/static/modular/system/tDriver/tDriver_info.js"></script>
+<script src="${ctxPath}/static/modular/system/tDriver/tDriver.js"></script>
+<script type="text/javascript">
+    $(function () {
+        if('' == $("#inviterName").val()){
+            $("#inviterName").val('')
+        }
+        if('' == $("#inviterPhone").val()){
+            $("#inviterPhone").val('')
+        }
+
+        var idCardPositive = new $WebUpload("idcardFront");
+        idCardPositive.setUploadBarId("progressBar");
+        idCardPositive.init();
+        var idCardPositive = new $WebUpload("idcardBack");
+        idCardPositive.setUploadBarId("progressBar");
+        idCardPositive.init();
+        var idCardPositive = new $WebUpload("driverLicense");
+        idCardPositive.setUploadBarId("progressBar");
+        idCardPositive.init();
+    });
+</script>
 @}

--
Gitblit v1.7.1