| | |
| | | }, |
| | | {title: '条件金额', field: 'couponConditionalAmount', visible: true, align: 'center', valign: 'middle'}, |
| | | {title: '优惠金额', field: 'couponPreferentialAmount', visible: true, align: 'center', valign: 'middle'}, |
| | | {title: '数量', field: 'couponCount', visible: true, align: 'center', valign: 'middle'}, |
| | | {title: '数量', field: 'couponCount', visible: true, align: 'center', valign: 'middle', |
| | | formatter: function (value, row) { |
| | | if (row.couponCount === 0){ |
| | | return '<span>无限制</span>' |
| | | }else{ |
| | | return row.couponCount |
| | | } |
| | | } |
| | | }, |
| | | {title: '有效期', field: 'couponValidity', visible: true, align: 'center', valign: 'middle'}, |
| | | {title: '状态', field: 'couponState', visible: true, align: 'center', valign: 'middle', |
| | | formatter: function (value, row) { |
| | |
| | | TCoupon.table.refresh({query: queryData}); |
| | | }; |
| | | |
| | | /** |
| | | * 重置 |
| | | */ |
| | | TCoupon.resetSearch = function (){ |
| | | $("#couponType").val(''); |
| | | $("#couponServiceType").val(''); |
| | | $("#createTime").val(''); |
| | | TCoupon.search(); |
| | | } |
| | | |
| | | $(function () { |
| | | var defaultColunms = TCoupon.initColumn(); |
| | | var table = new BSTable(TCoupon.id, "/tCoupon/list", defaultColunms); |