@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">
|
<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-primary">
|
<input name="checkbox" id="checkbox2" type="checkbox" value="2" ${1 == item.isTaxi ? 'checked=checked' : ''} onclick="TCompanyInfoDlg.checkbox2()">
|
<label for="checkbox2">
|
出租车
|
</label>
|
</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>
|
</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 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" value="${contentExclusive.num1}" class="form-control newWidth" placeholder="最多3位数"/> 元,
|
起步包含 <input type="text" onblur="checkIsGongLi(this, 'content')" name="num2" id="num2" value="${contentExclusive.num2}" class="form-control newWidth" placeholder="最多3位数"/> 公里,
|
<input type="text" onblur="checkIsMinute(this)" name="num3" id="num3" value="${contentExclusive.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" value="${contentExclusive.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" value="${contentExclusive.num5}" class="form-control newWidth" placeholder="最多3位数"/> 元
|
<br/>
|
</div>
|
</div>
|
|
<div class="form-group waitFee">
|
<label class="col-sm-2 control-label">等待费设置:</label>
|
<div class="col-sm-10">
|
司机到达预约地点 <input type="text" onblur="checkIsMinute(this)" name="num29" id="num29" value="${contentExclusive.num29}" class="form-control newWidth" placeholder="最多3位数"/> 分钟过后开始收取等待费,
|
为 <input type="text" onblur="checkIsYuan(this)" name="num30" id="num30" value="${contentExclusive.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" value="${contentExclusive.num6}" class="form-control newWidth" placeholder="最多3位数"/> 公里
|
不足 <input type="text" onblur="checkIsGongLi(this, 'content')" name="num7" id="num7" value="${contentExclusive.num7}" class="form-control newWidth" placeholder="最多3位数"/> 公里,
|
超出部分每公里加收 <input type="text" onblur="checkIsYuan(this, 'content')" name="num8" id="num8" value="${contentExclusive.num8}" class="form-control newWidth" placeholder="最多3位数"/> 元
|
<br>
|
<br>
|
超过 <input type="text" disabled onblur="checkIsGongLi(this, 'content')" name="num9" id="num9" value="${contentExclusive.num9}" class="form-control newWidth" placeholder="最多3位数"/> 公里
|
不足 <input type="text" onblur="checkIsGongLi(this, 'content')" name="num10" id="num10" value="${contentExclusive.num10}" class="form-control newWidth" placeholder="最多3位数"/> 公里时,
|
超出部分每公里加收 <input type="text" onblur="checkIsYuan(this)" name="num11" id="num11" value="${contentExclusive.num11}" class="form-control newWidth" placeholder="最多3位数"/> 元
|
<br/>
|
<br>
|
超过 <input type="text" disabled onblur="checkIsGongLi(this, 'content')" name="num12" id="num12" value="${contentExclusive.num12}" class="form-control newWidth" placeholder="最多3位数"/> 公里以后,
|
超出部分每公里加收 <input type="text" onblur="checkIsYuan(this)" name="num13" id="num13" value="${contentExclusive.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" value="${contentExclusive.num14}" class="form-control newWidth" placeholder="选择时间"/> 点为夜间行驶时间,
|
起步价变为 <input type="text" onblur="checkIsYuan(this)" name="num15" id="num15" value="${contentExclusive.num15}" class="form-control newWidth" placeholder="最多3位数"/> 元
|
<br>
|
<br>
|
里程费为每公里 <input type="text" onblur="checkIsYuan(this)" name="num16" id="num16" value="${contentExclusive.num16}" class="form-control newWidth" placeholder="最多3位数"/> 元,
|
时长费为每分钟 <input type="text" onblur="checkIsYuan(this)" name="num17" id="num17" value="${contentExclusive.num17}" class="form-control newWidth" placeholder="最多3位数"/> 元
|
<br>
|
<br>
|
远途费为每公里加收 <input type="text" onblur="checkIsYuan(this)" name="num18" id="num18" value="${contentExclusive.num18}" class="form-control newWidth" placeholder="最多3位数"/>
|
、 <input type="text" onblur="checkIsYuan(this)" name="num19" id="num19" value="${contentExclusive.num19}" class="form-control newWidth" placeholder="最多3位数"/>
|
、 <input type="text" onblur="checkIsYuan(this)" name="num20" id="num20" value="${contentExclusive.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" value="${contentExclusive.num21}" class="form-control newWidth" placeholder="选择时间段"/>
|
和 <input type="text" name="num22" id="num22" value="${contentExclusive.num22}" class="form-control newWidth" placeholder="选择时间段"/> 为高峰期行车时间,
|
起步价变为 <input type="text" onblur="checkIsYuan(this)" name="num23" id="num23" value="${contentExclusive.num23}" class="form-control newWidth" placeholder="最多3位数"/> 元
|
<br>
|
<br>
|
里程费为每公里 <input type="text" onblur="checkIsYuan(this)" name="num24" id="num24" value="${contentExclusive.num24}" class="form-control newWidth" placeholder="最多3位数"/> 元,
|
时长费为每分钟 <input type="text" onblur="checkIsYuan(this)" name="num25" id="num25" value="${contentExclusive.num25}" class="form-control newWidth" placeholder="最多3位数"/> 元
|
<br>
|
<br>
|
远途费为每公里加收 <input type="text" onblur="checkIsYuan(this)" name="num26" id="num26" value="${contentExclusive.num26}" class="form-control newWidth" placeholder="最多3位数"/>
|
、 <input type="text" onblur="checkIsYuan(this)" name="num27" id="num27" value="${contentExclusive.num27}" class="form-control newWidth" placeholder="最多3位数"/>
|
、 <input type="text" onblur="checkIsYuan(this)" name="num28" id="num28" value="${contentExclusive.num28}" class="form-control newWidth" placeholder="最多3位数"/> 元
|
<br/>
|
</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" value="${item.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" value="${item.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" value="${item.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" value="${item.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" 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>
|
</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'
|
});
|
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('');
|
}
|
}
|
$(function() {
|
TCompanyInfoDlg.checkbox2();
|
|
var cz = $("input[name='cz']:checked").val();
|
if (cz == "" || cz == null || cz == undefined){
|
$("#cz1").attr("checked","checked")
|
}
|
});
|
</script>
|
@}
|