博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
jquery之onchange事件2
阅读量:6482 次
发布时间:2019-06-23

本文共 28843 字,大约阅读时间需要 96 分钟。

<%@ page language="java" contentType="text/html; charset=UTF-8"    pageEncoding="UTF-8"%><%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<% String memberId1 = request.getParameter("memberId");%>
请选择订单来源:
订单来源
请选择会员:     注册新会员
联系电话 手机号码 会员登录名 查询
订单批量导入
请选择商品和赠品:  
请选择收货地址:      使用新地址
请填写发票信息:  
发票类型 普通发票    无发票
发票内容类型 个人    单位
发票内容
单位名称
发票内容
请填写配送、支付信息:  
支付类型
优惠券信息:  
请输入优惠券号  
请使用账号中优惠券
结算信息如下:  
使用积分   积分与现金兑换比例为, 可用积分数为:,   兑换后可用现金为: 优惠券优惠金额
运费 订单金额 来源媒体
登录帐号      校验
登录密码
确认密码
会员姓名
手机号
收货地址  省   市   区
收货人 手机
电话 邮编
确定   
取消

create_order_main.js

var appPath = getAppPath();var _memberId = "";//会员idvar _memberCurrentPoints = 0;//会员当前可用积分var _pointVsMoney = 0;//现金与积分兑换比例参数$(function(){    $("#checkCouponNoA").show();    $("#checkCouponNoQK").hide();    genMemberGrid();    if($("#memberId1").val()!="" && $("#memberId1").val()!=null){        queryMember2();    }    genSkuGrid();    genAddressGrid();    generateAdrr();    genMulChannelComb();    getEcMultiChannelByNo();    //genPaymentTypeComb();    genNumberBox();    $("#vat").click();    $("#deliveryFeeTd").text("0.00");//运费显示为0    $("#orderFeeTd").text("0.00");//订单显示为0    $("#orderPoints").val("0");    $("#currentPoints").text("0");    $("#currentMoney").text("0");    //查找现金与积分兑换比例参数    _pointVsMoney = findPointVsMoneyParam();    $("#pointVsMoneySpan").text(_pointVsMoney+":1");    $.extend($.fn.validatebox.defaults.rules, {          maxLength: {              validator: function(value, param){                  return value.length <= param[0];              },              message: '最大{0}字,请确认 '          }      }); });/** * 生成会员Grid */function genMemberGrid(){    $("#memberGrid").datagrid({//        url:appPath+'/page/createOrder/member/list',        height:'160',        nowrap: true,        striped: true,        remoteSort:false,        singleSelect:true,        idField:'memberId',        checkbox:false,        frozenColumns:[[                        {field:'memberId',title:'操作',width:50,align:'center',                                formatter:function(value,rowData,rowIndex){                                      return "";                                }                            }                    ]],        columns:[[              {field:'realName',title:'会员姓名',width:80,align:'left',sortable:false},              {field:'loginName',title:'会员账号',width:80,align:'left',sortable:false},              {field:'mobile',title:'手机号码',width:80,align:'left',sortable:false},              {field:'tel',title:'电话号码',width:80,align:'left',sortable:false},              {field:'memberRankName',title:'会员等级',width:80,align:'left',sortable:false},              {field:'provinceName',title:'省',width:65,align:'left',sortable:false},              {field:'cityName',title:'市',width:65,align:'left',sortable:false},              {field:'areaName',title:'区/县',width:65,align:'left',sortable:false},              {field:'paymentLimit',title:'支付方式限制',width:65,align:'left',sortable:false,                      formatter:function(val){                        if(val=="only_KDFH"){                            return "只能使用款到发货进行支付";                        }else{                            return "";                        }                    }},              {field:'memberState',title:'黑名单',width:65,align:'left',sortable:false,                  formatter:function(val){                      if(val=="black"){                          return "已加入黑名单无法下单";                      }else{                          return "";                      }                  }}              ]],         pagination:true,         rownumbers:true,         pageSize:4,         pageList:[4],        onLoadSuccess:function(){            $("#memberGrid").datagrid('selectRow','0');//默认选中第1行        },        onSelect:function(rowIndex, rowData){            _memberId = rowData.memberId;            _memberCurrentPoints = rowData.currentPoints;            $("#op_HDFK").attr("disabled",false);            if(rowData.paymentLimit=="only_KDFH"){                $("#op_HDFK").attr("disabled",true);            }            loadAddressGrid(_memberId);            $("#currentPoints").html(_memberCurrentPoints);            var currentMoney = Math.round((_memberCurrentPoints/_pointVsMoney)*Math.pow(10,2))/Math.pow(10,2);            $("#currentMoney").text(parseInt(currentMoney));            //个人优惠券加载            couponNoXLComb(rowData.memberId);        }    });}/** * 生成商品grid */function genSkuGrid(){    $("#orderItemEditGrid").datagrid({        url:appPath+'/page/order/0/items',        height:160,        striped: true,        remoteSort:false,        singleSelect:false,        rownumbers:true,        idField:'orderItemId',        checkbox:true,        frozenColumns:[[              {field:'ck',checkbox:true},              {field:'opt',title:'操作',width:32,align:'center',                  formatter:function(value,rowData,rowIndex){                      return "";                  }              }                     ]],        columns:[[              {field:'goodsNo',title:'商品编码',width:100,align:'left',sortable:true},              {field:'goodsName',title:'商品名称',width:150,align:'left',sortable:true},              {field:'goodsType',title:'商品类型',width:80,align:'left',sortable:true,formatter:function(value){                      switch(value){                          case "gift":                              return "赠品";                              break;                          case "group":                              return "组合商品";                              break;                          default:                              return "普通商品";                              break;                      }                  }              },            {field:'goodsBiaoshi',title:'商品标识',width:80,align:'left',sortable:true,                formatter:function(value){                    if(value=="OTC") {                        return "非处方药甲类";                    }else if(value=="TC") {                        return "处方药";                    }else if(value=="OTHER") {                        return "普通商品";                    }else if(value=="SG") {                        return "隐形眼镜";                    }else if(value=="OTCy") {                        return "非处方药乙类";                    }else if(value=="DF") {                        return "代发商品";                    }                }            },              {field:'goodsOldPrice',title:'原价',width:80,align:'right',sortable:true,formatter:function(value){
if(!isNaN(Number(value))){
return Number(value).toFixed(2);}}}, {field:'goodsPrice',title:'成交价',width:60,align:'right',editor:{type:'numberbox',options:{required:true,min:0,precision:2}},sortable:true,formatter:function(value){
if(!isNaN(Number(value))){
return Number(value).toFixed(2);}}}, {field:'goodsAmount',title:'数量',width:60,align:'right',editor:{type:'numberbox',options:{required:true,min:1,precision:0}},sortable:true, formatter:function(value){ if(!isNaN(Number(value))){ return Number(value).toFixed(2); } } }, {field:'goodStock',title:'库存',width:60,align:'right',sortable:true,formatter:function(value){
if(!isNaN(Number(value))){
return Number(value).toFixed(2);}}}, {field:'goodsSumFee',title:'小计金额',width:60,align:'right',editor:{type:'numberbox',options:{required:true,min:0,precision:2,disabled:true}},sortable:true,formatter:function(value){
if(!isNaN(Number(value))){
return Number(value).toFixed(2);}}}, {field:'weight',title:'重量',hidden:true}, {field:'volume',title:'体积',hidden:true} ]], toolbar:[{ id:'btnadd', text:'添加商品', iconCls:'icon-add', handler:function(){ var exceptGoodsIdString = ""; var rows = $("#orderItemEditGrid").datagrid("getRows"); for(var i=0;i
0){ $("input[type=radio][name=invoiceContentType][value="+defContentType+"]").click(); }else{ $("input[type=radio][name=invoiceContentType]:eq(0)").click(); } break; case "vat": $("#headTr").after($("#vat_table").html()); break; default: break; }}/** * 选择发票内容类型radio * @param type */function changeContentType(type){ $("#invoiceTable tr[rel=dny_gen]").remove(); switch(type){ case "private": $("#cHeadTr").after($("#general_personal_table").html()); break; case "company": $("#cHeadTr").after($("#general_company_table").html()); break; default: $("#cHeadTr").siblings().remove(); break; }}/** * 打开注册新会员窗口 */function addMemberPage(){ $('#addForm').form('clear'); $('#addMemberDlg').window({ title:'注册新会员', width:500, height:280, left:100, modal: true, shadow: true, collapsible:false, minimizable:false, maximizable:false }); $('#addMemberDlg').window('move',{top:20}); $('#addMemberDlg').window('open');}/** * 检验会员账号是否存在 * @returns */function checkLoginName(){ var data = new Object(); data = {"loginName":$.trim($('#addLoginName').val())}; if(data.loginName==""||data.loginName==null){ $.messager.alert('提示信息','请输入登录帐号。','info'); return; } var url = appPath+"/page/createOrder/member/checkLoginName"; var result; doAjax({ url:url, type:'post', async:false, data:data, success:function(data){ if (data == "exist") { $.messager.alert('提示信息','输入的登录帐号已存在。','info'); result = false; } else { $.messager.alert('提示信息','恭喜,该登录帐号可以注册。','info'); result = true; } } }); return result; }/** * 保存新会员 */function addMember(){ if (checkLoginName()==true){ var loginName = $.trim($("#addLoginName").val()); var loginPassword = $.trim($("#addLoginPassword").val()); var confirmPassword = $.trim($("#addConfirmPassword").val()); var realName = $.trim($("#addRealName").val()); var mobile = $.trim($("#addMobile").val()); if(loginName == '') { $.messager.alert('提示信息','请录入登录帐号!','info'); return; } if(loginPassword == '') { $.messager.alert('提示信息','请录入登录密码!','info'); return; } if(confirmPassword == '') { $.messager.alert('提示信息','请录入确认密码!','info'); return; } if(confirmPassword != loginPassword) { $.messager.alert('提示信息','确认密码与登录密码不一致!','info'); return; } doAjax({ url:appPath+'/page/createOrder/member/add', type:'post', data:{
"loginName":loginName, "loginPassword":loginPassword, "realName":realName, "mobile":mobile}, success:function(data){ if(data='ok'){ $.messager.alert('提示信息','注册成功!','info'); } if(data!='ok'){ $.messager.alert('提示信息','抱歉,新增未能完成,'+data,'error'); } closeAddMemberDlg(); //一、根据手机号码,查询出刚添加的记录,并选中 $("#telphone").val(""); $("#mobile").val(mobile); $("#loginName").val(""); queryMember(); }, error:function(XMLHttpRequest, textStatus, errorThrown){ $.messager.alert('提示信息','抱歉,新增未能完成,'+textStatus,'error'); } }); }}/** * 关闭注册会员窗口 */function closeAddMemberDlg(){ $('#addMemberDlg').window('close');}/** * 查询会员 */function queryMember(){ $('#memberGrid').datagrid('options').url = appPath+'/page/createOrder/member/list'; var param = $('#memberGrid').datagrid('options').queryParams; param.mobile = $.trim($('#mobile').val()); param.loginName = $.trim($("#loginName").val()); param.tel = $.trim($("#tel").val()); param.memberId=""; $("#memberGrid").datagrid('unselectAll'); $("#memberGrid").datagrid('load',param);}/** * 查询会员 */function queryMember2(){ $('#memberGrid').datagrid('options').url = appPath+'/page/createOrder/member/list'; var param = $('#memberGrid').datagrid('options').queryParams; if($("#memberId1").val()!="" && $("#memberId1").val()!=null){ param.memberId = $.trim($("#memberId1").val()); }else{ param.memberId="0"; } $("#memberGrid").datagrid('unselectAll'); $("#memberGrid").datagrid('load',param);}/** * 重新加载会员Grid */function reloadMemberGrid(){ //$("#memberGrid").datagrid('unselectAll'); $("#memberGrid").datagrid('reload');}/** * 根据会员id,查询收货地址列表 * @param memberId */function loadAddressGrid(memberId){ var param = $("#addressGrid").datagrid('options').queryParams; param.memberId = memberId; $("#addressGrid").datagrid('unselectAll'); $("#addressGrid").datagrid('load',param);}/** * 打开收货地址窗口 */function addMemmberAddress(){ $('#addMemberAddressForm').form('clear'); $('#addMemberAddressWindow').window({ title:"添加收货地址", iconCls:'icon-add', modal: true, shadow: true, collapsible:false, minimizable:false, maximizable:false }); $('#addMemberAddressWindow').window('move',{top:300}); $('#addMemberAddressWindow').window('open');}/** * 生成地址下拉框 */function generateAdrr(){ var proFn = function(){ if($("#provinceId").combobox("getData").length > 1 && $("#hdProId").val()){ $("#provinceId").combobox("select",$("#hdProId").val()); } }; var cityFn = function(){ if($("#cityId").combobox("getData").length > 1 && $("#hdCityId").val()){ $("#cityId").combobox("select",$("#hdCityId").val()); $("#hdCityId").val(""); } }; var areaFn = function(){ if($("#areaId").combobox("getData").length > 1 && $("#hdAreaId").val()){ $("#areaId").combobox("select",$("#hdAreaId").val()); $("#hdAreaId").val(""); } }; createAreaLinkage("provinceId","cityId","areaId",proFn,cityFn,areaFn);}/** * 保存收货地址 */function saveAdd(){ if(!$('#addMemberAddressForm').form('validate')){ return; } var memberId = _memberId; var provinceId = $("#provinceId").combobox("getValue"); var cityId = $("#cityId").combobox("getValue"); var areaId = $("#areaId").combobox("getValue"); var address = $("#fullAddress").val(); var mobile = $("#receiveMobile").val(); var tel = $("#receiveTel").val(); var post = $("#receivePost").val(); var consignee = $("#receiveUser").val(); if(provinceId==null||provinceId==""){ $.messager.alert('提示信息','请选择省份!','info'); return; } if(cityId==null||cityId==""){ $.messager.alert('提示信息','请选择市!','info'); return; } if(areaId==null||areaId==""){ $.messager.alert('提示信息','请选择区县!','info'); return; } var memberAddress = {memberId:memberId,provinceId:provinceId,cityId:cityId,areaId:areaId,address:address,mobile:mobile,tel:tel,post:post,consignee:consignee}; if(memberId==""||memberId==null){ $.messager.alert('提示信息','请先选择会员,再添加收货地址!','info'); return; } doAjax({ url:appPath+'/page/createOrder/memberAddr/add', type:'post', data:memberAddress, success:function(data){ if(data='ok'){ $.messager.alert('提示信息','新增成功!','info'); } if(data!='ok'){ $.messager.alert('提示信息','抱歉,新增未能完成,'+data,'error'); } closeMemberAddressWindow(); loadAddressGrid(memberId); }, error:function(XMLHttpRequest, textStatus, errorThrown){ $.messager.alert('提示信息','抱歉,新增未能完成,'+textStatus,'error'); } });}/** * 关闭新增收货地址窗口 */function closeMemberAddressWindow(){ $('#addMemberAddressWindow').window('close');}/** * 生成多渠道combox */function genMulChannelComb(){ $("#multiChannelId").combobox({ url:appPath+"/page/createOrder/mulChannel/combox", valueField:"id", textField:"text", panelHeight:"auto", editable:false });}/** * 生成支付方式combox */function genPaymentTypeComb(){ doAjax({ url:appPath+'/page/createOrder/paymentType/combox', type:'post', data:"", async:false, success:function(data){ var options=""; for(var i=0;i
"+data[i].paymentTypeName+""; } $("#paymentTypeId").html(options); }, error:function(XMLHttpRequest, textStatus, errorThrown){ $.messager.alert('提示信息','系统错误,请与管理员联系!','error'); } });}/** * 订单来源默认选中呼叫中心 */function getEcMultiChannelByNo(){ doAjax({ url:appPath+'/page/createOrder/mulChannel/getByNo', type:'post', data:"", async:false, success:function(data){ var multiChannelId = data;//呼叫中心对应的multiChannelId $("#multiChannelId").combobox("setValue",multiChannelId); }, error:function(XMLHttpRequest, textStatus, errorThrown){ $.messager.alert('提示信息','系统错误,请与管理员联系!','error'); } });}/** * 添加货品(关闭货品查询公共窗口后回调方法) * @param {} goodsDatas */function addGoods(goodsDatas){ if(!goodsDatas){ return ; } for(var i=0;i
0){ for(var i=0;i
0){ submitObj.items = JSON.stringify(changedArray); }else{ $('body,html').scrollTop(0); $.messager.alert('提示',"请选择商品!",'info'); return; } //收货地址提交数据 var addressRecord = $("#addressGrid").datagrid("getSelected"); if(addressRecord==null){ $('body,html').scrollTop(0); $.messager.alert('提示',"请选择收货地址!",'info'); return; } submitObj.memberAddressId = addressRecord.memberAddressId; //地址ID submitObj.receiveUser = addressRecord.consignee; submitObj.provinceId = addressRecord.provinceId; submitObj.cityId = addressRecord.cityId; submitObj.areaId = addressRecord.areaId; submitObj.receiveAddress = addressRecord.address; submitObj.receiveFullAddress = addressRecord.fullAddress2; if(addressRecord.post==null){ submitObj.receivePost = ""; }else{ submitObj.receivePost = addressRecord.post; } submitObj.receiveTel = addressRecord.tel2; submitObj.receiveMobile = addressRecord.mobile2; submitObj.receiveEmail = addressRecord.email; //发票信息提交数据 var invioceObj = $("#editInvoiceForm").serializeObject(); $.extend(submitObj,invioceObj); //配送和支付提交数据 //submitObj.receiveDateType = $("#receiveDateType").val(); //submitObj.receiveTimeType = $("#receiveTimeType").val(); submitObj.paymentMode = $("#paymentMode").val(); //submitObj.paymentTypeId = $("#paymentTypeId").val(); submitObj.orderPoints =$("#orderPoints").val();// if(submitObj.receiveDateType==null||submitObj.receiveDateType==""){
// $('body,html').scrollTop(0);// $.messager.alert('提示',"请选择配送日期!",'info');// return;// }// if(submitObj.receiveTimeType==null||submitObj.receiveTimeType==""){
// $('body,html').scrollTop(0);// $.messager.alert('提示',"请选择配送时间!",'info');// return;// } if(submitObj.paymentMode==null||submitObj.paymentMode==""){ $.messager.alert('提示',"请选择支付类型!",'info'); return; } submitObj.orderPoints =$("#orderPoints").val(); if(submitObj.orderPoints==null||submitObj.orderPoints==""){ submitObj.orderPoints =0; } if(submitObj.orderPoints>_memberCurrentPoints){ $('body,html').scrollTop(0); $.messager.alert('提示',"所输入的积分数不能大于该会员的可用积分数!",'info'); return; } //结算信息提交数据,计算运费、货品总重、货款金额、优惠后金额、订单金额 $.extend(submitObj,calcFee()); if(submitObj.orderFee<=0){ $.messager.alert('提示',"订单金额不能小于0",'info'); return; } if(submitObj.orderFee
0){ var str=$('input:radio[name="couponNoChoose"]:checked').val(); //判断是选择输入框还是下拉框 if(str=="SRK"){ submitObj.couponNo=$("#couponNo").val(); //优惠券号码 }else if(str=="XL"){ submitObj.couponNo=$("#couponNoXL").val(); //优惠券号码 } } //销售下单账号积分使用判断 if(submitObj.orderPoints>0 && "jy"==submitObj.loginName){ $('body,html').scrollTop(0); $.messager.alert('提示',"jy账号不能使用积分!",'info'); return; } $('body,html').scrollTop(0); $.messager.confirm('提示信息','您确定提交订单吗?',function(r){ if(r){ doAjax({ url:appPath + "/page/createOrderConnector/orderInfo/save", type:"post", data:submitObj, success:function(data){ var code = data.code; switch(code){ case 0: $.messager.alert('提示',data.msg,'info'); break; case 1: $.messager.alert("下单成功!","订单号为:"+data.msg,'info'); break; case 2: $.messager.alert('提示',data.msg,'info'); break; case 3: $.messager.alert('提示',data.msg,'info'); break; default: $.messager.alert('提示',data,'info'); break; } }, error:function(XMLHttpRequest, textStatus, errorThrown){ $.messager.alert('提示信息','订单提交失败!,'+textStatus,'error'); } }); } });}/** * 关闭货品Grid的编辑功能 */function endEdit(){ var allRows = $("#orderItemEditGrid").datagrid("getRows"); for (var i=0;i
0){ $.messager.alert('提示',"积分必须是"+_pointVsMoney+"的倍数",'info'); return; } var calcParam = new Object(); //关闭货品Grid的编辑功能 //endEdit(); //收货地址提交数据 var addressRecord = $("#addressGrid").datagrid("getSelected"); if(addressRecord!=null){ calcParam.provinceId = addressRecord.provinceId; calcParam.cityId = addressRecord.cityId; calcParam.areaId = addressRecord.areaId; } var feeObject = new Object(); var orderSkuWeights = 0;//货品总重 var orderSkuVolume = 0;//货品总体积 var orderDeliveryFee = 0;//运费 var orderSkuFee = 0;//货款金额 var orderDiscountFee = 0;//优惠后金额 var orderFee = 0;//订单金额 var orderPointsMoney=0;//积分兑换后的现金值 var orderPoints = $("#orderPoints").val(); var otherDiscounts = 0;//其他优惠 var orderVouchers = 0;//使用代金劵 var discountFee = 0;//手工优惠 var couponNoFee=$("#couponNoFee").val(); //优惠券优惠金额 //检查现金与积分兑换比例参数是否设置 if(_pointVsMoney==""||_pointVsMoney==null){ $('body,html').scrollTop(0); $.messager.alert('提示',"现金与积分兑换比例参数未设置!",'info'); return; } //计算现金与积分兑换后的值 if(_memberCurrentPoints>0&&orderPoints>0&&_pointVsMoney!=0){ orderPointsMoney = Math.round((orderPoints/_pointVsMoney)*Math.pow(10,2))/Math.pow(10,2); } var allRows = $("#orderItemEditGrid").datagrid("getRows"); for (var i=0;i
"+data[i].text+"" ); } } }, });}/** * 验证优惠券(确定按钮,减金额) */function checkCouponNo(){ var orderInfo=new Object(); //货品和赠品提交数据 var changedArray = []; var insertRows = $("#orderItemEditGrid").datagrid("getChanges","inserted"); var insertLength = insertRows.length; if(insertLength > 0){ for(var i=0;i
0){ orderInfo.items = JSON.stringify(changedArray); }else{ $('body,html').scrollTop(0); $.messager.alert('提示',"请选择商品!",'info'); return; } //会员提交数据 var memberRecord = $("#memberGrid").datagrid("getSelected"); if(memberRecord==null){ $('body,html').scrollTop(0); $.messager.alert('提示',"请选择会员!",'info'); return; } var str=$('input:radio[name="couponNoChoose"]:checked').val(); //判断是选择输入框还是下拉框 //优惠券号 if(str=="SRK"){ if($("#couponNo").val()==null||$("#couponNo").val()==""){ $.messager.alert('提示',"请输入优惠券号",'info'); return; } if(checkNumberOrStr($("#couponNo").val())==false){ $.messager.alert('提示',"优惠券号只能为字母、数字",'info'); return; } orderInfo.couponNo=$("#couponNo").val(); }else if(str=="XL"){ if($("#couponNoXL").val()=="请选择"||$("#couponNoXL").val()==null||$("#couponNoXL").val()==""){ $.messager.alert('提示',"请使用账号中优惠券",'info'); return; } orderInfo.couponNo=$("#couponNoXL").val(); } orderInfo.memberId = memberRecord.memberId; doAjax({ url:appPath+'/page/createOrderConnector/order/checkVoucher', type:'post', data:orderInfo, async:false, success:function(data){ if(data.status=="NORMAL"){ //扣金额,灰按钮 if(data.result.result!="ok"){ $("#couponNoFee").val(""); //优惠券金额清空 if(str=="SRK"){ $("#couponNo").val(""); //优惠券号码清空 }else if(str=="XL"){ //个人优惠券加载 couponNoXLComb(_memberId); } $.messager.alert('提示信息',data.result.resultStr,'info'); return; }else{ //赋值优惠券金额 $("#couponNoFee").val(data.result.ecCoupons.discountFee); //重新计算订单金额(金额进行加) calcFee(); $("#checkCouponNoA").hide(); $("#checkCouponNoQK").show(); $("#couponNo").attr("readonly",true); } } $.messager.alert('提示信息',data.message,'info'); }, });}/** * 优惠券清空(加金额) */function checkCouponNoQK(){ var str=$('input:radio[name="couponNoChoose"]:checked').val(); //判断是选择输入框还是下拉框 $("#checkCouponNoA").show(); $("#checkCouponNoQK").hide(); $("#couponNoFee").val(""); //清空优惠券优惠金额,订单金额进行重新计算 $("#couponNo").attr("readonly",false); if(str=="SRK"){ $("#couponNo").val(""); //优惠券号码清空 }else if(str=="XL"){ //个人优惠券加载 couponNoXLComb(_memberId); //下拉框重置 } //重新计算订单金额(金额进行减) calcFee();}

 

转载地址:http://gefuo.baihongyu.com/

你可能感兴趣的文章
php-jquery-json-3
查看>>
前后端分离djangorestframework——ContentType组件表
查看>>
consul UI用127可以访问,指定ip无法访问
查看>>
【转】c++析构函数(Destructor)
查看>>
Android_Drawable Bitmap Canvas Paint之间区别[转]
查看>>
正确认识和使用鲁班尺
查看>>
Linux学习之常用网络通信命令与shell简单应用技巧(四)
查看>>
阅读计数功能实现
查看>>
Python-递归实现
查看>>
webbench压力性能测试
查看>>
java StrutsTypeConverter的使用
查看>>
取出重复的客运车班次,两个字段的值互换视为重复值
查看>>
Android O编译前修改文件和目录权限
查看>>
n!素因子p的幂 swjtuOJ 2090【数论】
查看>>
UT-Exynos4412 三星ARM四核旗舰开发平台android4.0体验-13串口功能调试
查看>>
设计模式状态
查看>>
day44-Celery异步分布式
查看>>
Android学习之Android studio TraceView和lint工具的使用具体解释
查看>>
python做var模型的滞后阶数怎么确定_请问关于VAR模型的滞后阶数怎么确定?
查看>>
java多线程理解_三个趣味故事,让你如何理解Java多线程!
查看>>