|  | @@ -659,28 +659,6 @@ export default {
 | 
	
		
			
				|  |  |          },
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |          /**
 | 
	
		
			
				|  |  | -         * 新增前的回调
 | 
	
		
			
				|  |  | -         * @param {Function} done - 完成回调
 | 
	
		
			
				|  |  | -         * @param {string} type - 操作类型
 | 
	
		
			
				|  |  | -         */
 | 
	
		
			
				|  |  | -        async beforeOpen(done, type) {
 | 
	
		
			
				|  |  | -            // 确保客户选项已加载
 | 
	
		
			
				|  |  | -            if (this.customerOptions.length === 0) {
 | 
	
		
			
				|  |  | -                await this.loadCustomerOptions()
 | 
	
		
			
				|  |  | -            }
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -            if (['edit', 'view'].includes(type)) {
 | 
	
		
			
				|  |  | -                try {
 | 
	
		
			
				|  |  | -                    const res = await getDetail(this.form.id)
 | 
	
		
			
				|  |  | -                    this.form = res.data.data
 | 
	
		
			
				|  |  | -                } catch (error) {
 | 
	
		
			
				|  |  | -                    console.error('获取详情失败:', error)
 | 
	
		
			
				|  |  | -                }
 | 
	
		
			
				|  |  | -            }
 | 
	
		
			
				|  |  | -            done()
 | 
	
		
			
				|  |  | -        },
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -        /**
 | 
	
		
			
				|  |  |           * 获取数据
 | 
	
		
			
				|  |  |           * @param {Object} page - 分页信息
 | 
	
		
			
				|  |  |           * @param {LeadQueryParams} [params] - 查询参数
 |