File was renamed from src/views/custom/contacts/index.vue |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import AddContactsDialog from "@/views/custom/contacts/AddContactsDialog" |
| | | import { getContactList } from "@/api/custom/contacts" |
| | | import AddContactsDialog from "@/views/client/contacts/AddContactsDialog" |
| | | import { getContactList } from "@/api/client/contacts" |
| | | export default { |
| | | name: "ContactsView", |
| | | props: {}, |
| | |
| | | this.tableList = { |
| | | tableInfomation: [], |
| | | tableColumn: [ |
| | | { label: "联系人姓名", prop: "contactName", min: 100 }, // 联系人姓名 |
| | | { label: "联系人姓名", prop: "name", min: 100 }, // 联系人姓名 |
| | | { label: "客户名称", prop: "client_name", min: 190 }, // 客户名称 |
| | | { label: "联系人编号", prop: "number", min: 100 }, // 联系人编号 |
| | | { label: "职务", prop: "duties", min: 120 }, // 职务 |
| | | { label: "职务", prop: "position", min: 120 }, // 职务 |
| | | { label: "手机", prop: "phone", min: 100 }, // 手机号码 |
| | | { label: "销售负责人", prop: "salesHead", min: 120 }, // 销售负责人 |
| | | { label: "首要联系人", prop: "name", min: 90 } // 首要联系人 |
| | | { label: "销售负责人", prop: "member_id", min: 120 }, // 销售负责人 |
| | | { label: "首要联系人", prop: "is_first", min: 90 } // 首要联系人 |
| | | ] |
| | | } |
| | | this.searchOptions = [] |
| | |
| | | if (res.data.list && res.data.list.length > 0) { |
| | | const list = res.data.list.map((item) => { |
| | | return { |
| | | contactName: "", |
| | | ...item, |
| | | client_name: item.Client.name, |
| | | number: item.number, |
| | | duties: "", |
| | | phone: item.phone, |
| | | salesHead: "", |
| | | name: item.name |
| | | is_first: item.is_first ? "是" : "否" |
| | | } |
| | | }) |
| | | this.tableList.tableInfomation = list || [] |