add 压制订单

This commit is contained in:
lb
2023-03-13 16:58:08 +08:00
parent 09bce178de
commit 0c71333957
4 changed files with 307 additions and 2 deletions

View File

@@ -79,7 +79,7 @@ export default {
/** dialog configs 或许可以从 tableConfig 计算出来 computed... */
dialogConfigs: {
type: Object,
default: () => null
default: () => null,
},
},
computed: {
@@ -340,6 +340,26 @@ export default {
},
});
}
case "detach": {
return this.$http.post(this.urls.detach, { id: data }).then(({ data: res }) => {
if (res.code === 0) {
this.$message({
message: "下发成功",
type: "success",
duration: 1500,
onClose: () => {
this.getList();
},
});
} else {
this.$message({
message: `${res.code}: ${res.msg}`,
type: "error",
duration: 1500,
});
}
});
}
}
},