|
@@ -686,14 +686,14 @@ const submitForm = (status) => {
|
|
|
formData.data.fileList = [];
|
|
|
}
|
|
|
formData.data.status = status;
|
|
|
- if (status == "20") {
|
|
|
+ let type = "add";
|
|
|
+ if (formData.data.id && status == "20") {
|
|
|
proxy.post("/orderInfo/confirmation", formData.data).then(() => {
|
|
|
ElMessage({ message: "提交成功", type: "success" });
|
|
|
refreshStore().setRefresh("order");
|
|
|
clickCancel();
|
|
|
});
|
|
|
} else {
|
|
|
- let type = "add";
|
|
|
if (formData.data.id) {
|
|
|
type = "edit";
|
|
|
}
|