diff --git a/ruoyi-admin/src/main/java/com/ruoyi/orders/controller/ZcOrderMainController.java b/ruoyi-admin/src/main/java/com/ruoyi/orders/controller/ZcOrderMainController.java
index 5b2f69d..5895966 100644
--- a/ruoyi-admin/src/main/java/com/ruoyi/orders/controller/ZcOrderMainController.java
+++ b/ruoyi-admin/src/main/java/com/ruoyi/orders/controller/ZcOrderMainController.java
@@ -163,9 +163,6 @@ public class ZcOrderMainController extends BaseController
public AjaxResult manualEndOrder(Long orderId)
{
int flag = zcOrderMainService.updateManualEndOrder(orderId);
- if(flag > 0) {
-
- }
return toAjax(flag);
}
diff --git a/ruoyi-admin/src/main/resources/templates/orders/order/edit.html b/ruoyi-admin/src/main/resources/templates/orders/order/edit.html
index 967e38c..894f066 100644
--- a/ruoyi-admin/src/main/resources/templates/orders/order/edit.html
+++ b/ruoyi-admin/src/main/resources/templates/orders/order/edit.html
@@ -175,7 +175,7 @@
-
+
diff --git a/ruoyi-admin/src/main/resources/templates/orders/order/order.html b/ruoyi-admin/src/main/resources/templates/orders/order/order.html
index 00c2158..ad7ba0a 100644
--- a/ruoyi-admin/src/main/resources/templates/orders/order/order.html
+++ b/ruoyi-admin/src/main/resources/templates/orders/order/order.html
@@ -140,7 +140,11 @@
width: '220px',
formatter: function(value, row, index) {
var actions = [];
- actions.push('' + value + ' ');
+ if(row.orderStatus != "AUTO_END" && row.orderStatus != "MANUAL_END" && row.orderStatus != "WAIT_PAY"){
+ actions.push('' + value + ' ');
+ }else{
+ actions.push('' + value + ' ');
+ }
return actions.join('');
}
},
@@ -255,6 +259,43 @@
$.table.init(options);
});
+ function manualClose(id){
+ var index = layer.open({
+ type: 2, // iframe模式
+ title: '确认手动结束订单?',
+ area: ['1300px', '800px'],
+ content: prefix + "/edit/" + id,
+ btn: [' 手动结束订单', ' 关闭'],
+ yes: function(index, layero){
+ // 通过提现申请
+ manualEndOrder(id, index);
+ return false;
+ },
+ btn2: function(index, layero){
+ // 关闭
+ layer.close(index);
+ return false;
+ }
+ });
+ };
+
+ function manualEndOrder(orderId,index){
+ $.modal.confirm("确认手动结束该订单
请确认车辆是否己归还,如未归还需要进行车辆丢失报损。
结束此订单不再计算租车费用,己支付租金不做退款。", function() {
+ $.operate.post(prefix + "/manualEndOrder", { "orderId": orderId}, function(result) {
+ if (result.code == web_status.SUCCESS) {
+ $.modal.msgSuccess("操作成功");
+ // 关闭
+ layer.close(index);
+ var parent = activeWindow();
+ parent.$.table.refresh();
+
+ } else {
+ $.modal.msgError(result.msg);
+ }
+ });
+
+ })
+ }