diff --git a/pages/post/openorder.vue b/pages/post/openorder.vue index badf3c0..ff60910 100644 --- a/pages/post/openorder.vue +++ b/pages/post/openorder.vue @@ -504,6 +504,7 @@ if(this.isEdit) { } let params = JSON.parse(JSON.stringify(this.submitParam)); params.goodsPics = params.goodsPics.join(",") + params._loading = true await saveServerHand(params) if(type == 'print') { this.showToast('操作成功') @@ -527,6 +528,7 @@ this.$refs.curPrint.startPrint({ imageUrl: imgUrls.filter(v=> !!v), }) + this.resetForm() }, async saveSuccessBack(){ let { savedConfirmTitle } = this.curPageType @@ -542,6 +544,12 @@ this.showToast('操作成功') this.goBack() } + }, + resetForm(){ + // 清空新建的数据 + if(this.showCreateBNoBtn) { + this.submitParam = this.getDefaultData().submitParam + } } } }