| | |
| | | isDetail: { |
| | | type: Boolean, |
| | | default: false |
| | | }, |
| | | addConfig: { |
| | | type: Object, |
| | | default: () => { |
| | | return {} |
| | | } |
| | | } |
| | | }, |
| | | mixins: [pageMixin], |
| | |
| | | value: "number", |
| | | label: "回访单编号" |
| | | }, |
| | | selValueList: [] |
| | | selValueList: [], |
| | | keyword: "", |
| | | keywordType: "" |
| | | } |
| | | }, |
| | | created() { |
| | | this.setTable() |
| | | if (this.isDetail) { |
| | | console.log(this.addConfig) |
| | | this.keyword = this.addConfig.keyword |
| | | this.keywordType = this.addConfig.keywordType |
| | | } |
| | | this.getData() |
| | | }, |
| | | methods: { |
| | |
| | | { label: "客户名称", prop: "client_name", min: 130, isClientClick: true }, // 客户名称 |
| | | { label: "联系人姓名", prop: "contact_name", isContactClick: true }, // 联系人姓名 |
| | | { label: "客户服务单", prop: "client_service_order", isServiceOrder: true }, // 客户服务单 |
| | | { label: "回访人", prop: "isVisit" }, // 回访人 |
| | | { label: "满意度", prop: "satisfaction" } // 满意度 |
| | | { label: "回访人", prop: "member_name" }, // 回访人 |
| | | { label: "满意度", prop: "satisfaction_name" } // 满意度 |
| | | // { label: "修改时间", prop: "modifyTime" } // 修改时间 |
| | | ] |
| | | } |
| | |
| | | } |
| | | }, |
| | | // 请求数据 |
| | | async getData(keyword, keywordType) { |
| | | async getData() { |
| | | this.loading = true |
| | | await getServiceFollowupList({ |
| | | keyword: keyword, |
| | | keywordType: keywordType, |
| | | keyword: this.keyword, |
| | | keywordType: this.keywordType, |
| | | page: this.pagerOptions.currPage, |
| | | pageSize: this.pagerOptions.pageSize |
| | | }) |
| | |
| | | ...item, |
| | | client_service_order: item.ServiceOrder.serviceNumber, |
| | | client_name: item.client.name, |
| | | contact_name: item.contact.name |
| | | contact_name: item.contact.name, |
| | | member_name: item.Member.username, |
| | | satisfaction_name: item.satisfaction.name |
| | | } |
| | | }) |
| | | this.tableList.tableInfomation = list || [] |
| | |
| | | // 搜索 |
| | | searchClick(val, content) { |
| | | console.log(val, content) |
| | | this.getData(content, val.label) |
| | | this.keyword = content |
| | | this.keywordType = val.label |
| | | this.getData() |
| | | }, |
| | | resetClick() { |
| | | this.search_map = {} |
| | |
| | | addBtnClick() { |
| | | this.editConfig.visible = true |
| | | this.editConfig.title = "新建" |
| | | this.editConfig.infomation = {} |
| | | this.editConfig.infomation = { ...this.addConfig } |
| | | }, |
| | | // 编辑 |
| | | handleClick(row) { |
| | | console.log(row) |
| | | this.editConfig.visible = true |
| | | this.editConfig.title = "编辑" |
| | | this.editConfig.infomation = { ...row } |
| | | this.editConfig.infomation = { ...row, service_number: row.ServiceOrder.serviceNumber } |
| | | }, |
| | | // 删除 |
| | | delClick() { |