| | |
| | | |
| | | <script> |
| | | import AddServiceFeeManageDialog from "@/views/service/serviceFeeManage/AddServiceFeeManageDialog" |
| | | import { getServiceFeeManageList } from "@/api/serviceManage/serviceFeeManage" |
| | | |
| | | export default { |
| | | name: "ServiceFeeManage", |
| | |
| | | }, |
| | | created() { |
| | | this.setTable() |
| | | this.getData() |
| | | }, |
| | | methods: { |
| | | setTable() { |
| | | this.tableList = { |
| | | tableInfomation: [ |
| | | { |
| | | customName: "123123", |
| | | customType: "普通客户", |
| | | salesHead: "系统管理员", |
| | | modifyTime: "2023-0703 11:22:12", |
| | | customerSize: "499以上", |
| | | importantLevel: "A类客户", |
| | | customNumber: "AC651", |
| | | customStatus: "潜在客户", |
| | | productName: "自动打印机", |
| | | startDate: "2023-06-27", |
| | | endDate: "2024-07-15", |
| | | status: "blue" |
| | | } |
| | | ], |
| | | tableInfomation: [], |
| | | tableColumn: [ |
| | | { label: "客户名称", prop: "customName", min: 120 }, // 客户名称 |
| | | { label: "客户名称", prop: "client", min: 120 }, // 客户名称 |
| | | { label: "客户类型", prop: "customType", min: 90, status: true }, // 客户类型 |
| | | { label: "销售负责人", prop: "salesHead" }, // 销售负责人 |
| | | { label: "销售负责人", prop: "member_id" }, // 销售负责人 |
| | | { label: "修改时间", prop: "modifyTime", min: 100 }, // 修改时间 |
| | | { label: "客户规模", prop: "customerSize" }, // 客户规模 |
| | | { label: "重要级别", prop: "importantLevel" }, // 重要级别 |
| | | { label: "客户编号", prop: "customNumber" }, // 客户编号 |
| | | { label: "客户编号", prop: "client_id" }, // 客户编号 |
| | | { label: "客户状态", prop: "customStatus" }, // 客户状态 |
| | | { label: "产品名称", prop: "productName" }, // 产品名称 |
| | | { label: "服务开始日期", prop: "startDate" }, // 服务开始日期 |
| | | { label: "服务到期日", prop: "endDate" } // 服务到期日 |
| | | { label: "服务到期日", prop: "latest_date" } // 服务到期日 |
| | | ] |
| | | } |
| | | this.searchOptions = [] |
| | |
| | | this.searchOptions.push({ value: (i + 1).toString(), label: label }) |
| | | } |
| | | }, |
| | | // 请求数据 |
| | | async getData() { |
| | | this.loading = true |
| | | await getServiceFeeManageList() |
| | | .then((res) => { |
| | | console.log(res) |
| | | if (res.code === 200) { |
| | | if (res.data.list && res.data.list.length > 0) { |
| | | const list = res.data.list.map((item) => { |
| | | return { |
| | | ...item |
| | | } |
| | | }) |
| | | this.tableList.tableInfomation = list || [] |
| | | } else { |
| | | this.tableList.tableInfomation = [] |
| | | } |
| | | } else { |
| | | this.tableList.tableInfomation = [] |
| | | } |
| | | this.loading = false |
| | | }) |
| | | .catch((err) => { |
| | | console.log(err) |
| | | this.tableList.tableInfomation = [] |
| | | this.loading = false |
| | | }) |
| | | }, |
| | | // 新建 |
| | | addBtnClick() { |
| | | this.editConfig.visible = true |