| | |
| | | {title: '发放数量', field: 'quantityIssued', visible: true, align: 'center', valign: 'middle'}, |
| | | {title: '限领数量', field: 'pickUpQuantity', visible: true, align: 'center', valign: 'middle'}, |
| | | {title: '已领数量', field: 'hasPickQty', visible: true, align: 'center', valign: 'middle'}, |
| | | {title: '活动状态', field: 'status', visible: true, align: 'center', valign: 'middle', |
| | | formatter: function (value, row, index) { |
| | | return {1: "未开始", 2: "已开始", 3: "已结束"}[value] |
| | | }}, |
| | | {title: '可售状态', field: 'state', visible: true, align: 'center', valign: 'middle', |
| | | formatter: function (value, row, index) { |
| | | return {1: "上架", 2: "下架"}[value] |
| | | }}, |
| | | {title: '审核状态', field: 'auditStatus', visible: true, align: 'center', valign: 'middle', |
| | | |
| | | {title: '发布类型', field: 'publisherType', visible: true, align: 'center', valign: 'middle', |
| | | formatter: function (value, row, index) { |
| | | return {1: "待审核", 2: "已通过",3: "已拒绝"}[value] |
| | | }}, |
| | | return {1: "运营商", 2: "平台",3: "门店"}[value] |
| | | } |
| | | }, |
| | | ]; |
| | | }; |
| | | |
| | |
| | | TCoupon.openChange = function () { |
| | | if (this.check()){ |
| | | let size = TCoupon.seItem.size |
| | | |
| | | if(size>0){ |
| | | Feng.info("没有该权限"); |
| | | return; |
| | | } |
| | | let publisherType = TCoupon.seItem.publisherType; |
| | | if ($("#objectType").val()==2){ |
| | | if(publisherType != 1){ |
| | | Feng.info("不能操作平台添加的优惠券"); |
| | | return; |
| | | } |
| | | } |
| | | let id = TCoupon.seItem.id |
| | | let name = TCoupon.seItem.name |
| | | let quantityIssued = TCoupon.seItem.quantityIssued |