| | |
| | | } |
| | | TOrderPrivateCar.frozenOrder = function(){ |
| | | if (this.check()) { |
| | | if (TOrderPrivateCar.seItem.state != 5 ) { |
| | | swal("操作失败", "【服务中】状态下才能执行此操作", "warning"); |
| | | return; |
| | | }else{ |
| | | if (TOrderPrivateCar.seItem.isFrozen == 2){ |
| | | var ajax = new $ax(Feng.ctxPath + "/tOrderPrivateCar/frozenOrder", function (data) { |
| | | swal("操作订单成功", "您已经成功操作了。", "success"); |
| | | TOrderPrivateCar.table.refresh(); |
| | |
| | | }); |
| | | ajax.set("tOrderPrivateCarId", TOrderPrivateCar.seItem.id); |
| | | ajax.start(); |
| | | }else{ |
| | | if (TOrderPrivateCar.seItem.state != 5 ) { |
| | | swal("操作失败", "【服务中】状态下才能执行此操作", "warning"); |
| | | return; |
| | | }else{ |
| | | var ajax = new $ax(Feng.ctxPath + "/tOrderPrivateCar/frozenOrder", function (data) { |
| | | swal("操作订单成功", "您已经成功操作了。", "success"); |
| | | TOrderPrivateCar.table.refresh(); |
| | | layer.closeAll() |
| | | }, function (data) { |
| | | swal("操作订单失败", data.responseJSON.message + "!", "warning"); |
| | | layer.closeAll() |
| | | }); |
| | | ajax.set("tOrderPrivateCarId", TOrderPrivateCar.seItem.id); |
| | | ajax.start(); |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | } |
| | | } |
| | | /** |