| | |
| | | { label: "商机来源", prop: "sales_sources_id", min: 190 }, // 商机来源 |
| | | { label: "省份", prop: "province", min: 190 }, // 省份 |
| | | { label: "城市", prop: "city", min: 190 }, // 城市 |
| | | { label: "负责人", prop: "owner", min: 190 } // 负责人 |
| | | { label: "负责人", prop: "member_id", min: 190 } // 负责人 |
| | | ] |
| | | } |
| | | this.searchOptions = [] |
| | |
| | | async getData() { |
| | | await getSalesLeadsList() |
| | | .then((res) => { |
| | | console.log(res) |
| | | this.tableList.tableInfomation = res.data.tableList.map((item) => { |
| | | item.province = item.Province.name |
| | | item.city = item.City.name |
| | | return item |
| | | const list = res.data.list.map((item) => { |
| | | return { |
| | | id: item.id, |
| | | name: item.name, |
| | | number: item.number, |
| | | contact_name: item.contact_name, |
| | | contact_phone: item.contact_phone, |
| | | sales_sources_id: item.sales_sources_id, |
| | | province: item.Province.name, |
| | | city: item.City.name, |
| | | member_id: item.member_id |
| | | } |
| | | }) |
| | | this.tableList.tableInfomation = list || [] |
| | | }) |
| | | .catch((err) => { |
| | | console.log(err) |
| | |
| | | this.editSalesLeadConfig.visible = true |
| | | this.editSalesLeadConfig.title = "新建" |
| | | this.editSalesLeadConfig.infomation = { |
| | | customName: "", |
| | | saleLeadNumber: "LEA50", |
| | | contactName: "", |
| | | contactDuties: "", |
| | | phoneNumber: "", |
| | | name: "", |
| | | number: "", |
| | | contact_name: "", |
| | | contact_position: "", |
| | | contact_phone: "", |
| | | businessStatus: "新建", |
| | | businessSource: "1", |
| | | owner: "", |
| | | position: "", |
| | | map: "", |
| | | country: "1", |
| | | province: "1", |
| | | city: "1", |
| | | region: "1", |
| | | address: "" |
| | | sales_sources_id: "", |
| | | member_id: "", |
| | | country: "", |
| | | province: "", |
| | | city: "", |
| | | region: "", |
| | | address: "", |
| | | desc: "" |
| | | } |
| | | }, |
| | | // 编辑 |
| | |
| | | this.editSalesLeadConfig.visible = true |
| | | this.editSalesLeadConfig.title = "编辑" |
| | | this.editSalesLeadConfig.infomation = { |
| | | customName: row.customName, |
| | | saleLeadNumber: row.saleLeadNumber, |
| | | contactName: row.contactName, |
| | | contactDuties: row.contactDuties, |
| | | phoneNumber: row.phoneNumber, |
| | | businessStatus: "新建", |
| | | businessSource: row.businessSource, |
| | | owner: row.owner, |
| | | position: "", |
| | | map: "", |
| | | country: "1", |
| | | province: "1", |
| | | city: "1", |
| | | region: "1", |
| | | address: "" |
| | | id: row.id, |
| | | name: row.name, |
| | | number: row.number, |
| | | contact_name: row.contact_name, |
| | | contact_position: row.contact_position, |
| | | contact_phone: row.contact_phone, |
| | | businessStatus: "编辑", |
| | | sales_sources_id: row.sales_sources_id, |
| | | member_id: row.member_id, |
| | | country: "", |
| | | province: "", |
| | | city: "", |
| | | region: "", |
| | | address: "", |
| | | desc: row.desc |
| | | } |
| | | }, |
| | | // 导入 |