ManagementZYTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/controller/specialTrain/TSpecialAreaBillingController.java
@@ -71,6 +71,7 @@ public String edit(@PathVariable("id") Integer id,Model model) { SpecialAreaBilling specialAreaBilling = specialAreaBillingService.selectById(id); model.addAttribute("data",specialAreaBilling); model.addAttribute("id",id); return PREFIX + "specialAreaBilling_edit.html"; } /** @@ -100,7 +101,7 @@ specialAreaBilling.setAreaName(areaName); specialAreaBilling.setPriceCoefficient(Double.parseDouble(priceCoefficient)); specialAreaBilling.setRemark(remark); specialAreaBilling.setCoordinate(coordinate); specialAreaBilling.setCoordinate(coordinate.replace("_","")); specialAreaBilling.setState(state); specialAreaBilling.setInsertTime(new Date()); specialAreaBillingService.insert(specialAreaBilling); @@ -113,7 +114,7 @@ specialAreaBilling.setAreaName(areaName); specialAreaBilling.setPriceCoefficient(Double.parseDouble(priceCoefficient)); specialAreaBilling.setRemark(remark); specialAreaBilling.setCoordinate(coordinate); specialAreaBilling.setCoordinate(coordinate.replace("_","")); specialAreaBilling.setState(state); specialAreaBillingService.updateById(specialAreaBilling); return ResultUtil.success(); ManagementZYTravel/guns-admin/src/main/webapp/WEB-INF/view/system/specialAreaBilling/specialAreaBilling_add.html
@@ -104,8 +104,8 @@ <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="TSiteInfoDlg.addSubmit()"/> <#button btnCss="danger" name="取消" id="cancel" icon="fa-eraser" clickFun="TSiteInfoDlg.close()"/> <#button btnCss="info" name="提交" id="ensure" icon="fa-check" clickFun="SpecialAreaBillingInfoDlg.addSubmit()"/> <#button btnCss="danger" name="取消" id="cancel" icon="fa-eraser" clickFun="SpecialAreaBillingInfoDlg.close()"/> </div> </div> </div> ManagementZYTravel/guns-admin/src/main/webapp/WEB-INF/view/system/specialAreaBilling/specialAreaBilling_edit.html
@@ -2,9 +2,8 @@ <div class="ibox float-e-margins" xmlns="http://www.w3.org/1999/html"> <div class="ibox-content"> <div class="form-horizontal" id="siteInfoForm"> <input type="hidden" id="id" value="${id}"> <div class="row"> <input type="hidden" id="id" name="id" value="${data.id}"> <div class="col-sm-12"> <div class=""> <h3 style="margin-left: 100px;">特殊区域价格设置编辑</h3> @@ -108,8 +107,8 @@ <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="TSiteInfoDlg.editSubmit()"/> <#button btnCss="danger" name="取消" id="cancel" icon="fa-eraser" clickFun="TSiteInfoDlg.close()"/> <#button btnCss="info" name="提交" id="ensure" icon="fa-check" clickFun="SpecialAreaBillingInfoDlg.editSubmit()"/> <#button btnCss="danger" name="取消" id="cancel" icon="fa-eraser" clickFun="SpecialAreaBillingInfoDlg.close()"/> </div> </div> </div> ManagementZYTravel/guns-admin/src/main/webapp/static/modular/system/specialAreaBilling/specialAreaBilling_info.js
@@ -1,8 +1,8 @@ /** * 初始化跨城站点管理详情对话框 */ var TSiteInfoDlg = { tSiteInfoData : {}, var SpecialAreaBillingInfoDlg = { specialAreaBillingInfoData : {}, validateFields: { name: { validators: { @@ -24,7 +24,7 @@ /** * 验证数据是否为空 */ TSiteInfoDlg.validate = function () { SpecialAreaBillingInfoDlg.validate = function () { $('#siteInfoForm').data("bootstrapValidator").resetForm(); $('#siteInfoForm').bootstrapValidator('validate'); return $("#siteInfoForm").data('bootstrapValidator').isValid(); @@ -34,8 +34,8 @@ /** * 清除数据 */ TSiteInfoDlg.clearData = function() { this.tSiteInfoData = {}; SpecialAreaBillingInfoDlg.clearData = function() { this.specialAreaBillingInfoData = {}; } /** @@ -44,8 +44,8 @@ * @param key 数据的名称 * @param val 数据的具体值 */ TSiteInfoDlg.set = function(key, val) { this.tSiteInfoData[key] = (typeof val == "undefined") ? $("#" + key).val() : val; SpecialAreaBillingInfoDlg.set = function(key, val) { this.specialAreaBillingInfoData[key] = (typeof val == "undefined") ? $("#" + key).val() : val; return this; } @@ -55,21 +55,21 @@ * @param key 数据的名称 * @param val 数据的具体值 */ TSiteInfoDlg.get = function(key) { SpecialAreaBillingInfoDlg.get = function(key) { return $("#" + key).val(); } /** * 关闭此对话框 */ TSiteInfoDlg.close = function() { parent.layer.close(window.parent.TSite.layerIndex); SpecialAreaBillingInfoDlg.close = function() { parent.layer.close(window.parent.SpecialAreaBilling.layerIndex); } /** * 收集数据 */ TSiteInfoDlg.collectData = function() { SpecialAreaBillingInfoDlg.collectData = function() { this .set('id') .set('name') @@ -87,7 +87,7 @@ /** * 提交添加 */ TSiteInfoDlg.addSubmit = function() { SpecialAreaBillingInfoDlg.addSubmit = function() { var areaName = $("#areaName").val(); if ("" == areaName ){ @@ -111,7 +111,7 @@ if(data.status == 200){ Feng.success("添加成功!"); window.parent.SpecialAreaBilling.table.refresh(); TSiteInfoDlg.close(); SpecialAreaBillingInfoDlg.close(); }else{ Feng.error(data.msg); } @@ -135,7 +135,7 @@ /** * 提交添加 */ TSiteInfoDlg.addSubmit = function() { SpecialAreaBillingInfoDlg.addSubmit = function() { var areaName = $("#areaName").val(); if ("" == areaName ){ @@ -159,7 +159,7 @@ if(data.status == 200){ Feng.success("添加成功!"); window.parent.SpecialAreaBilling.table.refresh(); TSiteInfoDlg.close(); SpecialAreaBillingInfoDlg.close(); }else{ Feng.error(data.msg); } @@ -180,7 +180,7 @@ ajax.set("coordinate",coordinate); ajax.start(); } TSiteInfoDlg.editSubmit = function() { SpecialAreaBillingInfoDlg.editSubmit = function() { var areaName = $("#areaName").val(); if ("" == areaName ){ @@ -204,7 +204,7 @@ if(data.status == 200){ Feng.success("修改!"); window.parent.SpecialAreaBilling.table.refresh(); TSiteInfoDlg.close(); SpecialAreaBillingInfoDlg.close(); }else{ Feng.error(data.msg); } @@ -232,12 +232,12 @@ */ $(function() { Feng.initValidator("siteInfoForm", TSiteInfoDlg.validateFields); Feng.initValidator("siteInfoForm", SpecialAreaBillingInfoDlg.validateFields); }); //省改变 TSiteInfoDlg.provinceChange = function (e) { SpecialAreaBillingInfoDlg.provinceChange = function (e) { var provinceCode=$(e).val(); var ajax = new $ax(Feng.ctxPath + "/tCompany/change", function(data){ if(data!=null){ @@ -253,7 +253,7 @@ ajax.start(); } //市改变 TSiteInfoDlg.cityChange = function (e) { SpecialAreaBillingInfoDlg.cityChange = function (e) { var cityCode=$(e).val(); var ajax = new $ax(Feng.ctxPath + "/tCompany/change", function(data){ if(data!=null){ @@ -271,7 +271,7 @@ * 类型改变执行 * @param e */ TSiteInfoDlg.areaTypeClick = function (e) { SpecialAreaBillingInfoDlg.areaTypeClick = function (e) { if (1 == e){//行政区域 $("#areaType1Div").show(); $("#areaType2Div").hide(); @@ -282,7 +282,7 @@ } //站点区域省改变 TSiteInfoDlg.provinceChange1 = function (e) { SpecialAreaBillingInfoDlg.provinceChange1 = function (e) { var provinceCode=$(e).val(); var ajax = new $ax(Feng.ctxPath + "/tCompany/change", function(data){ if(data!=null){ @@ -298,7 +298,7 @@ ajax.start(); } //站点区域市改变 TSiteInfoDlg.cityChange1 = function (e) { SpecialAreaBillingInfoDlg.cityChange1 = function (e) { var cityCode=$(e).val(); var ajax = new $ax(Feng.ctxPath + "/tCompany/change", function(data){ if(data!=null){ @@ -316,7 +316,7 @@ /** * 添加区域 */ TSiteInfoDlg.addArea = function () { SpecialAreaBillingInfoDlg.addArea = function () { var areaType = $("input[name='areaType']:checked").val(); var b = false; ManagementZYTravel/guns-admin/src/main/webapp/static/modular/system/tDriver/yesDriver.js
@@ -690,7 +690,8 @@ var id = YesDriver.seItem.id; var mount = $("#mount").val(); var type = $("#type").val(); var ajax = new $ax(Feng.ctxPath + "/tDriver/changeMoney", function (data) { var remark = $("#remark").val(); var ajax = new $ax(Feng.ctxPath + "/tIncome/changeMoney", function (data) { if (data == 502){ Feng.error("司机余额小于扣除的金额!"); return; @@ -720,9 +721,9 @@ var agreement; var agreement; $(function(){ agreement = new agreement(); agreement = new agreement(); agreement.init(); });