| | |
| | | }, |
| | | {title: '排序', field: 'sort', visible: true, align: 'center', valign: 'middle' |
| | | }, |
| | | {title: '活动状态', field: 'state', visible: true, align: 'center', valign: 'middle' |
| | | |
| | | {title: '活动状态', field: 'activeStatus', visible: true, align: 'center', valign: 'middle', |
| | | formatter: function (value, row, index) { |
| | | return {1: "未开始", 2: "已开始", 3: "已结束"}[value] |
| | | } |
| | | }, |
| | | {title: '可售状态', field: 'shelves', visible: true, align: 'center', valign: 'middle', |
| | | formatter: function (value, row, index) { |
| | |
| | | if (this.check()) { |
| | | var index = layer.open({ |
| | | type: 2, |
| | | title:'编辑', |
| | | area: ['100%', '100%'], //宽高 |
| | | title:'购买详情', |
| | | area: ['70%', '70%'], //宽高 |
| | | fix: false, //不固定 |
| | | maxmin: true, |
| | | content: Feng.ctxPath + '/tGoods/tCity_update/' + TPointProducts.seItem.id |
| | | content: Feng.ctxPath + '/tGoods/tPay_detail/' + TPointProducts.seItem.id |
| | | }); |
| | | this.layerIndex = index; |
| | | } |
| | |
| | | area: ['100%', '100%'], //宽高 |
| | | fix: false, //不固定 |
| | | maxmin: true, |
| | | content: Feng.ctxPath + '/tGoods/tCity_update/' + TPointProducts.seItem.id |
| | | content: Feng.ctxPath + '/tGoods/tGoods_update/' + TPointProducts.seItem.id |
| | | }); |
| | | this.layerIndex = index; |
| | | } |
| | |
| | | */ |
| | | TPointProducts.grounding = function (m) { |
| | | console.log('m:',m); |
| | | // if (this.check()) { |
| | | // var ajax = new $ax(Feng.ctxPath + "/tGoods/freeze", function (data) { |
| | | // Feng.success("冻结成功!"); |
| | | // TPointProducts.table.refresh(); |
| | | // }, function (data) { |
| | | // Feng.error("冻结失败!" + data.responseJSON.message + "!"); |
| | | // }); |
| | | // ajax.set("id",this.seItem.id); |
| | | // ajax.start(); |
| | | // } |
| | | if (this.check()) { |
| | | var ajax = new $ax(Feng.ctxPath + "/tGoods/grounding", function (data) { |
| | | Feng.success("操作成功!"); |
| | | TPointProducts.table.refresh(); |
| | | }, function (data) { |
| | | Feng.error("操作失败!" + data.responseJSON.message + "!"); |
| | | }); |
| | | ajax.set("id",this.seItem.id); |
| | | ajax.set("type",m); |
| | | ajax.start(); |
| | | } |
| | | }; |
| | | |
| | | |