|
@@ -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();
|
|
|
});
|