| | |
| | | <result column="sameLogisticsMoney" property="sameLogisticsMoney" /> |
| | | <result column="isNeedFerry" property="isNeedFerry" /> |
| | | <result column="isCanSelectSeat" property="isCanSelectSeat" /> |
| | | <result column="isCanModifyAmount" property="isCanModifyAmount" /> |
| | | <result column="isOfflinePay" property="isOfflinePay" /> |
| | | <result column="isOpenDriverSelfTrip" property="isOpenDriverSelfTrip" /> |
| | | <result column="name" property="name" /> |
| | | <result column="type" property="type" /> |
| | |
| | | <sql id="Base_Column_List"> |
| | | id, isSpe, isTaxi, isCross, isCrossLogistics, isSameLogistics, isCharter, isSpeFixedOrProportional, isTaxiFixedOrProportional, |
| | | isCrossLogisticsFixedOrProportional, isSameLogisticsFixedOrProportional, speMoney, taxiMoney, crossLogisticsMoney, sameLogisticsMoney, |
| | | isNeedFerry, isCanSelectSeat, isOpenDriverSelfTrip, name, type, superiorId, principalName, principalPhone, adminName, adminPhone, urgentPhoen, setupTime, identifier, addressCode, |
| | | isNeedFerry, isCanSelectSeat, isCanModifyAmount, isOfflinePay, isOpenDriverSelfTrip, name, type, superiorId, principalName, principalPhone, adminName, adminPhone, urgentPhoen, setupTime, identifier, addressCode, |
| | | businessScope, contactAddress, documentAddress, economicType, regCapital, legalName, legalId, legalPhone, legalPhotoUrl, licensingAgency, licenseTime, |
| | | licenseStartTime, licenseEndTime, licenseNumber, carNum, driverNum, mac, state, flag, upload, insertTime, detailAddress, companyInfo, scale |
| | | </sql> |
| | |
| | | */ |
| | | private Integer isCanSelectSeat; |
| | | /** |
| | | * 代客下单是否可修改金额(1=是,2=否) |
| | | */ |
| | | private Integer isCanModifyAmount; |
| | | /** |
| | | * 是否允许线下付款(1=是,2=否) |
| | | */ |
| | | private Integer isOfflinePay; |
| | | /** |
| | | * 是否开启司机自助行程(1=是,2=否) |
| | | */ |
| | | private Integer isOpenDriverSelfTrip; |
| | |
| | | public void setIsCanSelectSeat(Integer isCanSelectSeat) { |
| | | this.isCanSelectSeat = isCanSelectSeat; |
| | | } |
| | | |
| | | public Integer getIsCanModifyAmount() { |
| | | return isCanModifyAmount; |
| | | } |
| | | |
| | | public void setIsCanModifyAmount(Integer isCanModifyAmount) { |
| | | this.isCanModifyAmount = isCanModifyAmount; |
| | | } |
| | | |
| | | public Integer getIsOfflinePay() { |
| | | return isOfflinePay; |
| | | } |
| | | |
| | | public void setIsOfflinePay(Integer isOfflinePay) { |
| | | this.isOfflinePay = isOfflinePay; |
| | | } |
| | | |
| | | public Integer getIsOpenDriverSelfTrip() { |
| | | return isOpenDriverSelfTrip; |
| | |
| | | ", sameLogisticsMoney=" + sameLogisticsMoney + |
| | | ", isNeedFerry=" + isNeedFerry + |
| | | ", isCanSelectSeat=" + isCanSelectSeat + |
| | | ", isCanModifyAmount=" + isCanModifyAmount + |
| | | ", isOfflinePay=" + isOfflinePay + |
| | | ", isOpenDriverSelfTrip=" + isOpenDriverSelfTrip + |
| | | ", name=" + name + |
| | | ", type=" + type + |
| | |
| | | </div> |
| | | |
| | | <div class="form-group"> |
| | | <label class="col-sm-2 control-label">代客下单</label> |
| | | <div class="col-sm-9" style="display:flex;align-items:center;"> |
| | | <span style="margin-right:10px;">修改金额:</span> |
| | | <input type="checkbox" class="js-switch-can-modify-amount" id="isCanModifyAmount"/> |
| | | <span style="margin-left:60px;margin-right:10px;">线下付款:</span> |
| | | <input type="checkbox" class="js-switch-offline-pay" id="isOfflinePay"/> |
| | | </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"> |
| | |
| | | </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;"> |
| | | <span style="margin-right:10px;">修改金额:</span> |
| | | <input type="checkbox" class="js-switch-can-modify-amount" id="isCanModifyAmount"/> |
| | | <span style="margin-left:60px;margin-right:10px;">线下付款:</span> |
| | | <input type="checkbox" class="js-switch-offline-pay" id="isOfflinePay"/> |
| | | </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"> |
| | |
| | | </div> |
| | | |
| | | <div class="form-group"> |
| | | <label class="col-sm-2 control-label">代客下单</label> |
| | | <div class="col-sm-9" style="display:flex;align-items:center;"> |
| | | <span style="margin-right:10px;">修改金额:</span> |
| | | <input type="checkbox" class="js-switch-can-modify-amount" id="isCanModifyAmount" ${1== item.isCanModifyAmount ? 'checked=checked' : ''}/> |
| | | <span style="margin-left:60px;margin-right:10px;">线下付款:</span> |
| | | <input type="checkbox" class="js-switch-offline-pay" id="isOfflinePay" ${1== item.isOfflinePay ? 'checked=checked' : ''}/> |
| | | </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"> |
| | |
| | | </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;"> |
| | | <span style="margin-right:10px;">修改金额:</span> |
| | | <input type="checkbox" class="js-switch-can-modify-amount" id="isCanModifyAmount" ${1== item.isCanModifyAmount ? 'checked=checked' : ''}/> |
| | | <span style="margin-left:60px;margin-right:10px;">线下付款:</span> |
| | | <input type="checkbox" class="js-switch-offline-pay" id="isOfflinePay" ${1== item.isOfflinePay ? 'checked=checked' : ''}/> |
| | | </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"> |
| | |
| | | |
| | | var isNeedFerry = $("input[name='isNeedFerry']:checked").val(); |
| | | var isCanSelectSeat = $("input[name='isCanSelectSeat']:checked").val(); |
| | | var isCanModifyAmount = $("#isCanModifyAmount").is(":checked") ? 1 : 2; |
| | | var isOfflinePay = $("#isOfflinePay").is(":checked") ? 1 : 2; |
| | | var isOpenDriverSelfTrip = $("input[name='isOpenDriverSelfTrip']:checked").val(); |
| | | //提交信息 |
| | | var ajax = new $ax(Feng.ctxPath + "/tCompany/addFranchisee", function(data){ |
| | |
| | | } |
| | | ajax.set("isNeedFerry",isNeedFerry); |
| | | ajax.set("isCanSelectSeat",isCanSelectSeat); |
| | | ajax.set("isCanModifyAmount",isCanModifyAmount); |
| | | ajax.set("isOfflinePay",isOfflinePay); |
| | | ajax.set("isOpenDriverSelfTrip",isOpenDriverSelfTrip); |
| | | ajax.set("account",$("#account").val()); |
| | | ajax.set("password",$("#password").val()); |
| | |
| | | |
| | | var isNeedFerry = $("input[name='isNeedFerry']:checked").val(); |
| | | var isCanSelectSeat = $("input[name='isCanSelectSeat']:checked").val(); |
| | | var isCanModifyAmount = $("#isCanModifyAmount").is(":checked") ? 1 : 2; |
| | | var isOfflinePay = $("#isOfflinePay").is(":checked") ? 1 : 2; |
| | | var isOpenDriverSelfTrip = $("input[name='isOpenDriverSelfTrip']:checked").val(); |
| | | //提交信息 |
| | | var ajax = new $ax(Feng.ctxPath + "/tCompany/updateFranchisee", function(data){ |
| | |
| | | } |
| | | ajax.set("isNeedFerry",isNeedFerry); |
| | | ajax.set("isCanSelectSeat",isCanSelectSeat); |
| | | ajax.set("isCanModifyAmount",isCanModifyAmount); |
| | | ajax.set("isOfflinePay",isOfflinePay); |
| | | ajax.set("isOpenDriverSelfTrip",isOpenDriverSelfTrip); |
| | | ajax.set("account",$("#account").val()); |
| | | ajax.set("password",$("#password").val()); |
| | |
| | | |
| | | $(function() { |
| | | Feng.initValidator("franchiseeInfoForm", FranchiseeInfoDlg.validateFields); |
| | | var canModifyAmountSwitch = document.querySelector(".js-switch-can-modify-amount"); |
| | | if (canModifyAmountSwitch && !canModifyAmountSwitch.getAttribute("data-switchery")) { |
| | | new Switchery(canModifyAmountSwitch); |
| | | } |
| | | var offlinePaySwitch = document.querySelector(".js-switch-offline-pay"); |
| | | if (offlinePaySwitch && !offlinePaySwitch.getAttribute("data-switchery")) { |
| | | new Switchery(offlinePaySwitch); |
| | | } |
| | | }); |
| | | |
| | | //快车 |
| | |
| | | } |
| | | var isNeedFerry = $("input[name='isNeedFerry']:checked").val(); |
| | | var isCanSelectSeat = $("input[name='isCanSelectSeat']:checked").val(); |
| | | var isCanModifyAmount = $("#isCanModifyAmount").is(":checked") ? 1 : 2; |
| | | var isOfflinePay = $("#isOfflinePay").is(":checked") ? 1 : 2; |
| | | var isOpenDriverSelfTrip = $("input[name='isOpenDriverSelfTrip']:checked").val(); |
| | | //提交信息 |
| | | var ajax = new $ax(Feng.ctxPath + "/tCompany/add", function(data){ |
| | |
| | | } |
| | | ajax.set("isNeedFerry",isNeedFerry); |
| | | ajax.set("isCanSelectSeat",isCanSelectSeat); |
| | | ajax.set("isCanModifyAmount",isCanModifyAmount); |
| | | ajax.set("isOfflinePay",isOfflinePay); |
| | | ajax.set("isOpenDriverSelfTrip",isOpenDriverSelfTrip); |
| | | |
| | | ajax.set("subArr",JSON.stringify(subArr)); |
| | |
| | | } |
| | | var isNeedFerry = $("input[name='isNeedFerry']:checked").val(); |
| | | var isCanSelectSeat = $("input[name='isCanSelectSeat']:checked").val(); |
| | | var isCanModifyAmount = $("#isCanModifyAmount").is(":checked") ? 1 : 2; |
| | | var isOfflinePay = $("#isOfflinePay").is(":checked") ? 1 : 2; |
| | | var isOpenDriverSelfTrip = $("input[name='isOpenDriverSelfTrip']:checked").val(); |
| | | //提交信息 |
| | | var ajax = new $ax(Feng.ctxPath + "/tCompany/update", function(data){ |
| | |
| | | } |
| | | ajax.set("isNeedFerry",isNeedFerry); |
| | | ajax.set("isCanSelectSeat",isCanSelectSeat); |
| | | ajax.set("isCanModifyAmount",isCanModifyAmount); |
| | | ajax.set("isOfflinePay",isOfflinePay); |
| | | ajax.set("isOpenDriverSelfTrip",isOpenDriverSelfTrip); |
| | | |
| | | ajax.set("subArr",JSON.stringify(subArr)); |
| | |
| | | |
| | | $(function() { |
| | | Feng.initValidator("companyInfoForm", TCompanyInfoDlg.validateFields); |
| | | var canModifyAmountSwitch = document.querySelector(".js-switch-can-modify-amount"); |
| | | if (canModifyAmountSwitch && !canModifyAmountSwitch.getAttribute("data-switchery")) { |
| | | new Switchery(canModifyAmountSwitch); |
| | | } |
| | | var offlinePaySwitch = document.querySelector(".js-switch-offline-pay"); |
| | | if (offlinePaySwitch && !offlinePaySwitch.getAttribute("data-switchery")) { |
| | | new Switchery(offlinePaySwitch); |
| | | } |
| | | // 初始化图片上传 |
| | | var idCardPositive = new $WebUpload("idCardPositive"); |
| | | idCardPositive.setUploadBarId("progressBar"); |