|
@@ -413,8 +413,6 @@ export default {
|
|
|
},
|
|
|
/*提交*/
|
|
|
getSubmit(){
|
|
|
- this.dialogFormVisible = false
|
|
|
- this.loading = true
|
|
|
if (this.form.date.length === 0){
|
|
|
this.form.begdate = ''
|
|
|
this.form.enddate = ''
|
|
@@ -425,6 +423,7 @@ export default {
|
|
|
}
|
|
|
this.$refs.form.validate(async (valid) => {
|
|
|
if (!valid) return false
|
|
|
+ this.loading = true
|
|
|
this.form.discountrate = this.form.discountrate / 100
|
|
|
this.form.sa_quotedpriceid = this.ownerid
|
|
|
const res = await this.$api.requested({
|
|
@@ -433,6 +432,7 @@ export default {
|
|
|
})
|
|
|
if (res.code == 0){
|
|
|
this.loading = false
|
|
|
+ this.tool.showMessage(res,()=>{})
|
|
|
}
|
|
|
this.tool.showMessage(res,() => {
|
|
|
this.loading = false
|