| | |
| | | } else if (this.editConfig.title === "报价单") { |
| | | this.tableColumn = [ |
| | | { label: "报价单号", prop: "number", isClick: true, default: true }, // 报价单号 |
| | | { label: "销售负责人", prop: "member_name" } // 销售负责人 |
| | | { label: "报价名称", prop: "quotationName" }, |
| | | { label: "销售负责人", prop: "member_name" }, // 销售负责人 |
| | | { label: "客户名称", prop: "client_name" }, |
| | | { label: "所属业务机会", prop: "sale_chance_name" }, |
| | | { label: "报价单状态", prop: "quotationStatus" }, |
| | | { label: "合计", prop: "amountTotal" } |
| | | ] |
| | | this.showCol = ["报价单号", "销售负责人"] |
| | | this.showCol = ["报价单号", "报价名称", "销售负责人", "客户名称", "所属业务机会", "报价单状态", "合计"] |
| | | this.tableList = { |
| | | selectIndex: true, |
| | | |
| | |
| | | this.tableColumn = [ |
| | | { label: "产品名称", prop: "name", isClick: this.editCommonConfig.isSelectBox ? false : true, default: true }, // 产品名称 |
| | | { label: "产品编号", prop: "number" }, |
| | | { label: "规格", prop: "specs" }, |
| | | { label: "销售单价", prop: "price" }, |
| | | { label: "单位", prop: "unit" }, |
| | | { label: "产品规格", prop: "specs" }, |
| | | { label: "型号", prop: "type" } |
| | | ] |
| | | this.showCol = ["产品名称", "产品编号", "规格", "型号"] |
| | | this.showCol = ["产品名称", "产品编号", "销售单价", "单位", "产品规格", "型号"] |
| | | this.tableList = { |
| | | selectIndex: true, |
| | | tableInfomation: [], |
| | |
| | | this.tableList.tableInfomation = this.editConfig.tableInfomation.map((item) => { |
| | | return { |
| | | ...item, |
| | | member_name: item.member.username |
| | | client_name: item.client.name, |
| | | sale_chance_name: item.sale_chance.name, |
| | | member_name: item.member.username, |
| | | quotationStatus: item.quotation_status.name |
| | | } |
| | | }) |
| | | this.pagerOptions.totalCount = this.editConfig.count ? this.editConfig.count : 0 |
| | |
| | | const list = res.data.list.map((item) => { |
| | | return { |
| | | ...item, |
| | | member_name: item.member.username |
| | | client_name: item.client.name, |
| | | sale_chance_name: item.sale_chance.name, |
| | | member_name: item.member.username, |
| | | quotationStatus: item.quotation_status.name |
| | | } |
| | | }) |
| | | this.tableList.tableInfomation = list || [] |