fix: 增加重试接口

This commit is contained in:
zhangds 2024-04-06 14:16:38 +08:00
parent 404807fc7f
commit e37e08988b
1 changed files with 15 additions and 11 deletions

View File

@ -724,24 +724,28 @@
/* 验证后 最终提交 */ /* 验证后 最终提交 */
finalSubmit() { finalSubmit() {
this.loading = true;
const self = this; const self = this;
let data = { this.loading = true;
key: this.key,
code_batch_id: this.code_batch_id,
token: localStorage.getItem("token"),
account: this.form.receive_account,
receive_mode: 2
};
setTimeout(() => { setTimeout(() => {
this.loading = false; this.loading = false;
}, 2000) }, 2000)
if (this.goods.send_status === 3 || this.goods.send_status === 4) { if (this.goods.send_status === 3 || this.goods.send_status === 4) {
this.resetSubmit(data); // 重试 let params = {
token: localStorage.getItem("token"),
code_batch_id: this.code_batch_id,
channel_user_id: this.form.receive_account
}
this.resetSubmit(params); // 重试
} else { } else {
this.submitOne(data); // 普通提交 let params = {
key: this.key,
code_batch_id: this.code_batch_id,
token: localStorage.getItem("token"),
account: this.form.receive_account,
receive_mode: 2
};
this.submitOne(params); // 普通提交
} }
}, },