diff --git a/src/pages/wms/Raw/ProductionREQ/index.vue b/src/pages/wms/Raw/ProductionREQ/index.vue index f64d7f9..19125c4 100644 --- a/src/pages/wms/Raw/ProductionREQ/index.vue +++ b/src/pages/wms/Raw/ProductionREQ/index.vue @@ -353,14 +353,14 @@ export default class ProductionREQ extends BasePage { this.isdisabled = false; if (this.model.SubmitCode == '200') { (this.$refs.uToast as any).show({ - title: '成功', + title: this.model.Submitmsg, type: 'success', }); this.mepty(); //this.getlist(); } else { (this.$refs.uToast as any).show({ - title: '失败', + title: this.model.Submitmsg, type: 'error', }); //this.getlist(); diff --git a/src/pages/wms/Raw/ProductionREQ/model.ts b/src/pages/wms/Raw/ProductionREQ/model.ts index 70d3622..e6e3e87 100644 --- a/src/pages/wms/Raw/ProductionREQ/model.ts +++ b/src/pages/wms/Raw/ProductionREQ/model.ts @@ -71,11 +71,13 @@ export class ProductionREQ extends VuexModule { const SubmitCode = result.code; return { SubmitCode }; } + Submitmsg: any = ''; @MutationAction async out(params: any) { const result: any = await http.post(url.lanjuwms.raw.ProductionREQ.NewConMaterialOutSCNew, params); const SubmitCode = result.code; - return { SubmitCode }; + const Submitmsg = result.msg; + return { SubmitCode, Submitmsg }; } warehouselist: any = []; @MutationAction