|
@@ -686,18 +686,26 @@ const submitForm = (status) => {
|
|
formData.data.fileList = [];
|
|
formData.data.fileList = [];
|
|
}
|
|
}
|
|
formData.data.status = status;
|
|
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",
|
|
|
|
|
|
+ if (status == "20") {
|
|
|
|
+ proxy.post("/orderInfo/confirmation", formData.data).then(() => {
|
|
|
|
+ ElMessage({ message: "提交成功", type: "success" });
|
|
|
|
+ refreshStore().setRefresh("order");
|
|
|
|
+ clickCancel();
|
|
});
|
|
});
|
|
- refreshStore().setRefresh("order");
|
|
|
|
- clickCancel();
|
|
|
|
- });
|
|
|
|
|
|
+ } else {
|
|
|
|
+ let type = "add";
|
|
|
|
+ if (formData.data.id) {
|
|
|
|
+ type = "edit";
|
|
|
|
+ }
|
|
|
|
+ proxy.post("/orderInfo/" + type, formData.data).then(() => {
|
|
|
|
+ ElMessage({
|
|
|
|
+ message: type == "add" ? "添加成功" : "编辑成功",
|
|
|
|
+ type: "success",
|
|
|
|
+ });
|
|
|
|
+ refreshStore().setRefresh("order");
|
|
|
|
+ clickCancel();
|
|
|
|
+ });
|
|
|
|
+ }
|
|
} else {
|
|
} else {
|
|
return ElMessage("请添加产品");
|
|
return ElMessage("请添加产品");
|
|
}
|
|
}
|