diff --git a/src/views/productionPlanning/customerForecastDemandReview/demandPlanning/articleDemand/index.vue b/src/views/productionPlanning/customerForecastDemandReview/demandPlanning/articleDemand/index.vue index 6ed04ae..545551f 100644 --- a/src/views/productionPlanning/customerForecastDemandReview/demandPlanning/articleDemand/index.vue +++ b/src/views/productionPlanning/customerForecastDemandReview/demandPlanning/articleDemand/index.vue @@ -401,10 +401,13 @@ // }); } }, - cancelPublicDialog(opt) { + cancelPublicDialog(data) { this.showPublicDialog = false - if (opt == "submit") { + if (data !== false) { this.handleQuery() + this.historyList.push({ + publishedVersionNr:data["version"] + }) } }, toggleChar() { diff --git a/src/views/productionPlanning/customerForecastDemandReview/demandPlanning/articleDemand/public.vue b/src/views/productionPlanning/customerForecastDemandReview/demandPlanning/articleDemand/public.vue index f77b0ca..d76a902 100644 --- a/src/views/productionPlanning/customerForecastDemandReview/demandPlanning/articleDemand/public.vue +++ b/src/views/productionPlanning/customerForecastDemandReview/demandPlanning/articleDemand/public.vue @@ -156,7 +156,7 @@ publicData(this.formData).then(({ data = [] }) => { this.loading = false this.$message({ type: "success", message: "发布成功" }); - this.$emit("cancelHandle", "submit") + this.$emit("cancelHandle", this.formData) }).catch(() => { this.loading = false });