zuozhengqing
2023-10-18 0ec635d5e432be07c3103ac2e9bd25edb941f775
src/views/client/followupRecords/AddFollowupRecordsDialog.vue
@@ -514,6 +514,7 @@
    // 保存
    saveClick(formName) {
      this.$refs[formName].validate((valid) => {
        this.validateFormNumber()
        if (valid) {
          const params = this.saveParams()
          if (this.editConfig.title === "新建") {
@@ -631,7 +632,9 @@
    },
    async handleSelectClient(value, item) {
      if (value === "client") {
        console.log(item, "item")
        this.editConfig.infomation.contact_name = ""
        this.editConfig.infomation.sales_leads_name=""
        this.editConfig.infomation.sale_chance_name=""
        this.editSelectContactConfig.search_map.client_id = item.id
        this.editSelectChanceConfig.search_map.client_id = item.id
        this.editSelectLeadConfig.search_map.name = item.name
@@ -668,9 +671,9 @@
        this.editConfig.infomation.contact_name = row.name
        this.contactId = row.id
      } else if (value === "client") {
        // this.editConfig.infomation.client_name = row.name;
        // this.clientId = row.id;
        // this.isChance = false;
        this.editConfig.infomation.contact_name = ""
        this.editConfig.infomation.sales_leads_name=""
        this.editConfig.infomation.sale_chance_name=""
        this.editSelectContactConfig.search_map.client_id = row.id
        this.editSelectChanceConfig.search_map.client_id = row.id
        this.editSelectLeadConfig.search_map.name = row.name
@@ -691,6 +694,9 @@
    // 清除已选择用户
    clearupClient(value) {
      if (value === "client") {
        this.editConfig.infomation.contact_name = ""
        this.editConfig.infomation.sales_leads_name=""
        this.editConfig.infomation.sale_chance_name=""
        this.editConfig.infomation.client_name = ""
        this.clientId = 0
        this.isChance = true