222
schangxiang@126.com
2025-06-13 6a8393408d8cefcea02b7a598967de8dc1e565c2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import BaseService from "../baseService";
import { CRMClientLinker } from "../../entity/crm/linker/crmClientLinker";
 
export default class ClientLinkerService extends BaseService {
  //#region 添加保存前事件
  /**
   * 添加保存前事件
   */
  public async onAddSaveBefore(t: CRMClientLinker) {
    this.info.result = true;
 
    //判断条码是否重复
    if (!t.client_Id) {
      this.info.result = false;
      this.info.msg = t.clientShortName + "客户不存在,必须在客户管理先添加";
    }
    return this.info;
  }
  //#endregion
}