Commit ac3f2b8c by 李伟康

refactor(boutique): 优化客户邀约接待流程

- 在开始接待后增加异步处理,确保接待流程完成后再执行后续操作
- 添加判断条件,根据接待结果决定是否继续执行后续逻辑
- 通过 $nextTick 确保在设置客户信息前完成所有必要的更新
1 parent 83bfc005
......@@ -324,9 +324,12 @@ export default {
/**客户邀约接待 */
reception (customer) {
this.currentCarId = ''
this.$nextTick(() => {
this.$nextTick(async () => {
let { customerType } = this
if (customerType == -1) this.start(false) //开始接待
if (customerType == -1) {
const flag = await this.start(false)
if (!flag) return
} //开始接待
this.customerType = 0
this.jumpPage()
this.$nextTick(() => this.$store.dispatch('setCustomerInfo', customer))
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!