|
@@ -537,15 +537,8 @@ const submitForm = (status) => {
|
|
|
formData.data.fileList = [];
|
|
|
}
|
|
|
formData.data.status = status;
|
|
|
- let type = "add";
|
|
|
- if (formData.data.id) {
|
|
|
- type = "edit";
|
|
|
- }
|
|
|
- proxy.post("/orderInfo/" + type, formData.data).then(() => {
|
|
|
- ElMessage({
|
|
|
- message: type == "add" ? "添加成功" : "编辑成功",
|
|
|
- type: "success",
|
|
|
- });
|
|
|
+ proxy.post("/orderInfo/confirmation", formData.data).then(() => {
|
|
|
+ ElMessage({ message: "编辑成功" });
|
|
|
refreshStore().setRefresh("order");
|
|
|
clickCancel();
|
|
|
});
|