| | |
| | | async getData() { |
| | | this.loading = true |
| | | let params = {} |
| | | if (this.addConfig.id) { |
| | | console.log("ssssssssssss") |
| | | console.log(this.addConfig) |
| | | if (this.addConfig.keywordType === "客户名称") { |
| | | params = { |
| | | number: this.addConfig.keyword, |
| | | clientId: this.addConfig.client_id, |
| | | page: this.pagerOptions.currPage, |
| | | pageSize: this.pagerOptions.pageSize |
| | | } |
| | | } else if (this.addConfig.keywordType === "销售机会") { |
| | | params = { |
| | | saleChanceId: this.addConfig.sale_chance_id, |
| | | page: this.pagerOptions.currPage, |
| | | pageSize: this.pagerOptions.pageSize |
| | | } |
| | | } else if (this.addConfig.keywordType === "销售子单") { |
| | | params = { |
| | | number: this.addConfig.subbill_name, |
| | | page: this.pagerOptions.currPage, |
| | | pageSize: this.pagerOptions.pageSize |
| | | } |
| | |
| | | this.editConfig.infomation = { |
| | | ...this.addConfig, |
| | | currency: "人民币", |
| | | sale_chance_name:"", |
| | | subbill_name:"", |
| | | client_name: Object.keys(this.addConfig).length === 0 ? "" : this.addConfig.client_name |
| | | } |
| | | }, |
| | |
| | | console.log(row) |
| | | this.editConfig.visible = true |
| | | this.editConfig.title = "编辑" |
| | | this.editConfig.infomation = { ...row, sale_chance_name: "", currency: "人民币" } |
| | | this.editConfig.infomation = { ...row, sale_chance_name: "", currency: "人民币",sale_chance_name:row.saleChance.name,} |
| | | }, |
| | | // 删除 |
| | | delClick(rowID) { |
| | |
| | | }, |
| | | // 联系人详情 |
| | | selCommonClick(row) { |
| | | console.log(row) |
| | | this.specificationDetail.visible = true |
| | | this.specificationDetail.infomation = { ...row } |
| | | this.specificationDetail.visible = true |
| | | }, |
| | | addCollectionPlanClick(row) { |
| | | this.addCollectionConfig.visible = true |