跟进记录的编辑反显bug+销售线索的新建,详情的调整
| | |
| | | let follow_record = { |
| | | follow_record: { |
| | | client_id: this.clientId || 0, |
| | | client_status_id: data.client_status_id || 0, |
| | | client_status_id: data.client_status_id || null, |
| | | contact_id: this.contactId || 0, |
| | | contact_information_id: data.contact_information_id || 0, |
| | | contact_information_id: data.contact_information_id || null, |
| | | content: data.content || "", |
| | | follow_time: data.follow_time || "", |
| | | member_id: data.member_id || 0, |
| | |
| | | handleClick(row) { |
| | | console.log(row) |
| | | this.editConfig.title = "编辑" |
| | | this.editConfig.infomation = { ...row, sale_chance_name: "", sales_leads_name: "" } |
| | | let config=JSON.parse(JSON.stringify(row)); |
| | | config.client_status_id=config.client_status_id?config.client_status_id:null |
| | | config.contact_information_id=config.contact_information_id?config.contact_information_id:null |
| | | this.editConfig.infomation = { ...config, sale_chance_name: "", sales_leads_name: "" } |
| | | this.editConfig.visible = true |
| | | }, |
| | | // 删除 |
| | |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="12"> |
| | | <el-form-item label="客户名称" prop="name"> |
| | | <el-form-item label="意向客户名称" prop="name"> |
| | | <el-input v-model="editConfig.infomation.name" style="width: 100%"></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="12"> |
| | | <el-form-item label="商机状态" prop="businessStatus"> |
| | | <el-form-item label="线索状态" prop="businessStatus"> |
| | | <span>{{ editConfig.infomation.businessStatus }}</span> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row> |
| | | <el-col :span="12"> |
| | | <el-form-item label="商机来源" prop="sales_sources_id"> |
| | | <el-form-item label="线索来源" prop="sales_sources_id"> |
| | | <div class="common-select"> |
| | | <el-select |
| | | v-model="editConfig.infomation.sales_sources_id" |
| | |
| | | <el-drawer :visible.sync="detailConfig.visible" size="80%" :before-close="handleClose" :wrapperClosable="false"> |
| | | <template slot="title"> |
| | | <div class="header"> |
| | | <span class="header-label">客户名称</span> |
| | | <span class="header-label">销售线索</span> |
| | | <span class="header-title">{{ detailConfig.infomation.name }}</span> |
| | | </div> |
| | | </template> |
| | |
| | | } |
| | | this.basicInfoList = [ |
| | | { |
| | | leftStr: "客户名称", |
| | | leftStr: "意向客户名称", |
| | | leftValue: item.name, |
| | | rightStr: "销售线索编号", |
| | | rightValue: item.number |
| | |
| | | { |
| | | leftStr: "手机号码", |
| | | leftValue: item.contact_phone, |
| | | rightStr: "商机状态", |
| | | rightStr: "线索状态", |
| | | rightValue: "新建" |
| | | }, |
| | | { |
| | | leftStr: "商机来源", |
| | | leftStr: "线索来源", |
| | | leftValue: item.sales_resources, |
| | | rightStr: "负责人", |
| | | rightValue: item.member_name |
| | |
| | | { |
| | | leftStr: "分配日期", |
| | | leftValue: "", |
| | | rightStr: "公海状态", |
| | | // rightStr: "公海状态", |
| | | // rightValue: "" |
| | | rightStr: "创建时间", |
| | | rightValue: "" |
| | | }, |
| | | { |
| | | leftStr: "创建时间", |
| | | leftValue: "", |
| | | rightStr: "创建人", |
| | | rightValue: "" |
| | | }, |
| | | { |
| | | leftStr: "关闭原因", |
| | | // leftStr: "创建时间", |
| | | // leftValue: "", |
| | | // rightStr: "创建人", |
| | | // rightValue: "" |
| | | leftStr: "创建人", |
| | | leftValue: "", |
| | | rightStr: "", |
| | | rightValue: "" |
| | | } |
| | | }, |
| | | // { |
| | | // leftStr: "关闭原因", |
| | | // leftValue: "", |
| | | // rightStr: "", |
| | | // rightValue: "" |
| | | // } |
| | | ] |
| | | this.dynamicInfoList = [ |
| | | { |