songshankun
2023-10-17 2eaca5c7f885457e7893bd84528b43d4e49c1fbc
fix: 修复销售机会通过弹窗添加客户后联系人不可选择的问题
1个文件已修改
11 ■■■■ 已修改文件
src/views/sales/salesOpportunity/AddSalesOpportunityDialog.vue 11 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/sales/salesOpportunity/AddSalesOpportunityDialog.vue
@@ -819,11 +819,16 @@
    handleSelectClient(value, item) {
      if (value === "client") {
        this.clientId = item.id
        this.editConfig.infomation.client_name = item.name
        this.editConfig.infomation.contact_name = ''
        this.contactId = 0
        this.isContact = false
        this.getContactList(item.id)
      } else if (value === "contact") {
        this.editConfig.infomation.contact_name = item.name
        this.contactId = item.id
      }
      this.refresh()
    },
    selClientClick(value) {
      if (value === "client") {
@@ -836,11 +841,13 @@
      if (value === "contact") {
        this.editConfig.infomation.contact_name = row.name
        this.contactId = row.id
        this.isContact = false
        this.getContactList(row.id)
      } else if (value === "client") {
        this.editConfig.infomation.client_name = row.name
        this.clientId = row.id
        this.editConfig.infomation.contact_name = ''
        this.contactId = 0
        this.isContact = false
        this.getContactList(row.id)
      }
      this.refresh()
    },