haoxuan
2023-10-17 0bdc7d10c8c4b13a993f5f1474b7fb2fc8c88fc9
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()
    },