| | |
| | | */ |
| | | SysCouponRecord.initColumn = function () { |
| | | return [ |
| | | {field: 'selectItem', radio: true}, |
| | | {title: '', field: 'id', visible: false, align: 'center', valign: 'middle'}, |
| | | {title: '添加时间', field: 'insertTime', visible: true, align: 'center', valign: 'middle'}, |
| | | {title: '优惠券名称', field: 'name', visible: true, align: 'center', valign: 'middle'}, |
| | |
| | | if(value==0){ |
| | | return "通用券"; |
| | | }else if(value==1){ |
| | | return "快车券"; |
| | | return "专车券"; |
| | | }else if(value==2){ |
| | | return "出租券"; |
| | | }else if(value==3){ |
| | |
| | | }else{ |
| | | SysCouponRecord.seItem = selected[0]; |
| | | return true; |
| | | } |
| | | }; |
| | | |
| | | |
| | | /** |
| | | * 确认选择优惠券,回填到打车卡优惠包页面 |
| | | */ |
| | | SysCouponRecord.sureCheck = function(){ |
| | | if (this.check()){ |
| | | window.parent.TTaxiCardInfoDlg.rollBackCheck(SysCouponRecord.seItem.id.toString(),SysCouponRecord.seItem.name,$("#num").val()); |
| | | parent.layer.close(window.parent.TTaxiCardInfoDlg.layerIndex); |
| | | } |
| | | }; |
| | | |