| | |
| | | {title: '优惠券总数', field: 'couponSum', visible: true, align: 'center', valign: 'middle'}, |
| | | {title: '消费次数', field: 'consumeSum', visible: true, align: 'center', valign: 'middle'}, |
| | | {title: '历史消费', field: 'consumePrice', visible: true, align: 'center', valign: 'middle'}, |
| | | {title: '最后一次消费时间', field: 'emergencyContact', visible: true, align: 'center', valign: 'middle'}, |
| | | {title: '状态', field: 'status', visible: true, align: 'center', valign: 'middle'}, |
| | | {title: '最后一次消费时间', field: 'lastConsumptionTime', visible: true, align: 'center', valign: 'middle'}, |
| | | {title: '状态', field: 'status', visible: true, align: 'center', valign: 'middle', |
| | | formatter: function (value, row) { |
| | | if (row.status === 1){ |
| | | return '<span>正常</span>' |
| | | }else if (row.status === 2){ |
| | | return '<span>冻结</span>' |
| | | }else if (row.status === 3){ |
| | | return '<span>已删除</span>' |
| | | } |
| | | } |
| | | }, |
| | | {title: '操作', visible: true, align: 'center', valign: 'middle',width:150, |
| | | formatter: function (value, row) { |
| | | if (row.status === 1){ |
| | |
| | | var index = layer.open({ |
| | | type: 2, |
| | | title: '停用', |
| | | area: ['45%', '50%'], //宽高 |
| | | area: ['800px', '420px'], //宽高 |
| | | fix: false, //不固定 |
| | | maxmin: true, |
| | | content: Feng.ctxPath + '/tAppUser/tAppUserException_start_and_stop?id='+id |
| | |
| | | var index = layer.open({ |
| | | type: 2, |
| | | title: '启用', |
| | | area: ['45%', '50%'], //宽高 |
| | | area: ['800px', '420px'], //宽高 |
| | | fix: false, //不固定 |
| | | maxmin: true, |
| | | content: Feng.ctxPath + '/tAppUser/tAppUserException_start_and_stop?id='+id |
| | |
| | | * 提交启用冻结 |
| | | */ |
| | | TAppUserException.updateStatus = function () { |
| | | var status = $("#status").val(); |
| | | if(status == 1 && ($("#stopRemark").val() == '' || $("#stopRemark").val() == null)){ |
| | | Feng.info("请输入冻结理由!") |
| | | return; |
| | | } |
| | | if(status == 2 && ($("#startRemark").val() == '' || $("#startRemark").val() == null)){ |
| | | Feng.info("请输入启用理由!") |
| | | return; |
| | | } |
| | | |
| | | var ajax = new $ax(Feng.ctxPath + "/tAppUser/update-status", function (data) { |
| | | Feng.success("修改成功!"); |
| | | TAppUserInfoDlg.closeException(); |
| | |
| | | }); |
| | | ajax.setData({ |
| | | userIds:$("#userIds").val(), |
| | | couponId:TCoupon.seItem.id, |
| | | couponName:TCoupon.seItem.couponName |
| | | }) |
| | | ajax.start(); |