add 混料订单

This commit is contained in:
lb
2023-03-14 09:40:05 +08:00
parent 0c71333957
commit 2dae6153fd
4 changed files with 310 additions and 19 deletions

View File

@@ -341,24 +341,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,
});
}
});
return this.$http
.post(this.urls.detach, data /* { id: data } */, { headers: { "Content-Type": "application/json" } })
.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,
});
}
});
}
}
},