@layout("/common/_container.html"){
|
<style>
|
.newWidth, .single-line{
|
max-width:150px !important;display: initial !important;
|
}
|
</style>
|
<div class="ibox float-e-margins">
|
<div class="ibox-content">
|
<div class="form-horizontal" id="companyInfoForm">
|
|
<div class="row">
|
<div class="col-sm-6 b-r">
|
<#input id="name" name="*分公司名称"/>
|
<#input id="code" name="分公司代码"/>
|
<#input id="principalName" name="分公司负责人" />
|
<#input id="adminName" name="分公司管理人"/>
|
<#input id="documentAddress" name="行政文书送达地址"/>
|
<#input id="setupTime" name="服务机构设立日期"/>
|
<#input id="licenseNumber" name="网络预约出租汽<br>车经营许可证号"/>
|
<#input id="addressCode" name="注册地行政区域划<br>分代码"/>
|
<#input id="licenseTime" name="经营许可证初次发证日期" />
|
<#input id="licenseEndTime" name="经营许可证有效期止" />
|
<#input id="regCapital" name="注册资本"/>
|
<#input id="driverNum" name="注册网络预约车驾驶员数量" />
|
<#input id="legalId" name="法人代表身份证号"/>
|
<#avatar id="idCardPositive" name="法定代表人身份<br>证照片(正面):" />
|
<#input id="contactAddress" name="通信地址"/>
|
</div>
|
|
<div class="col-sm-6">
|
<#input id="scopeCode" name="分公司区划代码"/>
|
<#input id="detailAddress" name="分公司具体地址" />
|
<#input id="principalPhone" name="负责人电话" />
|
<#input id="adminPhone" name="管理员电话" />
|
<#input id="urgentPhoen" name="紧急联系电话" />
|
<#input id="identifier" name="统一社会信用代码" />
|
<#input id="serviceScope" name="经营区域" />
|
<#input id="licensingAgency" name="经营许可证发证机构"/>
|
<#input id="licenseStartTime" name="经营许可证有效期起"/>
|
<#input id="economicType" name="经营业户经济类型"/>
|
<#input id="carNum" name="注册网络预约出租车<br>车辆数"/>
|
<#input id="legalName" name="法人代表姓名" />
|
<#input id="legalPhone" name="法人代表电话" />
|
<#avatar id="idCardReverse" name="法定代表人身份<br>证照片(反面):" />
|
<#input id="businessScope" name="经营范围" />
|
|
</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-primary">
|
<input name="checkbox" id="checkbox2" type="checkbox" value="2" >
|
<label for="checkbox2">
|
出租车
|
</label>
|
</div>
|
<div class="checkbox checkbox-success">
|
<input name="checkbox" id="checkbox3" type="checkbox" value="3" onclick="TCompanyInfoDlg.checkbox3()">
|
<label for="checkbox3">
|
跨城
|
</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">
|
|
</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" checked="" >-->
|
<!-- <label for="isNeedFerry1"> 是 </label>-->
|
<!-- </div>-->
|
<!-- <div class="radio radio-success radio-inline">-->
|
<!-- <input type="radio" id="isNeedFerry2" value="2" name="isNeedFerry" >-->
|
<!-- <label for="isNeedFerry2"> 否 </label>-->
|
<!-- </div>-->
|
<!-- </div>-->
|
<!-- </div>-->
|
|
|
<div class="form-group">
|
<label class="col-sm-2 control-label">软件使用费:</label>
|
</div>
|
<div class="form-group">
|
<label class="col-sm-2 control-label"></label>
|
<div class="col-sm-3">
|
<div class="col-sm-4">
|
<span class="control-label">扣除固定费用</span>
|
</div>
|
<div class="col-sm-5">
|
<input type="text" class="form-control" id="fixedDeduction" name="fixedDeduction" >
|
</div>
|
<div class="col-sm-2">
|
<span class="control-label">元</span>
|
</div>
|
</div>
|
<div class="col-sm-3">
|
<div class="col-sm-4">
|
<span class="control-label">线上下单扣除</span>
|
</div>
|
<div class="col-sm-5">
|
<input type="text" class="form-control" id="percentageDeduction" name="percentageDeduction" >
|
</div>
|
<div class="col-sm-2">
|
<span class="control-label">%</span>
|
</div>
|
</div>
|
<div class="col-sm-3">
|
<div class="col-sm-7">
|
<span class="control-label">打表计费订单扣除固定费用</span>
|
</div>
|
<div class="col-sm-3">
|
<input type="text" class="form-control" id="meterPrintingFee" name="meterPrintingFee" >
|
</div>
|
<div class="col-sm-2">
|
<span class="control-label">元</span>
|
</div>
|
</div>
|
</div>
|
|
<div class="form-group">
|
<label class="col-sm-2 control-label"></label>
|
<div class="col-sm-3">
|
<span class="control-label" style="color: #c1c1c1">人工、一键下单、电召订单使用</span>
|
</div>
|
<div class="col-sm-3">
|
<span class="control-label" style="color: #c1c1c1">线上下单使用</span>
|
</div>
|
<div class="col-sm-3">
|
<span class="control-label" style="color: #c1c1c1">小程序普通订单打表计费方式扣除抽成</span>
|
</div>
|
</div>
|
|
<div class="form-group">
|
<label class="col-sm-2 control-label">司机接单限制:</label>
|
<div class="col-sm-9">
|
<div class="col-sm-1">
|
<span class="control-label">余额低于</span>
|
</div>
|
<div class="col-sm-3">
|
<input type="text" class="form-control" id="driverRestriction" name="driverRestriction" >
|
</div>
|
<div class="col-sm-2">
|
<span class="control-label">元不可接单</span>
|
</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" >
|
</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" >
|
</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 style="float: left;width: 1200px;margin-left: 50px;">
|
<div class="form-group content">
|
<h3 style="color: #377CCD;margin-bottom: 20px;">在线计费规则</h3>
|
<div class="form-group">
|
<label class="col-sm-2 control-label">起步价设置:</label>
|
<div class="col-sm-10">
|
起步价为 <input type="text" onblur="checkIsYuan(this)" name="num1" id="num1" class="form-control newWidth" placeholder="最多3位数"/> 元,
|
起步包含 <input type="text" onblur="checkIsGongLi(this, 'content')" name="num2" id="num2" class="form-control newWidth" placeholder="最多3位数"/> 公里,
|
<input type="text" onblur="checkIsMinute(this)" name="num3" id="num3" class="form-control newWidth" placeholder="最多3位数"/> 分钟
|
<br/>
|
</div>
|
</div>
|
|
<div class="form-group">
|
<label class="col-sm-2 control-label">里程费设置:</label>
|
<div class="col-sm-10">
|
超过起步里程后每公里 <input type="text" onblur="checkIsYuan(this)" name="num4" id="num4" class="form-control newWidth" placeholder="最多3位数"/> 元
|
<br/>
|
</div>
|
</div>
|
|
<div class="form-group">
|
<label class="col-sm-2 control-label">时长费设置:</label>
|
<div class="col-sm-10">
|
超过起步时长后每分钟 <input type="text" onblur="checkIsYuan(this)" name="num5" id="num5" class="form-control newWidth" placeholder="最多3位数"/> 元
|
<br/>
|
</div>
|
</div>
|
|
<div class="form-group">
|
<label class="col-sm-2 control-label">等待费设置:</label>
|
<div class="col-sm-10">
|
司机到达预约地点 <input type="text" onblur="checkIsMinute(this)" name="num29" id="num29" class="form-control newWidth" placeholder="最多3位数"/> 分钟过后开始收取等待费,
|
为 <input type="text" onblur="checkIsYuan(this)" name="num30" id="num30" class="form-control newWidth" placeholder="最多3位数"/> 元/分,不足一分钟按照一分钟计算
|
<br/>
|
</div>
|
</div>
|
|
<div class="form-group">
|
<label class="col-sm-2 control-label">远途费设置:</label>
|
<div class="col-sm-10">
|
总里程超过 <input type="text" onblur="checkIsGongLi(this, 'content')" name="num6" id="num6" class="form-control newWidth" placeholder="最多3位数"/> 公里
|
不足 <input type="text" onblur="checkIsGongLi(this, 'content')" name="num7" id="num7" class="form-control newWidth" placeholder="最多3位数"/> 公里,
|
超出部分每公里加收 <input type="text" onblur="checkIsYuan(this, 'content')" name="num8" id="num8" class="form-control newWidth" placeholder="最多3位数"/> 元
|
<br>
|
<br>
|
超过 <input type="text" disabled onblur="checkIsGongLi(this, 'content')" name="num9" id="num9" class="form-control newWidth" placeholder="最多3位数"/> 公里
|
不足 <input type="text" onblur="checkIsGongLi(this, 'content')" name="num10" id="num10" class="form-control newWidth" placeholder="最多3位数"/> 公里时,
|
超出部分每公里加收 <input type="text" onblur="checkIsYuan(this)" name="num11" id="num11" class="form-control newWidth" placeholder="最多3位数"/> 元
|
<br/>
|
<br>
|
超过 <input type="text" disabled onblur="checkIsGongLi(this, 'content')" name="num12" id="num12" class="form-control newWidth" placeholder="最多3位数"/> 公里以后,
|
超出部分每公里加收 <input type="text" onblur="checkIsYuan(this)" name="num13" id="num13" class="form-control newWidth" placeholder="最多3位数"/> 元
|
<br/>
|
</div>
|
</div>
|
|
<div class="form-group">
|
<label class="col-sm-2 control-label">夜间行驶费用设置:</label>
|
<div class="col-sm-10">
|
<input type="text" name="num14" id="num14" class="form-control newWidth" placeholder="选择时间"/> 点为夜间行驶时间,
|
起步价变为 <input type="text" onblur="checkIsYuan(this)" name="num15" id="num15" class="form-control newWidth" placeholder="最多3位数"/> 元
|
<br>
|
<br>
|
里程费为每公里 <input type="text" onblur="checkIsYuan(this)" name="num16" id="num16" class="form-control newWidth" placeholder="最多3位数"/> 元,
|
时长费为每分钟 <input type="text" onblur="checkIsYuan(this)" name="num17" id="num17" class="form-control newWidth" placeholder="最多3位数"/> 元
|
<br>
|
<br>
|
远途费为每公里加收 <input type="text" onblur="checkIsYuan(this)" name="num18" id="num18" class="form-control newWidth" placeholder="最多3位数"/>
|
、 <input type="text" onblur="checkIsYuan(this)" name="num19" id="num19" class="form-control newWidth" placeholder="最多3位数"/>
|
、 <input type="text" onblur="checkIsYuan(this)" name="num20" id="num20" class="form-control newWidth" placeholder="最多3位数"/> 元
|
<br/>
|
</div>
|
</div>
|
|
<div class="form-group">
|
<label class="col-sm-2 control-label">高峰期费用设置:</label>
|
<div class="col-sm-10">
|
<input type="text" name="num21" id="num21" class="form-control newWidth" placeholder="选择时间段"/>
|
和 <input type="text" name="num22" id="num22" class="form-control newWidth" placeholder="选择时间段"/> 为高峰期行车时间,
|
起步价变为 <input type="text" onblur="checkIsYuan(this)" name="num23" id="num23" class="form-control newWidth" placeholder="最多3位数"/> 元
|
<br>
|
<br>
|
里程费为每公里 <input type="text" onblur="checkIsYuan(this)" name="num24" id="num24" class="form-control newWidth" placeholder="最多3位数"/> 元,
|
时长费为每分钟 <input type="text" onblur="checkIsYuan(this)" name="num25" id="num25" class="form-control newWidth" placeholder="最多3位数"/> 元
|
<br>
|
<br>
|
远途费为每公里加收 <input type="text" onblur="checkIsYuan(this)" name="num26" id="num26" class="form-control newWidth" placeholder="最多3位数"/>
|
、 <input type="text" onblur="checkIsYuan(this)" name="num27" id="num27" class="form-control newWidth" placeholder="最多3位数"/>
|
、 <input type="text" onblur="checkIsYuan(this)" name="num28" id="num28" class="form-control newWidth" placeholder="最多3位数"/> 元
|
<br/>
|
</div>
|
</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.addSubmit()"/>
|
<#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="text/javascript">
|
laydate.render({
|
elem: '#setupTime'
|
});
|
laydate.render({
|
elem: '#licenseTime'
|
});
|
laydate.render({
|
elem: '#licenseStartTime'
|
});
|
laydate.render({
|
elem: '#licenseEndTime'
|
});
|
laydate.render({
|
elem: '.p1 #num14'
|
,type: 'time'
|
,range: '-'
|
,format: 'HH:mm'
|
});
|
laydate.render({
|
elem: '.p1 #num21'
|
,type: 'time'
|
,range: '-'
|
,format: 'HH:mm'
|
});
|
laydate.render({
|
elem: '.p1 #num22'
|
,type: 'time'
|
,range: '-'
|
,format: 'HH:mm'
|
});
|
|
laydate.render({
|
elem: '.p2 #num14'
|
,type: 'time'
|
,range: '-'
|
,format: 'HH:mm'
|
});
|
laydate.render({
|
elem: '.p2 #num21'
|
,type: 'time'
|
,range: '-'
|
,format: 'HH:mm'
|
});
|
laydate.render({
|
elem: '.p2 #num22'
|
,type: 'time'
|
,range: '-'
|
,format: 'HH:mm'
|
});
|
|
laydate.render({
|
elem: '.p3 #num14'
|
,type: 'time'
|
,range: '-'
|
,format: 'HH:mm'
|
});
|
laydate.render({
|
elem: '.p3 #num21'
|
,type: 'time'
|
,range: '-'
|
,format: 'HH:mm'
|
});
|
laydate.render({
|
elem: '.p3 #num22'
|
,type: 'time'
|
,range: '-'
|
,format: 'HH:mm'
|
});
|
|
laydate.render({
|
elem: '.wp1 #num14'
|
,type: 'time'
|
,range: '-'
|
,format: 'HH:mm'
|
});
|
laydate.render({
|
elem: '.wp1 #num21'
|
,type: 'time'
|
,range: '-'
|
,format: 'HH:mm'
|
});
|
laydate.render({
|
elem: '.wp1 #num22'
|
,type: 'time'
|
,range: '-'
|
,format: 'HH:mm'
|
});
|
|
laydate.render({
|
elem: '.wp2 #num14'
|
,type: 'time'
|
,range: '-'
|
,format: 'HH:mm'
|
});
|
laydate.render({
|
elem: '.wp2 #num21'
|
,type: 'time'
|
,range: '-'
|
,format: 'HH:mm'
|
});
|
laydate.render({
|
elem: '.wp2 #num22'
|
,type: 'time'
|
,range: '-'
|
,format: 'HH:mm'
|
});
|
|
laydate.render({
|
elem: '.wp3 #num14'
|
,type: 'time'
|
,range: '-'
|
,format: 'HH:mm'
|
});
|
laydate.render({
|
elem: '.wp3 #num21'
|
,type: 'time'
|
,range: '-'
|
,format: 'HH:mm'
|
});
|
laydate.render({
|
elem: '.wp3 #num22'
|
,type: 'time'
|
,range: '-'
|
,format: 'HH:mm'
|
});
|
|
laydate.render({
|
elem: '.exclusivePriceSettings #num14'
|
,type: 'time'
|
,range: '-'
|
,format: 'HH:mm'
|
});
|
laydate.render({
|
elem: '.exclusivePriceSettings #num21'
|
,type: 'time'
|
,range: '-'
|
,format: 'HH:mm'
|
});
|
laydate.render({
|
elem: '.exclusivePriceSettings #num22'
|
,type: 'time'
|
,range: '-'
|
,format: 'HH:mm'
|
});
|
|
laydate.render({
|
elem: '.content #num14'
|
,type: 'time'
|
,range: '-'
|
,format: 'HH:mm'
|
});
|
laydate.render({
|
elem: '.content #num21'
|
,type: 'time'
|
,range: '-'
|
,format: 'HH:mm'
|
});
|
laydate.render({
|
elem: '.content #num22'
|
,type: 'time'
|
,range: '-'
|
,format: 'HH:mm'
|
});
|
|
var regDouble = /^(0|[1-9]\d{0,2})(\.\d{1,2})?$/;
|
var regInt = /^[0-9]{0,3}$/;
|
function checkIsYuan(obj){
|
var num = $(obj).val();
|
if(!regDouble.test(num)){
|
layer.msg("【元】输入框不能超过3位数,保留两位小数");
|
$(obj).val('');
|
}
|
}
|
function checkIsGongLi(obj, clazz){
|
var num = $(obj).val();
|
if(!regDouble.test(num)){
|
layer.msg("【公里】输入框不能超过3位数,保留两位小数");
|
$(obj).val('');
|
}
|
if (obj.id == "num7"){
|
$("." + clazz + " #num9").val(num);
|
}else if (obj.id == "num10"){
|
$("." + clazz + " #num12").val(num);
|
}
|
}
|
function checkIsMinute(obj){
|
var num = $(obj).val();
|
if(!regInt.test(num)){
|
layer.msg("【分钟】输入框不能超过3位数");
|
$(obj).val('');
|
}
|
}
|
|
</script>
|
@}
|