| | |
| | | </div> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col v-if="isUnflod" :span="12"> |
| | | <el-col v-if="isUnflod && !isDetail" :span="12"> |
| | | <el-form-item label="客户状态" prop="client_status_id"> |
| | | <div class="common-select"> |
| | | <el-select |
| | |
| | | </div> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="12"> |
| | | <el-col :span="12" v-if="!isDetail"> |
| | | <el-form-item label="销售线索" prop="sales_leads_name"> |
| | | <div class="custom-name"> |
| | | <!-- <el-input v-model="editConfig.infomation.sales_leads_id"></el-input> --> |
| | |
| | | import { getContactList } from "@/api/client/contacts" |
| | | import { mapActions } from "vuex"; |
| | | import { getSaleChanceList } from "@/api/sales/salesOpportunity"; |
| | | import { getSalesLeadsList } from "@/api/client/salesLead" |
| | | |
| | | |
| | | export default { |
| | | name: "AddFollowupRecordsDialog", |
| | |
| | | }; |
| | | }, |
| | | }, |
| | | isDetail: { |
| | | type: Boolean, |
| | | default: false |
| | | } |
| | | }, |
| | | components: { |
| | | SelectClientDialog, |
| | |
| | | editVisible: false, |
| | | title: "", |
| | | infomation: {}, |
| | | search_map:{} |
| | | }, |
| | | editSelectChanceConfig: { |
| | | editVisible: false, |
| | | title: "", |
| | | infomation: {}, |
| | | search_map:{}, |
| | | }, |
| | | editSelectLeadConfig: { |
| | | editVisible: false, |
| | | title: "", |
| | | infomation: {}, |
| | | search_map:{}, |
| | | }, |
| | | clientId: this.editContactsConfig.infomation.client_id, |
| | | contactId: this.editContactsConfig.infomation.contact_id, |
| | |
| | | }, |
| | | }, |
| | | methods: { |
| | | ...mapActions(["getContactFilter"]), |
| | | ...mapActions(["getContactFilter","getLeadFilter"]), |
| | | formInfo() { |
| | | this.objCode.type = "跟进记录编码"; |
| | | this.objCode.codeStandID = ""; |
| | |
| | | }, |
| | | async handleSelectClient(value, item) { |
| | | if (value === "client") { |
| | | console.log(item,"item") |
| | | this.editSelectContactConfig.search_map.client_id=item.id |
| | | this.editSelectChanceConfig.search_map.client_id=item.id |
| | | this.editSelectLeadConfig.search_map.name=item.name |
| | | await getContactList({ |
| | | search_map:{ |
| | | client_id:item.id |
| | |
| | | this.getContactFilter(res.data.list); |
| | | } |
| | | }); |
| | | await getSalesLeadsList({ |
| | | search_map:{ |
| | | name:item.name |
| | | }, |
| | | }).then((res) => { |
| | | if (res.code === 200) { |
| | | this.getLeadFilter(res.data.list); |
| | | } |
| | | }); |
| | | this.clientId = item.id; |
| | | this.editConfig.infomation.client_name = item.name; |
| | | this.isChance = false; |
| | | this.getChanceList(item.id); |
| | | // console.log("clientId",this.clientId,this.editConfig.infomation.client_name) |
| | | } else if (value === "contact") { |
| | | this.contactId = item.id; |
| | | this.editConfig.infomation.contact_name = item.name; |