Ver código fonte

异常订单都可删除

lxf 1 ano atrás
pai
commit
645302a739
1 arquivos alterados com 13 adições e 14 exclusões
  1. 13 14
      src/views/group/order/abnormal/index.vue

+ 13 - 14
src/views/group/order/abnormal/index.vue

@@ -139,19 +139,18 @@ const config = computed(() => {
                 },
               }
             : {},
-          row.status == 0 || row.status == 10 || row.status == 20
-            ? {
-                attrs: {
-                  label: "删除",
-                  type: "danger",
-                  text: true,
-                },
-                el: "button",
-                click() {
-                  clickDelete(row);
-                },
-              }
-            : {},
+          // row.status == 0 || row.status == 10 || row.status == 20
+          {
+            attrs: {
+              label: "删除",
+              type: "danger",
+              text: true,
+            },
+            el: "button",
+            click() {
+              clickDelete(row);
+            },
+          },
         ];
       },
     },
@@ -222,7 +221,7 @@ const clickDelete = (row) => {
     type: "warning",
   })
     .then(() => {
-      proxy.post("/orderInfo/delete", { id: row.id }).then(() => {
+      proxy.post("/orderInfo/deleteAndStore", { id: row.id }).then(() => {
         ElMessage({ message: "删除成功", type: "success" });
         getList();
       });