@layout("/common/_container.html"){
|
<div class="ibox float-e-margins">
|
<div class="ibox-content">
|
<div class="form-horizontal" id="franchiseeInfoForm">
|
<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-10">
|
@if(roleType == 1){
|
<#select id="superiorId" name="所属分公司:" onchange="TOpenCityInfoDlg.provinceChange()">
|
<option value="">选择所属分公司</option>
|
@for(obj in companyList){
|
<option value="${obj.id}" ${obj.id == item.superiorId ? 'selected=selected' : ''}>${obj.name}</option>
|
@}
|
</#select>
|
@}else if(roleType == 2){
|
<#label id="companyName" name="所属分公司" value="${company.name}"/>
|
@}
|
<#input id="name" name="加盟商名称" value="${item.name}"/>
|
<#input id="detailAddress" name="加盟商地址" value="${item.detailAddress}"/>
|
<#input id="principalName" name="联系人" value="${item.principalName}"/>
|
<#input id="principalPhone" name="联系电话" value="${item.principalPhone}" />
|
</div>
|
</div>
|
<div class="row">
|
<div class="col-sm-10">
|
<div class="form-group">
|
<label class="col-sm-3 control-label">经营业务:</label>
|
<div class="col-sm-9">
|
<fieldset>
|
<div class="checkbox checkbox-success">
|
<input name="checkbox" id="checkbox1" type="checkbox" value="1" ${1 == item.isSpe ? 'checked=checked' : ''} onclick="FranchiseeInfoDlg.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="FranchiseeInfoDlg.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="FranchiseeInfoDlg.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="FranchiseeInfoDlg.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="FranchiseeInfoDlg.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="FranchiseeInfoDlg.checkbox6()">
|
<label for="checkbox6">
|
包车
|
</label>
|
</div>
|
</fieldset>
|
</div>
|
</div>
|
<div class="form-group">
|
<label class="col-sm-3 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-3 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-3 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-3 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="FranchiseeInfoDlg.updateFranchisee()"/>
|
<#button btnCss="danger" name="取消" id="cancel" icon="fa-eraser" clickFun="FranchiseeInfoDlg.close()"/>
|
</div>
|
</div>
|
</div>
|
|
</div>
|
</div>
|
<script src="${ctxPath}/static/modular/system/tCompany/franchisee_info.js"></script>
|
<script type="application/javascript">
|
$(function() {
|
FranchiseeInfoDlg.checkbox1();
|
FranchiseeInfoDlg.checkbox2();
|
FranchiseeInfoDlg.checkbox3();
|
FranchiseeInfoDlg.checkbox4();
|
FranchiseeInfoDlg.checkbox5();
|
FranchiseeInfoDlg.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>
|
@}
|