| | |
| | | visible: false, |
| | | infomation: {} |
| | | }, |
| | | not_admin: 2, |
| | | is_public:true, |
| | | tableColumn:[ |
| | | { label: "客户名称", prop: "name", min: 100, isClientClick: true, default:true}, // 客户名称 |
| | | { label: "销售负责人", prop: "member_name" }, // 销售负责人 |
| | |
| | | created() { |
| | | this.setTable() |
| | | this.search_map = { |
| | | not_admin: this.not_admin |
| | | is_public: this.is_public |
| | | } |
| | | this.getData() |
| | | }, |
| | |
| | | tabsClick(tab) { |
| | | console.log(tab.name) |
| | | if (tab.name === "first") { |
| | | this.not_admin = 2 |
| | | this.is_public = true |
| | | } else { |
| | | this.not_admin = 1 |
| | | this.is_public = false |
| | | } |
| | | this.search_map = { |
| | | not_admin: this.not_admin |
| | | is_public: this.is_public |
| | | } |
| | | this.pagerOptions.currPage = 1 |
| | | this.getData() |
| | |
| | | // 搜索 |
| | | onFilterSearch(searchText){ |
| | | this.search_map = { |
| | | not_admin: this.not_admin, |
| | | is_public: this.is_public, |
| | | name: searchText |
| | | } |
| | | this.pagerOptions.currPage = 1 |
| | |
| | | }, |
| | | // 新建 |
| | | addBtnClick() { |
| | | this.editConfig.visible = true |
| | | this.editConfig.title = "新建" |
| | | this.editConfig.infomation = { |
| | | city_id: 0, |
| | |
| | | registered_capital_id: 1, |
| | | enterprise_nature_id: 1, |
| | | enterprise_scale_id: 1, |
| | | industry_id: 1 |
| | | industry_id: 1, |
| | | province_id:'' |
| | | } |
| | | this.editConfig.visible = true |
| | | }, |
| | | // 编辑 |
| | | handleClick(row) { |
| | | console.log(row) |
| | | this.editConfig.visible = true |
| | | this.editConfig.title = "编辑" |
| | | this.editConfig.infomation = { |
| | | ...row |
| | | ...row, |
| | | activeName:this.activeName, |
| | | } |
| | | this.editConfig.visible = true |
| | | }, |
| | | // 删除 |
| | | delClick(id) { |
| | |
| | | // 跟进 |
| | | followupClick(row) { |
| | | console.log(row) |
| | | this.editFollowupConfig.visible = true |
| | | this.editFollowupConfig.title = "新建" |
| | | this.editFollowupConfig.infomation = { |
| | | ...row, |
| | | client_name: row.name, |
| | | number: "", |
| | | next_follow_time: row.next_visit_time |
| | | codeStandID:'', |
| | | next_follow_time: row.next_visit_time, |
| | | client_id:row.id |
| | | } |
| | | this.editFollowupConfig.visible = true |
| | | }, |
| | | // 分配 |
| | | allocationBtnClick(row) { |
| | |
| | | async changeHighSeasClick(row) { |
| | | await getAssign({ |
| | | ids: [row.id], |
| | | member_id: 1, |
| | | member_id: 0, |
| | | type: "client" |
| | | }).then((res) => { |
| | | this.editConfig.visible = false |