| | |
| | | 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: "人民币", |
| | | client_name: Object.keys(this.addConfig).length === 0 ? "" : this.addConfig.client_name |
| | | sale_chance_name: "", |
| | | subbill_name: "", |
| | | client_name: 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, |
| | | currency: "人民币", |
| | | sale_chance_name: row.saleChance.name, |
| | | deliverType: row.deliverType === 0 ? "" : row.deliverType, |
| | | quotation_number: row.quotation.number |
| | | } |
| | | }, |
| | | // 删除 |
| | | delClick(rowID) { |