This commit is contained in:
aihe 2024-07-19 01:56:24 +08:00
parent 538b3b93b4
commit 47184278a0

View File

@ -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
}
}
}
}