|
@ -74,6 +74,7 @@ |
|
|
<script> |
|
|
<script> |
|
|
import { publishIdentify, publicData, planOrderQuery, republish } from '@/server/productionPlanning/customerForecastDemandReview' |
|
|
import { publishIdentify, publicData, planOrderQuery, republish } from '@/server/productionPlanning/customerForecastDemandReview' |
|
|
import PublicDetail from "./publicDetail.vue" |
|
|
import PublicDetail from "./publicDetail.vue" |
|
|
|
|
|
import { ElMessage } from 'element-plus' |
|
|
import { baseURL } from "@/server/request" |
|
|
import { baseURL } from "@/server/request" |
|
|
export default { |
|
|
export default { |
|
|
emits: ["cancelHandle"], |
|
|
emits: ["cancelHandle"], |
|
@ -156,9 +157,21 @@ |
|
|
this.loading = true |
|
|
this.loading = true |
|
|
publicData(this.formData).then(({ data = [] }) => { |
|
|
publicData(this.formData).then(({ data = [] }) => { |
|
|
this.loading = false |
|
|
this.loading = false |
|
|
this.$message({ type: "success", message: "发布成功" }); |
|
|
|
|
|
|
|
|
// this.$message({ type: "success", message: "发布成功" }); |
|
|
|
|
|
ElMessage({ |
|
|
|
|
|
showClose: true, |
|
|
|
|
|
message: '发布成功', |
|
|
|
|
|
type: 'success', |
|
|
|
|
|
duration: 0 |
|
|
|
|
|
}) |
|
|
this.$emit("cancelHandle", this.formData) |
|
|
this.$emit("cancelHandle", this.formData) |
|
|
}).catch(() => { |
|
|
|
|
|
|
|
|
}).catch((res) => { |
|
|
|
|
|
ElMessage({ |
|
|
|
|
|
showClose: true, |
|
|
|
|
|
message: res.msg, |
|
|
|
|
|
type: 'error', |
|
|
|
|
|
duration: 0 |
|
|
|
|
|
}) |
|
|
this.$emit("cancelHandle", this.formData) |
|
|
this.$emit("cancelHandle", this.formData) |
|
|
this.loading = false |
|
|
this.loading = false |
|
|
}); |
|
|
}); |
|
|