| | |
| | | }); |
| | | this.layerIndex = index; |
| | | }; |
| | | THuiminCard.addOrder = function (id, pageType) { |
| | | console.log(id) |
| | | let index = layer.open({ |
| | | type: 2, |
| | | title: '订单录入', |
| | | area: ['100%', '100%'], //宽高 |
| | | fix: false, //不固定 |
| | | maxmin: true, |
| | | content: Feng.ctxPath + '/tHuiminCard/tHuiminCardAddOrder' |
| | | }); |
| | | this.layerIndex = index; |
| | | }; |
| | | |
| | | /** |
| | | * 删除玩湃惠民卡 |
| | | */ |
| | | THuiminCard.delete = function () { |
| | | if (this.check()) { |
| | | var ajax = new $ax(Feng.ctxPath + "/tHuiminCard/delete", function (data) { |
| | | Feng.success("删除成功!"); |
| | | THuiminCard.table.refresh(); |
| | | }, function (data) { |
| | | Feng.error("删除失败!" + data.responseJSON.message + "!"); |
| | | // 添加二次确认 |
| | | Feng.confirm("确定要删除该玩湃惠民卡吗?", function () { |
| | | var ajax = new $ax(Feng.ctxPath + "/tHuiminCard/delete", function (data) { |
| | | Feng.success("删除成功!"); |
| | | THuiminCard.table.refresh(); |
| | | }, function (data) { |
| | | Feng.error("删除失败!" + data.responseJSON.message + "!"); |
| | | }); |
| | | ajax.set("tHuiminCardId", THuiminCard.seItem.id); |
| | | ajax.start(); |
| | | }); |
| | | ajax.set("tHuiminCardId",this.seItem.id); |
| | | ajax.start(); |
| | | } |
| | | }; |
| | | |