| | |
| | | <el-col v-if="isUnflod" :span="12"> |
| | | <el-form-item label="销售机会" prop="sale_chance_name"> |
| | | <div class="custom-name"> |
| | | <!-- :disabled="isChance" --> |
| | | <el-autocomplete |
| | | v-model="editConfig.infomation.sale_chance_name" |
| | | :fetch-suggestions=" |
| | |
| | | value-key="name" |
| | | @select="handleSelectClient('chance', $event)" |
| | | style="width: 100%" |
| | | placeholder="请先选择客户名称" |
| | | :disabled="isChance" |
| | | placeholder="请选择销售机会" |
| | | ></el-autocomplete> |
| | | <div v-if="!isChance" class="common-select-btn" @click="selClientClick('chance')"> |
| | | <!-- v-if="!isChance" --> |
| | | <div class="common-select-btn" @click="selClientClick('chance')"> |
| | | <i class="el-icon-circle-plus-outline"></i> |
| | | </div> |
| | | <!-- &&!isChance --> |
| | | <div |
| | | v-if=" |
| | | editConfig.infomation.sale_chance_name && |
| | | editConfig.infomation.sale_chance_name.length > 0 && |
| | | !isChance |
| | | editConfig.infomation.sale_chance_name.length > 0 |
| | | " |
| | | class="common-select-btn" |
| | | @click="clearupClient('chance')" |
| | |
| | | this.editSelectContactConfig.clientId = this.clientId || 0 |
| | | this.editSelectContactConfig.editVisible = true |
| | | } else if (value === "chance") { |
| | | this.editSelectChanceConfig.clientId = this.clientId |
| | | this.editSelectChanceConfig.editVisible = true |
| | | } else { |
| | | this.editSelectLeadConfig.editVisible = true |
| | |
| | | this.editSelectContactConfig.search_map.client_id = row.id |
| | | this.editSelectChanceConfig.search_map.client_id = row.id |
| | | this.editSelectLeadConfig.search_map.name = row.name |
| | | this.getContactList(row) |
| | | this.getSalesLeadsList(row) |
| | | this.clientId = row.id |
| | | this.editConfig.infomation.client_name = row.name |
| | | this.isChance = false |
| | | this.getContactList(row) |
| | | this.getSalesLeadsList(row) |
| | | this.getChanceList(row.id) |
| | | } else if (value === "chance") { |
| | | this.editConfig.infomation.sale_chance_name = row.name |
| | | this.saleChanceId = row.id |
| | | this.editConfig.infomation.client_name = row.client.name |
| | | this.clientId = row.client.id |
| | | } else { |
| | | this.editConfig.infomation.sales_leads_name = row.name |
| | | this.saleLeadId = row.id |