| | |
| | | return new ResultUtil<>(0,0,"到店成功",null,null); |
| | | } |
| | | |
| | | @RequestMapping("/confirm/{id}") |
| | | @ResponseBody |
| | | public ResultUtil confirm(@PathVariable("id") Integer id) { |
| | | |
| | | System.out.println("============"+id); |
| | | SiteBooking siteBooking = new SiteBooking(); |
| | | siteBooking.setId(id); |
| | | siteBooking.setStatus(1); |
| | | iSiteBookingService.updateById(siteBooking); |
| | | |
| | | return new ResultUtil<>(0,0,"手动支付成功",null,null); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 获取变更列表 |
| | | */ |
| | |
| | | <#button name="修改" icon="fa-edit" clickFun="TStudent.openTStudentDetail()" space="true"/> |
| | | <#button name="确认到店" icon="fa-edit" clickFun="TStudent.openTStudentDetail1()" space="true"/> |
| | | <#button name="取消凭证" icon="fa-edit" clickFun="TStudent.openTStudentDetail4()" space="true"/> |
| | | <#button name="手动支付" icon="fa-edit" clickFun="TStudent.openTStudentDetail6()" space="true"/> |
| | | |
| | | <#button name="查看详情" icon="fa-edit" clickFun="TStudent.openTStudentDetail5()" space="true"/> |
| | | |
| | |
| | | } |
| | | }; |
| | | |
| | | |
| | | TStudent.openTStudentDetail6 = function () { |
| | | if (this.check()) { |
| | | |
| | | if (TStudent.seItem.status!=0){ |
| | | Feng.error("请选择待支付的数据") |
| | | return |
| | | } |
| | | |
| | | |
| | | parent.layer.confirm("是否手动支付" , { |
| | | btn: ['确定', '取消'] |
| | | }, function (index) { |
| | | let ajax = new $ax(Feng.ctxPath + "/ball/confirm/"+TStudent.seItem.id, function (data) { |
| | | Feng.success("手动支付" + "成功!"); |
| | | TStudent.table.refresh(); |
| | | }, function (data) { |
| | | Feng.error(state == 1 ? '手动支付' : "下架" + "失败!" + data.responseJSON.message + "!"); |
| | | }); |
| | | ajax.start(); |
| | | parent.layer.close(index); |
| | | |
| | | }, function (index) { |
| | | parent.layer.close(index); |
| | | } |
| | | |
| | | |
| | | ) |
| | | // var index = layer.open({ |
| | | // type: 2, |
| | | // title: '', |
| | | // area: ['30%', '40%'], //宽高 |
| | | // fix: false, //不固定 |
| | | // maxmin: true, |
| | | // content: Feng.ctxPath + '/ball/tocancel/' + TStudent.seItem.id |
| | | // }); |
| | | // |
| | | // this.layerIndex = index; |
| | | } |
| | | }; |
| | | |
| | | TStudent.openTStudentDetail2 = function () { |
| | | if (this.check()) { |
| | | var index = layer.open({ |